UNPKG

@google-cloud/essential-contacts

Version:
910 lines (760 loc) 367 kB
// Copyright 2025 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 type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace essentialcontacts. */ namespace essentialcontacts { /** Namespace v1. */ namespace v1 { /** NotificationCategory enum. */ enum NotificationCategory { NOTIFICATION_CATEGORY_UNSPECIFIED = 0, ALL = 2, SUSPENSION = 3, SECURITY = 5, TECHNICAL = 6, BILLING = 7, LEGAL = 8, PRODUCT_UPDATES = 9, TECHNICAL_INCIDENTS = 10 } /** ValidationState enum. */ enum ValidationState { VALIDATION_STATE_UNSPECIFIED = 0, VALID = 1, INVALID = 2 } /** Represents an EssentialContactsService */ class EssentialContactsService extends $protobuf.rpc.Service { /** * Constructs a new EssentialContactsService 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 EssentialContactsService 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): EssentialContactsService; /** * Calls CreateContact. * @param request CreateContactRequest message or plain object * @param callback Node-style callback called with the error, if any, and Contact */ public createContact(request: google.cloud.essentialcontacts.v1.ICreateContactRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContactCallback): void; /** * Calls CreateContact. * @param request CreateContactRequest message or plain object * @returns Promise */ public createContact(request: google.cloud.essentialcontacts.v1.ICreateContactRequest): Promise<google.cloud.essentialcontacts.v1.Contact>; /** * Calls UpdateContact. * @param request UpdateContactRequest message or plain object * @param callback Node-style callback called with the error, if any, and Contact */ public updateContact(request: google.cloud.essentialcontacts.v1.IUpdateContactRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContactCallback): void; /** * Calls UpdateContact. * @param request UpdateContactRequest message or plain object * @returns Promise */ public updateContact(request: google.cloud.essentialcontacts.v1.IUpdateContactRequest): Promise<google.cloud.essentialcontacts.v1.Contact>; /** * Calls ListContacts. * @param request ListContactsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListContactsResponse */ public listContacts(request: google.cloud.essentialcontacts.v1.IListContactsRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.ListContactsCallback): void; /** * Calls ListContacts. * @param request ListContactsRequest message or plain object * @returns Promise */ public listContacts(request: google.cloud.essentialcontacts.v1.IListContactsRequest): Promise<google.cloud.essentialcontacts.v1.ListContactsResponse>; /** * Calls GetContact. * @param request GetContactRequest message or plain object * @param callback Node-style callback called with the error, if any, and Contact */ public getContact(request: google.cloud.essentialcontacts.v1.IGetContactRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.GetContactCallback): void; /** * Calls GetContact. * @param request GetContactRequest message or plain object * @returns Promise */ public getContact(request: google.cloud.essentialcontacts.v1.IGetContactRequest): Promise<google.cloud.essentialcontacts.v1.Contact>; /** * Calls DeleteContact. * @param request DeleteContactRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteContact(request: google.cloud.essentialcontacts.v1.IDeleteContactRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContactCallback): void; /** * Calls DeleteContact. * @param request DeleteContactRequest message or plain object * @returns Promise */ public deleteContact(request: google.cloud.essentialcontacts.v1.IDeleteContactRequest): Promise<google.protobuf.Empty>; /** * Calls ComputeContacts. * @param request ComputeContactsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ComputeContactsResponse */ public computeContacts(request: google.cloud.essentialcontacts.v1.IComputeContactsRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContactsCallback): void; /** * Calls ComputeContacts. * @param request ComputeContactsRequest message or plain object * @returns Promise */ public computeContacts(request: google.cloud.essentialcontacts.v1.IComputeContactsRequest): Promise<google.cloud.essentialcontacts.v1.ComputeContactsResponse>; /** * Calls SendTestMessage. * @param request SendTestMessageRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public sendTestMessage(request: google.cloud.essentialcontacts.v1.ISendTestMessageRequest, callback: google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessageCallback): void; /** * Calls SendTestMessage. * @param request SendTestMessageRequest message or plain object * @returns Promise */ public sendTestMessage(request: google.cloud.essentialcontacts.v1.ISendTestMessageRequest): Promise<google.protobuf.Empty>; } namespace EssentialContactsService { /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|createContact}. * @param error Error, if any * @param [response] Contact */ type CreateContactCallback = (error: (Error|null), response?: google.cloud.essentialcontacts.v1.Contact) => void; /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|updateContact}. * @param error Error, if any * @param [response] Contact */ type UpdateContactCallback = (error: (Error|null), response?: google.cloud.essentialcontacts.v1.Contact) => void; /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|listContacts}. * @param error Error, if any * @param [response] ListContactsResponse */ type ListContactsCallback = (error: (Error|null), response?: google.cloud.essentialcontacts.v1.ListContactsResponse) => void; /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|getContact}. * @param error Error, if any * @param [response] Contact */ type GetContactCallback = (error: (Error|null), response?: google.cloud.essentialcontacts.v1.Contact) => void; /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|deleteContact}. * @param error Error, if any * @param [response] Empty */ type DeleteContactCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|computeContacts}. * @param error Error, if any * @param [response] ComputeContactsResponse */ type ComputeContactsCallback = (error: (Error|null), response?: google.cloud.essentialcontacts.v1.ComputeContactsResponse) => void; /** * Callback as used by {@link google.cloud.essentialcontacts.v1.EssentialContactsService|sendTestMessage}. * @param error Error, if any * @param [response] Empty */ type SendTestMessageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } /** Properties of a Contact. */ interface IContact { /** Contact name */ name?: (string|null); /** Contact email */ email?: (string|null); /** Contact notificationCategorySubscriptions */ notificationCategorySubscriptions?: (google.cloud.essentialcontacts.v1.NotificationCategory[]|null); /** Contact languageTag */ languageTag?: (string|null); /** Contact validationState */ validationState?: (google.cloud.essentialcontacts.v1.ValidationState|keyof typeof google.cloud.essentialcontacts.v1.ValidationState|null); /** Contact validateTime */ validateTime?: (google.protobuf.ITimestamp|null); } /** Represents a Contact. */ class Contact implements IContact { /** * Constructs a new Contact. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.IContact); /** Contact name. */ public name: string; /** Contact email. */ public email: string; /** Contact notificationCategorySubscriptions. */ public notificationCategorySubscriptions: google.cloud.essentialcontacts.v1.NotificationCategory[]; /** Contact languageTag. */ public languageTag: string; /** Contact validationState. */ public validationState: (google.cloud.essentialcontacts.v1.ValidationState|keyof typeof google.cloud.essentialcontacts.v1.ValidationState); /** Contact validateTime. */ public validateTime?: (google.protobuf.ITimestamp|null); /** * Creates a new Contact instance using the specified properties. * @param [properties] Properties to set * @returns Contact instance */ public static create(properties?: google.cloud.essentialcontacts.v1.IContact): google.cloud.essentialcontacts.v1.Contact; /** * Encodes the specified Contact message. Does not implicitly {@link google.cloud.essentialcontacts.v1.Contact.verify|verify} messages. * @param message Contact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.IContact, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Contact message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.Contact.verify|verify} messages. * @param message Contact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.IContact, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Contact message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Contact * @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.cloud.essentialcontacts.v1.Contact; /** * Decodes a Contact message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Contact * @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.cloud.essentialcontacts.v1.Contact; /** * Verifies a Contact 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 Contact message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Contact */ public static fromObject(object: { [k: string]: any }): google.cloud.essentialcontacts.v1.Contact; /** * Creates a plain object from a Contact message. Also converts values to other types if specified. * @param message Contact * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.essentialcontacts.v1.Contact, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Contact to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Contact * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListContactsRequest. */ interface IListContactsRequest { /** ListContactsRequest parent */ parent?: (string|null); /** ListContactsRequest pageSize */ pageSize?: (number|null); /** ListContactsRequest pageToken */ pageToken?: (string|null); } /** Represents a ListContactsRequest. */ class ListContactsRequest implements IListContactsRequest { /** * Constructs a new ListContactsRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.IListContactsRequest); /** ListContactsRequest parent. */ public parent: string; /** ListContactsRequest pageSize. */ public pageSize: number; /** ListContactsRequest pageToken. */ public pageToken: string; /** * Creates a new ListContactsRequest instance using the specified properties. * @param [properties] Properties to set * @returns ListContactsRequest instance */ public static create(properties?: google.cloud.essentialcontacts.v1.IListContactsRequest): google.cloud.essentialcontacts.v1.ListContactsRequest; /** * Encodes the specified ListContactsRequest message. Does not implicitly {@link google.cloud.essentialcontacts.v1.ListContactsRequest.verify|verify} messages. * @param message ListContactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.IListContactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListContactsRequest message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.ListContactsRequest.verify|verify} messages. * @param message ListContactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.IListContactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListContactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListContactsRequest * @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.cloud.essentialcontacts.v1.ListContactsRequest; /** * Decodes a ListContactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListContactsRequest * @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.cloud.essentialcontacts.v1.ListContactsRequest; /** * Verifies a ListContactsRequest 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 ListContactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListContactsRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.essentialcontacts.v1.ListContactsRequest; /** * Creates a plain object from a ListContactsRequest message. Also converts values to other types if specified. * @param message ListContactsRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.essentialcontacts.v1.ListContactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListContactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListContactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListContactsResponse. */ interface IListContactsResponse { /** ListContactsResponse contacts */ contacts?: (google.cloud.essentialcontacts.v1.IContact[]|null); /** ListContactsResponse nextPageToken */ nextPageToken?: (string|null); } /** Represents a ListContactsResponse. */ class ListContactsResponse implements IListContactsResponse { /** * Constructs a new ListContactsResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.IListContactsResponse); /** ListContactsResponse contacts. */ public contacts: google.cloud.essentialcontacts.v1.IContact[]; /** ListContactsResponse nextPageToken. */ public nextPageToken: string; /** * Creates a new ListContactsResponse instance using the specified properties. * @param [properties] Properties to set * @returns ListContactsResponse instance */ public static create(properties?: google.cloud.essentialcontacts.v1.IListContactsResponse): google.cloud.essentialcontacts.v1.ListContactsResponse; /** * Encodes the specified ListContactsResponse message. Does not implicitly {@link google.cloud.essentialcontacts.v1.ListContactsResponse.verify|verify} messages. * @param message ListContactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.IListContactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListContactsResponse message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.ListContactsResponse.verify|verify} messages. * @param message ListContactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.IListContactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListContactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListContactsResponse * @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.cloud.essentialcontacts.v1.ListContactsResponse; /** * Decodes a ListContactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListContactsResponse * @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.cloud.essentialcontacts.v1.ListContactsResponse; /** * Verifies a ListContactsResponse 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 ListContactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListContactsResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.essentialcontacts.v1.ListContactsResponse; /** * Creates a plain object from a ListContactsResponse message. Also converts values to other types if specified. * @param message ListContactsResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.essentialcontacts.v1.ListContactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListContactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListContactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetContactRequest. */ interface IGetContactRequest { /** GetContactRequest name */ name?: (string|null); } /** Represents a GetContactRequest. */ class GetContactRequest implements IGetContactRequest { /** * Constructs a new GetContactRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.IGetContactRequest); /** GetContactRequest name. */ public name: string; /** * Creates a new GetContactRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetContactRequest instance */ public static create(properties?: google.cloud.essentialcontacts.v1.IGetContactRequest): google.cloud.essentialcontacts.v1.GetContactRequest; /** * Encodes the specified GetContactRequest message. Does not implicitly {@link google.cloud.essentialcontacts.v1.GetContactRequest.verify|verify} messages. * @param message GetContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.IGetContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetContactRequest message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.GetContactRequest.verify|verify} messages. * @param message GetContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.IGetContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetContactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetContactRequest * @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.cloud.essentialcontacts.v1.GetContactRequest; /** * Decodes a GetContactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetContactRequest * @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.cloud.essentialcontacts.v1.GetContactRequest; /** * Verifies a GetContactRequest 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 GetContactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetContactRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.essentialcontacts.v1.GetContactRequest; /** * Creates a plain object from a GetContactRequest message. Also converts values to other types if specified. * @param message GetContactRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.essentialcontacts.v1.GetContactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetContactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for GetContactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteContactRequest. */ interface IDeleteContactRequest { /** DeleteContactRequest name */ name?: (string|null); } /** Represents a DeleteContactRequest. */ class DeleteContactRequest implements IDeleteContactRequest { /** * Constructs a new DeleteContactRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.IDeleteContactRequest); /** DeleteContactRequest name. */ public name: string; /** * Creates a new DeleteContactRequest instance using the specified properties. * @param [properties] Properties to set * @returns DeleteContactRequest instance */ public static create(properties?: google.cloud.essentialcontacts.v1.IDeleteContactRequest): google.cloud.essentialcontacts.v1.DeleteContactRequest; /** * Encodes the specified DeleteContactRequest message. Does not implicitly {@link google.cloud.essentialcontacts.v1.DeleteContactRequest.verify|verify} messages. * @param message DeleteContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.IDeleteContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified DeleteContactRequest message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.DeleteContactRequest.verify|verify} messages. * @param message DeleteContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.IDeleteContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteContactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns DeleteContactRequest * @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.cloud.essentialcontacts.v1.DeleteContactRequest; /** * Decodes a DeleteContactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns DeleteContactRequest * @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.cloud.essentialcontacts.v1.DeleteContactRequest; /** * Verifies a DeleteContactRequest 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 DeleteContactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns DeleteContactRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.essentialcontacts.v1.DeleteContactRequest; /** * Creates a plain object from a DeleteContactRequest message. Also converts values to other types if specified. * @param message DeleteContactRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.essentialcontacts.v1.DeleteContactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteContactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for DeleteContactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateContactRequest. */ interface ICreateContactRequest { /** CreateContactRequest parent */ parent?: (string|null); /** CreateContactRequest contact */ contact?: (google.cloud.essentialcontacts.v1.IContact|null); } /** Represents a CreateContactRequest. */ class CreateContactRequest implements ICreateContactRequest { /** * Constructs a new CreateContactRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.ICreateContactRequest); /** CreateContactRequest parent. */ public parent: string; /** CreateContactRequest contact. */ public contact?: (google.cloud.essentialcontacts.v1.IContact|null); /** * Creates a new CreateContactRequest instance using the specified properties. * @param [properties] Properties to set * @returns CreateContactRequest instance */ public static create(properties?: google.cloud.essentialcontacts.v1.ICreateContactRequest): google.cloud.essentialcontacts.v1.CreateContactRequest; /** * Encodes the specified CreateContactRequest message. Does not implicitly {@link google.cloud.essentialcontacts.v1.CreateContactRequest.verify|verify} messages. * @param message CreateContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.ICreateContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CreateContactRequest message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.CreateContactRequest.verify|verify} messages. * @param message CreateContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.ICreateContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateContactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CreateContactRequest * @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.cloud.essentialcontacts.v1.CreateContactRequest; /** * Decodes a CreateContactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CreateContactRequest * @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.cloud.essentialcontacts.v1.CreateContactRequest; /** * Verifies a CreateContactRequest 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 CreateContactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CreateContactRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.essentialcontacts.v1.CreateContactRequest; /** * Creates a plain object from a CreateContactRequest message. Also converts values to other types if specified. * @param message CreateContactRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.essentialcontacts.v1.CreateContactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateContactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CreateContactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateContactRequest. */ interface IUpdateContactRequest { /** UpdateContactRequest contact */ contact?: (google.cloud.essentialcontacts.v1.IContact|null); /** UpdateContactRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); } /** Represents an UpdateContactRequest. */ class UpdateContactRequest implements IUpdateContactRequest { /** * Constructs a new UpdateContactRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.essentialcontacts.v1.IUpdateContactRequest); /** UpdateContactRequest contact. */ public contact?: (google.cloud.essentialcontacts.v1.IContact|null); /** UpdateContactRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); /** * Creates a new UpdateContactRequest instance using the specified properties. * @param [properties] Properties to set * @returns UpdateContactRequest instance */ public static create(properties?: google.cloud.essentialcontacts.v1.IUpdateContactRequest): google.cloud.essentialcontacts.v1.UpdateContactRequest; /** * Encodes the specified UpdateContactRequest message. Does not implicitly {@link google.cloud.essentialcontacts.v1.UpdateContactRequest.verify|verify} messages. * @param message UpdateContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.essentialcontacts.v1.IUpdateContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified UpdateContactRequest message, length delimited. Does not implicitly {@link google.cloud.essentialcontacts.v1.UpdateContactRequest.verify|verify} messages. * @param message UpdateContactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.essentialcontacts.v1.IUpdateContactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateContactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns UpdateContactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError}