diff --git a/package.json b/package.json index ff29bdf..b43fabd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rapida-nodejs", - "version": "1.0.4-alpha", + "version": "1.0.5", "description": "Enable to interact with rapida platform", "main": "dist/index.cjs", "module": "dist/index.js", diff --git a/src/clients/activity.ts b/src/clients/activity.ts new file mode 100644 index 0000000..08bb801 --- /dev/null +++ b/src/clients/activity.ts @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for accessing audit logs via gRPC. It includes + * operations for retrieving lists of audit logs and fetching specific audit log entries. + */ + +import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { + GetAllAuditLogRequest, + GetAllAuditLogResponse, + GetAuditLogRequest, + GetAuditLogResponse, +} from "@/rapida/clients/protos/audit-logging-api_pb"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import grpc from "@grpc/grpc-js"; + +/** + * Retrieve a paginated list of audit logs with filtering criteria. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project for which to retrieve audit logs. + * @param page - The page number for pagination. + * @param pageSize - The number of logs per page. + * @param criteria - List of criteria to filter the audit logs. + * @param authHeader - Authentication headers for the request. + * @returns Promise - A promise that resolves with the audit log response. + */ +export function GetActivities( + connectionConfig: ConnectionConfig, + projectId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllAuditLogRequest(); + req.setProjectid(projectId); + + const paginate = new Paginate(); + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + connectionConfig.auditLoggingClient.getAllAuditLog( + req, + WithAuthContext(connectionConfig.auth), + ( + err: grpc.ServiceError | null, + response: GetAllAuditLogResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * Retrieve a specific audit log entry by its ID. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project associated with the audit log. + * @param auditId - The ID of the audit log entry to retrieve. + * @param authHeader - Authentication headers for the request. + * @returns Promise - A promise that resolves with the audit log response. + */ +export function GetActivity( + connectionConfig: ConnectionConfig, + projectId: string, + auditId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAuditLogRequest(); + req.setProjectid(projectId); + req.setId(auditId); + + connectionConfig.auditLoggingClient.getAuditLog( + req, + WithAuthContext(connectionConfig.auth), + (err: grpc.ServiceError | null, response: GetAuditLogResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} diff --git a/src/clients/assistant.ts b/src/clients/assistant.ts index d90c598..77001b6 100644 --- a/src/clients/assistant.ts +++ b/src/clients/assistant.ts @@ -21,47 +21,1192 @@ * * Author: Prashant * + * This module provides functions for managing assistants using gRPC. It includes + * operations for creating, updating, retrieving, and personalizing assistants, + * as well as handling assistant provider models and tags. */ -import { handleSingleResponse, WithAuthContext } from "@/rapida/clients"; + +import { + Criteria, + FieldSelector, + GetAllAssistantConversationResponse, + GetAllConversationMessageRequest, + GetAllConversationMessageResponse, + Metadata, + Ordering, + Paginate, + TextChatCompletePrompt, +} from "@/rapida/clients/protos/common_pb"; import { - Assistant, + GetAllAssistantRequest, + GetAllAssistantResponse, + CreateAssistantRequest, + GetAllAssistantProviderModelRequest, + UpdateAssistantVersionRequest, GetAssistantRequest, GetAssistantResponse, + CreateAssistantTagRequest, + CreateAssistantProviderModelRequest, + GetAllAssistantProviderModelResponse, + UpdateAssistantDetailRequest, + GetAllAssistantMessageRequest, + GetAllAssistantMessageResponse, + GetAssistantConversationResponse, + GetAssistantConversationRequest, + DeleteAssistantRequest, + GetAssistantProviderModelResponse, + GetAllMessageRequest, + GetAllMessageResponse, } from "@/rapida/clients/protos/assistant-api_pb"; + +import { + GetAssistantAnalysisResponse, + GetAssistantAnalysisRequest, + UpdateAssistantAnalysisRequest, + CreateAssistantAnalysisRequest, + GetAllAssistantAnalysisResponse, + GetAllAssistantAnalysisRequest, + DeleteAssistantAnalysisRequest, +} from "@/rapida/clients/protos/assistant-analysis_pb"; + +import { + GetAssistantToolResponse, + GetAssistantToolRequest, + UpdateAssistantToolRequest, + CreateAssistantToolRequest, + GetAllAssistantToolResponse, + GetAllAssistantToolRequest, + DeleteAssistantToolRequest, +} from "@/rapida/clients/protos/assistant-tool_pb"; + +import { + GetAssistantKnowledgeResponse, + GetAssistantKnowledgeRequest, + UpdateAssistantKnowledgeRequest, + CreateAssistantKnowledgeRequest, + GetAllAssistantKnowledgeResponse, + GetAllAssistantKnowledgeRequest, + DeleteAssistantKnowledgeRequest, +} from "@/rapida/clients/protos/assistant-knowledge_pb"; + +import { + DeleteAssistantWebhookRequest, + GetAssistantWebhookLogRequest, + GetAllAssistantWebhookLogRequest, + GetAssistantWebhookLogResponse, + GetAssistantWebhookResponse, + CreateAssistantWebhookRequest, + UpdateAssistantWebhookRequest, + GetAllAssistantWebhookLogResponse, + GetAssistantWebhookRequest, + GetAllAssistantWebhookRequest, + GetAllAssistantWebhookResponse, +} from "@/rapida/clients/protos/assistant-webhook_pb"; +import { ServiceError } from "@grpc/grpc-js"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { GetAllAssistantConversationRequest } from "@/rapida/clients/protos/common_pb"; +import { Struct } from "google-protobuf/google/protobuf/struct_pb"; import { ConnectionConfig } from "@/rapida/connections/connection-config"; -import grpc from "@grpc/grpc-js"; -import { AssistantDefinition } from "./protos/talk-api_pb"; -/** - * Retrieve details of a specific assistant. - * - * @param assistantId - The ID of the assistant to retrieve. - * @param assistantProviderModelId - Optional ID of the assistant provider model. - * @param cb - Callback function to handle the response. - * @param authHeader - Authentication headers for the request. - * @returns UnaryResponse - The gRPC response object. - */ +export function GetAllAssistant( + connectionConfig: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllAssistantRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + connectionConfig.assistantClient.getAllAssistant( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAllAssistantResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function UpdateAssistantVersion( + connectionConfig: ConnectionConfig, + assistantId: string, + assistantProviderModelId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new UpdateAssistantVersionRequest(); + req.setAssistantid(assistantId); + req.setAssistantprovidermodelid(assistantProviderModelId); + + connectionConfig.assistantClient.updateAssistantVersion( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function GetAllAssistantProviderModel( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllAssistantProviderModelRequest(); + req.setAssistantid(assistantId); + + const paginate = new Paginate(); + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + connectionConfig.assistantClient.getAllAssistantProviderModel( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantProviderModelResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + export function GetAssistant( - connectionCfg: ConnectionConfig, - assistant: AssistantDefinition -): Promise { + connectionConfig: ConnectionConfig, + assistantId: string, + assistantProviderModelId: string | null +): Promise { return new Promise((resolve, reject) => { const req = new GetAssistantRequest(); - req.setId(assistant.getAssistantid()); - req.setAssistantprovidermodelid(assistant.getVersion()); - return connectionCfg.assistantClient.getAssistant( + req.setId(assistantId); + if (assistantProviderModelId) { + req.setAssistantprovidermodelid(assistantProviderModelId); + } + connectionConfig.assistantClient.getAssistant( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function CreateAssistantProviderModel( + connectionConfig: ConnectionConfig, + assistantId: string, + template: TextChatCompletePrompt, + modelProviderId: string, + modelProviderName: string, + modelProviderOptions: Array, + description: string +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantProviderModelRequest(); + req.setAssistantid(assistantId); + req.setDescription(description); + req.setAssistantmodeloptionsList(modelProviderOptions); + req.setModelproviderid(modelProviderId); + req.setTemplate(template); + req.setModelprovidername(modelProviderName); + connectionConfig.assistantClient.createAssistantProviderModel( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantProviderModelResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function CreateAssistant( + connectionConfig: ConnectionConfig, + name: string, + description: string, + tagsList: Array, + assistantProviderModel: CreateAssistantProviderModelRequest, + tags: string[], + assistantKnowledgeConfig?: Array, + assistantToolConfig?: Array +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantRequest(); + req.setName(name); + req.setDescription(description); + req.setTagsList(tagsList); + req.setAssistantprovidermodel(assistantProviderModel); + if (assistantKnowledgeConfig) + req.setAssistantknowledgesList(assistantKnowledgeConfig); + if (assistantToolConfig) req.setAssistanttoolsList(assistantToolConfig); + + req.setTagsList(tags); + connectionConfig.assistantClient.createAssistant( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function CreateAssistantTag( + connectionConfig: ConnectionConfig, + assistantId: string, + tags: string[] +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantTagRequest(); + req.setTagsList(tags); + req.setAssistantid(assistantId); + + connectionConfig.assistantClient.createAssistantTag( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function UpdateAssistantDetail( + connectionConfig: ConnectionConfig, + assistantId: string, + name: string, + description: string +): Promise { + return new Promise((resolve, reject) => { + const req = new UpdateAssistantDetailRequest(); + req.setName(name); + req.setDescription(description); + req.setAssistantid(assistantId); + + connectionConfig.assistantClient.updateAssistantDetail( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function GetAssistantMessages( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[], + selectors: ("metadata" | "metric" | "stage" | "request" | "response")[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllAssistantMessageRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + + req.setAssistantid(assistantId); + + selectors.forEach((v) => { + const selectors = new FieldSelector(); + selectors.setField(v); + req.addSelectors(selectors); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + const order = new Ordering(); + order.setColumn("created_date"); + order.setOrder("desc"); + req.setOrder(order); + req.setPaginate(paginate); + connectionConfig.assistantClient.getAllAssistantMessage( req, - WithAuthContext(connectionCfg.auth), - (err: grpc.ServiceError, response: GetAssistantResponse) => { + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantMessageResponse | null + ) => { if (err) reject(err); - else { - try { - resolve(handleSingleResponse(response!)!); - } catch (error) { - reject(error); - } + else resolve(response!); + } + ); + }); +} + +export function GetMessages( + connectionConfig: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[], + selectors: ("metadata" | "metric" | "stage" | "request" | "response")[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllMessageRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + + selectors.forEach((v) => { + const selectors = new FieldSelector(); + selectors.setField(v); + req.addSelectors(selectors); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + const order = new Ordering(); + order.setColumn("created_date"); + order.setOrder("desc"); + req.setOrder(order); + req.setPaginate(paginate); + connectionConfig.assistantClient.getAllMessage( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAllMessageResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function GetAllAssistantSession( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllAssistantConversationRequest(); + req.setAssistantid(assistantId); + const paginate = new Paginate(); + criteria.forEach((x) => { + let ctr = new Criteria(); + ctr.setKey(x.key); + ctr.setValue(x.value); + ctr.setLogic(x.logic); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + connectionConfig.assistantClient.getAllAssistantConversation( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantConversationResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function GetAllAssistantConversationMessage( + connectionConfig: ConnectionConfig, + assistantId: string, + assistantConversationId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllConversationMessageRequest(); + req.setAssistantid(assistantId); + req.setAssistantconversationid(assistantConversationId); + const paginate = new Paginate(); + criteria.forEach((x) => { + let ctr = new Criteria(); + ctr.setKey(x.key); + ctr.setValue(x.value); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + connectionConfig.assistantClient.getAllConversationMessage( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllConversationMessageResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function GetAllAssistantWebhook( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllAssistantWebhookRequest(); + const paginate = new Paginate(); + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + req.setAssistantid(assistantId); + return connectionConfig.assistantClient.getAllAssistantWebhook( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantWebhookResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param method + * @param endpoint + * @param headers + * @param parameters + * @param events + * @param retryOnStatus + * @param maxRetries + * @param timeout + * @param priority + * @param cb + * @param authHeader + * @param description + * @returns + */ +export function CreateWebhook( + connectionConfig: ConnectionConfig, + assistantId: string, + method: string, + endpoint: string, + headers: { key: string; value: string }[], + parameters: { key: string; value: string }[], + events: string[], + retryOnStatus: string[], + maxRetries: number, + timeout: number, + priority: number, + description?: string +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantWebhookRequest(); + req.setAssistantid(assistantId); + req.setHttpurl(endpoint); + req.setHttpmethod(method); + req.setAssistanteventsList(events); + headers.forEach((k) => { + req.getHttpheadersMap().set(k.key, k.value); + }); + parameters.forEach((k) => { + req.getHttpbodyMap().set(k.key, k.value); + }); + req.setRetrystatuscodesList(retryOnStatus); + req.setMaxretrycount(maxRetries); + req.setTimeoutsecond(timeout); + req.setExecutionpriority(priority); + if (description) req.setDescription(description); + + connectionConfig.assistantClient.createAssistantWebhook( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantWebhookResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(response!); } } ); }); } + +/** + * + * @param assistantId + * @param webhookId + * @param method + * @param endpoint + * @param headers + * @param events + * @param retryOnStatus + * @param maxRetries + * @param timeout + * @param cb + * @param authHeader + * @param description + * @returns + */ +export function UpdateWebhook( + connectionConfig: ConnectionConfig, + assistantId: string, + webhookId: string, + method: string, + endpoint: string, + headers: { key: string; value: string }[], + parameters: { key: string; value: string }[], + events: string[], + retryOnStatus: string[], + maxRetries: number, + timeout: number, + priority: number, + description?: string +): Promise { + const req = new UpdateAssistantWebhookRequest(); + req.setId(webhookId); + req.setAssistantid(assistantId); + req.setHttpurl(endpoint); + req.setHttpmethod(method); + req.setAssistanteventsList(events); + headers.forEach((k) => req.getHttpheadersMap().set(k.key, k.value)); + parameters.forEach((k) => req.getHttpbodyMap().set(k.key, k.value)); + req.setRetrystatuscodesList(retryOnStatus); + req.setMaxretrycount(maxRetries); + req.setTimeoutsecond(timeout); + req.setExecutionpriority(priority); + if (description) req.setDescription(description); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.updateAssistantWebhook( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantWebhookResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetAssistantWebhook( + connectionConfig: ConnectionConfig, + assistantId: string, + webhookId: string +): Promise { + const req = new GetAssistantWebhookRequest(); + req.setAssistantid(assistantId); + req.setId(webhookId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAssistantWebhook( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantWebhookResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function DeleteAssistantWebhook( + connectionConfig: ConnectionConfig, + assistantId: string, + webhookId: string +): Promise { + const req = new DeleteAssistantWebhookRequest(); + req.setAssistantid(assistantId); + req.setId(webhookId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.deleteAssistantWebhook( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantWebhookResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetAssistantConversation( + connectionConfig: ConnectionConfig, + assistantId: string, + conversaiontId: string +): Promise { + const req = new GetAssistantConversationRequest(); + req.setAssistantid(assistantId); + req.setConversationid(conversaiontId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAssistantConversation( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantConversationResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function DeleteAssistant( + connectionConfig: ConnectionConfig, + assistantId: string +): Promise { + const req = new DeleteAssistantRequest(); + req.setId(assistantId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.deleteAssistant( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantResponse | null) => + err ? reject(err) : resolve(response!) + ); + }); +} + +export function GetAllAssistantAnalysis( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + const req = new GetAllAssistantAnalysisRequest(); + req.setAssistantid(assistantId); + const paginate = new Paginate(); + + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAllAssistantAnalysis( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantAnalysisResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function CreateAnalysis( + connectionConfig: ConnectionConfig, + assistantId: string, + name: string, + endpointid: string, + endpointversion: string, + executionpriority: number, + parameters: { key: string; value: string }[], + description?: string +): Promise { + const req = new CreateAssistantAnalysisRequest(); + req.setAssistantid(assistantId); + req.setEndpointid(endpointid); + req.setEndpointversion(endpointversion); + req.setName(name); + req.setExecutionpriority(executionpriority); + parameters.forEach((k) => req.getEndpointparametersMap().set(k.key, k.value)); + if (description) req.setDescription(description); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.createAssistantAnalysis( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantAnalysisResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function UpdateAnalysis( + connectionConfig: ConnectionConfig, + assistantId: string, + AnalysisId: string, + name: string, + endpointid: string, + endpointversion: string, + executionpriority: number, + parameters: { key: string; value: string }[], + description?: string +): Promise { + const req = new UpdateAssistantAnalysisRequest(); + req.setId(AnalysisId); + req.setAssistantid(assistantId); + req.setEndpointid(endpointid); + req.setEndpointversion(endpointversion); + req.setName(name); + req.setExecutionpriority(executionpriority); + parameters.forEach((k) => req.getEndpointparametersMap().set(k.key, k.value)); + if (description) req.setDescription(description); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.updateAssistantAnalysis( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantAnalysisResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetAssistantAnalysis( + connectionConfig: ConnectionConfig, + assistantId: string, + AnalysisId: string +): Promise { + const req = new GetAssistantAnalysisRequest(); + req.setAssistantid(assistantId); + req.setId(AnalysisId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAssistantAnalysis( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantAnalysisResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function DeleteAssistantAnalysis( + connectionConfig: ConnectionConfig, + assistantId: string, + AnalysisId: string +): Promise { + const req = new DeleteAssistantAnalysisRequest(); + req.setAssistantid(assistantId); + req.setId(AnalysisId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.deleteAssistantAnalysis( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantAnalysisResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetAllWebhookLog( + connectionConfig: ConnectionConfig, + projectId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + const req = new GetAllAssistantWebhookLogRequest(); + req.setProjectid(projectId); + const paginate = new Paginate(); + + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAllAssistantWebhookLog( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantWebhookLogResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetWebhookLog( + connectionConfig: ConnectionConfig, + projectId: string, + webhookLogId: string +): Promise { + const req = new GetAssistantWebhookLogRequest(); + req.setProjectid(projectId); + req.setId(webhookLogId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAssistantWebhookLog( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantWebhookLogResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetAllAssistantTool( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + const req = new GetAllAssistantToolRequest(); + req.setAssistantid(assistantId); + const paginate = new Paginate(); + + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAllAssistantTool( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantToolResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function CreateAssistantTool( + connectionConfig: ConnectionConfig, + assistantId: string, + name: string, + description: string, + fields: {}, + executionMethod: string, + executionOptions: Metadata[] +): Promise { + const req = new CreateAssistantToolRequest(); + req.setAssistantid(assistantId); + req.setName(name); + req.setDescription(description); + req.setFields(Struct.fromJavaScript(fields)); + req.setExecutionmethod(executionMethod); + executionOptions.forEach((x) => req.addExecutionoptions(x)); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.createAssistantTool( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantToolResponse | null) => + err ? reject(err) : resolve(response!) + ); + }); +} + +export function UpdateAssistantTool( + connectionConfig: ConnectionConfig, + assistantId: string, + assistantToolId: string, + name: string, + description: string, + fields: {}, + executionMethod: string, + executionOptions: Metadata[] +): Promise { + const req = new UpdateAssistantToolRequest(); + req.setId(assistantToolId); + req.setAssistantid(assistantId); + req.setName(name); + req.setDescription(description); + req.setFields(Struct.fromJavaScript(fields)); + req.setExecutionmethod(executionMethod); + executionOptions.forEach((x) => req.addExecutionoptions(x)); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.updateAssistantTool( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantToolResponse | null) => + err ? reject(err) : resolve(response!) + ); + }); +} + +export function GetAssistantTool( + connectionConfig: ConnectionConfig, + assistantId: string, + ToolId: string +): Promise { + const req = new GetAssistantToolRequest(); + req.setAssistantid(assistantId); + req.setId(ToolId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAssistantTool( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantToolResponse | null) => + err ? reject(err) : resolve(response!) + ); + }); +} + +export function DeleteAssistantTool( + connectionConfig: ConnectionConfig, + assistantId: string, + ToolId: string +): Promise { + const req = new DeleteAssistantToolRequest(); + req.setAssistantid(assistantId); + req.setId(ToolId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.deleteAssistantTool( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, response: GetAssistantToolResponse | null) => + err ? reject(err) : resolve(response!) + ); + }); +} + +export function GetAllAssistantKnowledge( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + const req = new GetAllAssistantKnowledgeRequest(); + req.setAssistantid(assistantId); + const paginate = new Paginate(); + + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAllAssistantKnowledge( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAllAssistantKnowledgeResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function CreateAssistantKnowledge( + connectionConfig: ConnectionConfig, + assistantId: string, + knowledgeId: string, + config: { + searchMethod: "semantic" | "fullText" | "hybrid" | "invertedIndex"; + rerankingEnable: boolean; + rerankerModelProvider?: string; + rerankerModelProviderId?: string; + rerankerModelOptions?: Metadata[]; + topK: number; + scoreThreshold: number; + } +): Promise { + const req = new CreateAssistantKnowledgeRequest(); + req.setKnowledgeid(knowledgeId); + req.setAssistantid(assistantId); + if (config.rerankingEnable) { + req.setRerankerenable(config.rerankingEnable); + req.setRerankermodelproviderid(config.rerankerModelProviderId!); + req.setRerankermodelprovidername(config.rerankerModelProvider!); + req.setAssistantknowledgererankeroptionsList(config.rerankerModelOptions!); + } + req.setTopk(config.topK); + req.setScorethreshold(config.scoreThreshold); + req.setRetrievalmethod(config.searchMethod); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.createAssistantKnowledge( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantKnowledgeResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function UpdateAssistantKnowledge( + connectionConfig: ConnectionConfig, + id: string, + assistantId: string, + knowledgeId: string, + config: { + searchMethod: "semantic" | "fullText" | "hybrid" | "invertedIndex"; + rerankingEnable: boolean; + rerankerModelProvider?: string; + rerankerModelProviderId?: string; + rerankerModelOptions?: Metadata[]; + topK: number; + scoreThreshold: number; + } +): Promise { + const req = new UpdateAssistantKnowledgeRequest(); + req.setKnowledgeid(knowledgeId); + req.setAssistantid(assistantId); + req.setId(id); + if (config.rerankingEnable) { + req.setRerankerenable(config.rerankingEnable); + req.setRerankermodelproviderid(config.rerankerModelProviderId!); + req.setRerankermodelprovidername(config.rerankerModelProvider!); + req.setAssistantknowledgererankeroptionsList(config.rerankerModelOptions!); + } + req.setTopk(config.topK); + req.setScorethreshold(config.scoreThreshold); + req.setRetrievalmethod(config.searchMethod); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.updateAssistantKnowledge( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantKnowledgeResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function GetAssistantKnowledge( + connectionConfig: ConnectionConfig, + assistantId: string, + ToolId: string +): Promise { + const req = new GetAssistantKnowledgeRequest(); + req.setAssistantid(assistantId); + req.setId(ToolId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.getAssistantKnowledge( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantKnowledgeResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} + +export function DeleteAssistantKnowledge( + connectionConfig: ConnectionConfig, + assistantId: string, + knowledgeId: string +): Promise { + const req = new DeleteAssistantKnowledgeRequest(); + req.setAssistantid(assistantId); + req.setId(knowledgeId); + + return new Promise((resolve, reject) => { + connectionConfig.assistantClient.deleteAssistantKnowledge( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: GetAssistantKnowledgeResponse | null + ) => (err ? reject(err) : resolve(response!)) + ); + }); +} diff --git a/src/clients/auth.ts b/src/clients/auth.ts new file mode 100644 index 0000000..8044fc5 --- /dev/null +++ b/src/clients/auth.ts @@ -0,0 +1,290 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for user authentication and management using gRPC. + * It includes operations such as user authentication, registration, password management, + * and social authentication with Google, LinkedIn, and GitHub. + */ + +import { + AuthenticateRequest, + AuthenticateResponse, + RegisterUserRequest, + ForgotPasswordRequest, + VerifyTokenRequest, + VerifyTokenResponse, + AuthorizeRequest, + GetUserResponse, + GetUserRequest, + UpdateUserResponse, + UpdateUserRequest, + ForgotPasswordResponse, + SocialAuthenticationRequest, + CreatePasswordRequest, + CreatePasswordResponse, + GetAllUserRequest, + GetAllUserResponse, +} from "@/rapida/clients/protos/web-api_pb"; +import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; +import { ServiceError } from "@grpc/grpc-js"; +import { ConnectionConfig } from "../connections/connection-config"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; + +export function AuthenticateUser( + config: ConnectionConfig, + email: string, + password: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new AuthenticateRequest(); + requestObject.setEmail(email); + requestObject.setPassword(password); + config.authenticationClient.authenticate( + requestObject, + (err: ServiceError | null, auth: AuthenticateResponse | null) => { + if (err) reject(err); + else resolve(auth!); + } + ); + }); +} + +export function AuthorizeUser( + config: ConnectionConfig, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + config.authenticationClient.authorize( + new AuthorizeRequest(), + WithAuthContext(authHeader), + (err: ServiceError | null, org: AuthenticateResponse | null) => { + if (err) reject(err); + else resolve(org!); + } + ); + }); +} + +export function RegisterUser( + config: ConnectionConfig, + email: string, + password: string, + name: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new RegisterUserRequest(); + requestObject.setEmail(email); + requestObject.setName(name); + requestObject.setPassword(password); + config.authenticationClient.registerUser( + requestObject, + (err: ServiceError | null, user: AuthenticateResponse | null) => { + if (err) reject(err); + else resolve(user!); + } + ); + }); +} + +export function VerifyToken( + config: ConnectionConfig, + token: string, + tokenType: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new VerifyTokenRequest(); + requestObject.setToken(token); + requestObject.setTokentype(tokenType); + config.authenticationClient.verifyToken( + requestObject, + (err: ServiceError | null, tokenResponse: VerifyTokenResponse | null) => { + if (err) reject(err); + else resolve(tokenResponse!); + } + ); + }); +} + +export function ForgotPassword( + config: ConnectionConfig, + email: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new ForgotPasswordRequest(); + requestObject.setEmail(email); + config.authenticationClient.forgotPassword( + requestObject, + (err: ServiceError | null, fpr: ForgotPasswordResponse | null) => { + if (err) reject(err); + else resolve(fpr!); + } + ); + }); +} + +export function CreatePassword( + config: ConnectionConfig, + token: string, + password: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new CreatePasswordRequest(); + requestObject.setToken(token); + requestObject.setPassword(password); + config.authenticationClient.createPassword( + requestObject, + (err: ServiceError | null, fpr: CreatePasswordResponse | null) => { + if (err) reject(err); + else resolve(fpr!); + } + ); + }); +} + +export function GetUser( + config: ConnectionConfig, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + config.authenticationClient.getUser( + new GetUserRequest(), + WithAuthContext(authHeader), + (err: ServiceError | null, gur: GetUserResponse | null) => { + if (err) reject(err); + else resolve(gur!); + } + ); + }); +} + +export function UpdateUser( + config: ConnectionConfig, + authHeader: ClientAuthInfo | UserAuthInfo, + name?: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new UpdateUserRequest(); + if (name) requestObject.setName(name); + config.authenticationClient.updateUser( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError | null, uur: UpdateUserResponse | null) => { + if (err) reject(err); + else resolve(uur!); + } + ); + }); +} + +export function GetAllUser( + config: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string }[], + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllUserRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + config.authenticationClient.getAllUser( + req, + WithAuthContext(authHeader), + (err: ServiceError | null, uur: GetAllUserResponse | null) => { + if (err) reject(err); + else resolve(uur!); + } + ); + }); +} + +export function Google( + config: ConnectionConfig, + state?: string, + code?: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new SocialAuthenticationRequest(); + if (state) requestObject.setState(state); + if (code) requestObject.setCode(code); + config.authenticationClient.google( + requestObject, + (err: ServiceError | null, uur: AuthenticateResponse | null) => { + if (err) reject(err); + else resolve(uur!); + } + ); + }); +} + +export function Linkedin( + config: ConnectionConfig, + state?: string, + code?: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new SocialAuthenticationRequest(); + if (state) requestObject.setState(state); + if (code) requestObject.setCode(code); + config.authenticationClient.linkedin( + requestObject, + (err: ServiceError | null, uur: AuthenticateResponse | null) => { + if (err) reject(err); + else resolve(uur!); + } + ); + }); +} + +export function Github( + config: ConnectionConfig, + state?: string, + code?: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new SocialAuthenticationRequest(); + if (state) requestObject.setState(state); + if (code) requestObject.setCode(code); + config.authenticationClient.github( + requestObject, + (err: ServiceError | null, uur: AuthenticateResponse | null) => { + if (err) reject(err); + else resolve(uur!); + } + ); + }); +} diff --git a/src/clients/call.ts b/src/clients/call.ts new file mode 100644 index 0000000..4f2f255 --- /dev/null +++ b/src/clients/call.ts @@ -0,0 +1,128 @@ +import { WithAuthContext } from "@/rapida/clients"; +import { + AssistantDefinition, + CreateBulkPhoneCallRequest, + CreateBulkPhoneCallResponse, + CreatePhoneCallRequest, + CreatePhoneCallResponse, +} from "@/rapida/clients/protos/talk-api_pb"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; +import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; + +/** + * + * @param clientCfg + * @param assistantId + * @param assistantVersion + * @param params + * @param args + * @param options + * @param metadata + * @returns + */ +export function CreatePhoneCall( + clientCfg: ConnectionConfig, + assistant: AssistantDefinition, + toNumber: string, + fromNumber?: string, + args?: Map, + options?: Map, + metadata?: Map +): Promise { + return new Promise((resolve, reject) => { + const request = new CreatePhoneCallRequest(); + request.setAssistant(assistant); + request.setTonumber(toNumber); + if (fromNumber) { + request.setFromnumber(fromNumber); + } + if (args) { + args.forEach((value, key) => { + request.getArgsMap().set(key, value); + }); + } + + if (options) { + options.forEach((value, key) => { + request.getOptionsMap().set(key, value); + }); + } + + if (metadata) { + metadata.forEach((value, key) => { + request.getMetadataMap().set(key, value); + }); + } + clientCfg.conversationClient.createPhoneCall( + request, + WithAuthContext(clientCfg.auth), + (err: ServiceError | null, response: CreatePhoneCallResponse) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param clientCfg + * @param assistantId + * @param assistantVersion + * @param params + * @param args + * @param options + * @param metadata + * @returns + */ +export function CreateBulkPhoneCall( + clientCfg: ConnectionConfig, + assistant: AssistantDefinition, + params: { + toNumber: string; + fromNumber?: string; + args?: Map; + options?: Map; + metadata?: Map; + }[] +): Promise { + return new Promise((resolve, reject) => { + const _request = new CreateBulkPhoneCallRequest(); + params.map((param) => { + const request = new CreatePhoneCallRequest(); + request.setAssistant(assistant); + request.setTonumber(param.toNumber); + if (param.fromNumber) { + request.setFromnumber(param.fromNumber); + } + if (param.args) { + param.args.forEach((value, key) => { + request.getArgsMap().set(key, value); + }); + } + + if (param.options) { + param.options.forEach((value, key) => { + request.getOptionsMap().set(key, value); + }); + } + + if (param.metadata) { + param.metadata.forEach((value, key) => { + request.getMetadataMap().set(key, value); + }); + } + _request.addPhonecalls(request); + }); + + clientCfg.conversationClient.createBulkPhoneCall( + _request, + WithAuthContext(clientCfg.auth), + (err: ServiceError, response: CreateBulkPhoneCallResponse) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} diff --git a/src/clients/connect.ts b/src/clients/connect.ts new file mode 100644 index 0000000..de21c03 --- /dev/null +++ b/src/clients/connect.ts @@ -0,0 +1,156 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for interacting with the Connect API. It includes + * methods for knowledge and action connections, as well as retrieving connector files. + */ + +import { Criteria } from "@/rapida/clients/protos/common_pb"; +import { + ActionConnectRequest, + ActionConnectResponse, + GeneralConnectRequest, + GeneralConnectResponse, + GetConnectorFilesRequest, + GetConnectorFilesResponse, + KnowledgeConnectRequest, + KnowledgeConnectResponse, +} from "@/rapida/clients/protos/connect-api_pb"; +import { WithAuthContext } from "@/rapida/clients"; +import { ServiceError } from "@grpc/grpc-js"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; + +/** + * Establish a general connection. + * + * @param connect - The connection identifier. + * @param code - The authorization code. + * @param state - The state parameter. + * @param scope - The requested scope. + * @param config.auth - Authentication headers for the request. + * @param cb - Callback function to handle the response. + * @returns UnaryResponse - The gRPC response object. + */ +export function GeneralConnect( + config: ConnectionConfig, + connect: string, + code: string, + state: string, + scope: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GeneralConnectRequest(); + req.setConnect(connect); + req.setCode(code); + req.setState(state); + req.setScope(scope); + config.connectClient.generalConnect( + req, + WithAuthContext(config.auth), + (err: ServiceError | null, response: GeneralConnectResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * Establish a knowledge connection. + */ +export function KnowledgeConnect( + config: ConnectionConfig, + connect: string, + code: string, + state: string, + scope: string +): Promise { + return new Promise((resolve, reject) => { + const req = new KnowledgeConnectRequest(); + req.setConnect(connect); + req.setCode(code); + req.setState(state); + req.setScope(scope); + config.connectClient.knowledgeConnect( + req, + WithAuthContext(config.auth), + (err: ServiceError | null, response: KnowledgeConnectResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * Establish an action connection. + */ +export function ActionConnect( + config: ConnectionConfig, + connect: string, + code: string, + state: string, + scope: string +): Promise { + return new Promise((resolve, reject) => { + const req = new ActionConnectRequest(); + req.setConnect(connect); + req.setCode(code); + req.setState(state); + req.setScope(scope); + config.connectClient.actionConnect( + req, + WithAuthContext(config.auth), + (err: ServiceError | null, response: ActionConnectResponse | null) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * Retrieve files associated with a connector based on specified criteria. + */ +export function GetConnectorFiles( + config: ConnectionConfig, + toolId: string, + criterias: Criteria[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetConnectorFilesRequest(); + req.setToolid(toolId); + req.setCriteriasList(criterias); + config.connectClient.getConnectorFiles( + req, + WithAuthContext(config.auth), + ( + err: ServiceError | null, + response: GetConnectorFilesResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} diff --git a/src/clients/deployment.ts b/src/clients/deployment.ts new file mode 100644 index 0000000..95a0ac0 --- /dev/null +++ b/src/clients/deployment.ts @@ -0,0 +1,708 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for managing assistants using gRPC. It includes + * operations for creating, updating, retrieving, and personalizing assistants, + * as well as handling assistant provider models and tags. + */ + +import { Content, Metadata } from "@/rapida/clients/protos/common_pb"; + +import { ServiceError } from "@grpc/grpc-js"; +import { WithAuthContext } from "@/rapida/clients"; +import { + AssistantDeploymentCapturer, + AssistantPhoneDeployment, +} from "@/rapida/clients/protos/assistant-deployment_pb"; +import { + AssistantDebuggerDeployment, + CreateAssistantApiDeploymentRequest, + AssistantApiDeploymentResponse, + CreateAssistantDebuggerDeploymentRequest, + CreateAssistantPhoneDeploymentRequest, + AssistantPhoneDeploymentResponse, + AssistantWebpluginDeploymentResponse, + CreateAssistantWhatsappDeploymentRequest, + GetAssistantDeploymentRequest, +} from "@/rapida/clients/protos/assistant-deployment_pb"; +import { + DeploymentAudioProvider, + AssistantWebpluginDeployment, +} from "@/rapida/clients/protos/assistant-deployment_pb"; +import { + AssistantWhatsappDeploymentResponse, + AssistantWhatsappDeployment, +} from "./protos/assistant-deployment_pb"; +import { + AssistantDebuggerDeploymentResponse, + CreateAssistantWebpluginDeploymentRequest, +} from "@/rapida/clients/protos/assistant-deployment_pb"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function CreateAssistantDebuggerDeployment( + connectionConfig: ConnectionConfig, + assistantId: string, + persona: { + name?: string; + role?: string; + tone?: string; + expertise?: string; + }, + experience: { + greeting: string; + messageOnError?: string; + messageOnEnd?: string; + }, + inputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + outputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + audioStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + textStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantDebuggerDeploymentRequest(); + const deployment = new AssistantDebuggerDeployment(); + + deployment.setAssistantid(assistantId); + deployment.setName(persona.name || ""); + deployment.setRole(persona.role || ""); + deployment.setTone(persona.tone || ""); + deployment.setExperties(persona.expertise || ""); + deployment.setGreeting(experience.greeting); + if (experience?.messageOnError) + deployment.setMistake(experience?.messageOnError); + if (experience?.messageOnEnd) + deployment.setEnding(experience?.messageOnEnd); + + if (inputAudio) { + const inputAudioProvider = new DeploymentAudioProvider(); + inputAudioProvider.setId(inputAudio.providerId); + inputAudioProvider.setAudioprovider(inputAudio.provider); + inputAudioProvider.setAudiooptionsList(inputAudio.parameters); + inputAudioProvider.setAudioproviderid(inputAudio.providerId); + deployment.setInputaudio(inputAudioProvider); + } + + if (outputAudio) { + const outputAudioProvider = new DeploymentAudioProvider(); + outputAudioProvider.setId(outputAudio.providerId); + outputAudioProvider.setAudioprovider(outputAudio.provider); + outputAudioProvider.setAudiooptionsList(outputAudio.parameters); + outputAudioProvider.setAudioproviderid(outputAudio.providerId); + deployment.setOutputaudio(outputAudioProvider); + } + + if (audioStorageConfig) { + const audioCapturer = new AssistantDeploymentCapturer(); + audioCapturer.setCapturerprovider(audioStorageConfig.provider); + audioCapturer.setCapturerproviderid(audioStorageConfig.providerId); + audioCapturer.setCaptureroptionsList(audioStorageConfig.parameters); + audioCapturer.setCapturertype("audio"); + deployment.addCapturers(audioCapturer); + } + + if (textStorageConfig) { + const textCapturer = new AssistantDeploymentCapturer(); + textCapturer.setCapturerprovider(textStorageConfig.provider); + textCapturer.setCapturerproviderid(textStorageConfig.providerId); + textCapturer.setCaptureroptionsList(textStorageConfig.parameters); + textCapturer.setCapturertype("text"); + deployment.addCapturers(textCapturer); + } + + req.setDeployment(deployment); + connectionConfig.assistantDeploymentClient.createAssistantDebuggerDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantDebuggerDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function GetAssistantDebuggerDeployment( + connectionConfig: ConnectionConfig, + assistantId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAssistantDeploymentRequest(); + req.setAssistantid(assistantId); + connectionConfig.assistantDeploymentClient.getAssistantDebuggerDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantDebuggerDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function CreateAssistantApiDeployment( + connectionConfig: ConnectionConfig, + assistantId: string, + persona: { + name?: string; + role?: string; + tone?: string; + expertise?: string; + }, + experience: { + greeting: string; + messageOnError?: string; + messageOnEnd?: string; + }, + inputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + outputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + audioStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + textStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null +): Promise { + const req = new CreateAssistantApiDeploymentRequest(); + const deployment = new AssistantDebuggerDeployment(); + deployment.setAssistantid(assistantId); + deployment.setName(persona.name || ""); + deployment.setRole(persona.role || ""); + deployment.setTone(persona.tone || ""); + deployment.setExperties(persona.expertise || ""); + deployment.setGreeting(experience.greeting); + if (experience?.messageOnError) + deployment.setMistake(experience?.messageOnError); + if (experience?.messageOnEnd) deployment.setEnding(experience?.messageOnEnd); + + if (inputAudio) { + const inputAudioProvider = new DeploymentAudioProvider(); + inputAudioProvider.setId(inputAudio.providerId); + inputAudioProvider.setAudioprovider(inputAudio.provider); + inputAudioProvider.setAudiooptionsList(inputAudio.parameters); + inputAudioProvider.setAudioproviderid(inputAudio.providerId); + deployment.setInputaudio(inputAudioProvider); + } + + if (outputAudio) { + const outputAudioProvider = new DeploymentAudioProvider(); + outputAudioProvider.setId(outputAudio.providerId); + outputAudioProvider.setAudioprovider(outputAudio.provider); + outputAudioProvider.setAudiooptionsList(outputAudio.parameters); + outputAudioProvider.setAudioproviderid(outputAudio.providerId); + deployment.setOutputaudio(outputAudioProvider); + } + + if (audioStorageConfig) { + const audioCapturer = new AssistantDeploymentCapturer(); + audioCapturer.setCapturerprovider(audioStorageConfig.provider); + audioCapturer.setCapturerproviderid(audioStorageConfig.providerId); + audioCapturer.setCaptureroptionsList(audioStorageConfig.parameters); + audioCapturer.setCapturertype("audio"); + deployment.addCapturers(audioCapturer); + } + + if (textStorageConfig) { + const textCapturer = new AssistantDeploymentCapturer(); + textCapturer.setCapturerprovider(textStorageConfig.provider); + textCapturer.setCapturerproviderid(textStorageConfig.providerId); + textCapturer.setCaptureroptionsList(textStorageConfig.parameters); + textCapturer.setCapturertype("text"); + deployment.addCapturers(textCapturer); + } + + req.setDeployment(deployment); + return new Promise((resolve, reject) => { + connectionConfig.assistantDeploymentClient.createAssistantApiDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantApiDeploymentResponse | null + ) => { + err ? reject(err) : resolve(response!); + } + ); + }); +} + +export function GetAssistantApiDeployment( + connectionConfig: ConnectionConfig, + assistantId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAssistantDeploymentRequest(); + req.setAssistantid(assistantId); + return connectionConfig.assistantDeploymentClient.getAssistantApiDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantApiDeploymentResponse | null + ) => { + err ? reject(err) : resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function CreateAssistantWebpluginDeployment( + connectionConfig: ConnectionConfig, + assistantId: string, + persona: { + name?: string; + role?: string; + avatarUrl?: string; + avatar?: { + file: Uint8Array; + type: string; + size: number; + name: string; + }; + tone?: string; + expertise?: string; + }, + experience: { + greeting: string; + suggestions: string[]; + messageOnError: string; + messageOnEnd: string; + }, + feature: { + qAListing: boolean; + productCatalog: boolean; + blogPost: boolean; + }, + inputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + outputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + audioStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + textStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantWebpluginDeploymentRequest(); + const webDeployment = new AssistantWebpluginDeployment(); + + webDeployment.setAssistantid(assistantId); + webDeployment.setName(persona.name || ""); + webDeployment.setRole(persona.role || ""); + webDeployment.setTone(persona.tone || ""); + webDeployment.setExperties(persona.expertise || ""); + webDeployment.setGreeting(experience.greeting); + webDeployment.setMistake(experience.messageOnError); + webDeployment.setEnding(experience.messageOnEnd); + webDeployment.setSuggestionList(experience.suggestions); + webDeployment.setHelpcenterenabled(feature.qAListing); + webDeployment.setProductcatalogenabled(feature.productCatalog); + webDeployment.setArticlecatalogenabled(feature.blogPost); + webDeployment.setUploadfileenabled(false); // Not provided in the input, set to false by default + + if (inputAudio) { + const inputAudioProvider = new DeploymentAudioProvider(); + inputAudioProvider.setId(inputAudio.providerId); + inputAudioProvider.setAudioprovider(inputAudio.provider); + inputAudioProvider.setAudiooptionsList(inputAudio.parameters); + inputAudioProvider.setAudioproviderid(inputAudio.providerId); + webDeployment.setInputaudio(inputAudioProvider); + } + + if (outputAudio) { + const outputAudioProvider = new DeploymentAudioProvider(); + outputAudioProvider.setId(outputAudio.providerId); + outputAudioProvider.setAudioprovider(outputAudio.provider); + outputAudioProvider.setAudiooptionsList(outputAudio.parameters); + outputAudioProvider.setAudioproviderid(outputAudio.providerId); + + webDeployment.setOutputaudio(outputAudioProvider); + } + + if (persona.avatar && persona.avatar.file) { + const cntn = new Content(); + cntn.setContent(persona.avatar.file); + cntn.setName(persona.avatar.name); + cntn.setContenttype(persona.avatar.type); + webDeployment.setRaw(cntn); + } else if (persona.avatarUrl) { + webDeployment.setUrl(persona.avatarUrl); + } + + if (audioStorageConfig) { + const audioCapturer = new AssistantDeploymentCapturer(); + audioCapturer.setCapturerprovider(audioStorageConfig.provider); + audioCapturer.setCapturerproviderid(audioStorageConfig.providerId); + audioCapturer.setCaptureroptionsList(audioStorageConfig.parameters); + audioCapturer.setCapturertype("audio"); + webDeployment.addCapturers(audioCapturer); + } + + if (textStorageConfig) { + const textCapturer = new AssistantDeploymentCapturer(); + textCapturer.setCapturerprovider(textStorageConfig.provider); + textCapturer.setCapturerproviderid(textStorageConfig.providerId); + textCapturer.setCaptureroptionsList(textStorageConfig.parameters); + textCapturer.setCapturertype("text"); + webDeployment.addCapturers(textCapturer); + } + + req.setDeployment(webDeployment); + connectionConfig.assistantDeploymentClient.createAssistantWebpluginDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantWebpluginDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +export function GetAssistantWebpluginDeployment( + connectionConfig: ConnectionConfig, + assistantId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAssistantDeploymentRequest(); + req.setAssistantid(assistantId); + return connectionConfig.assistantDeploymentClient.getAssistantWebpluginDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantWebpluginDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function CreateAssistantPhoneDeployment( + connectionConfig: ConnectionConfig, + assistantId: string, + persona: { + name?: string; + role?: string; + tone?: string; + expertise?: string; + }, + experience: { + greeting: string; + messageOnError: string; + messageOnEnd: string; + }, + telephonyConfig: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + inputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + outputAudio?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + audioStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null, + textStorageConfig?: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantPhoneDeploymentRequest(); + const deployment = new AssistantPhoneDeployment(); + deployment.setAssistantid(assistantId); + deployment.setName(persona.name || ""); + deployment.setRole(persona.role || ""); + deployment.setTone(persona.tone || ""); + deployment.setExperties(persona.expertise || ""); + deployment.setGreeting(experience.greeting); + deployment.setMistake(experience.messageOnError); + deployment.setEnding(experience.messageOnEnd); + + if (telephonyConfig) { + deployment.setPhoneoptionsList(telephonyConfig.parameters); + deployment.setPhoneproviderid(telephonyConfig.providerId); + deployment.setPhoneprovidername(telephonyConfig.provider); + } + + if (inputAudio) { + const inputAudioProvider = new DeploymentAudioProvider(); + inputAudioProvider.setId(inputAudio.providerId); + inputAudioProvider.setAudioprovider(inputAudio.provider); + inputAudioProvider.setAudiooptionsList(inputAudio.parameters); + inputAudioProvider.setAudioproviderid(inputAudio.providerId); + deployment.setInputaudio(inputAudioProvider); + } + + if (outputAudio) { + const outputAudioProvider = new DeploymentAudioProvider(); + outputAudioProvider.setId(outputAudio.providerId); + outputAudioProvider.setAudioprovider(outputAudio.provider); + outputAudioProvider.setAudiooptionsList(outputAudio.parameters); + outputAudioProvider.setAudioproviderid(outputAudio.providerId); + deployment.setOutputaudio(outputAudioProvider); + } + + if (audioStorageConfig) { + const audioCapturer = new AssistantDeploymentCapturer(); + audioCapturer.setCapturerprovider(audioStorageConfig.provider); + audioCapturer.setCapturerproviderid(audioStorageConfig.providerId); + audioCapturer.setCaptureroptionsList(audioStorageConfig.parameters); + audioCapturer.setCapturertype("audio"); + deployment.addCapturers(audioCapturer); + } + + if (textStorageConfig) { + const textCapturer = new AssistantDeploymentCapturer(); + textCapturer.setCapturerprovider(textStorageConfig.provider); + textCapturer.setCapturerproviderid(textStorageConfig.providerId); + textCapturer.setCaptureroptionsList(textStorageConfig.parameters); + textCapturer.setCapturertype("text"); + deployment.addCapturers(textCapturer); + } + + req.setDeployment(deployment); + connectionConfig.assistantDeploymentClient.createAssistantPhoneDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantPhoneDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function GetAssistantPhoneDeployment( + connectionConfig: ConnectionConfig, + assistantId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAssistantDeploymentRequest(); + req.setAssistantid(assistantId); + connectionConfig.assistantDeploymentClient.getAssistantPhoneDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantPhoneDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function CreateAssistantWhatsappDeployment( + connectionConfig: ConnectionConfig, + assistantId: string, + persona: { + name?: string; + role?: string; + tone?: string; + expertise?: string; + }, + experience: { + greeting: string; + messageOnError: string; + messageOnEnd: string; + }, + whatsappConfig: { + providerId: string; + provider: string; + parameters: Metadata[]; + } | null +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateAssistantWhatsappDeploymentRequest(); + const deployment = new AssistantWhatsappDeployment(); + + deployment.setAssistantid(assistantId); + deployment.setName(persona.name || ""); + deployment.setRole(persona.role || ""); + deployment.setTone(persona.tone || ""); + deployment.setExperties(persona.expertise || ""); + deployment.setGreeting(experience.greeting); + deployment.setMistake(experience.messageOnError); + deployment.setEnding(experience.messageOnEnd); + if (whatsappConfig) { + deployment.setWhatsappproviderid(whatsappConfig.providerId); + deployment.setWhatsappprovidername(whatsappConfig.provider); + deployment.setWhatsappoptionsList(whatsappConfig.parameters); + } + + req.setDeployment(deployment); + connectionConfig.assistantDeploymentClient.createAssistantWhatsappDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantWhatsappDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} + +/** + * + * @param assistantId + * @param cb + * @param authHeader + * @returns + */ +export function GetAssistantWhatsappDeployment( + connectionConfig: ConnectionConfig, + assistantId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAssistantDeploymentRequest(); + req.setAssistantid(assistantId); + connectionConfig.assistantDeploymentClient.getAssistantWhatsappDeployment( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + response: AssistantWhatsappDeploymentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} diff --git a/src/clients/document.ts b/src/clients/document.ts new file mode 100644 index 0000000..155aa84 --- /dev/null +++ b/src/clients/document.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for interacting with the Knowledge API. It + * includes methods for creating, retrieving, and updating knowledge documents, + * knowledge bases, and knowledge tags. + */ + +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { + IndexKnowledgeDocumentRequest, + IndexKnowledgeDocumentResponse, +} from "@/rapida/clients/protos/document-api_pb"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; + +/** + * Index a document for knowledge + * + * @param knowledgeId - The ID of the knowledge id + * @param knowledgeDocumentIds - A list of documents + * @param indexType - an index type + * @param authHeader - Authentication headers for the request. + * @param cb - Callback function to handle the response. + */ +export function IndexKnowledgeDocument( + client: ConnectionConfig, + knowledgeId: string, + knowledgeDocumentIds: string[], + indexType: string +): Promise { + return new Promise((resolve, reject) => { + const req = new IndexKnowledgeDocumentRequest(); + req.setKnowledgedocumentidList(knowledgeDocumentIds); + req.setKnowledgeid(knowledgeId); + req.setIndextype(indexType); + client.documentClient.indexKnowledgeDocument( + req, + WithAuthContext(client.auth), + ( + err: ServiceError | null, + response: IndexKnowledgeDocumentResponse | null + ) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} diff --git a/src/clients/endpoint.ts b/src/clients/endpoint.ts new file mode 100644 index 0000000..93a0cff --- /dev/null +++ b/src/clients/endpoint.ts @@ -0,0 +1,378 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for interacting with the Endpoint API. It includes + * methods for endpoint management, including creation, retrieval, and configuration. + */ + +import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; +import { + GetAllEndpointRequest, + GetAllEndpointResponse, + CreateEndpointRequest, + GetAllEndpointProviderModelRequest, + UpdateEndpointVersionRequest, + UpdateEndpointVersionResponse, + GetEndpointRequest, + GetEndpointResponse, + CreateEndpointTagRequest, + EndpointRetryConfiguration, + EndpointCacheConfiguration, + CreateEndpointCacheConfigurationRequest, + CreateEndpointCacheConfigurationResponse, + CreateEndpointResponse, + EndpointProviderModelAttribute, + EndpointAttribute, + CreateEndpointProviderModelRequest, + CreateEndpointRetryConfigurationResponse, + CreateEndpointProviderModelResponse, + GetAllEndpointProviderModelResponse, + CreateEndpointRetryConfigurationRequest, + UpdateEndpointDetailRequest, + GetAllEndpointLogRequest, + GetAllEndpointLogResponse, + GetEndpointLogResponse, + GetEndpointLogRequest, +} from "@/rapida/clients/protos/endpoint-api_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; + +/** + * Retrieve all endpoints based on pagination and filtering criteria. + * + * @param page - The page number for pagination. + * @param pageSize - The number of results per page. + * @param criteria - List of filtering criteria. + * @param config.auth - Authentication headers for the request. + * @param cb - Callback function to handle the response. + * @returns UnaryResponse - The gRPC response object. + */ +export function GetAllEndpoint( + config: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllEndpointRequest(); + const paginate = new Paginate(); + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + config.endpointClient.getAllEndpoint( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetAllEndpointResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function UpdateEndpointVersion( + config: ConnectionConfig, + endpointId: string, + endpointProviderModelId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new UpdateEndpointVersionRequest(); + req.setEndpointid(endpointId); + req.setEndpointprovidermodelid(endpointProviderModelId); + config.endpointClient.updateEndpointVersion( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: UpdateEndpointVersionResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function GetAllEndpointProviderModel( + config: ConnectionConfig, + endpointId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllEndpointProviderModelRequest(); + req.setEndpointid(endpointId); + const paginate = new Paginate(); + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + config.endpointClient.getAllEndpointProviderModel( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetAllEndpointProviderModelResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function GetEndpoint( + config: ConnectionConfig, + endpointId: string, + endpointProviderModelId: string | null +): Promise { + return new Promise((resolve, reject) => { + const req = new GetEndpointRequest(); + req.setId(endpointId); + if (endpointProviderModelId) { + req.setEndpointprovidermodelid(endpointProviderModelId); + } + config.endpointClient.getEndpoint( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetEndpointResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function CreateEndpointProviderModel( + config: ConnectionConfig, + endpointId: string, + endpointProviderModel: EndpointProviderModelAttribute +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateEndpointProviderModelRequest(); + req.setEndpointid(endpointId); + req.setEndpointprovidermodelattribute(endpointProviderModel); + config.endpointClient.createEndpointProviderModel( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: CreateEndpointProviderModelResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function CreateEndpoint( + config: ConnectionConfig, + endpointProviderModel: EndpointProviderModelAttribute, + endpointAttributes: EndpointAttribute, + tags: string[], + retryConfig?: EndpointRetryConfiguration, + cacheConfig?: EndpointCacheConfiguration +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateEndpointRequest(); + req.setEndpointattribute(endpointAttributes); + req.setEndpointprovidermodelattribute(endpointProviderModel); + if (cacheConfig) req.setCacheconfiguration(cacheConfig); + if (retryConfig) req.setRetryconfiguration(retryConfig); + req.setTagsList(tags); + config.endpointClient.createEndpoint( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: CreateEndpointResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function CreateEndpointTag( + config: ConnectionConfig, + endpointId: string, + tags: string[] +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateEndpointTagRequest(); + req.setTagsList(tags); + req.setEndpointid(endpointId); + config.endpointClient.createEndpointTag( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetEndpointResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function UpdateEndpointDetail( + config: ConnectionConfig, + endpointId: string, + name: string, + description: string +): Promise { + return new Promise((resolve, reject) => { + const req = new UpdateEndpointDetailRequest(); + req.setName(name); + req.setDescription(description); + req.setEndpointid(endpointId); + config.endpointClient.updateEndpointDetail( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetEndpointResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function CreateEndpointRetryConfiguration( + config: ConnectionConfig, + endpointId: string, + retryType: string, + maxAttempts: string, + delaySeconds: string, + exponentialBackoff: boolean, + retryables: string[] +): Promise { + return new Promise((resolve, reject) => { + const request = new CreateEndpointRetryConfigurationRequest(); + const data = new EndpointRetryConfiguration(); + data.setRetryablesList(retryables); + data.setExponentialbackoff(exponentialBackoff); + data.setDelayseconds(delaySeconds); + data.setMaxattempts(maxAttempts); + data.setRetrytype(retryType); + request.setEndpointid(endpointId); + request.setData(data); + config.endpointClient.createEndpointRetryConfiguration( + request, + WithAuthContext(config.auth), + ( + err: ServiceError, + response: CreateEndpointRetryConfigurationResponse + ) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function CreateEndpointCacheConfiguration( + config: ConnectionConfig, + endpointId: string, + cacheType: string, + expiryInterval: string, + matchThreshold: number +): Promise { + return new Promise((resolve, reject) => { + const request = new CreateEndpointCacheConfigurationRequest(); + const data = new EndpointCacheConfiguration(); + data.setMatchthreshold(matchThreshold); + data.setExpiryinterval(expiryInterval); + data.setCachetype(cacheType); + request.setEndpointid(endpointId); + request.setData(data); + config.endpointClient.createEndpointCacheConfiguration( + request, + WithAuthContext(config.auth), + ( + err: ServiceError, + response: CreateEndpointCacheConfigurationResponse + ) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function GetAllEndpointLog( + config: ConnectionConfig, + endpointId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllEndpointLogRequest(); + req.setEndpointid(endpointId); + const paginate = new Paginate(); + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + config.endpointClient.getAllEndpointLog( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetAllEndpointLogResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function GetEndpointLog( + config: ConnectionConfig, + endpointId: string, + logId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetEndpointLogRequest(); + req.setEndpointid(endpointId); + req.setId(logId); + config.endpointClient.getEndpointLog( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetEndpointLogResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} diff --git a/src/clients/invoke.ts b/src/clients/invoke.ts index 51caf07..680d4c6 100644 --- a/src/clients/invoke.ts +++ b/src/clients/invoke.ts @@ -25,9 +25,12 @@ * It includes methods for invoking requests with specified parameters. */ -import { WithAuthContext, handleSingleResponse } from "@/rapida/clients"; import { - CallerResponse, + ClientAuthInfo, + UserAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { EndpointDefinition, InvokeRequest, InvokeResponse, @@ -35,7 +38,7 @@ import { import p from "google-protobuf/google/protobuf/any_pb"; import { StringToAny } from "@/rapida/utils/rapida_value"; import { ConnectionConfig } from "@/rapida/connections/connection-config"; -import grpc from "@grpc/grpc-js"; +import grpc, { ServiceError } from "@grpc/grpc-js"; /** * Invoke an endpoint with specified parameters. @@ -48,22 +51,29 @@ import grpc from "@grpc/grpc-js"; * @returns Promise - A promise that resolves with the InvokeResponse. */ export function Invoke( - connectionCfg: ConnectionConfig, + config: ConnectionConfig, endpointId: string, - endpointProviderModelId: string, parameters: Map, + version?: string, metadata?: Map -): Promise { +): Promise { return new Promise((resolve, reject) => { const req = new InvokeRequest(); const endpoint = new EndpointDefinition(); endpoint.setEndpointid(endpointId); - endpoint.setVersion(`vrsn_${endpointProviderModelId}`); + if (version) { + endpoint.setVersion(version); + } else { + endpoint.setVersion("latest"); + } + req.setEndpoint(endpoint); + // Set the parameters for the request parameters.forEach((value, key) => { req.getArgsMap().set(key, value); }); + // Set the optional metadata for the request if (metadata) { metadata.forEach((value, key) => { @@ -71,18 +81,12 @@ export function Invoke( }); } - connectionCfg.endpointClient.invoke( + return config.deploymentClient.invoke( req, - WithAuthContext(connectionCfg.auth), - (err: grpc.ServiceError, response: InvokeResponse) => { + WithAuthContext(config.auth), + (err: ServiceError, response: InvokeResponse) => { if (err) reject(err); - else { - try { - resolve(handleSingleResponse(response!)!); - } catch (error) { - reject(error); - } - } + else resolve(response); } ); }); diff --git a/src/clients/knowledge.ts b/src/clients/knowledge.ts new file mode 100644 index 0000000..e980301 --- /dev/null +++ b/src/clients/knowledge.ts @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for interacting with the Knowledge API. It + * includes methods for creating, retrieving, and updating knowledge documents, + * knowledge bases, and knowledge tags. + */ + +import { + BaseResponse, + Content, + Criteria, + Paginate, +} from "@/rapida/clients/protos/common_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { + CreateKnowledgeDocumentRequest, + CreateKnowledgeDocumentResponse, + CreateKnowledgeRequest, + CreateKnowledgeResponse, + CreateKnowledgeTagRequest, + GetAllKnowledgeDocumentRequest, + GetAllKnowledgeDocumentResponse, + GetAllKnowledgeDocumentSegmentRequest, + GetAllKnowledgeDocumentSegmentResponse, + GetAllKnowledgeRequest, + GetAllKnowledgeResponse, + GetKnowledgeRequest, + GetKnowledgeResponse, + UpdateKnowledgeDetailRequest, + UpdateKnowledgeDocumentSegmentRequest, +} from "@/rapida/clients/protos/knowledge-api_pb"; +import { DeleteKnowledgeDocumentSegmentRequest } from "./protos/knowledge-api_pb"; +import { + RapidaDocumentPreProcessing, + RapidaDocumentSource, + RapidaDocumentType, +} from "@/rapida/utils/rapida_document"; +import { ProviderConfig } from "@/rapida/utils"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; + +/** + * Creates a new knowledge entry. + * + * @param config - The connection configuration. + * @param provider - The provider configuration. + * @param name - The name of the knowledge. + * @param description - A description of the knowledge. + * @param tags - A list of tags associated with the knowledge. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the created knowledge. + */ +export function CreateKnowledge( + config: ConnectionConfig, + provider: ProviderConfig, + name: string, + description: string, + tags: string[] +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateKnowledgeRequest(); + req.setEmbeddingmodelproviderid(provider.providerId); + req.setEmbeddingmodelprovidername(provider.provider); + req.setKnowledgeembeddingmodeloptionsList(provider.parameters); + req.setName(name); + req.setDescription(description); + req.setTagsList(tags); + config.knowledgeClient.createKnowledge( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: CreateKnowledgeResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves a knowledge base by ID. + * + * @param config - The connection configuration. + * @param knowledgeBaseId - The ID of the knowledge base to retrieve. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the knowledge base. + */ +export function GetKnowledgeBase( + config: ConnectionConfig, + knowledgeBaseId: string +): Promise { + return new Promise((resolve, reject) => { + const req = new GetKnowledgeRequest(); + req.setId(knowledgeBaseId); + config.knowledgeClient.getKnowledge( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetKnowledgeResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves all knowledge bases with pagination and filtering. + * + * @param config - The connection configuration. + * @param page - The page number to retrieve. + * @param pageSize - The number of items per page. + * @param criteria - A list of criteria for filtering results. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all knowledge bases. + */ +export function GetAllKnowledgeBases( + config: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllKnowledgeRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + config.knowledgeClient.getAllKnowledge( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetAllKnowledgeResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Creates a new knowledge document. + * + * @param config - The connection configuration. + * @param knowledgeId - The ID of the knowledge to associate the document with. + * @param documentSource - The source of the document. + * @param datasource - The data source for the document. + * @param documentType - The type of the document. + * @param preProcessor - The pre-processing method to use. + * @param contents - An array of content to include in the document. + * @param separator - The separator used in custom processing. + * @param maxchunksize - The maximum chunk size for document processing. + * @param chunkoverlap - The overlap between chunks. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the created document. + */ +export function CreateKnowledgeDocument( + config: ConnectionConfig, + knowledgeId: string, + documentSource: RapidaDocumentSource, + datasource: string, + documentType: RapidaDocumentType, + preProcessor: RapidaDocumentPreProcessing, + contents: Array, + separator: string, + maxchunksize: number, + chunkoverlap: number +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateKnowledgeDocumentRequest(); + + if (documentSource == RapidaDocumentSource.TOOL) { + req.setDocumentsource(1); + } + + if (documentSource == RapidaDocumentSource.MANUAL) { + req.setDocumentsource(0); + } + req.setDocumentstructure(documentType); + req.setKnowledgeid(knowledgeId); + req.setDatasource(datasource); + req.setPreprocess(CreateKnowledgeDocumentRequest.PRE_PROCESS.AUTOMATIC); + req.setContentsList(contents); + + if (preProcessor === RapidaDocumentPreProcessing.CUSTOM) { + req.setSeparator(separator); + req.setMaxchunksize(maxchunksize); + req.setChunkoverlap(chunkoverlap); + } + + config.knowledgeClient.createKnowledgeDocument( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: CreateKnowledgeDocumentResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves all documents associated with a knowledge base. + * + * @param config - The connection configuration. + * @param knowledgeId - The ID of the knowledge base. + * @param page - The page number to retrieve. + * @param pageSize - The number of items per page. + * @param criteria - A list of criteria for filtering results. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all documents. + */ +export function GetAllKnowledgeDocument( + config: ConnectionConfig, + knowledgeId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllKnowledgeDocumentRequest(); + req.setKnowledgeid(knowledgeId); + + const paginate = new Paginate(); + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + config.knowledgeClient.getAllKnowledgeDocument( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetAllKnowledgeDocumentResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves all segments of documents associated with a knowledge base. + * + * @param config - The connection configuration. + * @param knowledgeId - The ID of the knowledge base. + * @param page - The page number to retrieve. + * @param pageSize - The number of items per page. + * @param criteria - A list of criteria for filtering results. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all document segments. + */ +export function GetAllKnowledgeDocumentSegment( + config: ConnectionConfig, + knowledgeId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllKnowledgeDocumentSegmentRequest(); + req.setKnowledgeid(knowledgeId); + + const paginate = new Paginate(); + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + config.knowledgeClient.getAllKnowledgeDocumentSegment( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetAllKnowledgeDocumentSegmentResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Adds tags to a knowledge base. + * + * @param config - The connection configuration. + * @param knowledgeId - The ID of the knowledge base to tag. + * @param tags - A list of tags to add. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the updated knowledge base. + */ +export function CreateKnowledgeTag( + config: ConnectionConfig, + knowledgeId: string, + tags: string[] +): Promise { + return new Promise((resolve, reject) => { + const req = new CreateKnowledgeTagRequest(); + req.setTagsList(tags); + req.setKnowledgeid(knowledgeId); + + config.knowledgeClient.createKnowledgeTag( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetKnowledgeResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Updates details of an existing knowledge base. + * + * @param config - The connection configuration. + * @param knowledgeId - The ID of the knowledge base to update. + * @param name - The new name of the knowledge base. + * @param description - The new description of the knowledge base. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the updated knowledge base. + */ +export function UpdateKnowledgeDetail( + config: ConnectionConfig, + knowledgeId: string, + name: string, + description: string +): Promise { + return new Promise((resolve, reject) => { + const req = new UpdateKnowledgeDetailRequest(); + req.setKnowledgeid(knowledgeId); + req.setName(name); + req.setDescription(description); + + config.knowledgeClient.updateKnowledgeDetail( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: GetKnowledgeResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Deletes a specific segment from a knowledge document. + * + * @param config - The connection configuration. + * @param documentId - The ID of the document. + * @param index - The index of the segment to delete. + * @param reason - The reason for deletion. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The base response indicating success or failure. + */ +export function DeleteKnowledgeDocumentSegment( + config: ConnectionConfig, + documentId: string, + index: string, + reason: string +): Promise { + return new Promise((resolve, reject) => { + const req = new DeleteKnowledgeDocumentSegmentRequest(); + req.setDocumentid(documentId); + req.setReason(reason); + req.setIndex(index); + config.knowledgeClient.deleteKnowledgeDocumentSegment( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: BaseResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Updates metadata for a specific segment of a knowledge document. + * + * @param config - The connection configuration. + * @param documentId - The ID of the document. + * @param index - The index of the segment to update. + * @param organizationsList - List of organizations associated with the segment. + * @param datesList - List of dates associated with the segment. + * @param productsList - List of products associated with the segment. + * @param eventsList - List of events associated with the segment. + * @param peopleList - List of people associated with the segment. + * @param timesList - List of times associated with the segment. + * @param quantitiesList - List of quantities associated with the segment. + * @param locationsList - List of locations associated with the segment. + * @param industriesList - List of industries associated with the segment. + * @param documentName - The name of the document. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The base response indicating success or failure. + */ +export function UpdateKnowledgeDocumentSegment( + config: ConnectionConfig, + documentId: string, + index: string, + organizationsList: string[], + datesList: string[], + productsList: string[], + eventsList: string[], + peopleList: string[], + timesList: string[], + quantitiesList: string[], + locationsList: string[], + industriesList: string[], + documentName: string +): Promise { + return new Promise((resolve, reject) => { + const req = new UpdateKnowledgeDocumentSegmentRequest(); + req.setOrganizationsList(organizationsList); + req.setDatesList(datesList); + req.setProductsList(productsList); + req.setEventsList(eventsList); + req.setPeopleList(peopleList); + req.setTimesList(timesList); + req.setQuantitiesList(quantitiesList); + req.setLocationsList(locationsList); + req.setIndustriesList(industriesList); + req.setDocumentname(documentName); + req.setDocumentid(documentId); + req.setIndex(index); + config.knowledgeClient.updateKnowledgeDocumentSegment( + req, + WithAuthContext(config.auth), + (err: ServiceError, response: BaseResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} diff --git a/src/clients/marketplace.ts b/src/clients/marketplace.ts new file mode 100644 index 0000000..03191ed --- /dev/null +++ b/src/clients/marketplace.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for interacting with the Endpoint API. It includes + * methods for endpoint management, including creation, retrieval, and configuration. + */ + +import { Criteria, Paginate } from "./protos/common_pb"; +import { + GetAllDeploymentRequest, + GetAllDeploymentResponse, +} from "./protos/marketplace-api_pb"; +import { UserAuthInfo, ClientAuthInfo, WithAuthContext } from "."; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; +/** + * Retrieves all deployments with pagination and filtering. + * + * @param client - The connection configuration. + * @param page - The page number to retrieve. + * @param pageSize - The number of items per page. + * @param criteria - A list of criteria for filtering results. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all deployments. + */ +export function GetAllDeployment( + client: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string; logic: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllDeploymentRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value, logic }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + ctr.setLogic(logic); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + client.marketplaceClient.getAllDeployment( + req, + WithAuthContext(client.auth), + (err: ServiceError, response: GetAllDeploymentResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} diff --git a/src/clients/organization.ts b/src/clients/organization.ts new file mode 100644 index 0000000..7a7fb89 --- /dev/null +++ b/src/clients/organization.ts @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides a function for creating a lead via the LeadService. + */ +import { + CreateOrganizationRequest, + UpdateOrganizationRequest, + GetOrganizationRequest, + GetOrganizationResponse, + CreateOrganizationResponse, + UpdateOrganizationResponse, +} from "./protos/web-api_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; +/** + * Create a new organization. + * + * @param connectionConfig - The connection configuration. + * @param name - The name of the organization. + * @param size - The size of the organization. + * @param industry - The industry the organization operates in. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the created organization. + */ +export function CreateOrganization( + connectionConfig: ConnectionConfig, + name: string, + size: string, + industry: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new CreateOrganizationRequest(); + requestObject.setOrganizationname(name); + requestObject.setOrganizationsize(size); + requestObject.setOrganizationindustry(industry); + + connectionConfig.organizationClient.createOrganization( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: CreateOrganizationResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Update an existing organization. + * + * @param connectionConfig - The connection configuration. + * @param organizationId - The ID of the organization to update. + * @param authHeader - Authentication headers for the request. + * @param organizationName - Optional new name for the organization. + * @param organizationIndustry - Optional new industry for the organization. + * @param organizationContact - Optional new contact for the organization. + * @returns Promise - The response containing the updated organization. + */ +export function UpdateOrganization( + connectionConfig: ConnectionConfig, + organizationId: string, + authHeader: ClientAuthInfo | UserAuthInfo, + organizationName?: string, + organizationIndustry?: string, + organizationContact?: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new UpdateOrganizationRequest(); + requestObject.setOrganizationid(organizationId); + + if (organizationName) { + requestObject.setOrganizationname(organizationName); + } + if (organizationIndustry) { + requestObject.setOrganizationindustry(organizationIndustry); + } + if (organizationContact) { + requestObject.setOrganizationcontact(organizationContact); + } + + connectionConfig.organizationClient.updateOrganization( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: UpdateOrganizationResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieve details of an organization. + * + * @param connectionConfig - The connection configuration. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the organization details. + */ +export function GetOrganization( + connectionConfig: ConnectionConfig, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new GetOrganizationRequest(); + + connectionConfig.organizationClient.getOrganization( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: GetOrganizationResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} diff --git a/src/clients/project.ts b/src/clients/project.ts new file mode 100644 index 0000000..e212132 --- /dev/null +++ b/src/clients/project.ts @@ -0,0 +1,310 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides functions for managing projects through the ProjectService. + */ + +import { + AddUsersToProjectRequest, + CreateProjectRequest, + CreateProjectResponse, + GetAllProjectResponse, + UpdateProjectRequest, + UpdateProjectResponse, + GetProjectResponse, + GetProjectRequest, + ArchiveProjectResponse, + ArchiveProjectRequest, + AddUsersToProjectResponse, + GetAllProjectCredentialResponse, + GetAllProjectCredentialRequest, + CreateProjectCredentialRequest, + CreateProjectCredentialResponse, + GetAllProjectRequest, +} from "@/rapida/clients/protos/web-api_pb"; +import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; +/** + * Adds users to a project with specified roles. + * + * @param connectionConfig - The connection configuration. + * @param email - The email address of the user to add. + * @param role - The role to assign to the user. + * @param projectIds - List of project IDs to which the user will be added. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the result of adding users. + */ +export function AddUsersToProject( + connectionConfig: ConnectionConfig, + email: string, + role: string, + projectIds: string[], + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new AddUsersToProjectRequest(); + requestObject.setEmail(email); + requestObject.setRole(role); + requestObject.setProjectidsList(projectIds); + + connectionConfig.projectClient.addUsersToProject( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: AddUsersToProjectResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Creates a new project with the specified details. + * + * @param connectionConfig - The connection configuration. + * @param projectName - The name of the project to create. + * @param projectDescription - The description of the project. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the created project. + */ +export function CreateProject( + connectionConfig: ConnectionConfig, + projectName: string, + projectDescription: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new CreateProjectRequest(); + requestObject.setProjectname(projectName); + requestObject.setProjectdescription(projectDescription); + + connectionConfig.projectClient.createProject( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: CreateProjectResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Updates an existing project with the given details. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project to update. + * @param authHeader - Authentication headers for the request. + * @param projectName - The new name for the project (optional). + * @param projectDescription - The new description for the project (optional). + * @returns Promise - The response containing the updated project. + */ +export function UpdateProject( + connectionConfig: ConnectionConfig, + projectId: string, + authHeader: ClientAuthInfo | UserAuthInfo, + projectName?: string, + projectDescription?: string +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new UpdateProjectRequest(); + requestObject.setProjectid(projectId); + + if (projectName) requestObject.setProjectname(projectName); + if (projectDescription) + requestObject.setProjectdescription(projectDescription); + + connectionConfig.projectClient.updateProject( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: UpdateProjectResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves a paginated list of all projects based on specified criteria. + * + * @param connectionConfig - The connection configuration. + * @param page - The page number for pagination. + * @param pageSize - The number of projects per page. + * @param criteria - List of criteria to filter the projects. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all projects. + */ +export function GetAllProject( + connectionConfig: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string }[], + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllProjectRequest(); + const paginate = new Paginate(); + + criteria.forEach(({ key, value }) => { + const ctr = new Criteria(); + ctr.setKey(key); + ctr.setValue(value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + connectionConfig.projectClient.getAllProject( + req, + WithAuthContext(authHeader), + (err: ServiceError, response: GetAllProjectResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves the details of a specific project by ID. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project to retrieve. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the project details. + */ +export function GetProject( + connectionConfig: ConnectionConfig, + projectId: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new GetProjectRequest(); + requestObject.setProjectid(projectId); + + connectionConfig.projectClient.getProject( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: GetProjectResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Archives a project, effectively deleting it. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project to archive. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the result of archiving. + */ +export function DeleteProject( + connectionConfig: ConnectionConfig, + projectId: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new ArchiveProjectRequest(); + requestObject.setId(projectId); + + connectionConfig.projectClient.archiveProject( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: ArchiveProjectResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieves all credentials associated with a specific project. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project for which to retrieve credentials. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all project credentials. + */ +export function GetAllProjectCredential( + connectionConfig: ConnectionConfig, + projectId: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new GetAllProjectCredentialRequest(); + requestObject.setProjectid(projectId); + + connectionConfig.projectClient.getAllProjectCredential( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: GetAllProjectCredentialResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Creates a new credential for a specific project. + * + * @param connectionConfig - The connection configuration. + * @param projectId - The ID of the project for which to create a credential. + * @param name - The name of the new credential. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing the created credential. + */ +export function CreateProjectCredential( + connectionConfig: ConnectionConfig, + projectId: string, + name: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new CreateProjectCredentialRequest(); + requestObject.setProjectid(projectId); + requestObject.setName(name); + + connectionConfig.projectClient.createProjectCredential( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError, response: CreateProjectCredentialResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} diff --git a/src/clients/protos/artifacts b/src/clients/protos/artifacts index ea1c82c..c908da6 160000 --- a/src/clients/protos/artifacts +++ b/src/clients/protos/artifacts @@ -1 +1 @@ -Subproject commit ea1c82c4b68c4d59d8aff6b506abbcfcb72d9ff0 +Subproject commit c908da6e05edfe72d58d63006a2b07cf67719f06 diff --git a/src/clients/protos/assistant-analysis_grpc_pb.d.ts b/src/clients/protos/assistant-analysis_grpc_pb.d.ts new file mode 100644 index 0000000..51b4d69 --- /dev/null +++ b/src/clients/protos/assistant-analysis_grpc_pb.d.ts @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/src/clients/protos/assistant-analysis_grpc_pb.js b/src/clients/protos/assistant-analysis_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/src/clients/protos/assistant-analysis_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/clients/protos/assistant-analysis_pb.d.ts b/src/clients/protos/assistant-analysis_pb.d.ts new file mode 100644 index 0000000..b2e9ece --- /dev/null +++ b/src/clients/protos/assistant-analysis_pb.d.ts @@ -0,0 +1,338 @@ +// package: assistant_api +// file: assistant-analysis.proto + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as common_pb from "./common_pb"; + +export class AssistantAnalysis extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + getEndpointid(): string; + setEndpointid(value: string): void; + + getEndpointversion(): string; + setEndpointversion(value: string): void; + + getEndpointparametersMap(): jspb.Map; + clearEndpointparametersMap(): void; + getAssistantid(): string; + setAssistantid(value: string): void; + + getStatus(): string; + setStatus(value: string): void; + + getCreatedby(): string; + setCreatedby(value: string): void; + + hasCreateduser(): boolean; + clearCreateduser(): void; + getCreateduser(): common_pb.User | undefined; + setCreateduser(value?: common_pb.User): void; + + getUpdatedby(): string; + setUpdatedby(value: string): void; + + hasUpdateduser(): boolean; + clearUpdateduser(): void; + getUpdateduser(): common_pb.User | undefined; + setUpdateduser(value?: common_pb.User): void; + + hasCreateddate(): boolean; + clearCreateddate(): void; + getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasUpdateddate(): boolean; + clearUpdateddate(): void; + getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + getExecutionpriority(): number; + setExecutionpriority(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantAnalysis.AsObject; + static toObject(includeInstance: boolean, msg: AssistantAnalysis): AssistantAnalysis.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantAnalysis, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantAnalysis; + static deserializeBinaryFromReader(message: AssistantAnalysis, reader: jspb.BinaryReader): AssistantAnalysis; +} + +export namespace AssistantAnalysis { + export type AsObject = { + id: string, + name: string, + description: string, + endpointid: string, + endpointversion: string, + endpointparametersMap: Array<[string, string]>, + assistantid: string, + status: string, + createdby: string, + createduser?: common_pb.User.AsObject, + updatedby: string, + updateduser?: common_pb.User.AsObject, + createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + executionpriority: number, + } +} + +export class CreateAssistantAnalysisRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + getEndpointid(): string; + setEndpointid(value: string): void; + + getEndpointversion(): string; + setEndpointversion(value: string): void; + + getEndpointparametersMap(): jspb.Map; + clearEndpointparametersMap(): void; + getAssistantid(): string; + setAssistantid(value: string): void; + + getExecutionpriority(): number; + setExecutionpriority(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateAssistantAnalysisRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateAssistantAnalysisRequest): CreateAssistantAnalysisRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateAssistantAnalysisRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateAssistantAnalysisRequest; + static deserializeBinaryFromReader(message: CreateAssistantAnalysisRequest, reader: jspb.BinaryReader): CreateAssistantAnalysisRequest; +} + +export namespace CreateAssistantAnalysisRequest { + export type AsObject = { + name: string, + description: string, + endpointid: string, + endpointversion: string, + endpointparametersMap: Array<[string, string]>, + assistantid: string, + executionpriority: number, + } +} + +export class UpdateAssistantAnalysisRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + getEndpointid(): string; + setEndpointid(value: string): void; + + getEndpointversion(): string; + setEndpointversion(value: string): void; + + getEndpointparametersMap(): jspb.Map; + clearEndpointparametersMap(): void; + getAssistantid(): string; + setAssistantid(value: string): void; + + getExecutionpriority(): number; + setExecutionpriority(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateAssistantAnalysisRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateAssistantAnalysisRequest): UpdateAssistantAnalysisRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateAssistantAnalysisRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateAssistantAnalysisRequest; + static deserializeBinaryFromReader(message: UpdateAssistantAnalysisRequest, reader: jspb.BinaryReader): UpdateAssistantAnalysisRequest; +} + +export namespace UpdateAssistantAnalysisRequest { + export type AsObject = { + id: string, + name: string, + description: string, + endpointid: string, + endpointversion: string, + endpointparametersMap: Array<[string, string]>, + assistantid: string, + executionpriority: number, + } +} + +export class GetAssistantAnalysisRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantAnalysisRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantAnalysisRequest): GetAssistantAnalysisRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantAnalysisRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantAnalysisRequest; + static deserializeBinaryFromReader(message: GetAssistantAnalysisRequest, reader: jspb.BinaryReader): GetAssistantAnalysisRequest; +} + +export namespace GetAssistantAnalysisRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class DeleteAssistantAnalysisRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAssistantAnalysisRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAssistantAnalysisRequest): DeleteAssistantAnalysisRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAssistantAnalysisRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAssistantAnalysisRequest; + static deserializeBinaryFromReader(message: DeleteAssistantAnalysisRequest, reader: jspb.BinaryReader): DeleteAssistantAnalysisRequest; +} + +export namespace DeleteAssistantAnalysisRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class GetAssistantAnalysisResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): AssistantAnalysis | undefined; + setData(value?: AssistantAnalysis): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantAnalysisResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantAnalysisResponse): GetAssistantAnalysisResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantAnalysisResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantAnalysisResponse; + static deserializeBinaryFromReader(message: GetAssistantAnalysisResponse, reader: jspb.BinaryReader): GetAssistantAnalysisResponse; +} + +export namespace GetAssistantAnalysisResponse { + export type AsObject = { + code: number, + success: boolean, + data?: AssistantAnalysis.AsObject, + error?: common_pb.Error.AsObject, + } +} + +export class GetAllAssistantAnalysisRequest extends jspb.Message { + getAssistantid(): string; + setAssistantid(value: string): void; + + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantAnalysisRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantAnalysisRequest): GetAllAssistantAnalysisRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantAnalysisRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantAnalysisRequest; + static deserializeBinaryFromReader(message: GetAllAssistantAnalysisRequest, reader: jspb.BinaryReader): GetAllAssistantAnalysisRequest; +} + +export namespace GetAllAssistantAnalysisRequest { + export type AsObject = { + assistantid: string, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + } +} + +export class GetAllAssistantAnalysisResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: AssistantAnalysis, index?: number): AssistantAnalysis; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantAnalysisResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantAnalysisResponse): GetAllAssistantAnalysisResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantAnalysisResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantAnalysisResponse; + static deserializeBinaryFromReader(message: GetAllAssistantAnalysisResponse, reader: jspb.BinaryReader): GetAllAssistantAnalysisResponse; +} + +export namespace GetAllAssistantAnalysisResponse { + export type AsObject = { + code: number, + success: boolean, + dataList: Array, + error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + diff --git a/src/clients/protos/assistant-analysis_pb.js b/src/clients/protos/assistant-analysis_pb.js new file mode 100644 index 0000000..5b789c3 --- /dev/null +++ b/src/clients/protos/assistant-analysis_pb.js @@ -0,0 +1,2642 @@ +// source: assistant-analysis.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @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! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +goog.exportSymbol('proto.assistant_api.AssistantAnalysis', null, global); +goog.exportSymbol('proto.assistant_api.CreateAssistantAnalysisRequest', null, global); +goog.exportSymbol('proto.assistant_api.DeleteAssistantAnalysisRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantAnalysisRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantAnalysisResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantAnalysisRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantAnalysisResponse', null, global); +goog.exportSymbol('proto.assistant_api.UpdateAssistantAnalysisRequest', 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.assistant_api.AssistantAnalysis = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.AssistantAnalysis, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.AssistantAnalysis.displayName = 'proto.assistant_api.AssistantAnalysis'; +} +/** + * 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.assistant_api.CreateAssistantAnalysisRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.CreateAssistantAnalysisRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.CreateAssistantAnalysisRequest.displayName = 'proto.assistant_api.CreateAssistantAnalysisRequest'; +} +/** + * 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.assistant_api.UpdateAssistantAnalysisRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.UpdateAssistantAnalysisRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.UpdateAssistantAnalysisRequest.displayName = 'proto.assistant_api.UpdateAssistantAnalysisRequest'; +} +/** + * 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.assistant_api.GetAssistantAnalysisRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantAnalysisRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantAnalysisRequest.displayName = 'proto.assistant_api.GetAssistantAnalysisRequest'; +} +/** + * 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.assistant_api.DeleteAssistantAnalysisRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.DeleteAssistantAnalysisRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.DeleteAssistantAnalysisRequest.displayName = 'proto.assistant_api.DeleteAssistantAnalysisRequest'; +} +/** + * 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.assistant_api.GetAssistantAnalysisResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantAnalysisResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantAnalysisResponse.displayName = 'proto.assistant_api.GetAssistantAnalysisResponse'; +} +/** + * 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.assistant_api.GetAllAssistantAnalysisRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantAnalysisRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantAnalysisRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantAnalysisRequest.displayName = 'proto.assistant_api.GetAllAssistantAnalysisRequest'; +} +/** + * 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.assistant_api.GetAllAssistantAnalysisResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantAnalysisResponse.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantAnalysisResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantAnalysisResponse.displayName = 'proto.assistant_api.GetAllAssistantAnalysisResponse'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.AssistantAnalysis.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.AssistantAnalysis.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.AssistantAnalysis} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantAnalysis.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + endpointid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + endpointversion: jspb.Message.getFieldWithDefault(msg, 5, ""), + endpointparametersMap: (f = msg.getEndpointparametersMap()) ? f.toObject(includeInstance, undefined) : [], + assistantid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + status: jspb.Message.getFieldWithDefault(msg, 12, ""), + createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), + updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + executionpriority: jspb.Message.getFieldWithDefault(msg, 20, 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.assistant_api.AssistantAnalysis} + */ +proto.assistant_api.AssistantAnalysis.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.AssistantAnalysis; + return proto.assistant_api.AssistantAnalysis.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.AssistantAnalysis} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.AssistantAnalysis} + */ +proto.assistant_api.AssistantAnalysis.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setEndpointversion(value); + break; + case 7: + var value = msg.getEndpointparametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 13: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); + break; + case 14: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); + break; + case 15: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); + break; + case 16: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); + break; + case 17: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 18: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint32()); + msg.setExecutionpriority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.AssistantAnalysis.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.AssistantAnalysis.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.AssistantAnalysis} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantAnalysis.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getEndpointversion(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getEndpointparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 13, + f + ); + } + f = message.getCreateduser(); + if (f != null) { + writer.writeMessage( + 14, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 15, + f + ); + } + f = message.getUpdateduser(); + if (f != null) { + writer.writeMessage( + 16, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 18, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getExecutionpriority(); + if (f !== 0) { + writer.writeUint32( + 20, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint64 endpointId = 4; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional string endpointVersion = 5; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getEndpointversion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setEndpointversion = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * map endpointParameters = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.AssistantAnalysis.prototype.getEndpointparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.clearEndpointparametersMap = function() { + this.getEndpointparametersMap().clear(); + return this;}; + + +/** + * optional uint64 assistantId = 10; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional string status = 12; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional uint64 createdBy = 13; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 13, value); +}; + + +/** + * optional User createdUser = 14; + * @return {?proto.User} + */ +proto.assistant_api.AssistantAnalysis.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 14)); +}; + + +/** + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this +*/ +proto.assistant_api.AssistantAnalysis.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantAnalysis.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional uint64 updatedBy = 15; + * @return {string} + */ +proto.assistant_api.AssistantAnalysis.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); +}; + + +/** + * optional User updatedUser = 16; + * @return {?proto.User} + */ +proto.assistant_api.AssistantAnalysis.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 16)); +}; + + +/** + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this +*/ +proto.assistant_api.AssistantAnalysis.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantAnalysis.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 17; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantAnalysis.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this +*/ +proto.assistant_api.AssistantAnalysis.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantAnalysis.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional google.protobuf.Timestamp updatedDate = 18; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantAnalysis.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this +*/ +proto.assistant_api.AssistantAnalysis.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 18, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantAnalysis.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional uint32 executionPriority = 20; + * @return {number} + */ +proto.assistant_api.AssistantAnalysis.prototype.getExecutionpriority = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantAnalysis} returns this + */ +proto.assistant_api.AssistantAnalysis.prototype.setExecutionpriority = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantAnalysisRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.CreateAssistantAnalysisRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantAnalysisRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + endpointid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + endpointversion: jspb.Message.getFieldWithDefault(msg, 5, ""), + endpointparametersMap: (f = msg.getEndpointparametersMap()) ? f.toObject(includeInstance, undefined) : [], + assistantid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + executionpriority: jspb.Message.getFieldWithDefault(msg, 20, 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.assistant_api.CreateAssistantAnalysisRequest} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.CreateAssistantAnalysisRequest; + return proto.assistant_api.CreateAssistantAnalysisRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.CreateAssistantAnalysisRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setEndpointversion(value); + break; + case 7: + var value = msg.getEndpointparametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint32()); + msg.setExecutionpriority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.CreateAssistantAnalysisRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.CreateAssistantAnalysisRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantAnalysisRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getEndpointversion(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getEndpointparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getExecutionpriority(); + if (f !== 0) { + writer.writeUint32( + 20, + f + ); + } +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint64 endpointId = 4; + * @return {string} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional string endpointVersion = 5; + * @return {string} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getEndpointversion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.setEndpointversion = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * map endpointParameters = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getEndpointparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.clearEndpointparametersMap = function() { + this.getEndpointparametersMap().clear(); + return this;}; + + +/** + * optional uint64 assistantId = 10; + * @return {string} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional uint32 executionPriority = 20; + * @return {number} + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.getExecutionpriority = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.CreateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.CreateAssistantAnalysisRequest.prototype.setExecutionpriority = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.UpdateAssistantAnalysisRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.UpdateAssistantAnalysisRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + endpointid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + endpointversion: jspb.Message.getFieldWithDefault(msg, 5, ""), + endpointparametersMap: (f = msg.getEndpointparametersMap()) ? f.toObject(includeInstance, undefined) : [], + assistantid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + executionpriority: jspb.Message.getFieldWithDefault(msg, 20, 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.assistant_api.UpdateAssistantAnalysisRequest} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.UpdateAssistantAnalysisRequest; + return proto.assistant_api.UpdateAssistantAnalysisRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.UpdateAssistantAnalysisRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setEndpointversion(value); + break; + case 7: + var value = msg.getEndpointparametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint32()); + msg.setExecutionpriority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.UpdateAssistantAnalysisRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.UpdateAssistantAnalysisRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getEndpointversion(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getEndpointparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getExecutionpriority(); + if (f !== 0) { + writer.writeUint32( + 20, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint64 endpointId = 4; + * @return {string} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional string endpointVersion = 5; + * @return {string} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getEndpointversion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setEndpointversion = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * map endpointParameters = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getEndpointparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.clearEndpointparametersMap = function() { + this.getEndpointparametersMap().clear(); + return this;}; + + +/** + * optional uint64 assistantId = 10; + * @return {string} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional uint32 executionPriority = 20; + * @return {number} + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.getExecutionpriority = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.UpdateAssistantAnalysisRequest} returns this + */ +proto.assistant_api.UpdateAssistantAnalysisRequest.prototype.setExecutionpriority = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantAnalysisRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantAnalysisRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantAnalysisRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantAnalysisRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.GetAssistantAnalysisRequest} + */ +proto.assistant_api.GetAssistantAnalysisRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantAnalysisRequest; + return proto.assistant_api.GetAssistantAnalysisRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantAnalysisRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantAnalysisRequest} + */ +proto.assistant_api.GetAssistantAnalysisRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantAnalysisRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantAnalysisRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantAnalysisRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantAnalysisRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.GetAssistantAnalysisRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantAnalysisRequest} returns this + */ +proto.assistant_api.GetAssistantAnalysisRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.GetAssistantAnalysisRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantAnalysisRequest} returns this + */ +proto.assistant_api.GetAssistantAnalysisRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.DeleteAssistantAnalysisRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.DeleteAssistantAnalysisRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.DeleteAssistantAnalysisRequest} + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.DeleteAssistantAnalysisRequest; + return proto.assistant_api.DeleteAssistantAnalysisRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.DeleteAssistantAnalysisRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.DeleteAssistantAnalysisRequest} + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.DeleteAssistantAnalysisRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.DeleteAssistantAnalysisRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantAnalysisRequest} returns this + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantAnalysisRequest} returns this + */ +proto.assistant_api.DeleteAssistantAnalysisRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantAnalysisResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantAnalysisResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantAnalysisResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.assistant_api.AssistantAnalysis.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.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.assistant_api.GetAssistantAnalysisResponse} + */ +proto.assistant_api.GetAssistantAnalysisResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantAnalysisResponse; + return proto.assistant_api.GetAssistantAnalysisResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantAnalysisResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} + */ +proto.assistant_api.GetAssistantAnalysisResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantAnalysis; + reader.readMessage(value,proto.assistant_api.AssistantAnalysis.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantAnalysisResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantAnalysisResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantAnalysisResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.assistant_api.AssistantAnalysis.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional AssistantAnalysis data = 3; + * @return {?proto.assistant_api.AssistantAnalysis} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.AssistantAnalysis} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantAnalysis, 3)); +}; + + +/** + * @param {?proto.assistant_api.AssistantAnalysis|undefined} value + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} returns this +*/ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} returns this +*/ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantAnalysisResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantAnalysisRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantAnalysisRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.toObject = function(includeInstance, msg) { + var f, obj = { + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.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.assistant_api.GetAllAssistantAnalysisRequest} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantAnalysisRequest; + return proto.assistant_api.GetAllAssistantAnalysisRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantAnalysisRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantAnalysisRequest} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 2: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 3: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantAnalysisRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantAnalysisRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 assistantId = 1; + * @return {string} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisRequest} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional Paginate paginate = 2; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisRequest} returns this +*/ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantAnalysisRequest} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Criteria criterias = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisRequest} returns this +*/ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantAnalysisRequest} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantAnalysisResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantAnalysisResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.assistant_api.AssistantAnalysis.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.assistant_api.GetAllAssistantAnalysisResponse} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantAnalysisResponse; + return proto.assistant_api.GetAllAssistantAnalysisResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantAnalysisResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantAnalysis; + reader.readMessage(value,proto.assistant_api.AssistantAnalysis.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantAnalysisResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantAnalysisResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.assistant_api.AssistantAnalysis.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated AssistantAnalysis data = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantAnalysis, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this +*/ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.assistant_api.AssistantAnalysis=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantAnalysis} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantAnalysis, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this +*/ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this +*/ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantAnalysisResponse} returns this + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantAnalysisResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +goog.object.extend(exports, proto.assistant_api); diff --git a/src/clients/protos/assistant-api_grpc_pb.d.ts b/src/clients/protos/assistant-api_grpc_pb.d.ts index b44924e..08fa510 100644 --- a/src/clients/protos/assistant-api_grpc_pb.d.ts +++ b/src/clients/protos/assistant-api_grpc_pb.d.ts @@ -5,23 +5,49 @@ import * as assistant_api_pb from "./assistant-api_pb"; import * as common_pb from "./common_pb"; +import * as assistant_tool_pb from "./assistant-tool_pb"; +import * as assistant_analysis_pb from "./assistant-analysis_pb"; +import * as assistant_webhook_pb from "./assistant-webhook_pb"; +import * as assistant_knowledge_pb from "./assistant-knowledge_pb"; import * as grpc from "grpc"; interface IAssistantServiceService extends grpc.ServiceDefinition { getAssistant: grpc.MethodDefinition; getAllAssistant: grpc.MethodDefinition; + createAssistant: grpc.MethodDefinition; + deleteAssistant: grpc.MethodDefinition; getAllAssistantProviderModel: grpc.MethodDefinition; - createAssistant: grpc.MethodDefinition; - createAssistantProviderModel: grpc.MethodDefinition; - createAssistantKnowledgeConfiguration: grpc.MethodDefinition; + createAssistantProviderModel: grpc.MethodDefinition; createAssistantTag: grpc.MethodDefinition; - updateAssistantVersion: grpc.MethodDefinition; + updateAssistantVersion: grpc.MethodDefinition; updateAssistantDetail: grpc.MethodDefinition; getAllAssistantMessage: grpc.MethodDefinition; - getAllAssistantConversation: grpc.MethodDefinition; getAllConversationMessage: grpc.MethodDefinition; - createAssistantToolConfiguration: grpc.MethodDefinition; - getAllAssistantTool: grpc.MethodDefinition; + getAllMessage: grpc.MethodDefinition; + getAllAssistantConversation: grpc.MethodDefinition; + getAssistantConversation: grpc.MethodDefinition; + getAssistantWebhookLog: grpc.MethodDefinition; + getAllAssistantWebhookLog: grpc.MethodDefinition; + getAllAssistantWebhook: grpc.MethodDefinition; + getAssistantWebhook: grpc.MethodDefinition; + createAssistantWebhook: grpc.MethodDefinition; + updateAssistantWebhook: grpc.MethodDefinition; + deleteAssistantWebhook: grpc.MethodDefinition; + getAssistantAnalysis: grpc.MethodDefinition; + updateAssistantAnalysis: grpc.MethodDefinition; + createAssistantAnalysis: grpc.MethodDefinition; + deleteAssistantAnalysis: grpc.MethodDefinition; + getAllAssistantAnalysis: grpc.MethodDefinition; + createAssistantTool: grpc.MethodDefinition; + getAssistantTool: grpc.MethodDefinition; + getAllAssistantTool: grpc.MethodDefinition; + deleteAssistantTool: grpc.MethodDefinition; + updateAssistantTool: grpc.MethodDefinition; + createAssistantKnowledge: grpc.MethodDefinition; + getAssistantKnowledge: grpc.MethodDefinition; + getAllAssistantKnowledge: grpc.MethodDefinition; + deleteAssistantKnowledge: grpc.MethodDefinition; + updateAssistantKnowledge: grpc.MethodDefinition; } export const AssistantServiceService: IAssistantServiceService; @@ -29,18 +55,40 @@ export const AssistantServiceService: IAssistantServiceService; export interface IAssistantServiceServer extends grpc.UntypedServiceImplementation { getAssistant: grpc.handleUnaryCall; getAllAssistant: grpc.handleUnaryCall; + createAssistant: grpc.handleUnaryCall; + deleteAssistant: grpc.handleUnaryCall; getAllAssistantProviderModel: grpc.handleUnaryCall; - createAssistant: grpc.handleUnaryCall; - createAssistantProviderModel: grpc.handleUnaryCall; - createAssistantKnowledgeConfiguration: grpc.handleUnaryCall; + createAssistantProviderModel: grpc.handleUnaryCall; createAssistantTag: grpc.handleUnaryCall; - updateAssistantVersion: grpc.handleUnaryCall; + updateAssistantVersion: grpc.handleUnaryCall; updateAssistantDetail: grpc.handleUnaryCall; getAllAssistantMessage: grpc.handleUnaryCall; - getAllAssistantConversation: grpc.handleUnaryCall; getAllConversationMessage: grpc.handleUnaryCall; - createAssistantToolConfiguration: grpc.handleUnaryCall; - getAllAssistantTool: grpc.handleUnaryCall; + getAllMessage: grpc.handleUnaryCall; + getAllAssistantConversation: grpc.handleUnaryCall; + getAssistantConversation: grpc.handleUnaryCall; + getAssistantWebhookLog: grpc.handleUnaryCall; + getAllAssistantWebhookLog: grpc.handleUnaryCall; + getAllAssistantWebhook: grpc.handleUnaryCall; + getAssistantWebhook: grpc.handleUnaryCall; + createAssistantWebhook: grpc.handleUnaryCall; + updateAssistantWebhook: grpc.handleUnaryCall; + deleteAssistantWebhook: grpc.handleUnaryCall; + getAssistantAnalysis: grpc.handleUnaryCall; + updateAssistantAnalysis: grpc.handleUnaryCall; + createAssistantAnalysis: grpc.handleUnaryCall; + deleteAssistantAnalysis: grpc.handleUnaryCall; + getAllAssistantAnalysis: grpc.handleUnaryCall; + createAssistantTool: grpc.handleUnaryCall; + getAssistantTool: grpc.handleUnaryCall; + getAllAssistantTool: grpc.handleUnaryCall; + deleteAssistantTool: grpc.handleUnaryCall; + updateAssistantTool: grpc.handleUnaryCall; + createAssistantKnowledge: grpc.handleUnaryCall; + getAssistantKnowledge: grpc.handleUnaryCall; + getAllAssistantKnowledge: grpc.handleUnaryCall; + deleteAssistantKnowledge: grpc.handleUnaryCall; + updateAssistantKnowledge: grpc.handleUnaryCall; } export class AssistantServiceClient extends grpc.Client { @@ -51,62 +99,106 @@ export class AssistantServiceClient extends grpc.Client { getAllAssistant(argument: assistant_api_pb.GetAllAssistantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistant(argument: assistant_api_pb.GetAllAssistantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistant(argument: assistant_api_pb.GetAllAssistantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistant(argument: assistant_api_pb.CreateAssistantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistant(argument: assistant_api_pb.CreateAssistantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistant(argument: assistant_api_pb.CreateAssistantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistant(argument: assistant_api_pb.DeleteAssistantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistant(argument: assistant_api_pb.DeleteAssistantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistant(argument: assistant_api_pb.DeleteAssistantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistantProviderModel(argument: assistant_api_pb.GetAllAssistantProviderModelRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistantProviderModel(argument: assistant_api_pb.GetAllAssistantProviderModelRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistantProviderModel(argument: assistant_api_pb.GetAllAssistantProviderModelRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistant(argument: assistant_api_pb.CreateAssistantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistant(argument: assistant_api_pb.CreateAssistantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistant(argument: assistant_api_pb.CreateAssistantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantProviderModel(argument: assistant_api_pb.CreateAssistantProviderModelRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantProviderModel(argument: assistant_api_pb.CreateAssistantProviderModelRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantProviderModel(argument: assistant_api_pb.CreateAssistantProviderModelRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantKnowledgeConfiguration(argument: assistant_api_pb.CreateAssistantKnowledgeConfigurationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantKnowledgeConfiguration(argument: assistant_api_pb.CreateAssistantKnowledgeConfigurationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantKnowledgeConfiguration(argument: assistant_api_pb.CreateAssistantKnowledgeConfigurationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantProviderModel(argument: assistant_api_pb.CreateAssistantProviderModelRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantProviderModel(argument: assistant_api_pb.CreateAssistantProviderModelRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantProviderModel(argument: assistant_api_pb.CreateAssistantProviderModelRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; createAssistantTag(argument: assistant_api_pb.CreateAssistantTagRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; createAssistantTag(argument: assistant_api_pb.CreateAssistantTagRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; createAssistantTag(argument: assistant_api_pb.CreateAssistantTagRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAssistantVersion(argument: assistant_api_pb.UpdateAssistantVersionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAssistantVersion(argument: assistant_api_pb.UpdateAssistantVersionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAssistantVersion(argument: assistant_api_pb.UpdateAssistantVersionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantVersion(argument: assistant_api_pb.UpdateAssistantVersionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantVersion(argument: assistant_api_pb.UpdateAssistantVersionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantVersion(argument: assistant_api_pb.UpdateAssistantVersionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; updateAssistantDetail(argument: assistant_api_pb.UpdateAssistantDetailRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; updateAssistantDetail(argument: assistant_api_pb.UpdateAssistantDetailRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; updateAssistantDetail(argument: assistant_api_pb.UpdateAssistantDetailRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistantMessage(argument: assistant_api_pb.GetAllAssistantMessageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistantMessage(argument: assistant_api_pb.GetAllAssistantMessageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllAssistantMessage(argument: assistant_api_pb.GetAllAssistantMessageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllConversationMessage(argument: common_pb.GetAllConversationMessageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllConversationMessage(argument: common_pb.GetAllConversationMessageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllConversationMessage(argument: common_pb.GetAllConversationMessageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantToolConfiguration(argument: assistant_api_pb.CreateAssistantToolConfigurationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantToolConfiguration(argument: assistant_api_pb.CreateAssistantToolConfigurationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAssistantToolConfiguration(argument: assistant_api_pb.CreateAssistantToolConfigurationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllAssistantTool(argument: assistant_api_pb.GetAllAssistantToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllAssistantTool(argument: assistant_api_pb.GetAllAssistantToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllAssistantTool(argument: assistant_api_pb.GetAllAssistantToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} - -interface IToolServiceService extends grpc.ServiceDefinition { - getAllTool: grpc.MethodDefinition; - getTool: grpc.MethodDefinition; -} - -export const ToolServiceService: IToolServiceService; - -export interface IToolServiceServer extends grpc.UntypedServiceImplementation { - getAllTool: grpc.handleUnaryCall; - getTool: grpc.handleUnaryCall; -} - -export class ToolServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - getAllTool(argument: assistant_api_pb.GetAllToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllTool(argument: assistant_api_pb.GetAllToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllTool(argument: assistant_api_pb.GetAllToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getTool(argument: assistant_api_pb.GetToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getTool(argument: assistant_api_pb.GetToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getTool(argument: assistant_api_pb.GetToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllMessage(argument: assistant_api_pb.GetAllMessageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllMessage(argument: assistant_api_pb.GetAllMessageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllMessage(argument: assistant_api_pb.GetAllMessageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantConversation(argument: assistant_api_pb.GetAssistantConversationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantConversation(argument: assistant_api_pb.GetAssistantConversationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantConversation(argument: assistant_api_pb.GetAssistantConversationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantWebhookLog(argument: assistant_webhook_pb.GetAssistantWebhookLogRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantWebhookLog(argument: assistant_webhook_pb.GetAssistantWebhookLogRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantWebhookLog(argument: assistant_webhook_pb.GetAssistantWebhookLogRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantWebhookLog(argument: assistant_webhook_pb.GetAllAssistantWebhookLogRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantWebhookLog(argument: assistant_webhook_pb.GetAllAssistantWebhookLogRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantWebhookLog(argument: assistant_webhook_pb.GetAllAssistantWebhookLogRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantWebhook(argument: assistant_webhook_pb.GetAllAssistantWebhookRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantWebhook(argument: assistant_webhook_pb.GetAllAssistantWebhookRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantWebhook(argument: assistant_webhook_pb.GetAllAssistantWebhookRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantWebhook(argument: assistant_webhook_pb.GetAssistantWebhookRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantWebhook(argument: assistant_webhook_pb.GetAssistantWebhookRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantWebhook(argument: assistant_webhook_pb.GetAssistantWebhookRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantWebhook(argument: assistant_webhook_pb.CreateAssistantWebhookRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantWebhook(argument: assistant_webhook_pb.CreateAssistantWebhookRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantWebhook(argument: assistant_webhook_pb.CreateAssistantWebhookRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantWebhook(argument: assistant_webhook_pb.UpdateAssistantWebhookRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantWebhook(argument: assistant_webhook_pb.UpdateAssistantWebhookRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantWebhook(argument: assistant_webhook_pb.UpdateAssistantWebhookRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantWebhook(argument: assistant_webhook_pb.DeleteAssistantWebhookRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantWebhook(argument: assistant_webhook_pb.DeleteAssistantWebhookRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantWebhook(argument: assistant_webhook_pb.DeleteAssistantWebhookRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantAnalysis(argument: assistant_analysis_pb.GetAssistantAnalysisRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantAnalysis(argument: assistant_analysis_pb.GetAssistantAnalysisRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantAnalysis(argument: assistant_analysis_pb.GetAssistantAnalysisRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantAnalysis(argument: assistant_analysis_pb.UpdateAssistantAnalysisRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantAnalysis(argument: assistant_analysis_pb.UpdateAssistantAnalysisRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantAnalysis(argument: assistant_analysis_pb.UpdateAssistantAnalysisRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantAnalysis(argument: assistant_analysis_pb.CreateAssistantAnalysisRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantAnalysis(argument: assistant_analysis_pb.CreateAssistantAnalysisRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantAnalysis(argument: assistant_analysis_pb.CreateAssistantAnalysisRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantAnalysis(argument: assistant_analysis_pb.DeleteAssistantAnalysisRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantAnalysis(argument: assistant_analysis_pb.DeleteAssistantAnalysisRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantAnalysis(argument: assistant_analysis_pb.DeleteAssistantAnalysisRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantAnalysis(argument: assistant_analysis_pb.GetAllAssistantAnalysisRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantAnalysis(argument: assistant_analysis_pb.GetAllAssistantAnalysisRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantAnalysis(argument: assistant_analysis_pb.GetAllAssistantAnalysisRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantTool(argument: assistant_tool_pb.CreateAssistantToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantTool(argument: assistant_tool_pb.CreateAssistantToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantTool(argument: assistant_tool_pb.CreateAssistantToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantTool(argument: assistant_tool_pb.GetAssistantToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantTool(argument: assistant_tool_pb.GetAssistantToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantTool(argument: assistant_tool_pb.GetAssistantToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantTool(argument: assistant_tool_pb.GetAllAssistantToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantTool(argument: assistant_tool_pb.GetAllAssistantToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantTool(argument: assistant_tool_pb.GetAllAssistantToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantTool(argument: assistant_tool_pb.DeleteAssistantToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantTool(argument: assistant_tool_pb.DeleteAssistantToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantTool(argument: assistant_tool_pb.DeleteAssistantToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantTool(argument: assistant_tool_pb.UpdateAssistantToolRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantTool(argument: assistant_tool_pb.UpdateAssistantToolRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantTool(argument: assistant_tool_pb.UpdateAssistantToolRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantKnowledge(argument: assistant_knowledge_pb.CreateAssistantKnowledgeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantKnowledge(argument: assistant_knowledge_pb.CreateAssistantKnowledgeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createAssistantKnowledge(argument: assistant_knowledge_pb.CreateAssistantKnowledgeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantKnowledge(argument: assistant_knowledge_pb.GetAssistantKnowledgeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantKnowledge(argument: assistant_knowledge_pb.GetAssistantKnowledgeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAssistantKnowledge(argument: assistant_knowledge_pb.GetAssistantKnowledgeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantKnowledge(argument: assistant_knowledge_pb.GetAllAssistantKnowledgeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantKnowledge(argument: assistant_knowledge_pb.GetAllAssistantKnowledgeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllAssistantKnowledge(argument: assistant_knowledge_pb.GetAllAssistantKnowledgeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantKnowledge(argument: assistant_knowledge_pb.DeleteAssistantKnowledgeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantKnowledge(argument: assistant_knowledge_pb.DeleteAssistantKnowledgeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteAssistantKnowledge(argument: assistant_knowledge_pb.DeleteAssistantKnowledgeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantKnowledge(argument: assistant_knowledge_pb.UpdateAssistantKnowledgeRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantKnowledge(argument: assistant_knowledge_pb.UpdateAssistantKnowledgeRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + updateAssistantKnowledge(argument: assistant_knowledge_pb.UpdateAssistantKnowledgeRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } diff --git a/src/clients/protos/assistant-api_grpc_pb.js b/src/clients/protos/assistant-api_grpc_pb.js index 11eec9e..78c82f1 100644 --- a/src/clients/protos/assistant-api_grpc_pb.js +++ b/src/clients/protos/assistant-api_grpc_pb.js @@ -6,7 +6,10 @@ var assistant$api_pb = require('./assistant-api_pb.js'); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); var common_pb = require('./common_pb.js'); var assistant$deployment_pb = require('./assistant-deployment_pb.js'); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +var assistant$tool_pb = require('./assistant-tool_pb.js'); +var assistant$analysis_pb = require('./assistant-analysis_pb.js'); +var assistant$webhook_pb = require('./assistant-webhook_pb.js'); +var assistant$knowledge_pb = require('./assistant-knowledge_pb.js'); function serialize_GetAllAssistantConversationRequest(arg) { if (!(arg instanceof common_pb.GetAllAssistantConversationRequest)) { @@ -52,37 +55,37 @@ function deserialize_GetAllConversationMessageResponse(buffer_arg) { return common_pb.GetAllConversationMessageResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_CreateAssistantKnowledgeConfigurationRequest(arg) { - if (!(arg instanceof assistant$api_pb.CreateAssistantKnowledgeConfigurationRequest)) { - throw new Error('Expected argument of type assistant_api.CreateAssistantKnowledgeConfigurationRequest'); +function serialize_assistant_api_CreateAssistantAnalysisRequest(arg) { + if (!(arg instanceof assistant$analysis_pb.CreateAssistantAnalysisRequest)) { + throw new Error('Expected argument of type assistant_api.CreateAssistantAnalysisRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_CreateAssistantKnowledgeConfigurationRequest(buffer_arg) { - return assistant$api_pb.CreateAssistantKnowledgeConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_CreateAssistantAnalysisRequest(buffer_arg) { + return assistant$analysis_pb.CreateAssistantAnalysisRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_CreateAssistantProviderModelRequest(arg) { - if (!(arg instanceof assistant$api_pb.CreateAssistantProviderModelRequest)) { - throw new Error('Expected argument of type assistant_api.CreateAssistantProviderModelRequest'); +function serialize_assistant_api_CreateAssistantKnowledgeRequest(arg) { + if (!(arg instanceof assistant$knowledge_pb.CreateAssistantKnowledgeRequest)) { + throw new Error('Expected argument of type assistant_api.CreateAssistantKnowledgeRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_CreateAssistantProviderModelRequest(buffer_arg) { - return assistant$api_pb.CreateAssistantProviderModelRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_CreateAssistantKnowledgeRequest(buffer_arg) { + return assistant$knowledge_pb.CreateAssistantKnowledgeRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_CreateAssistantProviderModelResponse(arg) { - if (!(arg instanceof assistant$api_pb.CreateAssistantProviderModelResponse)) { - throw new Error('Expected argument of type assistant_api.CreateAssistantProviderModelResponse'); +function serialize_assistant_api_CreateAssistantProviderModelRequest(arg) { + if (!(arg instanceof assistant$api_pb.CreateAssistantProviderModelRequest)) { + throw new Error('Expected argument of type assistant_api.CreateAssistantProviderModelRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_CreateAssistantProviderModelResponse(buffer_arg) { - return assistant$api_pb.CreateAssistantProviderModelResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_CreateAssistantProviderModelRequest(buffer_arg) { + return assistant$api_pb.CreateAssistantProviderModelRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_assistant_api_CreateAssistantRequest(arg) { @@ -96,37 +99,136 @@ function deserialize_assistant_api_CreateAssistantRequest(buffer_arg) { return assistant$api_pb.CreateAssistantRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_CreateAssistantResponse(arg) { - if (!(arg instanceof assistant$api_pb.CreateAssistantResponse)) { - throw new Error('Expected argument of type assistant_api.CreateAssistantResponse'); +function serialize_assistant_api_CreateAssistantTagRequest(arg) { + if (!(arg instanceof assistant$api_pb.CreateAssistantTagRequest)) { + throw new Error('Expected argument of type assistant_api.CreateAssistantTagRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_CreateAssistantResponse(buffer_arg) { - return assistant$api_pb.CreateAssistantResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_CreateAssistantTagRequest(buffer_arg) { + return assistant$api_pb.CreateAssistantTagRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_CreateAssistantTagRequest(arg) { - if (!(arg instanceof assistant$api_pb.CreateAssistantTagRequest)) { - throw new Error('Expected argument of type assistant_api.CreateAssistantTagRequest'); +function serialize_assistant_api_CreateAssistantToolRequest(arg) { + if (!(arg instanceof assistant$tool_pb.CreateAssistantToolRequest)) { + throw new Error('Expected argument of type assistant_api.CreateAssistantToolRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_CreateAssistantTagRequest(buffer_arg) { - return assistant$api_pb.CreateAssistantTagRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_CreateAssistantToolRequest(buffer_arg) { + return assistant$tool_pb.CreateAssistantToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_CreateAssistantWebhookRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.CreateAssistantWebhookRequest)) { + throw new Error('Expected argument of type assistant_api.CreateAssistantWebhookRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_CreateAssistantWebhookRequest(buffer_arg) { + return assistant$webhook_pb.CreateAssistantWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_DeleteAssistantAnalysisRequest(arg) { + if (!(arg instanceof assistant$analysis_pb.DeleteAssistantAnalysisRequest)) { + throw new Error('Expected argument of type assistant_api.DeleteAssistantAnalysisRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_DeleteAssistantAnalysisRequest(buffer_arg) { + return assistant$analysis_pb.DeleteAssistantAnalysisRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_DeleteAssistantKnowledgeRequest(arg) { + if (!(arg instanceof assistant$knowledge_pb.DeleteAssistantKnowledgeRequest)) { + throw new Error('Expected argument of type assistant_api.DeleteAssistantKnowledgeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_DeleteAssistantKnowledgeRequest(buffer_arg) { + return assistant$knowledge_pb.DeleteAssistantKnowledgeRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_CreateAssistantToolConfigurationRequest(arg) { - if (!(arg instanceof assistant$api_pb.CreateAssistantToolConfigurationRequest)) { - throw new Error('Expected argument of type assistant_api.CreateAssistantToolConfigurationRequest'); +function serialize_assistant_api_DeleteAssistantRequest(arg) { + if (!(arg instanceof assistant$api_pb.DeleteAssistantRequest)) { + throw new Error('Expected argument of type assistant_api.DeleteAssistantRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_CreateAssistantToolConfigurationRequest(buffer_arg) { - return assistant$api_pb.CreateAssistantToolConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_DeleteAssistantRequest(buffer_arg) { + return assistant$api_pb.DeleteAssistantRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_DeleteAssistantToolRequest(arg) { + if (!(arg instanceof assistant$tool_pb.DeleteAssistantToolRequest)) { + throw new Error('Expected argument of type assistant_api.DeleteAssistantToolRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_DeleteAssistantToolRequest(buffer_arg) { + return assistant$tool_pb.DeleteAssistantToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_DeleteAssistantWebhookRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.DeleteAssistantWebhookRequest)) { + throw new Error('Expected argument of type assistant_api.DeleteAssistantWebhookRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_DeleteAssistantWebhookRequest(buffer_arg) { + return assistant$webhook_pb.DeleteAssistantWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantAnalysisRequest(arg) { + if (!(arg instanceof assistant$analysis_pb.GetAllAssistantAnalysisRequest)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantAnalysisRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantAnalysisRequest(buffer_arg) { + return assistant$analysis_pb.GetAllAssistantAnalysisRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantAnalysisResponse(arg) { + if (!(arg instanceof assistant$analysis_pb.GetAllAssistantAnalysisResponse)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantAnalysisResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantAnalysisResponse(buffer_arg) { + return assistant$analysis_pb.GetAllAssistantAnalysisResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantKnowledgeRequest(arg) { + if (!(arg instanceof assistant$knowledge_pb.GetAllAssistantKnowledgeRequest)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantKnowledgeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantKnowledgeRequest(buffer_arg) { + return assistant$knowledge_pb.GetAllAssistantKnowledgeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantKnowledgeResponse(arg) { + if (!(arg instanceof assistant$knowledge_pb.GetAllAssistantKnowledgeResponse)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantKnowledgeResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantKnowledgeResponse(buffer_arg) { + return assistant$knowledge_pb.GetAllAssistantKnowledgeResponse.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_assistant_api_GetAllAssistantMessageRequest(arg) { @@ -196,47 +298,168 @@ function deserialize_assistant_api_GetAllAssistantResponse(buffer_arg) { } function serialize_assistant_api_GetAllAssistantToolRequest(arg) { - if (!(arg instanceof assistant$api_pb.GetAllAssistantToolRequest)) { + if (!(arg instanceof assistant$tool_pb.GetAllAssistantToolRequest)) { throw new Error('Expected argument of type assistant_api.GetAllAssistantToolRequest'); } return Buffer.from(arg.serializeBinary()); } function deserialize_assistant_api_GetAllAssistantToolRequest(buffer_arg) { - return assistant$api_pb.GetAllAssistantToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return assistant$tool_pb.GetAllAssistantToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_assistant_api_GetAllAssistantToolResponse(arg) { - if (!(arg instanceof assistant$api_pb.GetAllAssistantToolResponse)) { + if (!(arg instanceof assistant$tool_pb.GetAllAssistantToolResponse)) { throw new Error('Expected argument of type assistant_api.GetAllAssistantToolResponse'); } return Buffer.from(arg.serializeBinary()); } function deserialize_assistant_api_GetAllAssistantToolResponse(buffer_arg) { - return assistant$api_pb.GetAllAssistantToolResponse.deserializeBinary(new Uint8Array(buffer_arg)); + return assistant$tool_pb.GetAllAssistantToolResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantWebhookLogRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAllAssistantWebhookLogRequest)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantWebhookLogRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantWebhookLogRequest(buffer_arg) { + return assistant$webhook_pb.GetAllAssistantWebhookLogRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantWebhookLogResponse(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAllAssistantWebhookLogResponse)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantWebhookLogResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantWebhookLogResponse(buffer_arg) { + return assistant$webhook_pb.GetAllAssistantWebhookLogResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantWebhookRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAllAssistantWebhookRequest)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantWebhookRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantWebhookRequest(buffer_arg) { + return assistant$webhook_pb.GetAllAssistantWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllAssistantWebhookResponse(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAllAssistantWebhookResponse)) { + throw new Error('Expected argument of type assistant_api.GetAllAssistantWebhookResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllAssistantWebhookResponse(buffer_arg) { + return assistant$webhook_pb.GetAllAssistantWebhookResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAllMessageRequest(arg) { + if (!(arg instanceof assistant$api_pb.GetAllMessageRequest)) { + throw new Error('Expected argument of type assistant_api.GetAllMessageRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAllMessageRequest(buffer_arg) { + return assistant$api_pb.GetAllMessageRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_GetAllToolRequest(arg) { - if (!(arg instanceof assistant$api_pb.GetAllToolRequest)) { - throw new Error('Expected argument of type assistant_api.GetAllToolRequest'); +function serialize_assistant_api_GetAllMessageResponse(arg) { + if (!(arg instanceof assistant$api_pb.GetAllMessageResponse)) { + throw new Error('Expected argument of type assistant_api.GetAllMessageResponse'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_GetAllToolRequest(buffer_arg) { - return assistant$api_pb.GetAllToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_GetAllMessageResponse(buffer_arg) { + return assistant$api_pb.GetAllMessageResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_GetAllToolResponse(arg) { - if (!(arg instanceof assistant$api_pb.GetAllToolResponse)) { - throw new Error('Expected argument of type assistant_api.GetAllToolResponse'); +function serialize_assistant_api_GetAssistantAnalysisRequest(arg) { + if (!(arg instanceof assistant$analysis_pb.GetAssistantAnalysisRequest)) { + throw new Error('Expected argument of type assistant_api.GetAssistantAnalysisRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_GetAllToolResponse(buffer_arg) { - return assistant$api_pb.GetAllToolResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_GetAssistantAnalysisRequest(buffer_arg) { + return assistant$analysis_pb.GetAssistantAnalysisRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantAnalysisResponse(arg) { + if (!(arg instanceof assistant$analysis_pb.GetAssistantAnalysisResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantAnalysisResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantAnalysisResponse(buffer_arg) { + return assistant$analysis_pb.GetAssistantAnalysisResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantConversationRequest(arg) { + if (!(arg instanceof assistant$api_pb.GetAssistantConversationRequest)) { + throw new Error('Expected argument of type assistant_api.GetAssistantConversationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantConversationRequest(buffer_arg) { + return assistant$api_pb.GetAssistantConversationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantConversationResponse(arg) { + if (!(arg instanceof assistant$api_pb.GetAssistantConversationResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantConversationResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantConversationResponse(buffer_arg) { + return assistant$api_pb.GetAssistantConversationResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantKnowledgeRequest(arg) { + if (!(arg instanceof assistant$knowledge_pb.GetAssistantKnowledgeRequest)) { + throw new Error('Expected argument of type assistant_api.GetAssistantKnowledgeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantKnowledgeRequest(buffer_arg) { + return assistant$knowledge_pb.GetAssistantKnowledgeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantKnowledgeResponse(arg) { + if (!(arg instanceof assistant$knowledge_pb.GetAssistantKnowledgeResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantKnowledgeResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantKnowledgeResponse(buffer_arg) { + return assistant$knowledge_pb.GetAssistantKnowledgeResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantProviderModelResponse(arg) { + if (!(arg instanceof assistant$api_pb.GetAssistantProviderModelResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantProviderModelResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantProviderModelResponse(buffer_arg) { + return assistant$api_pb.GetAssistantProviderModelResponse.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_assistant_api_GetAssistantRequest(arg) { @@ -261,26 +484,81 @@ function deserialize_assistant_api_GetAssistantResponse(buffer_arg) { return assistant$api_pb.GetAssistantResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_GetToolRequest(arg) { - if (!(arg instanceof assistant$api_pb.GetToolRequest)) { - throw new Error('Expected argument of type assistant_api.GetToolRequest'); +function serialize_assistant_api_GetAssistantToolRequest(arg) { + if (!(arg instanceof assistant$tool_pb.GetAssistantToolRequest)) { + throw new Error('Expected argument of type assistant_api.GetAssistantToolRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantToolRequest(buffer_arg) { + return assistant$tool_pb.GetAssistantToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantToolResponse(arg) { + if (!(arg instanceof assistant$tool_pb.GetAssistantToolResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantToolResponse'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_GetToolRequest(buffer_arg) { - return assistant$api_pb.GetToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_GetAssistantToolResponse(buffer_arg) { + return assistant$tool_pb.GetAssistantToolResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_GetToolResponse(arg) { - if (!(arg instanceof assistant$api_pb.GetToolResponse)) { - throw new Error('Expected argument of type assistant_api.GetToolResponse'); +function serialize_assistant_api_GetAssistantWebhookLogRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAssistantWebhookLogRequest)) { + throw new Error('Expected argument of type assistant_api.GetAssistantWebhookLogRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_GetToolResponse(buffer_arg) { - return assistant$api_pb.GetToolResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_GetAssistantWebhookLogRequest(buffer_arg) { + return assistant$webhook_pb.GetAssistantWebhookLogRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantWebhookLogResponse(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAssistantWebhookLogResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantWebhookLogResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantWebhookLogResponse(buffer_arg) { + return assistant$webhook_pb.GetAssistantWebhookLogResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantWebhookRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAssistantWebhookRequest)) { + throw new Error('Expected argument of type assistant_api.GetAssistantWebhookRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantWebhookRequest(buffer_arg) { + return assistant$webhook_pb.GetAssistantWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_GetAssistantWebhookResponse(arg) { + if (!(arg instanceof assistant$webhook_pb.GetAssistantWebhookResponse)) { + throw new Error('Expected argument of type assistant_api.GetAssistantWebhookResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_GetAssistantWebhookResponse(buffer_arg) { + return assistant$webhook_pb.GetAssistantWebhookResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_UpdateAssistantAnalysisRequest(arg) { + if (!(arg instanceof assistant$analysis_pb.UpdateAssistantAnalysisRequest)) { + throw new Error('Expected argument of type assistant_api.UpdateAssistantAnalysisRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_UpdateAssistantAnalysisRequest(buffer_arg) { + return assistant$analysis_pb.UpdateAssistantAnalysisRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_assistant_api_UpdateAssistantDetailRequest(arg) { @@ -294,6 +572,28 @@ function deserialize_assistant_api_UpdateAssistantDetailRequest(buffer_arg) { return assistant$api_pb.UpdateAssistantDetailRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_assistant_api_UpdateAssistantKnowledgeRequest(arg) { + if (!(arg instanceof assistant$knowledge_pb.UpdateAssistantKnowledgeRequest)) { + throw new Error('Expected argument of type assistant_api.UpdateAssistantKnowledgeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_UpdateAssistantKnowledgeRequest(buffer_arg) { + return assistant$knowledge_pb.UpdateAssistantKnowledgeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_assistant_api_UpdateAssistantToolRequest(arg) { + if (!(arg instanceof assistant$tool_pb.UpdateAssistantToolRequest)) { + throw new Error('Expected argument of type assistant_api.UpdateAssistantToolRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_assistant_api_UpdateAssistantToolRequest(buffer_arg) { + return assistant$tool_pb.UpdateAssistantToolRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_assistant_api_UpdateAssistantVersionRequest(arg) { if (!(arg instanceof assistant$api_pb.UpdateAssistantVersionRequest)) { throw new Error('Expected argument of type assistant_api.UpdateAssistantVersionRequest'); @@ -305,15 +605,15 @@ function deserialize_assistant_api_UpdateAssistantVersionRequest(buffer_arg) { return assistant$api_pb.UpdateAssistantVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_assistant_api_UpdateAssistantVersionResponse(arg) { - if (!(arg instanceof assistant$api_pb.UpdateAssistantVersionResponse)) { - throw new Error('Expected argument of type assistant_api.UpdateAssistantVersionResponse'); +function serialize_assistant_api_UpdateAssistantWebhookRequest(arg) { + if (!(arg instanceof assistant$webhook_pb.UpdateAssistantWebhookRequest)) { + throw new Error('Expected argument of type assistant_api.UpdateAssistantWebhookRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_assistant_api_UpdateAssistantVersionResponse(buffer_arg) { - return assistant$api_pb.UpdateAssistantVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_assistant_api_UpdateAssistantWebhookRequest(buffer_arg) { + return assistant$webhook_pb.UpdateAssistantWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -340,6 +640,28 @@ var AssistantServiceService = exports.AssistantServiceService = { responseSerialize: serialize_assistant_api_GetAllAssistantResponse, responseDeserialize: deserialize_assistant_api_GetAllAssistantResponse, }, + createAssistant: { + path: '/assistant_api.AssistantService/CreateAssistant', + requestStream: false, + responseStream: false, + requestType: assistant$api_pb.CreateAssistantRequest, + responseType: assistant$api_pb.GetAssistantResponse, + requestSerialize: serialize_assistant_api_CreateAssistantRequest, + requestDeserialize: deserialize_assistant_api_CreateAssistantRequest, + responseSerialize: serialize_assistant_api_GetAssistantResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantResponse, + }, + deleteAssistant: { + path: '/assistant_api.AssistantService/DeleteAssistant', + requestStream: false, + responseStream: false, + requestType: assistant$api_pb.DeleteAssistantRequest, + responseType: assistant$api_pb.GetAssistantResponse, + requestSerialize: serialize_assistant_api_DeleteAssistantRequest, + requestDeserialize: deserialize_assistant_api_DeleteAssistantRequest, + responseSerialize: serialize_assistant_api_GetAssistantResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantResponse, + }, getAllAssistantProviderModel: { path: '/assistant_api.AssistantService/GetAllAssistantProviderModel', requestStream: false, @@ -351,39 +673,16 @@ var AssistantServiceService = exports.AssistantServiceService = { responseSerialize: serialize_assistant_api_GetAllAssistantProviderModelResponse, responseDeserialize: deserialize_assistant_api_GetAllAssistantProviderModelResponse, }, - createAssistant: { - path: '/assistant_api.AssistantService/CreateAssistant', - requestStream: false, - responseStream: false, - requestType: assistant$api_pb.CreateAssistantRequest, - responseType: assistant$api_pb.CreateAssistantResponse, - requestSerialize: serialize_assistant_api_CreateAssistantRequest, - requestDeserialize: deserialize_assistant_api_CreateAssistantRequest, - responseSerialize: serialize_assistant_api_CreateAssistantResponse, - responseDeserialize: deserialize_assistant_api_CreateAssistantResponse, - }, createAssistantProviderModel: { path: '/assistant_api.AssistantService/CreateAssistantProviderModel', requestStream: false, responseStream: false, requestType: assistant$api_pb.CreateAssistantProviderModelRequest, - responseType: assistant$api_pb.CreateAssistantProviderModelResponse, + responseType: assistant$api_pb.GetAssistantProviderModelResponse, requestSerialize: serialize_assistant_api_CreateAssistantProviderModelRequest, requestDeserialize: deserialize_assistant_api_CreateAssistantProviderModelRequest, - responseSerialize: serialize_assistant_api_CreateAssistantProviderModelResponse, - responseDeserialize: deserialize_assistant_api_CreateAssistantProviderModelResponse, - }, - // next gen -createAssistantKnowledgeConfiguration: { - path: '/assistant_api.AssistantService/CreateAssistantKnowledgeConfiguration', - requestStream: false, - responseStream: false, - requestType: assistant$api_pb.CreateAssistantKnowledgeConfigurationRequest, - responseType: assistant$api_pb.GetAssistantResponse, - requestSerialize: serialize_assistant_api_CreateAssistantKnowledgeConfigurationRequest, - requestDeserialize: deserialize_assistant_api_CreateAssistantKnowledgeConfigurationRequest, - responseSerialize: serialize_assistant_api_GetAssistantResponse, - responseDeserialize: deserialize_assistant_api_GetAssistantResponse, + responseSerialize: serialize_assistant_api_GetAssistantProviderModelResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantProviderModelResponse, }, createAssistantTag: { path: '/assistant_api.AssistantService/CreateAssistantTag', @@ -401,11 +700,11 @@ createAssistantKnowledgeConfiguration: { requestStream: false, responseStream: false, requestType: assistant$api_pb.UpdateAssistantVersionRequest, - responseType: assistant$api_pb.UpdateAssistantVersionResponse, + responseType: assistant$api_pb.GetAssistantResponse, requestSerialize: serialize_assistant_api_UpdateAssistantVersionRequest, requestDeserialize: deserialize_assistant_api_UpdateAssistantVersionRequest, - responseSerialize: serialize_assistant_api_UpdateAssistantVersionResponse, - responseDeserialize: deserialize_assistant_api_UpdateAssistantVersionResponse, + responseSerialize: serialize_assistant_api_GetAssistantResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantResponse, }, updateAssistantDetail: { path: '/assistant_api.AssistantService/UpdateAssistantDetail', @@ -429,6 +728,28 @@ createAssistantKnowledgeConfiguration: { responseSerialize: serialize_assistant_api_GetAllAssistantMessageResponse, responseDeserialize: deserialize_assistant_api_GetAllAssistantMessageResponse, }, + getAllConversationMessage: { + path: '/assistant_api.AssistantService/GetAllConversationMessage', + requestStream: false, + responseStream: false, + requestType: common_pb.GetAllConversationMessageRequest, + responseType: common_pb.GetAllConversationMessageResponse, + requestSerialize: serialize_GetAllConversationMessageRequest, + requestDeserialize: deserialize_GetAllConversationMessageRequest, + responseSerialize: serialize_GetAllConversationMessageResponse, + responseDeserialize: deserialize_GetAllConversationMessageResponse, + }, + getAllMessage: { + path: '/assistant_api.AssistantService/GetAllMessage', + requestStream: false, + responseStream: false, + requestType: assistant$api_pb.GetAllMessageRequest, + responseType: assistant$api_pb.GetAllMessageResponse, + requestSerialize: serialize_assistant_api_GetAllMessageRequest, + requestDeserialize: deserialize_assistant_api_GetAllMessageRequest, + responseSerialize: serialize_assistant_api_GetAllMessageResponse, + responseDeserialize: deserialize_assistant_api_GetAllMessageResponse, + }, getAllAssistantConversation: { path: '/assistant_api.AssistantService/GetAllAssistantConversation', requestStream: false, @@ -440,65 +761,263 @@ createAssistantKnowledgeConfiguration: { responseSerialize: serialize_GetAllAssistantConversationResponse, responseDeserialize: deserialize_GetAllAssistantConversationResponse, }, - getAllConversationMessage: { - path: '/assistant_api.AssistantService/GetAllConversationMessage', + getAssistantConversation: { + path: '/assistant_api.AssistantService/GetAssistantConversation', requestStream: false, responseStream: false, - requestType: common_pb.GetAllConversationMessageRequest, - responseType: common_pb.GetAllConversationMessageResponse, - requestSerialize: serialize_GetAllConversationMessageRequest, - requestDeserialize: deserialize_GetAllConversationMessageRequest, - responseSerialize: serialize_GetAllConversationMessageResponse, - responseDeserialize: deserialize_GetAllConversationMessageResponse, + requestType: assistant$api_pb.GetAssistantConversationRequest, + responseType: assistant$api_pb.GetAssistantConversationResponse, + requestSerialize: serialize_assistant_api_GetAssistantConversationRequest, + requestDeserialize: deserialize_assistant_api_GetAssistantConversationRequest, + responseSerialize: serialize_assistant_api_GetAssistantConversationResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantConversationResponse, }, - createAssistantToolConfiguration: { - path: '/assistant_api.AssistantService/CreateAssistantToolConfiguration', + // webhook log +getAssistantWebhookLog: { + path: '/assistant_api.AssistantService/GetAssistantWebhookLog', requestStream: false, responseStream: false, - requestType: assistant$api_pb.CreateAssistantToolConfigurationRequest, - responseType: assistant$api_pb.GetAssistantResponse, - requestSerialize: serialize_assistant_api_CreateAssistantToolConfigurationRequest, - requestDeserialize: deserialize_assistant_api_CreateAssistantToolConfigurationRequest, - responseSerialize: serialize_assistant_api_GetAssistantResponse, - responseDeserialize: deserialize_assistant_api_GetAssistantResponse, + requestType: assistant$webhook_pb.GetAssistantWebhookLogRequest, + responseType: assistant$webhook_pb.GetAssistantWebhookLogResponse, + requestSerialize: serialize_assistant_api_GetAssistantWebhookLogRequest, + requestDeserialize: deserialize_assistant_api_GetAssistantWebhookLogRequest, + responseSerialize: serialize_assistant_api_GetAssistantWebhookLogResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantWebhookLogResponse, + }, + getAllAssistantWebhookLog: { + path: '/assistant_api.AssistantService/GetAllAssistantWebhookLog', + requestStream: false, + responseStream: false, + requestType: assistant$webhook_pb.GetAllAssistantWebhookLogRequest, + responseType: assistant$webhook_pb.GetAllAssistantWebhookLogResponse, + requestSerialize: serialize_assistant_api_GetAllAssistantWebhookLogRequest, + requestDeserialize: deserialize_assistant_api_GetAllAssistantWebhookLogRequest, + responseSerialize: serialize_assistant_api_GetAllAssistantWebhookLogResponse, + responseDeserialize: deserialize_assistant_api_GetAllAssistantWebhookLogResponse, + }, + getAllAssistantWebhook: { + path: '/assistant_api.AssistantService/GetAllAssistantWebhook', + requestStream: false, + responseStream: false, + requestType: assistant$webhook_pb.GetAllAssistantWebhookRequest, + responseType: assistant$webhook_pb.GetAllAssistantWebhookResponse, + requestSerialize: serialize_assistant_api_GetAllAssistantWebhookRequest, + requestDeserialize: deserialize_assistant_api_GetAllAssistantWebhookRequest, + responseSerialize: serialize_assistant_api_GetAllAssistantWebhookResponse, + responseDeserialize: deserialize_assistant_api_GetAllAssistantWebhookResponse, + }, + getAssistantWebhook: { + path: '/assistant_api.AssistantService/GetAssistantWebhook', + requestStream: false, + responseStream: false, + requestType: assistant$webhook_pb.GetAssistantWebhookRequest, + responseType: assistant$webhook_pb.GetAssistantWebhookResponse, + requestSerialize: serialize_assistant_api_GetAssistantWebhookRequest, + requestDeserialize: deserialize_assistant_api_GetAssistantWebhookRequest, + responseSerialize: serialize_assistant_api_GetAssistantWebhookResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantWebhookResponse, + }, + createAssistantWebhook: { + path: '/assistant_api.AssistantService/CreateAssistantWebhook', + requestStream: false, + responseStream: false, + requestType: assistant$webhook_pb.CreateAssistantWebhookRequest, + responseType: assistant$webhook_pb.GetAssistantWebhookResponse, + requestSerialize: serialize_assistant_api_CreateAssistantWebhookRequest, + requestDeserialize: deserialize_assistant_api_CreateAssistantWebhookRequest, + responseSerialize: serialize_assistant_api_GetAssistantWebhookResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantWebhookResponse, + }, + updateAssistantWebhook: { + path: '/assistant_api.AssistantService/UpdateAssistantWebhook', + requestStream: false, + responseStream: false, + requestType: assistant$webhook_pb.UpdateAssistantWebhookRequest, + responseType: assistant$webhook_pb.GetAssistantWebhookResponse, + requestSerialize: serialize_assistant_api_UpdateAssistantWebhookRequest, + requestDeserialize: deserialize_assistant_api_UpdateAssistantWebhookRequest, + responseSerialize: serialize_assistant_api_GetAssistantWebhookResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantWebhookResponse, + }, + deleteAssistantWebhook: { + path: '/assistant_api.AssistantService/DeleteAssistantWebhook', + requestStream: false, + responseStream: false, + requestType: assistant$webhook_pb.DeleteAssistantWebhookRequest, + responseType: assistant$webhook_pb.GetAssistantWebhookResponse, + requestSerialize: serialize_assistant_api_DeleteAssistantWebhookRequest, + requestDeserialize: deserialize_assistant_api_DeleteAssistantWebhookRequest, + responseSerialize: serialize_assistant_api_GetAssistantWebhookResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantWebhookResponse, + }, + // analysis +getAssistantAnalysis: { + path: '/assistant_api.AssistantService/GetAssistantAnalysis', + requestStream: false, + responseStream: false, + requestType: assistant$analysis_pb.GetAssistantAnalysisRequest, + responseType: assistant$analysis_pb.GetAssistantAnalysisResponse, + requestSerialize: serialize_assistant_api_GetAssistantAnalysisRequest, + requestDeserialize: deserialize_assistant_api_GetAssistantAnalysisRequest, + responseSerialize: serialize_assistant_api_GetAssistantAnalysisResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantAnalysisResponse, + }, + updateAssistantAnalysis: { + path: '/assistant_api.AssistantService/UpdateAssistantAnalysis', + requestStream: false, + responseStream: false, + requestType: assistant$analysis_pb.UpdateAssistantAnalysisRequest, + responseType: assistant$analysis_pb.GetAssistantAnalysisResponse, + requestSerialize: serialize_assistant_api_UpdateAssistantAnalysisRequest, + requestDeserialize: deserialize_assistant_api_UpdateAssistantAnalysisRequest, + responseSerialize: serialize_assistant_api_GetAssistantAnalysisResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantAnalysisResponse, + }, + createAssistantAnalysis: { + path: '/assistant_api.AssistantService/CreateAssistantAnalysis', + requestStream: false, + responseStream: false, + requestType: assistant$analysis_pb.CreateAssistantAnalysisRequest, + responseType: assistant$analysis_pb.GetAssistantAnalysisResponse, + requestSerialize: serialize_assistant_api_CreateAssistantAnalysisRequest, + requestDeserialize: deserialize_assistant_api_CreateAssistantAnalysisRequest, + responseSerialize: serialize_assistant_api_GetAssistantAnalysisResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantAnalysisResponse, + }, + deleteAssistantAnalysis: { + path: '/assistant_api.AssistantService/DeleteAssistantAnalysis', + requestStream: false, + responseStream: false, + requestType: assistant$analysis_pb.DeleteAssistantAnalysisRequest, + responseType: assistant$analysis_pb.GetAssistantAnalysisResponse, + requestSerialize: serialize_assistant_api_DeleteAssistantAnalysisRequest, + requestDeserialize: deserialize_assistant_api_DeleteAssistantAnalysisRequest, + responseSerialize: serialize_assistant_api_GetAssistantAnalysisResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantAnalysisResponse, + }, + getAllAssistantAnalysis: { + path: '/assistant_api.AssistantService/GetAllAssistantAnalysis', + requestStream: false, + responseStream: false, + requestType: assistant$analysis_pb.GetAllAssistantAnalysisRequest, + responseType: assistant$analysis_pb.GetAllAssistantAnalysisResponse, + requestSerialize: serialize_assistant_api_GetAllAssistantAnalysisRequest, + requestDeserialize: deserialize_assistant_api_GetAllAssistantAnalysisRequest, + responseSerialize: serialize_assistant_api_GetAllAssistantAnalysisResponse, + responseDeserialize: deserialize_assistant_api_GetAllAssistantAnalysisResponse, + }, + // assistant tool +createAssistantTool: { + path: '/assistant_api.AssistantService/CreateAssistantTool', + requestStream: false, + responseStream: false, + requestType: assistant$tool_pb.CreateAssistantToolRequest, + responseType: assistant$tool_pb.GetAssistantToolResponse, + requestSerialize: serialize_assistant_api_CreateAssistantToolRequest, + requestDeserialize: deserialize_assistant_api_CreateAssistantToolRequest, + responseSerialize: serialize_assistant_api_GetAssistantToolResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantToolResponse, + }, + getAssistantTool: { + path: '/assistant_api.AssistantService/GetAssistantTool', + requestStream: false, + responseStream: false, + requestType: assistant$tool_pb.GetAssistantToolRequest, + responseType: assistant$tool_pb.GetAssistantToolResponse, + requestSerialize: serialize_assistant_api_GetAssistantToolRequest, + requestDeserialize: deserialize_assistant_api_GetAssistantToolRequest, + responseSerialize: serialize_assistant_api_GetAssistantToolResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantToolResponse, }, getAllAssistantTool: { path: '/assistant_api.AssistantService/GetAllAssistantTool', requestStream: false, responseStream: false, - requestType: assistant$api_pb.GetAllAssistantToolRequest, - responseType: assistant$api_pb.GetAllAssistantToolResponse, + requestType: assistant$tool_pb.GetAllAssistantToolRequest, + responseType: assistant$tool_pb.GetAllAssistantToolResponse, requestSerialize: serialize_assistant_api_GetAllAssistantToolRequest, requestDeserialize: deserialize_assistant_api_GetAllAssistantToolRequest, responseSerialize: serialize_assistant_api_GetAllAssistantToolResponse, responseDeserialize: deserialize_assistant_api_GetAllAssistantToolResponse, }, -}; - -exports.AssistantServiceClient = grpc.makeGenericClientConstructor(AssistantServiceService, 'AssistantService'); -var ToolServiceService = exports.ToolServiceService = { - getAllTool: { - path: '/assistant_api.ToolService/GetAllTool', + deleteAssistantTool: { + path: '/assistant_api.AssistantService/DeleteAssistantTool', + requestStream: false, + responseStream: false, + requestType: assistant$tool_pb.DeleteAssistantToolRequest, + responseType: assistant$tool_pb.GetAssistantToolResponse, + requestSerialize: serialize_assistant_api_DeleteAssistantToolRequest, + requestDeserialize: deserialize_assistant_api_DeleteAssistantToolRequest, + responseSerialize: serialize_assistant_api_GetAssistantToolResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantToolResponse, + }, + updateAssistantTool: { + path: '/assistant_api.AssistantService/UpdateAssistantTool', + requestStream: false, + responseStream: false, + requestType: assistant$tool_pb.UpdateAssistantToolRequest, + responseType: assistant$tool_pb.GetAssistantToolResponse, + requestSerialize: serialize_assistant_api_UpdateAssistantToolRequest, + requestDeserialize: deserialize_assistant_api_UpdateAssistantToolRequest, + responseSerialize: serialize_assistant_api_GetAssistantToolResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantToolResponse, + }, + // // next gen +createAssistantKnowledge: { + path: '/assistant_api.AssistantService/CreateAssistantKnowledge', + requestStream: false, + responseStream: false, + requestType: assistant$knowledge_pb.CreateAssistantKnowledgeRequest, + responseType: assistant$knowledge_pb.GetAssistantKnowledgeResponse, + requestSerialize: serialize_assistant_api_CreateAssistantKnowledgeRequest, + requestDeserialize: deserialize_assistant_api_CreateAssistantKnowledgeRequest, + responseSerialize: serialize_assistant_api_GetAssistantKnowledgeResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantKnowledgeResponse, + }, + getAssistantKnowledge: { + path: '/assistant_api.AssistantService/GetAssistantKnowledge', + requestStream: false, + responseStream: false, + requestType: assistant$knowledge_pb.GetAssistantKnowledgeRequest, + responseType: assistant$knowledge_pb.GetAssistantKnowledgeResponse, + requestSerialize: serialize_assistant_api_GetAssistantKnowledgeRequest, + requestDeserialize: deserialize_assistant_api_GetAssistantKnowledgeRequest, + responseSerialize: serialize_assistant_api_GetAssistantKnowledgeResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantKnowledgeResponse, + }, + getAllAssistantKnowledge: { + path: '/assistant_api.AssistantService/GetAllAssistantKnowledge', requestStream: false, responseStream: false, - requestType: assistant$api_pb.GetAllToolRequest, - responseType: assistant$api_pb.GetAllToolResponse, - requestSerialize: serialize_assistant_api_GetAllToolRequest, - requestDeserialize: deserialize_assistant_api_GetAllToolRequest, - responseSerialize: serialize_assistant_api_GetAllToolResponse, - responseDeserialize: deserialize_assistant_api_GetAllToolResponse, + requestType: assistant$knowledge_pb.GetAllAssistantKnowledgeRequest, + responseType: assistant$knowledge_pb.GetAllAssistantKnowledgeResponse, + requestSerialize: serialize_assistant_api_GetAllAssistantKnowledgeRequest, + requestDeserialize: deserialize_assistant_api_GetAllAssistantKnowledgeRequest, + responseSerialize: serialize_assistant_api_GetAllAssistantKnowledgeResponse, + responseDeserialize: deserialize_assistant_api_GetAllAssistantKnowledgeResponse, }, - getTool: { - path: '/assistant_api.ToolService/GetTool', + deleteAssistantKnowledge: { + path: '/assistant_api.AssistantService/DeleteAssistantKnowledge', requestStream: false, responseStream: false, - requestType: assistant$api_pb.GetToolRequest, - responseType: assistant$api_pb.GetToolResponse, - requestSerialize: serialize_assistant_api_GetToolRequest, - requestDeserialize: deserialize_assistant_api_GetToolRequest, - responseSerialize: serialize_assistant_api_GetToolResponse, - responseDeserialize: deserialize_assistant_api_GetToolResponse, + requestType: assistant$knowledge_pb.DeleteAssistantKnowledgeRequest, + responseType: assistant$knowledge_pb.GetAssistantKnowledgeResponse, + requestSerialize: serialize_assistant_api_DeleteAssistantKnowledgeRequest, + requestDeserialize: deserialize_assistant_api_DeleteAssistantKnowledgeRequest, + responseSerialize: serialize_assistant_api_GetAssistantKnowledgeResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantKnowledgeResponse, + }, + updateAssistantKnowledge: { + path: '/assistant_api.AssistantService/UpdateAssistantKnowledge', + requestStream: false, + responseStream: false, + requestType: assistant$knowledge_pb.UpdateAssistantKnowledgeRequest, + responseType: assistant$knowledge_pb.GetAssistantKnowledgeResponse, + requestSerialize: serialize_assistant_api_UpdateAssistantKnowledgeRequest, + requestDeserialize: deserialize_assistant_api_UpdateAssistantKnowledgeRequest, + responseSerialize: serialize_assistant_api_GetAssistantKnowledgeResponse, + responseDeserialize: deserialize_assistant_api_GetAssistantKnowledgeResponse, }, }; -exports.ToolServiceClient = grpc.makeGenericClientConstructor(ToolServiceService, 'ToolService'); +exports.AssistantServiceClient = grpc.makeGenericClientConstructor(AssistantServiceService, 'AssistantService'); diff --git a/src/clients/protos/assistant-api_pb.d.ts b/src/clients/protos/assistant-api_pb.d.ts index a9b6375..6335fed 100644 --- a/src/clients/protos/assistant-api_pb.d.ts +++ b/src/clients/protos/assistant-api_pb.d.ts @@ -5,79 +5,10 @@ import * as jspb from "google-protobuf"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as common_pb from "./common_pb"; import * as assistant_deployment_pb from "./assistant-deployment_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; - -export class AssistantTool extends jspb.Message { - getId(): string; - setId(value: string): void; - - getAssistantid(): string; - setAssistantid(value: string): void; - - getToolid(): string; - setToolid(value: string): void; - - getName(): string; - setName(value: string): void; - - getProjectid(): string; - setProjectid(value: string): void; - - getOrganizationid(): string; - setOrganizationid(value: string): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): google_protobuf_struct_pb.Struct | undefined; - setOptions(value?: google_protobuf_struct_pb.Struct): void; - - hasTool(): boolean; - clearTool(): void; - getTool(): Tool | undefined; - setTool(value?: Tool): void; - - getCode(): string; - setCode(value: string): void; - - getStatus(): string; - setStatus(value: string): void; - - hasCreateddate(): boolean; - clearCreateddate(): void; - getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdateddate(): boolean; - clearUpdateddate(): void; - getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssistantTool.AsObject; - static toObject(includeInstance: boolean, msg: AssistantTool): AssistantTool.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssistantTool, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssistantTool; - static deserializeBinaryFromReader(message: AssistantTool, reader: jspb.BinaryReader): AssistantTool; -} - -export namespace AssistantTool { - export type AsObject = { - id: string, - assistantid: string, - toolid: string, - name: string, - projectid: string, - organizationid: string, - options?: google_protobuf_struct_pb.Struct.AsObject, - tool?: Tool.AsObject, - code: string, - status: string, - createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} +import * as assistant_tool_pb from "./assistant-tool_pb"; +import * as assistant_analysis_pb from "./assistant-analysis_pb"; +import * as assistant_webhook_pb from "./assistant-webhook_pb"; +import * as assistant_knowledge_pb from "./assistant-knowledge_pb"; export class Assistant extends jspb.Message { getId(): string; @@ -96,9 +27,9 @@ export class Assistant extends jspb.Message { setSourceidentifier(value: string): void; clearAssistanttoolsList(): void; - getAssistanttoolsList(): Array; - setAssistanttoolsList(value: Array): void; - addAssistanttools(value?: AssistantTool, index?: number): AssistantTool; + getAssistanttoolsList(): Array; + setAssistanttoolsList(value: Array): void; + addAssistanttools(value?: assistant_tool_pb.AssistantTool, index?: number): assistant_tool_pb.AssistantTool; getProjectid(): string; setProjectid(value: string): void; @@ -133,11 +64,6 @@ export class Assistant extends jspb.Message { getOrganization(): common_pb.Organization | undefined; setOrganization(value?: common_pb.Organization): void; - clearAssistantknowledgeconfigurationsList(): void; - getAssistantknowledgeconfigurationsList(): Array; - setAssistantknowledgeconfigurationsList(value: Array): void; - addAssistantknowledgeconfigurations(value?: AssistantKnowledgeConfiguration, index?: number): AssistantKnowledgeConfiguration; - getCreatedby(): string; setCreatedby(value: string): void; @@ -164,16 +90,6 @@ export class Assistant extends jspb.Message { getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasAppappearance(): boolean; - clearAppappearance(): void; - getAppappearance(): google_protobuf_struct_pb.Struct | undefined; - setAppappearance(value?: google_protobuf_struct_pb.Struct): void; - - hasWebappearance(): boolean; - clearWebappearance(): void; - getWebappearance(): google_protobuf_struct_pb.Struct | undefined; - setWebappearance(value?: google_protobuf_struct_pb.Struct): void; - hasDebuggerdeployment(): boolean; clearDebuggerdeployment(): void; getDebuggerdeployment(): assistant_deployment_pb.AssistantDebuggerDeployment | undefined; @@ -204,6 +120,11 @@ export class Assistant extends jspb.Message { setAssistantconversationsList(value: Array): void; addAssistantconversations(value?: common_pb.AssistantConversation, index?: number): common_pb.AssistantConversation; + clearAssistantwebhooksList(): void; + getAssistantwebhooksList(): Array; + setAssistantwebhooksList(value: Array): void; + addAssistantwebhooks(value?: assistant_webhook_pb.AssistantWebhook, index?: number): assistant_webhook_pb.AssistantWebhook; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Assistant.AsObject; static toObject(includeInstance: boolean, msg: Assistant): Assistant.AsObject; @@ -221,7 +142,7 @@ export namespace Assistant { visibility: string, source: string, sourceidentifier: string, - assistanttoolsList: Array, + assistanttoolsList: Array, projectid: string, organizationid: string, assistantprovidermodelid: string, @@ -231,21 +152,19 @@ export namespace Assistant { assistanttag?: common_pb.Tag.AsObject, language: string, organization?: common_pb.Organization.AsObject, - assistantknowledgeconfigurationsList: Array, createdby: string, createduser?: common_pb.User.AsObject, updatedby: string, updateduser?: common_pb.User.AsObject, createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - appappearance?: google_protobuf_struct_pb.Struct.AsObject, - webappearance?: google_protobuf_struct_pb.Struct.AsObject, debuggerdeployment?: assistant_deployment_pb.AssistantDebuggerDeployment.AsObject, phonedeployment?: assistant_deployment_pb.AssistantPhoneDeployment.AsObject, whatsappdeployment?: assistant_deployment_pb.AssistantWhatsappDeployment.AsObject, webplugindeployment?: assistant_deployment_pb.AssistantWebpluginDeployment.AsObject, apideployment?: assistant_deployment_pb.AssistantApiDeployment.AsObject, assistantconversationsList: Array, + assistantwebhooksList: Array, } } @@ -255,30 +174,22 @@ export class AssistantProviderModel extends jspb.Message { hasTemplate(): boolean; clearTemplate(): void; - getTemplate(): common_pb.AgentPromptTemplate | undefined; - setTemplate(value?: common_pb.AgentPromptTemplate): void; + getTemplate(): common_pb.TextChatCompletePrompt | undefined; + setTemplate(value?: common_pb.TextChatCompletePrompt): void; getDescription(): string; setDescription(value: string): void; - getProviderid(): string; - setProviderid(value: string): void; - - getModelmodetype(): string; - setModelmodetype(value: string): void; - - getProvidermodelid(): string; - setProvidermodelid(value: string): void; + getModelproviderid(): string; + setModelproviderid(value: string): void; - hasProvidermodel(): boolean; - clearProvidermodel(): void; - getProvidermodel(): common_pb.ProviderModel | undefined; - setProvidermodel(value?: common_pb.ProviderModel): void; + getModelprovidername(): string; + setModelprovidername(value: string): void; - clearAssistantprovidermodelparametersList(): void; - getAssistantprovidermodelparametersList(): Array; - setAssistantprovidermodelparametersList(value: Array): void; - addAssistantprovidermodelparameters(value?: common_pb.ProviderModelParameter, index?: number): common_pb.ProviderModelParameter; + clearAssistantmodeloptionsList(): void; + getAssistantmodeloptionsList(): Array; + setAssistantmodeloptionsList(value: Array): void; + addAssistantmodeloptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; getStatus(): string; setStatus(value: string): void; @@ -322,13 +233,11 @@ export class AssistantProviderModel extends jspb.Message { export namespace AssistantProviderModel { export type AsObject = { id: string, - template?: common_pb.AgentPromptTemplate.AsObject, + template?: common_pb.TextChatCompletePrompt.AsObject, description: string, - providerid: string, - modelmodetype: string, - providermodelid: string, - providermodel?: common_pb.ProviderModel.AsObject, - assistantprovidermodelparametersList: Array, + modelproviderid: string, + modelprovidername: string, + assistantmodeloptionsList: Array, status: string, createdby: string, createduser?: common_pb.User.AsObject, @@ -339,121 +248,21 @@ export namespace AssistantProviderModel { } } -export class AssistantKnowledgeConfiguration extends jspb.Message { - getId(): string; - setId(value: string): void; - - getKnowledgeid(): string; - setKnowledgeid(value: string): void; - - getRerankerenable(): boolean; - setRerankerenable(value: boolean): void; - - getRerankerprovidermodelid(): string; - setRerankerprovidermodelid(value: string): void; - - hasRerankerprovidermodel(): boolean; - clearRerankerprovidermodel(): void; - getRerankerprovidermodel(): common_pb.ProviderModel | undefined; - setRerankerprovidermodel(value?: common_pb.ProviderModel): void; - - getTopk(): number; - setTopk(value: number): void; - - getScorethreshold(): number; - setScorethreshold(value: number): void; - - hasKnowledge(): boolean; - clearKnowledge(): void; - getKnowledge(): common_pb.Knowledge | undefined; - setKnowledge(value?: common_pb.Knowledge): void; - - getRetrievalmethod(): string; - setRetrievalmethod(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssistantKnowledgeConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: AssistantKnowledgeConfiguration): AssistantKnowledgeConfiguration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssistantKnowledgeConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssistantKnowledgeConfiguration; - static deserializeBinaryFromReader(message: AssistantKnowledgeConfiguration, reader: jspb.BinaryReader): AssistantKnowledgeConfiguration; -} - -export namespace AssistantKnowledgeConfiguration { - export type AsObject = { - id: string, - knowledgeid: string, - rerankerenable: boolean, - rerankerprovidermodelid: string, - rerankerprovidermodel?: common_pb.ProviderModel.AsObject, - topk: number, - scorethreshold: number, - knowledge?: common_pb.Knowledge.AsObject, - retrievalmethod: string, - } -} - -export class AssistantProviderModelAttribute extends jspb.Message { - getDescription(): string; - setDescription(value: string): void; - - hasTemplate(): boolean; - clearTemplate(): void; - getTemplate(): common_pb.AgentPromptTemplate | undefined; - setTemplate(value?: common_pb.AgentPromptTemplate): void; - - getProviderid(): string; - setProviderid(value: string): void; - - getProvidermodelid(): string; - setProvidermodelid(value: string): void; - - hasProvidermodel(): boolean; - clearProvidermodel(): void; - getProvidermodel(): common_pb.ProviderModel | undefined; - setProvidermodel(value?: common_pb.ProviderModel): void; - - clearAssistantprovidermodelparametersList(): void; - getAssistantprovidermodelparametersList(): Array; - setAssistantprovidermodelparametersList(value: Array): void; - addAssistantprovidermodelparameters(value?: common_pb.ProviderModelParameter, index?: number): common_pb.ProviderModelParameter; - - getModelmodetype(): string; - setModelmodetype(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssistantProviderModelAttribute.AsObject; - static toObject(includeInstance: boolean, msg: AssistantProviderModelAttribute): AssistantProviderModelAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssistantProviderModelAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssistantProviderModelAttribute; - static deserializeBinaryFromReader(message: AssistantProviderModelAttribute, reader: jspb.BinaryReader): AssistantProviderModelAttribute; -} - -export namespace AssistantProviderModelAttribute { - export type AsObject = { - description: string, - template?: common_pb.AgentPromptTemplate.AsObject, - providerid: string, - providermodelid: string, - providermodel?: common_pb.ProviderModel.AsObject, - assistantprovidermodelparametersList: Array, - modelmodetype: string, - } -} - -export class AssistantAttribute extends jspb.Message { - getSource(): string; - setSource(value: string): void; +export class CreateAssistantRequest extends jspb.Message { + hasAssistantprovidermodel(): boolean; + clearAssistantprovidermodel(): void; + getAssistantprovidermodel(): CreateAssistantProviderModelRequest | undefined; + setAssistantprovidermodel(value?: CreateAssistantProviderModelRequest): void; - getSourceidentifier(): string; - setSourceidentifier(value: string): void; + clearAssistantknowledgesList(): void; + getAssistantknowledgesList(): Array; + setAssistantknowledgesList(value: Array): void; + addAssistantknowledges(value?: assistant_knowledge_pb.CreateAssistantKnowledgeRequest, index?: number): assistant_knowledge_pb.CreateAssistantKnowledgeRequest; - getName(): string; - setName(value: string): void; + clearAssistanttoolsList(): void; + getAssistanttoolsList(): Array; + setAssistanttoolsList(value: Array): void; + addAssistanttools(value?: assistant_tool_pb.CreateAssistantToolRequest, index?: number): assistant_tool_pb.CreateAssistantToolRequest; getDescription(): string; setDescription(value: string): void; @@ -464,130 +273,19 @@ export class AssistantAttribute extends jspb.Message { getLanguage(): string; setLanguage(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssistantAttribute.AsObject; - static toObject(includeInstance: boolean, msg: AssistantAttribute): AssistantAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssistantAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssistantAttribute; - static deserializeBinaryFromReader(message: AssistantAttribute, reader: jspb.BinaryReader): AssistantAttribute; -} - -export namespace AssistantAttribute { - export type AsObject = { - source: string, - sourceidentifier: string, - name: string, - description: string, - visibility: string, - language: string, - } -} - -export class AssistantKnowledgeConfigurationAttribute extends jspb.Message { - getKnowledgeid(): string; - setKnowledgeid(value: string): void; - - getRerankerenable(): boolean; - setRerankerenable(value: boolean): void; - - getRerankerprovidermodelid(): string; - setRerankerprovidermodelid(value: string): void; - - getTopk(): number; - setTopk(value: number): void; - - getScorethreshold(): number; - setScorethreshold(value: number): void; - - getRetrievalmethod(): string; - setRetrievalmethod(value: string): void; - - getActive(): boolean; - setActive(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssistantKnowledgeConfigurationAttribute.AsObject; - static toObject(includeInstance: boolean, msg: AssistantKnowledgeConfigurationAttribute): AssistantKnowledgeConfigurationAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssistantKnowledgeConfigurationAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssistantKnowledgeConfigurationAttribute; - static deserializeBinaryFromReader(message: AssistantKnowledgeConfigurationAttribute, reader: jspb.BinaryReader): AssistantKnowledgeConfigurationAttribute; -} - -export namespace AssistantKnowledgeConfigurationAttribute { - export type AsObject = { - knowledgeid: string, - rerankerenable: boolean, - rerankerprovidermodelid: string, - topk: number, - scorethreshold: number, - retrievalmethod: string, - active: boolean, - } -} - -export class AssistantToolConfigurationAttribute extends jspb.Message { - getToolid(): string; - setToolid(value: string): void; - - getCode(): string; - setCode(value: string): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): google_protobuf_struct_pb.Struct | undefined; - setOptions(value?: google_protobuf_struct_pb.Struct): void; - - getStatus(): string; - setStatus(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AssistantToolConfigurationAttribute.AsObject; - static toObject(includeInstance: boolean, msg: AssistantToolConfigurationAttribute): AssistantToolConfigurationAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AssistantToolConfigurationAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AssistantToolConfigurationAttribute; - static deserializeBinaryFromReader(message: AssistantToolConfigurationAttribute, reader: jspb.BinaryReader): AssistantToolConfigurationAttribute; -} - -export namespace AssistantToolConfigurationAttribute { - export type AsObject = { - toolid: string, - code: string, - options?: google_protobuf_struct_pb.Struct.AsObject, - status: string, - } -} - -export class CreateAssistantRequest extends jspb.Message { - hasAssistantprovidermodelattribute(): boolean; - clearAssistantprovidermodelattribute(): void; - getAssistantprovidermodelattribute(): AssistantProviderModelAttribute | undefined; - setAssistantprovidermodelattribute(value?: AssistantProviderModelAttribute): void; + getSource(): string; + setSource(value: string): void; - hasAssistantattribute(): boolean; - clearAssistantattribute(): void; - getAssistantattribute(): AssistantAttribute | undefined; - setAssistantattribute(value?: AssistantAttribute): void; + getSourceidentifier(): string; + setSourceidentifier(value: string): void; clearTagsList(): void; getTagsList(): Array; setTagsList(value: Array): void; addTags(value: string, index?: number): string; - clearAssistantknowledgeconfigurationattributesList(): void; - getAssistantknowledgeconfigurationattributesList(): Array; - setAssistantknowledgeconfigurationattributesList(value: Array): void; - addAssistantknowledgeconfigurationattributes(value?: AssistantKnowledgeConfigurationAttribute, index?: number): AssistantKnowledgeConfigurationAttribute; - - clearAssistanttoolconfigurationattributeList(): void; - getAssistanttoolconfigurationattributeList(): Array; - setAssistanttoolconfigurationattributeList(value: Array): void; - addAssistanttoolconfigurationattribute(value?: AssistantToolConfigurationAttribute, index?: number): AssistantToolConfigurationAttribute; + getName(): string; + setName(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreateAssistantRequest.AsObject; @@ -601,11 +299,16 @@ export class CreateAssistantRequest extends jspb.Message { export namespace CreateAssistantRequest { export type AsObject = { - assistantprovidermodelattribute?: AssistantProviderModelAttribute.AsObject, - assistantattribute?: AssistantAttribute.AsObject, + assistantprovidermodel?: CreateAssistantProviderModelRequest.AsObject, + assistantknowledgesList: Array, + assistanttoolsList: Array, + description: string, + visibility: string, + language: string, + source: string, + sourceidentifier: string, tagsList: Array, - assistantknowledgeconfigurationattributesList: Array, - assistanttoolconfigurationattributeList: Array, + name: string, } } @@ -613,10 +316,24 @@ export class CreateAssistantProviderModelRequest extends jspb.Message { getAssistantid(): string; setAssistantid(value: string): void; - hasAssistantprovidermodelattribute(): boolean; - clearAssistantprovidermodelattribute(): void; - getAssistantprovidermodelattribute(): AssistantProviderModelAttribute | undefined; - setAssistantprovidermodelattribute(value?: AssistantProviderModelAttribute): void; + getDescription(): string; + setDescription(value: string): void; + + hasTemplate(): boolean; + clearTemplate(): void; + getTemplate(): common_pb.TextChatCompletePrompt | undefined; + setTemplate(value?: common_pb.TextChatCompletePrompt): void; + + getModelproviderid(): string; + setModelproviderid(value: string): void; + + getModelprovidername(): string; + setModelprovidername(value: string): void; + + clearAssistantmodeloptionsList(): void; + getAssistantmodeloptionsList(): Array; + setAssistantmodeloptionsList(value: Array): void; + addAssistantmodeloptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreateAssistantProviderModelRequest.AsObject; @@ -631,11 +348,15 @@ export class CreateAssistantProviderModelRequest extends jspb.Message { export namespace CreateAssistantProviderModelRequest { export type AsObject = { assistantid: string, - assistantprovidermodelattribute?: AssistantProviderModelAttribute.AsObject, + description: string, + template?: common_pb.TextChatCompletePrompt.AsObject, + modelproviderid: string, + modelprovidername: string, + assistantmodeloptionsList: Array, } } -export class CreateAssistantProviderModelResponse extends jspb.Message { +export class GetAssistantProviderModelResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -653,16 +374,16 @@ export class CreateAssistantProviderModelResponse extends jspb.Message { setError(value?: common_pb.Error): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAssistantProviderModelResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateAssistantProviderModelResponse): CreateAssistantProviderModelResponse.AsObject; + toObject(includeInstance?: boolean): GetAssistantProviderModelResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantProviderModelResponse): GetAssistantProviderModelResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAssistantProviderModelResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAssistantProviderModelResponse; - static deserializeBinaryFromReader(message: CreateAssistantProviderModelResponse, reader: jspb.BinaryReader): CreateAssistantProviderModelResponse; + static serializeBinaryToWriter(message: GetAssistantProviderModelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantProviderModelResponse; + static deserializeBinaryFromReader(message: GetAssistantProviderModelResponse, reader: jspb.BinaryReader): GetAssistantProviderModelResponse; } -export namespace CreateAssistantProviderModelResponse { +export namespace GetAssistantProviderModelResponse { export type AsObject = { code: number, success: boolean, @@ -671,94 +392,6 @@ export namespace CreateAssistantProviderModelResponse { } } -export class CreateAssistantResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): Assistant | undefined; - setData(value?: Assistant): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAssistantResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateAssistantResponse): CreateAssistantResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAssistantResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAssistantResponse; - static deserializeBinaryFromReader(message: CreateAssistantResponse, reader: jspb.BinaryReader): CreateAssistantResponse; -} - -export namespace CreateAssistantResponse { - export type AsObject = { - code: number, - success: boolean, - data?: Assistant.AsObject, - error?: common_pb.Error.AsObject, - } -} - -export class CreateAssistantKnowledgeConfigurationRequest extends jspb.Message { - getAssistantid(): string; - setAssistantid(value: string): void; - - clearAssistantknowledgeconfigurationattributesList(): void; - getAssistantknowledgeconfigurationattributesList(): Array; - setAssistantknowledgeconfigurationattributesList(value: Array): void; - addAssistantknowledgeconfigurationattributes(value?: AssistantKnowledgeConfigurationAttribute, index?: number): AssistantKnowledgeConfigurationAttribute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAssistantKnowledgeConfigurationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAssistantKnowledgeConfigurationRequest): CreateAssistantKnowledgeConfigurationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAssistantKnowledgeConfigurationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAssistantKnowledgeConfigurationRequest; - static deserializeBinaryFromReader(message: CreateAssistantKnowledgeConfigurationRequest, reader: jspb.BinaryReader): CreateAssistantKnowledgeConfigurationRequest; -} - -export namespace CreateAssistantKnowledgeConfigurationRequest { - export type AsObject = { - assistantid: string, - assistantknowledgeconfigurationattributesList: Array, - } -} - -export class CreateAssistantToolConfigurationRequest extends jspb.Message { - getAssistantid(): string; - setAssistantid(value: string): void; - - clearAssistanttoolconfigurationattributeList(): void; - getAssistanttoolconfigurationattributeList(): Array; - setAssistanttoolconfigurationattributeList(value: Array): void; - addAssistanttoolconfigurationattribute(value?: AssistantToolConfigurationAttribute, index?: number): AssistantToolConfigurationAttribute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAssistantToolConfigurationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAssistantToolConfigurationRequest): CreateAssistantToolConfigurationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAssistantToolConfigurationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAssistantToolConfigurationRequest; - static deserializeBinaryFromReader(message: CreateAssistantToolConfigurationRequest, reader: jspb.BinaryReader): CreateAssistantToolConfigurationRequest; -} - -export namespace CreateAssistantToolConfigurationRequest { - export type AsObject = { - assistantid: string, - assistanttoolconfigurationattributeList: Array, - } -} - export class CreateAssistantTagRequest extends jspb.Message { getAssistantid(): string; setAssistantid(value: string): void; @@ -811,6 +444,26 @@ export namespace GetAssistantRequest { } } +export class DeleteAssistantRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAssistantRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAssistantRequest): DeleteAssistantRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAssistantRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAssistantRequest; + static deserializeBinaryFromReader(message: DeleteAssistantRequest, reader: jspb.BinaryReader): DeleteAssistantRequest; +} + +export namespace DeleteAssistantRequest { + export type AsObject = { + id: string, + } +} + export class GetAssistantResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -1010,6 +663,11 @@ export class GetAllAssistantMessageRequest extends jspb.Message { getOrder(): common_pb.Ordering | undefined; setOrder(value?: common_pb.Ordering): void; + clearSelectorsList(): void; + getSelectorsList(): Array; + setSelectorsList(value: Array): void; + addSelectors(value?: common_pb.FieldSelector, index?: number): common_pb.FieldSelector; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetAllAssistantMessageRequest.AsObject; static toObject(includeInstance: boolean, msg: GetAllAssistantMessageRequest): GetAllAssistantMessageRequest.AsObject; @@ -1026,6 +684,7 @@ export namespace GetAllAssistantMessageRequest { criteriasList: Array, assistantid: string, order?: common_pb.Ordering.AsObject, + selectorsList: Array, } } @@ -1071,63 +730,109 @@ export namespace GetAllAssistantMessageResponse { } } -export class UpdateAssistantVersionRequest extends jspb.Message { - getAssistantid(): string; - setAssistantid(value: string): void; +export class GetAllMessageRequest extends jspb.Message { + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; - getAssistantprovidermodelid(): string; - setAssistantprovidermodelid(value: string): void; + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + hasOrder(): boolean; + clearOrder(): void; + getOrder(): common_pb.Ordering | undefined; + setOrder(value?: common_pb.Ordering): void; + + clearSelectorsList(): void; + getSelectorsList(): Array; + setSelectorsList(value: Array): void; + addSelectors(value?: common_pb.FieldSelector, index?: number): common_pb.FieldSelector; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateAssistantVersionRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateAssistantVersionRequest): UpdateAssistantVersionRequest.AsObject; + toObject(includeInstance?: boolean): GetAllMessageRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllMessageRequest): GetAllMessageRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateAssistantVersionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateAssistantVersionRequest; - static deserializeBinaryFromReader(message: UpdateAssistantVersionRequest, reader: jspb.BinaryReader): UpdateAssistantVersionRequest; + static serializeBinaryToWriter(message: GetAllMessageRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllMessageRequest; + static deserializeBinaryFromReader(message: GetAllMessageRequest, reader: jspb.BinaryReader): GetAllMessageRequest; } -export namespace UpdateAssistantVersionRequest { +export namespace GetAllMessageRequest { export type AsObject = { - assistantid: string, - assistantprovidermodelid: string, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + order?: common_pb.Ordering.AsObject, + selectorsList: Array, } } -export class UpdateAssistantVersionResponse extends jspb.Message { +export class GetAllMessageResponse extends jspb.Message { getCode(): number; setCode(value: number): void; getSuccess(): boolean; setSuccess(value: boolean): void; - hasData(): boolean; - clearData(): void; - getData(): Assistant | undefined; - setData(value?: Assistant): void; + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: common_pb.AssistantConversationMessage, index?: number): common_pb.AssistantConversationMessage; hasError(): boolean; clearError(): void; getError(): common_pb.Error | undefined; setError(value?: common_pb.Error): void; + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateAssistantVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: UpdateAssistantVersionResponse): UpdateAssistantVersionResponse.AsObject; + toObject(includeInstance?: boolean): GetAllMessageResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllMessageResponse): GetAllMessageResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateAssistantVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateAssistantVersionResponse; - static deserializeBinaryFromReader(message: UpdateAssistantVersionResponse, reader: jspb.BinaryReader): UpdateAssistantVersionResponse; + static serializeBinaryToWriter(message: GetAllMessageResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllMessageResponse; + static deserializeBinaryFromReader(message: GetAllMessageResponse, reader: jspb.BinaryReader): GetAllMessageResponse; } -export namespace UpdateAssistantVersionResponse { +export namespace GetAllMessageResponse { export type AsObject = { code: number, success: boolean, - data?: Assistant.AsObject, + dataList: Array, error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + +export class UpdateAssistantVersionRequest extends jspb.Message { + getAssistantid(): string; + setAssistantid(value: string): void; + + getAssistantprovidermodelid(): string; + setAssistantprovidermodelid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateAssistantVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateAssistantVersionRequest): UpdateAssistantVersionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateAssistantVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateAssistantVersionRequest; + static deserializeBinaryFromReader(message: UpdateAssistantVersionRequest, reader: jspb.BinaryReader): UpdateAssistantVersionRequest; +} + +export namespace UpdateAssistantVersionRequest { + export type AsObject = { + assistantid: string, + assistantprovidermodelid: string, } } @@ -1237,10 +942,13 @@ export namespace GetAllAssistantUserConversationResponse { } } -export class GetAllAssistantToolRequest extends jspb.Message { +export class GetAssistantConversationRequest extends jspb.Message { getAssistantid(): string; setAssistantid(value: string): void; + getConversationid(): string; + setConversationid(value: string): void; + hasPaginate(): boolean; clearPaginate(): void; getPaginate(): common_pb.Paginate | undefined; @@ -1251,139 +959,32 @@ export class GetAllAssistantToolRequest extends jspb.Message { setCriteriasList(value: Array): void; addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + clearSelectorsList(): void; + getSelectorsList(): Array; + setSelectorsList(value: Array): void; + addSelectors(value?: common_pb.FieldSelector, index?: number): common_pb.FieldSelector; + serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllAssistantToolRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllAssistantToolRequest): GetAllAssistantToolRequest.AsObject; + toObject(includeInstance?: boolean): GetAssistantConversationRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantConversationRequest): GetAssistantConversationRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllAssistantToolRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllAssistantToolRequest; - static deserializeBinaryFromReader(message: GetAllAssistantToolRequest, reader: jspb.BinaryReader): GetAllAssistantToolRequest; + static serializeBinaryToWriter(message: GetAssistantConversationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantConversationRequest; + static deserializeBinaryFromReader(message: GetAssistantConversationRequest, reader: jspb.BinaryReader): GetAssistantConversationRequest; } -export namespace GetAllAssistantToolRequest { +export namespace GetAssistantConversationRequest { export type AsObject = { assistantid: string, + conversationid: string, paginate?: common_pb.Paginate.AsObject, criteriasList: Array, + selectorsList: Array, } } -export class GetAllAssistantToolResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: AssistantTool, index?: number): AssistantTool; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - hasPaginated(): boolean; - clearPaginated(): void; - getPaginated(): common_pb.Paginated | undefined; - setPaginated(value?: common_pb.Paginated): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllAssistantToolResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllAssistantToolResponse): GetAllAssistantToolResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllAssistantToolResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllAssistantToolResponse; - static deserializeBinaryFromReader(message: GetAllAssistantToolResponse, reader: jspb.BinaryReader): GetAllAssistantToolResponse; -} - -export namespace GetAllAssistantToolResponse { - export type AsObject = { - code: number, - success: boolean, - dataList: Array, - error?: common_pb.Error.AsObject, - paginated?: common_pb.Paginated.AsObject, - } -} - -export class Tool extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCode(): string; - setCode(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - hasSetupoptions(): boolean; - clearSetupoptions(): void; - getSetupoptions(): google_protobuf_struct_pb.Struct | undefined; - setSetupoptions(value?: google_protobuf_struct_pb.Struct): void; - - hasIntializeoptions(): boolean; - clearIntializeoptions(): void; - getIntializeoptions(): google_protobuf_struct_pb.Struct | undefined; - setIntializeoptions(value?: google_protobuf_struct_pb.Struct): void; - - getIcon(): string; - setIcon(value: string): void; - - getVisibility(): string; - setVisibility(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Tool.AsObject; - static toObject(includeInstance: boolean, msg: Tool): Tool.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Tool, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Tool; - static deserializeBinaryFromReader(message: Tool, reader: jspb.BinaryReader): Tool; -} - -export namespace Tool { - export type AsObject = { - id: string, - code: string, - name: string, - description: string, - setupoptions?: google_protobuf_struct_pb.Struct.AsObject, - intializeoptions?: google_protobuf_struct_pb.Struct.AsObject, - icon: string, - visibility: string, - } -} - -export class GetToolRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetToolRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetToolRequest): GetToolRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetToolRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetToolRequest; - static deserializeBinaryFromReader(message: GetToolRequest, reader: jspb.BinaryReader): GetToolRequest; -} - -export namespace GetToolRequest { - export type AsObject = { - id: string, - } -} - -export class GetToolResponse extends jspb.Message { +export class GetAssistantConversationResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -1392,72 +993,8 @@ export class GetToolResponse extends jspb.Message { hasData(): boolean; clearData(): void; - getData(): Tool | undefined; - setData(value?: Tool): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetToolResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetToolResponse): GetToolResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetToolResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetToolResponse; - static deserializeBinaryFromReader(message: GetToolResponse, reader: jspb.BinaryReader): GetToolResponse; -} - -export namespace GetToolResponse { - export type AsObject = { - code: number, - success: boolean, - data?: Tool.AsObject, - error?: common_pb.Error.AsObject, - } -} - -export class GetAllToolRequest extends jspb.Message { - hasPaginate(): boolean; - clearPaginate(): void; - getPaginate(): common_pb.Paginate | undefined; - setPaginate(value?: common_pb.Paginate): void; - - clearCriteriasList(): void; - getCriteriasList(): Array; - setCriteriasList(value: Array): void; - addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllToolRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllToolRequest): GetAllToolRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllToolRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllToolRequest; - static deserializeBinaryFromReader(message: GetAllToolRequest, reader: jspb.BinaryReader): GetAllToolRequest; -} - -export namespace GetAllToolRequest { - export type AsObject = { - paginate?: common_pb.Paginate.AsObject, - criteriasList: Array, - } -} - -export class GetAllToolResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: Tool, index?: number): Tool; + getData(): common_pb.AssistantConversation | undefined; + setData(value?: common_pb.AssistantConversation): void; hasError(): boolean; clearError(): void; @@ -1470,20 +1007,20 @@ export class GetAllToolResponse extends jspb.Message { setPaginated(value?: common_pb.Paginated): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllToolResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllToolResponse): GetAllToolResponse.AsObject; + toObject(includeInstance?: boolean): GetAssistantConversationResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantConversationResponse): GetAssistantConversationResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllToolResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllToolResponse; - static deserializeBinaryFromReader(message: GetAllToolResponse, reader: jspb.BinaryReader): GetAllToolResponse; + static serializeBinaryToWriter(message: GetAssistantConversationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantConversationResponse; + static deserializeBinaryFromReader(message: GetAssistantConversationResponse, reader: jspb.BinaryReader): GetAssistantConversationResponse; } -export namespace GetAllToolResponse { +export namespace GetAssistantConversationResponse { export type AsObject = { code: number, success: boolean, - dataList: Array, + data?: common_pb.AssistantConversation.AsObject, error?: common_pb.Error.AsObject, paginated?: common_pb.Paginated.AsObject, } diff --git a/src/clients/protos/assistant-api_pb.js b/src/clients/protos/assistant-api_pb.js index c71ac13..e69a5b9 100644 --- a/src/clients/protos/assistant-api_pb.js +++ b/src/clients/protos/assistant-api_pb.js @@ -27,64 +27,37 @@ var common_pb = require('./common_pb.js'); goog.object.extend(proto, common_pb); var assistant$deployment_pb = require('./assistant-deployment_pb.js'); goog.object.extend(proto, assistant$deployment_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); +var assistant$tool_pb = require('./assistant-tool_pb.js'); +goog.object.extend(proto, assistant$tool_pb); +var assistant$analysis_pb = require('./assistant-analysis_pb.js'); +goog.object.extend(proto, assistant$analysis_pb); +var assistant$webhook_pb = require('./assistant-webhook_pb.js'); +goog.object.extend(proto, assistant$webhook_pb); +var assistant$knowledge_pb = require('./assistant-knowledge_pb.js'); +goog.object.extend(proto, assistant$knowledge_pb); goog.exportSymbol('proto.assistant_api.Assistant', null, global); -goog.exportSymbol('proto.assistant_api.AssistantAttribute', null, global); -goog.exportSymbol('proto.assistant_api.AssistantKnowledgeConfiguration', null, global); -goog.exportSymbol('proto.assistant_api.AssistantKnowledgeConfigurationAttribute', null, global); goog.exportSymbol('proto.assistant_api.AssistantProviderModel', null, global); -goog.exportSymbol('proto.assistant_api.AssistantProviderModelAttribute', null, global); -goog.exportSymbol('proto.assistant_api.AssistantTool', null, global); -goog.exportSymbol('proto.assistant_api.AssistantToolConfigurationAttribute', null, global); -goog.exportSymbol('proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest', null, global); goog.exportSymbol('proto.assistant_api.CreateAssistantProviderModelRequest', null, global); -goog.exportSymbol('proto.assistant_api.CreateAssistantProviderModelResponse', null, global); goog.exportSymbol('proto.assistant_api.CreateAssistantRequest', null, global); -goog.exportSymbol('proto.assistant_api.CreateAssistantResponse', null, global); goog.exportSymbol('proto.assistant_api.CreateAssistantTagRequest', null, global); -goog.exportSymbol('proto.assistant_api.CreateAssistantToolConfigurationRequest', null, global); +goog.exportSymbol('proto.assistant_api.DeleteAssistantRequest', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantMessageRequest', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantMessageResponse', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantProviderModelRequest', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantProviderModelResponse', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantRequest', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantResponse', null, global); -goog.exportSymbol('proto.assistant_api.GetAllAssistantToolRequest', null, global); -goog.exportSymbol('proto.assistant_api.GetAllAssistantToolResponse', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantUserConversationRequest', null, global); goog.exportSymbol('proto.assistant_api.GetAllAssistantUserConversationResponse', null, global); -goog.exportSymbol('proto.assistant_api.GetAllToolRequest', null, global); -goog.exportSymbol('proto.assistant_api.GetAllToolResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAllMessageRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllMessageResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantConversationRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantConversationResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantProviderModelResponse', null, global); goog.exportSymbol('proto.assistant_api.GetAssistantRequest', null, global); goog.exportSymbol('proto.assistant_api.GetAssistantResponse', null, global); -goog.exportSymbol('proto.assistant_api.GetToolRequest', null, global); -goog.exportSymbol('proto.assistant_api.GetToolResponse', null, global); -goog.exportSymbol('proto.assistant_api.Tool', null, global); goog.exportSymbol('proto.assistant_api.UpdateAssistantDetailRequest', null, global); goog.exportSymbol('proto.assistant_api.UpdateAssistantVersionRequest', null, global); -goog.exportSymbol('proto.assistant_api.UpdateAssistantVersionResponse', 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.assistant_api.AssistantTool = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.AssistantTool, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.AssistantTool.displayName = 'proto.assistant_api.AssistantTool'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -127,111 +100,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.assistant_api.AssistantProviderModel.displayName = 'proto.assistant_api.AssistantProviderModel'; } -/** - * 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.assistant_api.AssistantKnowledgeConfiguration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.AssistantKnowledgeConfiguration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.AssistantKnowledgeConfiguration.displayName = 'proto.assistant_api.AssistantKnowledgeConfiguration'; -} -/** - * 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.assistant_api.AssistantProviderModelAttribute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.AssistantProviderModelAttribute.repeatedFields_, null); -}; -goog.inherits(proto.assistant_api.AssistantProviderModelAttribute, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.AssistantProviderModelAttribute.displayName = 'proto.assistant_api.AssistantProviderModelAttribute'; -} -/** - * 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.assistant_api.AssistantAttribute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.AssistantAttribute, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.AssistantAttribute.displayName = 'proto.assistant_api.AssistantAttribute'; -} -/** - * 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.assistant_api.AssistantKnowledgeConfigurationAttribute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.AssistantKnowledgeConfigurationAttribute, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.AssistantKnowledgeConfigurationAttribute.displayName = 'proto.assistant_api.AssistantKnowledgeConfigurationAttribute'; -} -/** - * 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.assistant_api.AssistantToolConfigurationAttribute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.AssistantToolConfigurationAttribute, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.AssistantToolConfigurationAttribute.displayName = 'proto.assistant_api.AssistantToolConfigurationAttribute'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -264,7 +132,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.assistant_api.CreateAssistantProviderModelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantProviderModelRequest.repeatedFields_, null); }; goog.inherits(proto.assistant_api.CreateAssistantProviderModelRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -284,58 +152,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.CreateAssistantProviderModelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.CreateAssistantProviderModelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.CreateAssistantProviderModelResponse.displayName = 'proto.assistant_api.CreateAssistantProviderModelResponse'; -} -/** - * 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.assistant_api.CreateAssistantResponse = function(opt_data) { +proto.assistant_api.GetAssistantProviderModelResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.assistant_api.CreateAssistantResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.CreateAssistantResponse.displayName = 'proto.assistant_api.CreateAssistantResponse'; -} -/** - * 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.assistant_api.CreateAssistantKnowledgeConfigurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.repeatedFields_, null); -}; -goog.inherits(proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest, jspb.Message); +goog.inherits(proto.assistant_api.GetAssistantProviderModelResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.displayName = 'proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest'; + proto.assistant_api.GetAssistantProviderModelResponse.displayName = 'proto.assistant_api.GetAssistantProviderModelResponse'; } /** * Generated by JsPbCodeGenerator. @@ -347,16 +173,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.CreateAssistantToolConfigurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantToolConfigurationRequest.repeatedFields_, null); +proto.assistant_api.CreateAssistantTagRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantTagRequest.repeatedFields_, null); }; -goog.inherits(proto.assistant_api.CreateAssistantToolConfigurationRequest, jspb.Message); +goog.inherits(proto.assistant_api.CreateAssistantTagRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.CreateAssistantToolConfigurationRequest.displayName = 'proto.assistant_api.CreateAssistantToolConfigurationRequest'; + proto.assistant_api.CreateAssistantTagRequest.displayName = 'proto.assistant_api.CreateAssistantTagRequest'; } /** * Generated by JsPbCodeGenerator. @@ -368,16 +194,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.CreateAssistantTagRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantTagRequest.repeatedFields_, null); +proto.assistant_api.GetAssistantRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.assistant_api.CreateAssistantTagRequest, jspb.Message); +goog.inherits(proto.assistant_api.GetAssistantRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.CreateAssistantTagRequest.displayName = 'proto.assistant_api.CreateAssistantTagRequest'; + proto.assistant_api.GetAssistantRequest.displayName = 'proto.assistant_api.GetAssistantRequest'; } /** * Generated by JsPbCodeGenerator. @@ -389,16 +215,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.GetAssistantRequest = function(opt_data) { +proto.assistant_api.DeleteAssistantRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.assistant_api.GetAssistantRequest, jspb.Message); +goog.inherits(proto.assistant_api.DeleteAssistantRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.GetAssistantRequest.displayName = 'proto.assistant_api.GetAssistantRequest'; + proto.assistant_api.DeleteAssistantRequest.displayName = 'proto.assistant_api.DeleteAssistantRequest'; } /** * Generated by JsPbCodeGenerator. @@ -557,16 +383,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.UpdateAssistantVersionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.assistant_api.GetAllMessageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllMessageRequest.repeatedFields_, null); }; -goog.inherits(proto.assistant_api.UpdateAssistantVersionRequest, jspb.Message); +goog.inherits(proto.assistant_api.GetAllMessageRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.UpdateAssistantVersionRequest.displayName = 'proto.assistant_api.UpdateAssistantVersionRequest'; + proto.assistant_api.GetAllMessageRequest.displayName = 'proto.assistant_api.GetAllMessageRequest'; } /** * Generated by JsPbCodeGenerator. @@ -578,16 +404,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.UpdateAssistantVersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.assistant_api.GetAllMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllMessageResponse.repeatedFields_, null); }; -goog.inherits(proto.assistant_api.UpdateAssistantVersionResponse, jspb.Message); +goog.inherits(proto.assistant_api.GetAllMessageResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.UpdateAssistantVersionResponse.displayName = 'proto.assistant_api.UpdateAssistantVersionResponse'; + proto.assistant_api.GetAllMessageResponse.displayName = 'proto.assistant_api.GetAllMessageResponse'; } /** * Generated by JsPbCodeGenerator. @@ -599,16 +425,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.UpdateAssistantDetailRequest = function(opt_data) { +proto.assistant_api.UpdateAssistantVersionRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.assistant_api.UpdateAssistantDetailRequest, jspb.Message); +goog.inherits(proto.assistant_api.UpdateAssistantVersionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.UpdateAssistantDetailRequest.displayName = 'proto.assistant_api.UpdateAssistantDetailRequest'; + proto.assistant_api.UpdateAssistantVersionRequest.displayName = 'proto.assistant_api.UpdateAssistantVersionRequest'; } /** * Generated by JsPbCodeGenerator. @@ -620,16 +446,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.GetAllAssistantUserConversationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantUserConversationRequest.repeatedFields_, null); +proto.assistant_api.UpdateAssistantDetailRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.assistant_api.GetAllAssistantUserConversationRequest, jspb.Message); +goog.inherits(proto.assistant_api.UpdateAssistantDetailRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.GetAllAssistantUserConversationRequest.displayName = 'proto.assistant_api.GetAllAssistantUserConversationRequest'; + proto.assistant_api.UpdateAssistantDetailRequest.displayName = 'proto.assistant_api.UpdateAssistantDetailRequest'; } /** * Generated by JsPbCodeGenerator. @@ -641,16 +467,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.GetAllAssistantUserConversationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantUserConversationResponse.repeatedFields_, null); +proto.assistant_api.GetAllAssistantUserConversationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantUserConversationRequest.repeatedFields_, null); }; -goog.inherits(proto.assistant_api.GetAllAssistantUserConversationResponse, jspb.Message); +goog.inherits(proto.assistant_api.GetAllAssistantUserConversationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.GetAllAssistantUserConversationResponse.displayName = 'proto.assistant_api.GetAllAssistantUserConversationResponse'; + proto.assistant_api.GetAllAssistantUserConversationRequest.displayName = 'proto.assistant_api.GetAllAssistantUserConversationRequest'; } /** * Generated by JsPbCodeGenerator. @@ -662,16 +488,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.GetAllAssistantToolRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantToolRequest.repeatedFields_, null); +proto.assistant_api.GetAllAssistantUserConversationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantUserConversationResponse.repeatedFields_, null); }; -goog.inherits(proto.assistant_api.GetAllAssistantToolRequest, jspb.Message); +goog.inherits(proto.assistant_api.GetAllAssistantUserConversationResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.GetAllAssistantToolRequest.displayName = 'proto.assistant_api.GetAllAssistantToolRequest'; + proto.assistant_api.GetAllAssistantUserConversationResponse.displayName = 'proto.assistant_api.GetAllAssistantUserConversationResponse'; } /** * Generated by JsPbCodeGenerator. @@ -683,16 +509,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.GetAllAssistantToolResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantToolResponse.repeatedFields_, null); +proto.assistant_api.GetAssistantConversationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAssistantConversationRequest.repeatedFields_, null); }; -goog.inherits(proto.assistant_api.GetAllAssistantToolResponse, jspb.Message); +goog.inherits(proto.assistant_api.GetAssistantConversationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.GetAllAssistantToolResponse.displayName = 'proto.assistant_api.GetAllAssistantToolResponse'; + proto.assistant_api.GetAssistantConversationRequest.displayName = 'proto.assistant_api.GetAssistantConversationRequest'; } /** * Generated by JsPbCodeGenerator. @@ -704,145 +530,87 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.assistant_api.Tool = function(opt_data) { +proto.assistant_api.GetAssistantConversationResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.assistant_api.Tool, jspb.Message); +goog.inherits(proto.assistant_api.GetAssistantConversationResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.assistant_api.Tool.displayName = 'proto.assistant_api.Tool'; + proto.assistant_api.GetAssistantConversationResponse.displayName = 'proto.assistant_api.GetAssistantConversationResponse'; } + /** - * 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 + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.assistant_api.GetToolRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.assistant_api.GetToolRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.GetToolRequest.displayName = 'proto.assistant_api.GetToolRequest'; -} +proto.assistant_api.Assistant.repeatedFields_ = [6,35,36]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * 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 + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.assistant_api.GetToolResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.assistant_api.Assistant.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.Assistant.toObject(opt_includeInstance, this); }; -goog.inherits(proto.assistant_api.GetToolResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.GetToolResponse.displayName = 'proto.assistant_api.GetToolResponse'; -} -/** - * 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.assistant_api.GetAllToolRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllToolRequest.repeatedFields_, null); -}; -goog.inherits(proto.assistant_api.GetAllToolRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.GetAllToolRequest.displayName = 'proto.assistant_api.GetAllToolRequest'; -} -/** - * 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.assistant_api.GetAllToolResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllToolResponse.repeatedFields_, null); -}; -goog.inherits(proto.assistant_api.GetAllToolResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.assistant_api.GetAllToolResponse.displayName = 'proto.assistant_api.GetAllToolResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantTool.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantTool.toObject(opt_includeInstance, this); -}; - - + + /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantTool} msg The msg instance to transform. + * @param {!proto.assistant_api.Assistant} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.AssistantTool.toObject = function(includeInstance, msg) { +proto.assistant_api.Assistant.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - assistantid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - toolid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - projectid: jspb.Message.getFieldWithDefault(msg, 5, "0"), - organizationid: jspb.Message.getFieldWithDefault(msg, 6, "0"), - options: (f = msg.getOptions()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - tool: (f = msg.getTool()) && proto.assistant_api.Tool.toObject(includeInstance, f), - code: jspb.Message.getFieldWithDefault(msg, 9, ""), - status: jspb.Message.getFieldWithDefault(msg, 25, ""), + status: jspb.Message.getFieldWithDefault(msg, 2, ""), + visibility: jspb.Message.getFieldWithDefault(msg, 3, ""), + source: jspb.Message.getFieldWithDefault(msg, 4, ""), + sourceidentifier: jspb.Message.getFieldWithDefault(msg, 5, "0"), + assistanttoolsList: jspb.Message.toObjectList(msg.getAssistanttoolsList(), + assistant$tool_pb.AssistantTool.toObject, includeInstance), + projectid: jspb.Message.getFieldWithDefault(msg, 7, "0"), + organizationid: jspb.Message.getFieldWithDefault(msg, 8, "0"), + assistantprovidermodelid: jspb.Message.getFieldWithDefault(msg, 9, "0"), + assistantprovidermodel: (f = msg.getAssistantprovidermodel()) && proto.assistant_api.AssistantProviderModel.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 11, ""), + description: jspb.Message.getFieldWithDefault(msg, 12, ""), + assistanttag: (f = msg.getAssistanttag()) && common_pb.Tag.toObject(includeInstance, f), + language: jspb.Message.getFieldWithDefault(msg, 16, ""), + organization: (f = msg.getOrganization()) && common_pb.Organization.toObject(includeInstance, f), + createdby: jspb.Message.getFieldWithDefault(msg, 22, "0"), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 24, "0"), + updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + debuggerdeployment: (f = msg.getDebuggerdeployment()) && assistant$deployment_pb.AssistantDebuggerDeployment.toObject(includeInstance, f), + phonedeployment: (f = msg.getPhonedeployment()) && assistant$deployment_pb.AssistantPhoneDeployment.toObject(includeInstance, f), + whatsappdeployment: (f = msg.getWhatsappdeployment()) && assistant$deployment_pb.AssistantWhatsappDeployment.toObject(includeInstance, f), + webplugindeployment: (f = msg.getWebplugindeployment()) && assistant$deployment_pb.AssistantWebpluginDeployment.toObject(includeInstance, f), + apideployment: (f = msg.getApideployment()) && assistant$deployment_pb.AssistantApiDeployment.toObject(includeInstance, f), + assistantconversationsList: jspb.Message.toObjectList(msg.getAssistantconversationsList(), + common_pb.AssistantConversation.toObject, includeInstance), + assistantwebhooksList: jspb.Message.toObjectList(msg.getAssistantwebhooksList(), + assistant$webhook_pb.AssistantWebhook.toObject, includeInstance) }; if (includeInstance) { @@ -856,23 +624,23 @@ proto.assistant_api.AssistantTool.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.AssistantTool} + * @return {!proto.assistant_api.Assistant} */ -proto.assistant_api.AssistantTool.deserializeBinary = function(bytes) { +proto.assistant_api.Assistant.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantTool; - return proto.assistant_api.AssistantTool.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.Assistant; + return proto.assistant_api.Assistant.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.AssistantTool} msg The message object to deserialize into. + * @param {!proto.assistant_api.Assistant} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantTool} + * @return {!proto.assistant_api.Assistant} */ -proto.assistant_api.AssistantTool.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.Assistant.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -884,42 +652,82 @@ proto.assistant_api.AssistantTool.deserializeBinaryFromReader = function(msg, re msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); break; case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setToolid(value); + var value = /** @type {string} */ (reader.readString()); + msg.setVisibility(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + msg.setSource(value); break; case 5: var value = /** @type {string} */ (reader.readUint64String()); - msg.setProjectid(value); + msg.setSourceidentifier(value); break; case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOrganizationid(value); + var value = new assistant$tool_pb.AssistantTool; + reader.readMessage(value,assistant$tool_pb.AssistantTool.deserializeBinaryFromReader); + msg.addAssistanttools(value); break; case 7: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setOptions(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setProjectid(value); break; case 8: - var value = new proto.assistant_api.Tool; - reader.readMessage(value,proto.assistant_api.Tool.deserializeBinaryFromReader); - msg.setTool(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setOrganizationid(value); break; case 9: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantprovidermodelid(value); + break; + case 10: + var value = new proto.assistant_api.AssistantProviderModel; + reader.readMessage(value,proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader); + msg.setAssistantprovidermodel(value); + break; + case 11: var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); + msg.setName(value); break; - case 25: + case 12: var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); + msg.setDescription(value); + break; + case 14: + var value = new common_pb.Tag; + reader.readMessage(value,common_pb.Tag.deserializeBinaryFromReader); + msg.setAssistanttag(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 17: + var value = new common_pb.Organization; + reader.readMessage(value,common_pb.Organization.deserializeBinaryFromReader); + msg.setOrganization(value); + break; + case 22: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); + break; + case 23: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); + break; + case 24: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); + break; + case 25: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); break; case 26: var value = new google_protobuf_timestamp_pb.Timestamp; @@ -931,6 +739,41 @@ proto.assistant_api.AssistantTool.deserializeBinaryFromReader = function(msg, re reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setUpdateddate(value); break; + case 30: + var value = new assistant$deployment_pb.AssistantDebuggerDeployment; + reader.readMessage(value,assistant$deployment_pb.AssistantDebuggerDeployment.deserializeBinaryFromReader); + msg.setDebuggerdeployment(value); + break; + case 31: + var value = new assistant$deployment_pb.AssistantPhoneDeployment; + reader.readMessage(value,assistant$deployment_pb.AssistantPhoneDeployment.deserializeBinaryFromReader); + msg.setPhonedeployment(value); + break; + case 32: + var value = new assistant$deployment_pb.AssistantWhatsappDeployment; + reader.readMessage(value,assistant$deployment_pb.AssistantWhatsappDeployment.deserializeBinaryFromReader); + msg.setWhatsappdeployment(value); + break; + case 33: + var value = new assistant$deployment_pb.AssistantWebpluginDeployment; + reader.readMessage(value,assistant$deployment_pb.AssistantWebpluginDeployment.deserializeBinaryFromReader); + msg.setWebplugindeployment(value); + break; + case 34: + var value = new assistant$deployment_pb.AssistantApiDeployment; + reader.readMessage(value,assistant$deployment_pb.AssistantApiDeployment.deserializeBinaryFromReader); + msg.setApideployment(value); + break; + case 35: + var value = new common_pb.AssistantConversation; + reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); + msg.addAssistantconversations(value); + break; + case 36: + var value = new assistant$webhook_pb.AssistantWebhook; + reader.readMessage(value,assistant$webhook_pb.AssistantWebhook.deserializeBinaryFromReader); + msg.addAssistantwebhooks(value); + break; default: reader.skipField(); break; @@ -944,9 +787,9 @@ proto.assistant_api.AssistantTool.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.AssistantTool.prototype.serializeBinary = function() { +proto.assistant_api.Assistant.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantTool.serializeBinaryToWriter(this, writer); + proto.assistant_api.Assistant.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -954,11 +797,11 @@ proto.assistant_api.AssistantTool.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantTool} message + * @param {!proto.assistant_api.Assistant} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.AssistantTool.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.Assistant.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (parseInt(f, 10) !== 0) { @@ -967,260 +810,420 @@ proto.assistant_api.AssistantTool.serializeBinaryToWriter = function(message, wr f ); } - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getToolid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getVisibility(); + if (f.length > 0) { + writer.writeString( 3, f ); } - f = message.getName(); + f = message.getSource(); if (f.length > 0) { writer.writeString( 4, f ); } - f = message.getProjectid(); + f = message.getSourceidentifier(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 5, f ); } + f = message.getAssistanttoolsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + assistant$tool_pb.AssistantTool.serializeBinaryToWriter + ); + } + f = message.getProjectid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 7, + f + ); + } f = message.getOrganizationid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 6, + 8, f ); } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + f = message.getAssistantprovidermodelid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 9, + f ); } - f = message.getTool(); + f = message.getAssistantprovidermodel(); if (f != null) { writer.writeMessage( - 8, + 10, f, - proto.assistant_api.Tool.serializeBinaryToWriter + proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter ); } - f = message.getCode(); + f = message.getName(); if (f.length > 0) { writer.writeString( - 9, + 11, f ); } - f = message.getStatus(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( - 25, + 12, f ); } - f = message.getCreateddate(); + f = message.getAssistanttag(); if (f != null) { writer.writeMessage( - 26, + 14, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + common_pb.Tag.serializeBinaryToWriter ); } - f = message.getUpdateddate(); + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getOrganization(); if (f != null) { writer.writeMessage( - 27, + 17, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + common_pb.Organization.serializeBinaryToWriter ); } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.assistant_api.AssistantTool.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 22, + f + ); + } + f = message.getCreateduser(); + if (f != null) { + writer.writeMessage( + 23, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 24, + f + ); + } + f = message.getUpdateduser(); + if (f != null) { + writer.writeMessage( + 25, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 26, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 27, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDebuggerdeployment(); + if (f != null) { + writer.writeMessage( + 30, + f, + assistant$deployment_pb.AssistantDebuggerDeployment.serializeBinaryToWriter + ); + } + f = message.getPhonedeployment(); + if (f != null) { + writer.writeMessage( + 31, + f, + assistant$deployment_pb.AssistantPhoneDeployment.serializeBinaryToWriter + ); + } + f = message.getWhatsappdeployment(); + if (f != null) { + writer.writeMessage( + 32, + f, + assistant$deployment_pb.AssistantWhatsappDeployment.serializeBinaryToWriter + ); + } + f = message.getWebplugindeployment(); + if (f != null) { + writer.writeMessage( + 33, + f, + assistant$deployment_pb.AssistantWebpluginDeployment.serializeBinaryToWriter + ); + } + f = message.getApideployment(); + if (f != null) { + writer.writeMessage( + 34, + f, + assistant$deployment_pb.AssistantApiDeployment.serializeBinaryToWriter + ); + } + f = message.getAssistantconversationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 35, + f, + common_pb.AssistantConversation.serializeBinaryToWriter + ); + } + f = message.getAssistantwebhooksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 36, + f, + assistant$webhook_pb.AssistantWebhook.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.Assistant.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setId = function(value) { +proto.assistant_api.Assistant.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional uint64 assistantId = 2; + * optional string status = 2; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.assistant_api.Assistant.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.assistant_api.Assistant.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint64 toolId = 3; + * optional string visibility = 3; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getToolid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +proto.assistant_api.Assistant.prototype.getVisibility = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setToolid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); +proto.assistant_api.Assistant.prototype.setVisibility = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string name = 4; + * optional string source = 4; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getName = function() { +proto.assistant_api.Assistant.prototype.getSource = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setName = function(value) { +proto.assistant_api.Assistant.prototype.setSource = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional uint64 projectId = 5; + * optional uint64 sourceIdentifier = 5; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getProjectid = function() { +proto.assistant_api.Assistant.prototype.getSourceidentifier = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setProjectid = function(value) { +proto.assistant_api.Assistant.prototype.setSourceidentifier = function(value) { return jspb.Message.setProto3StringIntField(this, 5, value); }; /** - * optional uint64 organizationId = 6; + * repeated AssistantTool assistantTools = 6; + * @return {!Array} + */ +proto.assistant_api.Assistant.prototype.getAssistanttoolsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, assistant$tool_pb.AssistantTool, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setAssistanttoolsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.assistant_api.AssistantTool=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantTool} + */ +proto.assistant_api.Assistant.prototype.addAssistanttools = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.assistant_api.AssistantTool, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.Assistant} returns this + */ +proto.assistant_api.Assistant.prototype.clearAssistanttoolsList = function() { + return this.setAssistanttoolsList([]); +}; + + +/** + * optional uint64 projectId = 7; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getOrganizationid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +proto.assistant_api.Assistant.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setOrganizationid = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); +proto.assistant_api.Assistant.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 7, value); }; /** - * optional google.protobuf.Struct options = 7; - * @return {?proto.google.protobuf.Struct} + * optional uint64 organizationId = 8; + * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); +proto.assistant_api.Assistant.prototype.getOrganizationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.assistant_api.AssistantTool} returns this -*/ -proto.assistant_api.AssistantTool.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 7, value); + * @param {string} value + * @return {!proto.assistant_api.Assistant} returns this + */ +proto.assistant_api.Assistant.prototype.setOrganizationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 8, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantTool} returns this + * optional uint64 assistantProviderModelId = 9; + * @return {string} */ -proto.assistant_api.AssistantTool.prototype.clearOptions = function() { - return this.setOptions(undefined); +proto.assistant_api.Assistant.prototype.getAssistantprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.hasOptions = function() { - return jspb.Message.getField(this, 7) != null; +proto.assistant_api.Assistant.prototype.setAssistantprovidermodelid = function(value) { + return jspb.Message.setProto3StringIntField(this, 9, value); }; /** - * optional Tool tool = 8; - * @return {?proto.assistant_api.Tool} + * optional AssistantProviderModel assistantProviderModel = 10; + * @return {?proto.assistant_api.AssistantProviderModel} */ -proto.assistant_api.AssistantTool.prototype.getTool = function() { - return /** @type{?proto.assistant_api.Tool} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.Tool, 8)); +proto.assistant_api.Assistant.prototype.getAssistantprovidermodel = function() { + return /** @type{?proto.assistant_api.AssistantProviderModel} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantProviderModel, 10)); }; /** - * @param {?proto.assistant_api.Tool|undefined} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @param {?proto.assistant_api.AssistantProviderModel|undefined} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setTool = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.assistant_api.Assistant.prototype.setAssistantprovidermodel = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.clearTool = function() { - return this.setTool(undefined); +proto.assistant_api.Assistant.prototype.clearAssistantprovidermodel = function() { + return this.setAssistantprovidermodel(undefined); }; @@ -1228,72 +1231,72 @@ proto.assistant_api.AssistantTool.prototype.clearTool = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.AssistantTool.prototype.hasTool = function() { - return jspb.Message.getField(this, 8) != null; +proto.assistant_api.Assistant.prototype.hasAssistantprovidermodel = function() { + return jspb.Message.getField(this, 10) != null; }; /** - * optional string code = 9; + * optional string name = 11; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +proto.assistant_api.Assistant.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); +proto.assistant_api.Assistant.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); }; /** - * optional string status = 25; + * optional string description = 12; * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); +proto.assistant_api.Assistant.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 25, value); +proto.assistant_api.Assistant.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; /** - * optional google.protobuf.Timestamp createdDate = 26; - * @return {?proto.google.protobuf.Timestamp} + * optional Tag assistantTag = 14; + * @return {?proto.Tag} */ -proto.assistant_api.AssistantTool.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 26)); +proto.assistant_api.Assistant.prototype.getAssistanttag = function() { + return /** @type{?proto.Tag} */ ( + jspb.Message.getWrapperField(this, common_pb.Tag, 14)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.assistant_api.AssistantTool} returns this + * @param {?proto.Tag|undefined} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 26, value); +proto.assistant_api.Assistant.prototype.setAssistanttag = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantTool} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.AssistantTool.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); +proto.assistant_api.Assistant.prototype.clearAssistanttag = function() { + return this.setAssistanttag(undefined); }; @@ -1301,3951 +1304,54 @@ proto.assistant_api.AssistantTool.prototype.clearCreateddate = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.AssistantTool.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 26) != null; +proto.assistant_api.Assistant.prototype.hasAssistanttag = function() { + return jspb.Message.getField(this, 14) != null; }; /** - * optional google.protobuf.Timestamp updatedDate = 27; - * @return {?proto.google.protobuf.Timestamp} + * optional string language = 16; + * @return {string} */ -proto.assistant_api.AssistantTool.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 27)); +proto.assistant_api.Assistant.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.assistant_api.AssistantTool} returns this -*/ -proto.assistant_api.AssistantTool.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantTool} returns this - */ -proto.assistant_api.AssistantTool.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantTool.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 27) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.assistant_api.Assistant.repeatedFields_ = [6,18,35]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.Assistant.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.Assistant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.Assistant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.Assistant.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - status: jspb.Message.getFieldWithDefault(msg, 2, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 3, ""), - source: jspb.Message.getFieldWithDefault(msg, 4, ""), - sourceidentifier: jspb.Message.getFieldWithDefault(msg, 5, "0"), - assistanttoolsList: jspb.Message.toObjectList(msg.getAssistanttoolsList(), - proto.assistant_api.AssistantTool.toObject, includeInstance), - projectid: jspb.Message.getFieldWithDefault(msg, 7, "0"), - organizationid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - assistantprovidermodelid: jspb.Message.getFieldWithDefault(msg, 9, "0"), - assistantprovidermodel: (f = msg.getAssistantprovidermodel()) && proto.assistant_api.AssistantProviderModel.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 11, ""), - description: jspb.Message.getFieldWithDefault(msg, 12, ""), - assistanttag: (f = msg.getAssistanttag()) && common_pb.Tag.toObject(includeInstance, f), - language: jspb.Message.getFieldWithDefault(msg, 16, ""), - organization: (f = msg.getOrganization()) && common_pb.Organization.toObject(includeInstance, f), - assistantknowledgeconfigurationsList: jspb.Message.toObjectList(msg.getAssistantknowledgeconfigurationsList(), - proto.assistant_api.AssistantKnowledgeConfiguration.toObject, includeInstance), - createdby: jspb.Message.getFieldWithDefault(msg, 22, "0"), - createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), - updatedby: jspb.Message.getFieldWithDefault(msg, 24, "0"), - updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), - createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - appappearance: (f = msg.getAppappearance()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - webappearance: (f = msg.getWebappearance()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - debuggerdeployment: (f = msg.getDebuggerdeployment()) && assistant$deployment_pb.AssistantDebuggerDeployment.toObject(includeInstance, f), - phonedeployment: (f = msg.getPhonedeployment()) && assistant$deployment_pb.AssistantPhoneDeployment.toObject(includeInstance, f), - whatsappdeployment: (f = msg.getWhatsappdeployment()) && assistant$deployment_pb.AssistantWhatsappDeployment.toObject(includeInstance, f), - webplugindeployment: (f = msg.getWebplugindeployment()) && assistant$deployment_pb.AssistantWebpluginDeployment.toObject(includeInstance, f), - apideployment: (f = msg.getApideployment()) && assistant$deployment_pb.AssistantApiDeployment.toObject(includeInstance, f), - assistantconversationsList: jspb.Message.toObjectList(msg.getAssistantconversationsList(), - common_pb.AssistantConversation.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.assistant_api.Assistant} - */ -proto.assistant_api.Assistant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.Assistant; - return proto.assistant_api.Assistant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.Assistant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.Assistant} - */ -proto.assistant_api.Assistant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSource(value); - break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSourceidentifier(value); - break; - case 6: - var value = new proto.assistant_api.AssistantTool; - reader.readMessage(value,proto.assistant_api.AssistantTool.deserializeBinaryFromReader); - msg.addAssistanttools(value); - break; - case 7: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProjectid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOrganizationid(value); - break; - case 9: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantprovidermodelid(value); - break; - case 10: - var value = new proto.assistant_api.AssistantProviderModel; - reader.readMessage(value,proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader); - msg.setAssistantprovidermodel(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 14: - var value = new common_pb.Tag; - reader.readMessage(value,common_pb.Tag.deserializeBinaryFromReader); - msg.setAssistanttag(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 17: - var value = new common_pb.Organization; - reader.readMessage(value,common_pb.Organization.deserializeBinaryFromReader); - msg.setOrganization(value); - break; - case 18: - var value = new proto.assistant_api.AssistantKnowledgeConfiguration; - reader.readMessage(value,proto.assistant_api.AssistantKnowledgeConfiguration.deserializeBinaryFromReader); - msg.addAssistantknowledgeconfigurations(value); - break; - case 22: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 23: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setCreateduser(value); - break; - case 24: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); - break; - case 25: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setUpdateduser(value); - break; - case 26: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreateddate(value); - break; - case 27: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdateddate(value); - break; - case 28: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setAppappearance(value); - break; - case 29: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setWebappearance(value); - break; - case 30: - var value = new assistant$deployment_pb.AssistantDebuggerDeployment; - reader.readMessage(value,assistant$deployment_pb.AssistantDebuggerDeployment.deserializeBinaryFromReader); - msg.setDebuggerdeployment(value); - break; - case 31: - var value = new assistant$deployment_pb.AssistantPhoneDeployment; - reader.readMessage(value,assistant$deployment_pb.AssistantPhoneDeployment.deserializeBinaryFromReader); - msg.setPhonedeployment(value); - break; - case 32: - var value = new assistant$deployment_pb.AssistantWhatsappDeployment; - reader.readMessage(value,assistant$deployment_pb.AssistantWhatsappDeployment.deserializeBinaryFromReader); - msg.setWhatsappdeployment(value); - break; - case 33: - var value = new assistant$deployment_pb.AssistantWebpluginDeployment; - reader.readMessage(value,assistant$deployment_pb.AssistantWebpluginDeployment.deserializeBinaryFromReader); - msg.setWebplugindeployment(value); - break; - case 34: - var value = new assistant$deployment_pb.AssistantApiDeployment; - reader.readMessage(value,assistant$deployment_pb.AssistantApiDeployment.deserializeBinaryFromReader); - msg.setApideployment(value); - break; - case 35: - var value = new common_pb.AssistantConversation; - reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); - msg.addAssistantconversations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.Assistant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.Assistant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.Assistant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.Assistant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSourceidentifier(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getAssistanttoolsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.assistant_api.AssistantTool.serializeBinaryToWriter - ); - } - f = message.getProjectid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f - ); - } - f = message.getOrganizationid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getAssistantprovidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 9, - f - ); - } - f = message.getAssistantprovidermodel(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getAssistanttag(); - if (f != null) { - writer.writeMessage( - 14, - f, - common_pb.Tag.serializeBinaryToWriter - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getOrganization(); - if (f != null) { - writer.writeMessage( - 17, - f, - common_pb.Organization.serializeBinaryToWriter - ); - } - f = message.getAssistantknowledgeconfigurationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 18, - f, - proto.assistant_api.AssistantKnowledgeConfiguration.serializeBinaryToWriter - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 22, - f - ); - } - f = message.getCreateduser(); - if (f != null) { - writer.writeMessage( - 23, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 24, - f - ); - } - f = message.getUpdateduser(); - if (f != null) { - writer.writeMessage( - 25, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 26, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 27, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAppappearance(); - if (f != null) { - writer.writeMessage( - 28, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getWebappearance(); - if (f != null) { - writer.writeMessage( - 29, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getDebuggerdeployment(); - if (f != null) { - writer.writeMessage( - 30, - f, - assistant$deployment_pb.AssistantDebuggerDeployment.serializeBinaryToWriter - ); - } - f = message.getPhonedeployment(); - if (f != null) { - writer.writeMessage( - 31, - f, - assistant$deployment_pb.AssistantPhoneDeployment.serializeBinaryToWriter - ); - } - f = message.getWhatsappdeployment(); - if (f != null) { - writer.writeMessage( - 32, - f, - assistant$deployment_pb.AssistantWhatsappDeployment.serializeBinaryToWriter - ); - } - f = message.getWebplugindeployment(); - if (f != null) { - writer.writeMessage( - 33, - f, - assistant$deployment_pb.AssistantWebpluginDeployment.serializeBinaryToWriter - ); - } - f = message.getApideployment(); - if (f != null) { - writer.writeMessage( - 34, - f, - assistant$deployment_pb.AssistantApiDeployment.serializeBinaryToWriter - ); - } - f = message.getAssistantconversationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 35, - f, - common_pb.AssistantConversation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string status = 2; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string visibility = 3; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string source = 4; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint64 sourceIdentifier = 5; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getSourceidentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setSourceidentifier = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); -}; - - -/** - * repeated AssistantTool assistantTools = 6; - * @return {!Array} - */ -proto.assistant_api.Assistant.prototype.getAssistanttoolsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantTool, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setAssistanttoolsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.assistant_api.AssistantTool=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantTool} - */ -proto.assistant_api.Assistant.prototype.addAssistanttools = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.assistant_api.AssistantTool, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearAssistanttoolsList = function() { - return this.setAssistanttoolsList([]); -}; - - -/** - * optional uint64 projectId = 7; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getProjectid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setProjectid = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); -}; - - -/** - * optional uint64 organizationId = 8; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getOrganizationid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setOrganizationid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional uint64 assistantProviderModelId = 9; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getAssistantprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setAssistantprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 9, value); -}; - - -/** - * optional AssistantProviderModel assistantProviderModel = 10; - * @return {?proto.assistant_api.AssistantProviderModel} - */ -proto.assistant_api.Assistant.prototype.getAssistantprovidermodel = function() { - return /** @type{?proto.assistant_api.AssistantProviderModel} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.AssistantProviderModel, 10)); -}; - - -/** - * @param {?proto.assistant_api.AssistantProviderModel|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setAssistantprovidermodel = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearAssistantprovidermodel = function() { - return this.setAssistantprovidermodel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasAssistantprovidermodel = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional string name = 11; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string description = 12; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional Tag assistantTag = 14; - * @return {?proto.Tag} - */ -proto.assistant_api.Assistant.prototype.getAssistanttag = function() { - return /** @type{?proto.Tag} */ ( - jspb.Message.getWrapperField(this, common_pb.Tag, 14)); -}; - - -/** - * @param {?proto.Tag|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setAssistanttag = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearAssistanttag = function() { - return this.setAssistanttag(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasAssistanttag = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional string language = 16; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional Organization organization = 17; - * @return {?proto.Organization} - */ -proto.assistant_api.Assistant.prototype.getOrganization = function() { - return /** @type{?proto.Organization} */ ( - jspb.Message.getWrapperField(this, common_pb.Organization, 17)); -}; - - -/** - * @param {?proto.Organization|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setOrganization = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearOrganization = function() { - return this.setOrganization(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasOrganization = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * repeated AssistantKnowledgeConfiguration assistantKnowledgeConfigurations = 18; - * @return {!Array} - */ -proto.assistant_api.Assistant.prototype.getAssistantknowledgeconfigurationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantKnowledgeConfiguration, 18)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setAssistantknowledgeconfigurationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 18, value); -}; - - -/** - * @param {!proto.assistant_api.AssistantKnowledgeConfiguration=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} - */ -proto.assistant_api.Assistant.prototype.addAssistantknowledgeconfigurations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.assistant_api.AssistantKnowledgeConfiguration, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearAssistantknowledgeconfigurationsList = function() { - return this.setAssistantknowledgeconfigurationsList([]); -}; - - -/** - * optional uint64 createdBy = 22; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 22, value); -}; - - -/** - * optional User createdUser = 23; - * @return {?proto.User} - */ -proto.assistant_api.Assistant.prototype.getCreateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 23)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setCreateduser = function(value) { - return jspb.Message.setWrapperField(this, 23, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearCreateduser = function() { - return this.setCreateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasCreateduser = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional uint64 updatedBy = 24; - * @return {string} - */ -proto.assistant_api.Assistant.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 24, value); -}; - - -/** - * optional User updatedUser = 25; - * @return {?proto.User} - */ -proto.assistant_api.Assistant.prototype.getUpdateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 25)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setUpdateduser = function(value) { - return jspb.Message.setWrapperField(this, 25, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearUpdateduser = function() { - return this.setUpdateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasUpdateduser = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional google.protobuf.Timestamp createdDate = 26; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.assistant_api.Assistant.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 26)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 26, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional google.protobuf.Timestamp updatedDate = 27; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.assistant_api.Assistant.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 27)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional google.protobuf.Struct appAppearance = 28; - * @return {?proto.google.protobuf.Struct} - */ -proto.assistant_api.Assistant.prototype.getAppappearance = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 28)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setAppappearance = function(value) { - return jspb.Message.setWrapperField(this, 28, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearAppappearance = function() { - return this.setAppappearance(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasAppappearance = function() { - return jspb.Message.getField(this, 28) != null; -}; - - -/** - * optional google.protobuf.Struct webAppearance = 29; - * @return {?proto.google.protobuf.Struct} - */ -proto.assistant_api.Assistant.prototype.getWebappearance = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 29)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setWebappearance = function(value) { - return jspb.Message.setWrapperField(this, 29, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearWebappearance = function() { - return this.setWebappearance(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasWebappearance = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional AssistantDebuggerDeployment debuggerDeployment = 30; - * @return {?proto.assistant_api.AssistantDebuggerDeployment} - */ -proto.assistant_api.Assistant.prototype.getDebuggerdeployment = function() { - return /** @type{?proto.assistant_api.AssistantDebuggerDeployment} */ ( - jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantDebuggerDeployment, 30)); -}; - - -/** - * @param {?proto.assistant_api.AssistantDebuggerDeployment|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setDebuggerdeployment = function(value) { - return jspb.Message.setWrapperField(this, 30, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearDebuggerdeployment = function() { - return this.setDebuggerdeployment(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasDebuggerdeployment = function() { - return jspb.Message.getField(this, 30) != null; -}; - - -/** - * optional AssistantPhoneDeployment phoneDeployment = 31; - * @return {?proto.assistant_api.AssistantPhoneDeployment} - */ -proto.assistant_api.Assistant.prototype.getPhonedeployment = function() { - return /** @type{?proto.assistant_api.AssistantPhoneDeployment} */ ( - jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantPhoneDeployment, 31)); -}; - - -/** - * @param {?proto.assistant_api.AssistantPhoneDeployment|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setPhonedeployment = function(value) { - return jspb.Message.setWrapperField(this, 31, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearPhonedeployment = function() { - return this.setPhonedeployment(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasPhonedeployment = function() { - return jspb.Message.getField(this, 31) != null; -}; - - -/** - * optional AssistantWhatsappDeployment whatsappDeployment = 32; - * @return {?proto.assistant_api.AssistantWhatsappDeployment} - */ -proto.assistant_api.Assistant.prototype.getWhatsappdeployment = function() { - return /** @type{?proto.assistant_api.AssistantWhatsappDeployment} */ ( - jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantWhatsappDeployment, 32)); -}; - - -/** - * @param {?proto.assistant_api.AssistantWhatsappDeployment|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setWhatsappdeployment = function(value) { - return jspb.Message.setWrapperField(this, 32, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearWhatsappdeployment = function() { - return this.setWhatsappdeployment(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasWhatsappdeployment = function() { - return jspb.Message.getField(this, 32) != null; -}; - - -/** - * optional AssistantWebpluginDeployment webPluginDeployment = 33; - * @return {?proto.assistant_api.AssistantWebpluginDeployment} - */ -proto.assistant_api.Assistant.prototype.getWebplugindeployment = function() { - return /** @type{?proto.assistant_api.AssistantWebpluginDeployment} */ ( - jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantWebpluginDeployment, 33)); -}; - - -/** - * @param {?proto.assistant_api.AssistantWebpluginDeployment|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setWebplugindeployment = function(value) { - return jspb.Message.setWrapperField(this, 33, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearWebplugindeployment = function() { - return this.setWebplugindeployment(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasWebplugindeployment = function() { - return jspb.Message.getField(this, 33) != null; -}; - - -/** - * optional AssistantApiDeployment apiDeployment = 34; - * @return {?proto.assistant_api.AssistantApiDeployment} - */ -proto.assistant_api.Assistant.prototype.getApideployment = function() { - return /** @type{?proto.assistant_api.AssistantApiDeployment} */ ( - jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantApiDeployment, 34)); -}; - - -/** - * @param {?proto.assistant_api.AssistantApiDeployment|undefined} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setApideployment = function(value) { - return jspb.Message.setWrapperField(this, 34, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearApideployment = function() { - return this.setApideployment(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.Assistant.prototype.hasApideployment = function() { - return jspb.Message.getField(this, 34) != null; -}; - - -/** - * repeated AssistantConversation assistantConversations = 35; - * @return {!Array} - */ -proto.assistant_api.Assistant.prototype.getAssistantconversationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversation, 35)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.Assistant} returns this -*/ -proto.assistant_api.Assistant.prototype.setAssistantconversationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 35, value); -}; - - -/** - * @param {!proto.AssistantConversation=} opt_value - * @param {number=} opt_index - * @return {!proto.AssistantConversation} - */ -proto.assistant_api.Assistant.prototype.addAssistantconversations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 35, opt_value, proto.AssistantConversation, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.Assistant} returns this - */ -proto.assistant_api.Assistant.prototype.clearAssistantconversationsList = function() { - return this.setAssistantconversationsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.assistant_api.AssistantProviderModel.repeatedFields_ = [10]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantProviderModel.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantProviderModel.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantProviderModel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantProviderModel.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - template: (f = msg.getTemplate()) && common_pb.AgentPromptTemplate.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - providerid: jspb.Message.getFieldWithDefault(msg, 4, "0"), - modelmodetype: jspb.Message.getFieldWithDefault(msg, 5, ""), - providermodelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - providermodel: (f = msg.getProvidermodel()) && common_pb.ProviderModel.toObject(includeInstance, f), - assistantprovidermodelparametersList: jspb.Message.toObjectList(msg.getAssistantprovidermodelparametersList(), - common_pb.ProviderModelParameter.toObject, includeInstance), - status: jspb.Message.getFieldWithDefault(msg, 12, ""), - createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), - createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), - updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), - updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), - createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && 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.assistant_api.AssistantProviderModel} - */ -proto.assistant_api.AssistantProviderModel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantProviderModel; - return proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.AssistantProviderModel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantProviderModel} - */ -proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = new common_pb.AgentPromptTemplate; - reader.readMessage(value,common_pb.AgentPromptTemplate.deserializeBinaryFromReader); - msg.setTemplate(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setModelmodetype(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProvidermodelid(value); - break; - case 9: - var value = new common_pb.ProviderModel; - reader.readMessage(value,common_pb.ProviderModel.deserializeBinaryFromReader); - msg.setProvidermodel(value); - break; - case 10: - var value = new common_pb.ProviderModelParameter; - reader.readMessage(value,common_pb.ProviderModelParameter.deserializeBinaryFromReader); - msg.addAssistantprovidermodelparameters(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 13: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 14: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setCreateduser(value); - break; - case 15: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); - break; - case 16: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setUpdateduser(value); - break; - case 17: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreateddate(value); - break; - case 18: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdateddate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.AssistantProviderModel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantProviderModel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getTemplate(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.AgentPromptTemplate.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProviderid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getModelmodetype(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getProvidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getProvidermodel(); - if (f != null) { - writer.writeMessage( - 9, - f, - common_pb.ProviderModel.serializeBinaryToWriter - ); - } - f = message.getAssistantprovidermodelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - common_pb.ProviderModelParameter.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 13, - f - ); - } - f = message.getCreateduser(); - if (f != null) { - writer.writeMessage( - 14, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 15, - f - ); - } - f = message.getUpdateduser(); - if (f != null) { - writer.writeMessage( - 16, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 17, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 18, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional AgentPromptTemplate template = 2; - * @return {?proto.AgentPromptTemplate} - */ -proto.assistant_api.AssistantProviderModel.prototype.getTemplate = function() { - return /** @type{?proto.AgentPromptTemplate} */ ( - jspb.Message.getWrapperField(this, common_pb.AgentPromptTemplate, 2)); -}; - - -/** - * @param {?proto.AgentPromptTemplate|undefined} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setTemplate = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearTemplate = function() { - return this.setTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModel.prototype.hasTemplate = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint64 providerId = 4; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getProviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setProviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional string modelModeType = 5; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getModelmodetype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setModelmodetype = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 providerModelId = 8; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getProvidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setProvidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional ProviderModel providerModel = 9; - * @return {?proto.ProviderModel} - */ -proto.assistant_api.AssistantProviderModel.prototype.getProvidermodel = function() { - return /** @type{?proto.ProviderModel} */ ( - jspb.Message.getWrapperField(this, common_pb.ProviderModel, 9)); -}; - - -/** - * @param {?proto.ProviderModel|undefined} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setProvidermodel = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearProvidermodel = function() { - return this.setProvidermodel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModel.prototype.hasProvidermodel = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * repeated ProviderModelParameter assistantProviderModelParameters = 10; - * @return {!Array} - */ -proto.assistant_api.AssistantProviderModel.prototype.getAssistantprovidermodelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.ProviderModelParameter, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setAssistantprovidermodelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); -}; - - -/** - * @param {!proto.ProviderModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.ProviderModelParameter} - */ -proto.assistant_api.AssistantProviderModel.prototype.addAssistantprovidermodelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.ProviderModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearAssistantprovidermodelparametersList = function() { - return this.setAssistantprovidermodelparametersList([]); -}; - - -/** - * optional string status = 12; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional uint64 createdBy = 13; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 13, value); -}; - - -/** - * optional User createdUser = 14; - * @return {?proto.User} - */ -proto.assistant_api.AssistantProviderModel.prototype.getCreateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 14)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setCreateduser = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearCreateduser = function() { - return this.setCreateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModel.prototype.hasCreateduser = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional uint64 updatedBy = 15; - * @return {string} - */ -proto.assistant_api.AssistantProviderModel.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 15, value); -}; - - -/** - * optional User updatedUser = 16; - * @return {?proto.User} - */ -proto.assistant_api.AssistantProviderModel.prototype.getUpdateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 16)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setUpdateduser = function(value) { - return jspb.Message.setWrapperField(this, 16, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearUpdateduser = function() { - return this.setUpdateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModel.prototype.hasUpdateduser = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional google.protobuf.Timestamp createdDate = 17; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.assistant_api.AssistantProviderModel.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModel.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional google.protobuf.Timestamp updatedDate = 18; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.assistant_api.AssistantProviderModel.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.assistant_api.AssistantProviderModel} returns this -*/ -proto.assistant_api.AssistantProviderModel.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 18, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModel} returns this - */ -proto.assistant_api.AssistantProviderModel.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModel.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 18) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantKnowledgeConfiguration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantKnowledgeConfiguration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantKnowledgeConfiguration.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - knowledgeid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - rerankerenable: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - rerankerprovidermodelid: jspb.Message.getFieldWithDefault(msg, 4, "0"), - rerankerprovidermodel: (f = msg.getRerankerprovidermodel()) && common_pb.ProviderModel.toObject(includeInstance, f), - topk: jspb.Message.getFieldWithDefault(msg, 6, 0), - scorethreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - knowledge: (f = msg.getKnowledge()) && common_pb.Knowledge.toObject(includeInstance, f), - retrievalmethod: 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.assistant_api.AssistantKnowledgeConfiguration} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantKnowledgeConfiguration; - return proto.assistant_api.AssistantKnowledgeConfiguration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.AssistantKnowledgeConfiguration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setKnowledgeid(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRerankerenable(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRerankerprovidermodelid(value); - break; - case 5: - var value = new common_pb.ProviderModel; - reader.readMessage(value,common_pb.ProviderModel.deserializeBinaryFromReader); - msg.setRerankerprovidermodel(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTopk(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setScorethreshold(value); - break; - case 8: - var value = new common_pb.Knowledge; - reader.readMessage(value,common_pb.Knowledge.deserializeBinaryFromReader); - msg.setKnowledge(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setRetrievalmethod(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantKnowledgeConfiguration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantKnowledgeConfiguration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantKnowledgeConfiguration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getKnowledgeid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getRerankerenable(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getRerankerprovidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getRerankerprovidermodel(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.ProviderModel.serializeBinaryToWriter - ); - } - f = message.getTopk(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getScorethreshold(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getKnowledge(); - if (f != null) { - writer.writeMessage( - 8, - f, - common_pb.Knowledge.serializeBinaryToWriter - ); - } - f = message.getRetrievalmethod(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 knowledgeId = 2; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getKnowledgeid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setKnowledgeid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional bool rerankerEnable = 3; - * @return {boolean} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getRerankerenable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setRerankerenable = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 rerankerProviderModelId = 4; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getRerankerprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setRerankerprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional ProviderModel rerankerProviderModel = 5; - * @return {?proto.ProviderModel} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getRerankerprovidermodel = function() { - return /** @type{?proto.ProviderModel} */ ( - jspb.Message.getWrapperField(this, common_pb.ProviderModel, 5)); -}; - - -/** - * @param {?proto.ProviderModel|undefined} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this -*/ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setRerankerprovidermodel = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.clearRerankerprovidermodel = function() { - return this.setRerankerprovidermodel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.hasRerankerprovidermodel = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional uint32 topK = 6; - * @return {number} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getTopk = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setTopk = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional float scoreThreshold = 7; - * @return {number} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getScorethreshold = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setScorethreshold = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - -/** - * optional Knowledge knowledge = 8; - * @return {?proto.Knowledge} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getKnowledge = function() { - return /** @type{?proto.Knowledge} */ ( - jspb.Message.getWrapperField(this, common_pb.Knowledge, 8)); -}; - - -/** - * @param {?proto.Knowledge|undefined} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this -*/ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setKnowledge = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.clearKnowledge = function() { - return this.setKnowledge(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.hasKnowledge = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string retrievalMethod = 9; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.getRetrievalmethod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfiguration} returns this - */ -proto.assistant_api.AssistantKnowledgeConfiguration.prototype.setRetrievalmethod = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.assistant_api.AssistantProviderModelAttribute.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantProviderModelAttribute.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantProviderModelAttribute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantProviderModelAttribute.toObject = function(includeInstance, msg) { - var f, obj = { - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - template: (f = msg.getTemplate()) && common_pb.AgentPromptTemplate.toObject(includeInstance, f), - providerid: jspb.Message.getFieldWithDefault(msg, 4, "0"), - providermodelid: jspb.Message.getFieldWithDefault(msg, 5, "0"), - providermodel: (f = msg.getProvidermodel()) && common_pb.ProviderModel.toObject(includeInstance, f), - assistantprovidermodelparametersList: jspb.Message.toObjectList(msg.getAssistantprovidermodelparametersList(), - common_pb.ProviderModelParameter.toObject, includeInstance), - modelmodetype: 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.assistant_api.AssistantProviderModelAttribute} - */ -proto.assistant_api.AssistantProviderModelAttribute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantProviderModelAttribute; - return proto.assistant_api.AssistantProviderModelAttribute.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.AssistantProviderModelAttribute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantProviderModelAttribute} - */ -proto.assistant_api.AssistantProviderModelAttribute.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = new common_pb.AgentPromptTemplate; - reader.readMessage(value,common_pb.AgentPromptTemplate.deserializeBinaryFromReader); - msg.setTemplate(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); - break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProvidermodelid(value); - break; - case 6: - var value = new common_pb.ProviderModel; - reader.readMessage(value,common_pb.ProviderModel.deserializeBinaryFromReader); - msg.setProvidermodel(value); - break; - case 7: - var value = new common_pb.ProviderModelParameter; - reader.readMessage(value,common_pb.ProviderModelParameter.deserializeBinaryFromReader); - msg.addAssistantprovidermodelparameters(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setModelmodetype(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantProviderModelAttribute.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantProviderModelAttribute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantProviderModelAttribute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTemplate(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.AgentPromptTemplate.serializeBinaryToWriter - ); - } - f = message.getProviderid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getProvidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getProvidermodel(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_pb.ProviderModel.serializeBinaryToWriter - ); - } - f = message.getAssistantprovidermodelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - common_pb.ProviderModelParameter.serializeBinaryToWriter - ); - } - f = message.getModelmodetype(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional AgentPromptTemplate template = 3; - * @return {?proto.AgentPromptTemplate} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getTemplate = function() { - return /** @type{?proto.AgentPromptTemplate} */ ( - jspb.Message.getWrapperField(this, common_pb.AgentPromptTemplate, 3)); -}; - - -/** - * @param {?proto.AgentPromptTemplate|undefined} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this -*/ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setTemplate = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.clearTemplate = function() { - return this.setTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.hasTemplate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint64 providerId = 4; - * @return {string} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getProviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setProviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional uint64 providerModelId = 5; - * @return {string} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getProvidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setProvidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); -}; - - -/** - * optional ProviderModel providerModel = 6; - * @return {?proto.ProviderModel} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getProvidermodel = function() { - return /** @type{?proto.ProviderModel} */ ( - jspb.Message.getWrapperField(this, common_pb.ProviderModel, 6)); -}; - - -/** - * @param {?proto.ProviderModel|undefined} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this -*/ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setProvidermodel = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.clearProvidermodel = function() { - return this.setProvidermodel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.hasProvidermodel = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * repeated ProviderModelParameter assistantProviderModelParameters = 7; - * @return {!Array} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getAssistantprovidermodelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.ProviderModelParameter, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this -*/ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setAssistantprovidermodelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.ProviderModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.ProviderModelParameter} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.addAssistantprovidermodelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.ProviderModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.clearAssistantprovidermodelparametersList = function() { - return this.setAssistantprovidermodelparametersList([]); -}; - - -/** - * optional string modelModeType = 8; - * @return {string} - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.getModelmodetype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantProviderModelAttribute} returns this - */ -proto.assistant_api.AssistantProviderModelAttribute.prototype.setModelmodetype = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantAttribute.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantAttribute.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantAttribute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantAttribute.toObject = function(includeInstance, msg) { - var f, obj = { - source: jspb.Message.getFieldWithDefault(msg, 1, ""), - sourceidentifier: jspb.Message.getFieldWithDefault(msg, 2, "0"), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: jspb.Message.getFieldWithDefault(msg, 4, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 5, ""), - language: 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.assistant_api.AssistantAttribute} - */ -proto.assistant_api.AssistantAttribute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantAttribute; - return proto.assistant_api.AssistantAttribute.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.AssistantAttribute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantAttribute} - */ -proto.assistant_api.AssistantAttribute.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.setSource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSourceidentifier(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.AssistantAttribute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantAttribute.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantAttribute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantAttribute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSourceidentifier(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string source = 1; - * @return {string} - */ -proto.assistant_api.AssistantAttribute.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantAttribute} returns this - */ -proto.assistant_api.AssistantAttribute.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 sourceIdentifier = 2; - * @return {string} - */ -proto.assistant_api.AssistantAttribute.prototype.getSourceidentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantAttribute} returns this - */ -proto.assistant_api.AssistantAttribute.prototype.setSourceidentifier = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.assistant_api.AssistantAttribute.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantAttribute} returns this - */ -proto.assistant_api.AssistantAttribute.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string description = 4; - * @return {string} - */ -proto.assistant_api.AssistantAttribute.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantAttribute} returns this - */ -proto.assistant_api.AssistantAttribute.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string visibility = 5; - * @return {string} - */ -proto.assistant_api.AssistantAttribute.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantAttribute} returns this - */ -proto.assistant_api.AssistantAttribute.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string language = 6; - * @return {string} - */ -proto.assistant_api.AssistantAttribute.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantAttribute} returns this - */ -proto.assistant_api.AssistantAttribute.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantKnowledgeConfigurationAttribute.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.toObject = function(includeInstance, msg) { - var f, obj = { - knowledgeid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - rerankerenable: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - rerankerprovidermodelid: jspb.Message.getFieldWithDefault(msg, 4, "0"), - topk: jspb.Message.getFieldWithDefault(msg, 6, 0), - scorethreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - retrievalmethod: jspb.Message.getFieldWithDefault(msg, 8, ""), - active: jspb.Message.getBooleanFieldWithDefault(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.assistant_api.AssistantKnowledgeConfigurationAttribute} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantKnowledgeConfigurationAttribute; - return proto.assistant_api.AssistantKnowledgeConfigurationAttribute.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setKnowledgeid(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRerankerenable(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRerankerprovidermodelid(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTopk(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setScorethreshold(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setRetrievalmethod(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setActive(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantKnowledgeConfigurationAttribute.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKnowledgeid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getRerankerenable(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getRerankerprovidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getTopk(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getScorethreshold(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getRetrievalmethod(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getActive(); - if (f) { - writer.writeBool( - 9, - f - ); - } -}; - - -/** - * optional uint64 knowledgeId = 2; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getKnowledgeid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setKnowledgeid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional bool rerankerEnable = 3; - * @return {boolean} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getRerankerenable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setRerankerenable = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 rerankerProviderModelId = 4; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getRerankerprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setRerankerprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional uint32 topK = 6; - * @return {number} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getTopk = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setTopk = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional float scoreThreshold = 7; - * @return {number} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getScorethreshold = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setScorethreshold = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - -/** - * optional string retrievalMethod = 8; - * @return {string} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getRetrievalmethod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setRetrievalmethod = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional bool active = 9; - * @return {boolean} - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.getActive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantKnowledgeConfigurationAttribute.prototype.setActive = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.AssistantToolConfigurationAttribute.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.AssistantToolConfigurationAttribute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantToolConfigurationAttribute.toObject = function(includeInstance, msg) { - var f, obj = { - toolid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - code: jspb.Message.getFieldWithDefault(msg, 2, ""), - options: (f = msg.getOptions()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - status: 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.assistant_api.AssistantToolConfigurationAttribute} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.AssistantToolConfigurationAttribute; - return proto.assistant_api.AssistantToolConfigurationAttribute.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.AssistantToolConfigurationAttribute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setToolid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - case 3: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.AssistantToolConfigurationAttribute.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.AssistantToolConfigurationAttribute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.AssistantToolConfigurationAttribute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToolid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint64 toolId = 1; - * @return {string} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.getToolid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.setToolid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string code = 2; - * @return {string} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Struct options = 3; - * @return {?proto.google.protobuf.Struct} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} returns this -*/ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.hasOptions = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string status = 4; - * @return {string} - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} returns this - */ -proto.assistant_api.AssistantToolConfigurationAttribute.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.assistant_api.CreateAssistantRequest.repeatedFields_ = [5,6,7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.CreateAssistantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.CreateAssistantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - assistantprovidermodelattribute: (f = msg.getAssistantprovidermodelattribute()) && proto.assistant_api.AssistantProviderModelAttribute.toObject(includeInstance, f), - assistantattribute: (f = msg.getAssistantattribute()) && proto.assistant_api.AssistantAttribute.toObject(includeInstance, f), - tagsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - assistantknowledgeconfigurationattributesList: jspb.Message.toObjectList(msg.getAssistantknowledgeconfigurationattributesList(), - proto.assistant_api.AssistantKnowledgeConfigurationAttribute.toObject, includeInstance), - assistanttoolconfigurationattributeList: jspb.Message.toObjectList(msg.getAssistanttoolconfigurationattributeList(), - proto.assistant_api.AssistantToolConfigurationAttribute.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.assistant_api.CreateAssistantRequest} - */ -proto.assistant_api.CreateAssistantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantRequest; - return proto.assistant_api.CreateAssistantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantRequest} - */ -proto.assistant_api.CreateAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.assistant_api.AssistantProviderModelAttribute; - reader.readMessage(value,proto.assistant_api.AssistantProviderModelAttribute.deserializeBinaryFromReader); - msg.setAssistantprovidermodelattribute(value); - break; - case 2: - var value = new proto.assistant_api.AssistantAttribute; - reader.readMessage(value,proto.assistant_api.AssistantAttribute.deserializeBinaryFromReader); - msg.setAssistantattribute(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); - break; - case 6: - var value = new proto.assistant_api.AssistantKnowledgeConfigurationAttribute; - reader.readMessage(value,proto.assistant_api.AssistantKnowledgeConfigurationAttribute.deserializeBinaryFromReader); - msg.addAssistantknowledgeconfigurationattributes(value); - break; - case 7: - var value = new proto.assistant_api.AssistantToolConfigurationAttribute; - reader.readMessage(value,proto.assistant_api.AssistantToolConfigurationAttribute.deserializeBinaryFromReader); - msg.addAssistanttoolconfigurationattribute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.assistant_api.CreateAssistantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.CreateAssistantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssistantprovidermodelattribute(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.assistant_api.AssistantProviderModelAttribute.serializeBinaryToWriter - ); - } - f = message.getAssistantattribute(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.assistant_api.AssistantAttribute.serializeBinaryToWriter - ); - } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getAssistantknowledgeconfigurationattributesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.assistant_api.AssistantKnowledgeConfigurationAttribute.serializeBinaryToWriter - ); - } - f = message.getAssistanttoolconfigurationattributeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.assistant_api.AssistantToolConfigurationAttribute.serializeBinaryToWriter - ); - } + * @param {string} value + * @return {!proto.assistant_api.Assistant} returns this + */ +proto.assistant_api.Assistant.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); }; /** - * optional AssistantProviderModelAttribute assistantProviderModelAttribute = 1; - * @return {?proto.assistant_api.AssistantProviderModelAttribute} + * optional Organization organization = 17; + * @return {?proto.Organization} */ -proto.assistant_api.CreateAssistantRequest.prototype.getAssistantprovidermodelattribute = function() { - return /** @type{?proto.assistant_api.AssistantProviderModelAttribute} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.AssistantProviderModelAttribute, 1)); +proto.assistant_api.Assistant.prototype.getOrganization = function() { + return /** @type{?proto.Organization} */ ( + jspb.Message.getWrapperField(this, common_pb.Organization, 17)); }; /** - * @param {?proto.assistant_api.AssistantProviderModelAttribute|undefined} value - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * @param {?proto.Organization|undefined} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.setAssistantprovidermodelattribute = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.assistant_api.Assistant.prototype.setOrganization = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.clearAssistantprovidermodelattribute = function() { - return this.setAssistantprovidermodelattribute(undefined); +proto.assistant_api.Assistant.prototype.clearOrganization = function() { + return this.setOrganization(undefined); }; @@ -5253,330 +1359,257 @@ proto.assistant_api.CreateAssistantRequest.prototype.clearAssistantprovidermodel * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.CreateAssistantRequest.prototype.hasAssistantprovidermodelattribute = function() { - return jspb.Message.getField(this, 1) != null; +proto.assistant_api.Assistant.prototype.hasOrganization = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * optional AssistantAttribute assistantAttribute = 2; - * @return {?proto.assistant_api.AssistantAttribute} + * optional uint64 createdBy = 22; + * @return {string} */ -proto.assistant_api.CreateAssistantRequest.prototype.getAssistantattribute = function() { - return /** @type{?proto.assistant_api.AssistantAttribute} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.AssistantAttribute, 2)); +proto.assistant_api.Assistant.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); }; /** - * @param {?proto.assistant_api.AssistantAttribute|undefined} value - * @return {!proto.assistant_api.CreateAssistantRequest} returns this -*/ -proto.assistant_api.CreateAssistantRequest.prototype.setAssistantattribute = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.assistant_api.Assistant} returns this + */ +proto.assistant_api.Assistant.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 22, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * optional User createdUser = 23; + * @return {?proto.User} */ -proto.assistant_api.CreateAssistantRequest.prototype.clearAssistantattribute = function() { - return this.setAssistantattribute(undefined); +proto.assistant_api.Assistant.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 23)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.CreateAssistantRequest.prototype.hasAssistantattribute = function() { - return jspb.Message.getField(this, 2) != null; + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 23, value); }; /** - * repeated string tags = 5; - * @return {!Array} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +proto.assistant_api.Assistant.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantRequest.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 5, value || []); +proto.assistant_api.Assistant.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 23) != null; }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * optional uint64 updatedBy = 24; + * @return {string} */ -proto.assistant_api.CreateAssistantRequest.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.assistant_api.Assistant.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "0")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * @param {string} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.clearTagsList = function() { - return this.setTagsList([]); +proto.assistant_api.Assistant.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 24, value); }; /** - * repeated AssistantKnowledgeConfigurationAttribute assistantKnowledgeConfigurationAttributes = 6; - * @return {!Array} + * optional User updatedUser = 25; + * @return {?proto.User} */ -proto.assistant_api.CreateAssistantRequest.prototype.getAssistantknowledgeconfigurationattributesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantKnowledgeConfigurationAttribute, 6)); +proto.assistant_api.Assistant.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 25)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.setAssistantknowledgeconfigurationattributesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); +proto.assistant_api.Assistant.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 25, value); }; /** - * @param {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.addAssistantknowledgeconfigurationattributes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.assistant_api.AssistantKnowledgeConfigurationAttribute, opt_index); +proto.assistant_api.Assistant.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantRequest.prototype.clearAssistantknowledgeconfigurationattributesList = function() { - return this.setAssistantknowledgeconfigurationattributesList([]); +proto.assistant_api.Assistant.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 25) != null; }; /** - * repeated AssistantToolConfigurationAttribute assistantToolConfigurationAttribute = 7; - * @return {!Array} + * optional google.protobuf.Timestamp createdDate = 26; + * @return {?proto.google.protobuf.Timestamp} */ -proto.assistant_api.CreateAssistantRequest.prototype.getAssistanttoolconfigurationattributeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantToolConfigurationAttribute, 7)); +proto.assistant_api.Assistant.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 26)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.CreateAssistantRequest} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantRequest.prototype.setAssistanttoolconfigurationattributeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.assistant_api.AssistantToolConfigurationAttribute=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} - */ -proto.assistant_api.CreateAssistantRequest.prototype.addAssistanttoolconfigurationattribute = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.assistant_api.AssistantToolConfigurationAttribute, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.CreateAssistantRequest} returns this - */ -proto.assistant_api.CreateAssistantRequest.prototype.clearAssistanttoolconfigurationattributeList = function() { - return this.setAssistanttoolconfigurationattributeList([]); +proto.assistant_api.Assistant.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 26, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantProviderModelRequest.toObject(opt_includeInstance, this); +proto.assistant_api.Assistant.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantProviderModelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantProviderModelRequest.toObject = function(includeInstance, msg) { - var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - assistantprovidermodelattribute: (f = msg.getAssistantprovidermodelattribute()) && proto.assistant_api.AssistantProviderModelAttribute.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.assistant_api.Assistant.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 26) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} + * optional google.protobuf.Timestamp updatedDate = 27; + * @return {?proto.google.protobuf.Timestamp} */ -proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantProviderModelRequest; - return proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinaryFromReader(msg, reader); +proto.assistant_api.Assistant.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 27)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantProviderModelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} - */ -proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 2: - var value = new proto.assistant_api.AssistantProviderModelAttribute; - reader.readMessage(value,proto.assistant_api.AssistantProviderModelAttribute.deserializeBinaryFromReader); - msg.setAssistantprovidermodelattribute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 27, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantProviderModelRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.assistant_api.Assistant.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); }; -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantProviderModelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.CreateAssistantProviderModelRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getAssistantprovidermodelattribute(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.assistant_api.AssistantProviderModelAttribute.serializeBinaryToWriter - ); - } +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.Assistant.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 27) != null; }; /** - * optional uint64 assistantId = 1; - * @return {string} + * optional AssistantDebuggerDeployment debuggerDeployment = 30; + * @return {?proto.assistant_api.AssistantDebuggerDeployment} */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.Assistant.prototype.getDebuggerdeployment = function() { + return /** @type{?proto.assistant_api.AssistantDebuggerDeployment} */ ( + jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantDebuggerDeployment, 30)); }; /** - * @param {string} value - * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this + * @param {?proto.assistant_api.AssistantDebuggerDeployment|undefined} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setDebuggerdeployment = function(value) { + return jspb.Message.setWrapperField(this, 30, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.Assistant.prototype.clearDebuggerdeployment = function() { + return this.setDebuggerdeployment(undefined); }; /** - * optional AssistantProviderModelAttribute assistantProviderModelAttribute = 2; - * @return {?proto.assistant_api.AssistantProviderModelAttribute} + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getAssistantprovidermodelattribute = function() { - return /** @type{?proto.assistant_api.AssistantProviderModelAttribute} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.AssistantProviderModelAttribute, 2)); +proto.assistant_api.Assistant.prototype.hasDebuggerdeployment = function() { + return jspb.Message.getField(this, 30) != null; }; /** - * @param {?proto.assistant_api.AssistantProviderModelAttribute|undefined} value - * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this + * optional AssistantPhoneDeployment phoneDeployment = 31; + * @return {?proto.assistant_api.AssistantPhoneDeployment} + */ +proto.assistant_api.Assistant.prototype.getPhonedeployment = function() { + return /** @type{?proto.assistant_api.AssistantPhoneDeployment} */ ( + jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantPhoneDeployment, 31)); +}; + + +/** + * @param {?proto.assistant_api.AssistantPhoneDeployment|undefined} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setAssistantprovidermodelattribute = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.assistant_api.Assistant.prototype.setPhonedeployment = function(value) { + return jspb.Message.setWrapperField(this, 31, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.clearAssistantprovidermodelattribute = function() { - return this.setAssistantprovidermodelattribute(undefined); +proto.assistant_api.Assistant.prototype.clearPhonedeployment = function() { + return this.setPhonedeployment(undefined); }; @@ -5584,274 +1617,206 @@ proto.assistant_api.CreateAssistantProviderModelRequest.prototype.clearAssistant * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.CreateAssistantProviderModelRequest.prototype.hasAssistantprovidermodelattribute = function() { - return jspb.Message.getField(this, 2) != null; +proto.assistant_api.Assistant.prototype.hasPhonedeployment = function() { + return jspb.Message.getField(this, 31) != null; }; +/** + * optional AssistantWhatsappDeployment whatsappDeployment = 32; + * @return {?proto.assistant_api.AssistantWhatsappDeployment} + */ +proto.assistant_api.Assistant.prototype.getWhatsappdeployment = function() { + return /** @type{?proto.assistant_api.AssistantWhatsappDeployment} */ ( + jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantWhatsappDeployment, 32)); +}; + +/** + * @param {?proto.assistant_api.AssistantWhatsappDeployment|undefined} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setWhatsappdeployment = function(value) { + return jspb.Message.setWrapperField(this, 32, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantProviderModelResponse.toObject(opt_includeInstance, this); +proto.assistant_api.Assistant.prototype.clearWhatsappdeployment = function() { + return this.setWhatsappdeployment(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantProviderModelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantProviderModelResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.assistant_api.AssistantProviderModel.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.assistant_api.Assistant.prototype.hasWhatsappdeployment = function() { + return jspb.Message.getField(this, 32) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} + * optional AssistantWebpluginDeployment webPluginDeployment = 33; + * @return {?proto.assistant_api.AssistantWebpluginDeployment} */ -proto.assistant_api.CreateAssistantProviderModelResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantProviderModelResponse; - return proto.assistant_api.CreateAssistantProviderModelResponse.deserializeBinaryFromReader(msg, reader); +proto.assistant_api.Assistant.prototype.getWebplugindeployment = function() { + return /** @type{?proto.assistant_api.AssistantWebpluginDeployment} */ ( + jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantWebpluginDeployment, 33)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantProviderModelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} - */ -proto.assistant_api.CreateAssistantProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.assistant_api.AssistantProviderModel; - reader.readMessage(value,proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.assistant_api.AssistantWebpluginDeployment|undefined} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setWebplugindeployment = function(value) { + return jspb.Message.setWrapperField(this, 33, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantProviderModelResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.assistant_api.Assistant.prototype.clearWebplugindeployment = function() { + return this.setWebplugindeployment(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantProviderModelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantProviderModelResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } +proto.assistant_api.Assistant.prototype.hasWebplugindeployment = function() { + return jspb.Message.getField(this, 33) != null; }; /** - * optional int32 code = 1; - * @return {number} + * optional AssistantApiDeployment apiDeployment = 34; + * @return {?proto.assistant_api.AssistantApiDeployment} */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.assistant_api.Assistant.prototype.getApideployment = function() { + return /** @type{?proto.assistant_api.AssistantApiDeployment} */ ( + jspb.Message.getWrapperField(this, assistant$deployment_pb.AssistantApiDeployment, 34)); }; /** - * @param {number} value - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} returns this - */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + * @param {?proto.assistant_api.AssistantApiDeployment|undefined} value + * @return {!proto.assistant_api.Assistant} returns this +*/ +proto.assistant_api.Assistant.prototype.setApideployment = function(value) { + return jspb.Message.setWrapperField(this, 34, value); }; /** - * optional bool success = 2; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.assistant_api.Assistant.prototype.clearApideployment = function() { + return this.setApideployment(undefined); }; /** - * @param {boolean} value - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.assistant_api.Assistant.prototype.hasApideployment = function() { + return jspb.Message.getField(this, 34) != null; }; /** - * optional AssistantProviderModel data = 3; - * @return {?proto.assistant_api.AssistantProviderModel} + * repeated AssistantConversation assistantConversations = 35; + * @return {!Array} */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.getData = function() { - return /** @type{?proto.assistant_api.AssistantProviderModel} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.AssistantProviderModel, 3)); +proto.assistant_api.Assistant.prototype.getAssistantconversationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversation, 35)); }; /** - * @param {?proto.assistant_api.AssistantProviderModel|undefined} value - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.assistant_api.Assistant.prototype.setAssistantconversationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 35, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} returns this + * @param {!proto.AssistantConversation=} opt_value + * @param {number=} opt_index + * @return {!proto.AssistantConversation} */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.assistant_api.Assistant.prototype.addAssistantconversations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 35, opt_value, proto.AssistantConversation, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.assistant_api.Assistant.prototype.clearAssistantconversationsList = function() { + return this.setAssistantconversationsList([]); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * repeated AssistantWebhook assistantWebhooks = 36; + * @return {!Array} */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.assistant_api.Assistant.prototype.getAssistantwebhooksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, assistant$webhook_pb.AssistantWebhook, 36)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.assistant_api.Assistant.prototype.setAssistantwebhooksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 36, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantProviderModelResponse} returns this + * @param {!proto.assistant_api.AssistantWebhook=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantWebhook} */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.assistant_api.Assistant.prototype.addAssistantwebhooks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 36, opt_value, proto.assistant_api.AssistantWebhook, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.Assistant} returns this */ -proto.assistant_api.CreateAssistantProviderModelResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.assistant_api.Assistant.prototype.clearAssistantwebhooksList = function() { + return this.setAssistantwebhooksList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.AssistantProviderModel.repeatedFields_ = [9]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5867,8 +1832,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.CreateAssistantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantResponse.toObject(opt_includeInstance, this); +proto.assistant_api.AssistantProviderModel.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.AssistantProviderModel.toObject(opt_includeInstance, this); }; @@ -5877,16 +1842,26 @@ proto.assistant_api.CreateAssistantResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.AssistantProviderModel} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.CreateAssistantResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.AssistantProviderModel.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.assistant_api.Assistant.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + template: (f = msg.getTemplate()) && common_pb.TextChatCompletePrompt.toObject(includeInstance, f), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + modelproviderid: jspb.Message.getFieldWithDefault(msg, 6, "0"), + modelprovidername: jspb.Message.getFieldWithDefault(msg, 7, ""), + assistantmodeloptionsList: jspb.Message.toObjectList(msg.getAssistantmodeloptionsList(), + common_pb.Metadata.toObject, includeInstance), + status: jspb.Message.getFieldWithDefault(msg, 12, ""), + createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), + updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -5900,23 +1875,23 @@ proto.assistant_api.CreateAssistantResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.CreateAssistantResponse} + * @return {!proto.assistant_api.AssistantProviderModel} */ -proto.assistant_api.CreateAssistantResponse.deserializeBinary = function(bytes) { +proto.assistant_api.AssistantProviderModel.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantResponse; - return proto.assistant_api.CreateAssistantResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.AssistantProviderModel; + return proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.AssistantProviderModel} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantResponse} + * @return {!proto.assistant_api.AssistantProviderModel} */ -proto.assistant_api.CreateAssistantResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5924,22 +1899,62 @@ proto.assistant_api.CreateAssistantResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); + var value = new common_pb.TextChatCompletePrompt; + reader.readMessage(value,common_pb.TextChatCompletePrompt.deserializeBinaryFromReader); + msg.setTemplate(value); break; case 3: - var value = new proto.assistant_api.Assistant; - reader.readMessage(value,proto.assistant_api.Assistant.deserializeBinaryFromReader); - msg.setData(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + case 6: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setModelproviderid(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setModelprovidername(value); + break; + case 9: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addAssistantmodeloptions(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 13: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); + break; + case 14: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); + break; + case 15: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); + break; + case 16: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); + break; + case 17: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 18: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); break; default: reader.skipField(); @@ -5954,9 +1969,9 @@ proto.assistant_api.CreateAssistantResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.CreateAssistantResponse.prototype.serializeBinary = function() { +proto.assistant_api.AssistantProviderModel.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5964,532 +1979,458 @@ proto.assistant_api.CreateAssistantResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantResponse} message + * @param {!proto.assistant_api.AssistantProviderModel} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.CreateAssistantResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getTemplate(); + if (f != null) { + writer.writeMessage( 2, + f, + common_pb.TextChatCompletePrompt.serializeBinaryToWriter + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, f ); } - f = message.getData(); + f = message.getModelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 6, + f + ); + } + f = message.getModelprovidername(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getAssistantmodeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 13, + f + ); + } + f = message.getCreateduser(); if (f != null) { writer.writeMessage( - 3, + 14, f, - proto.assistant_api.Assistant.serializeBinaryToWriter + common_pb.User.serializeBinaryToWriter ); } - f = message.getError(); + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 15, + f + ); + } + f = message.getUpdateduser(); if (f != null) { writer.writeMessage( - 4, + 16, f, - common_pb.Error.serializeBinaryToWriter + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 18, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** - * optional int32 code = 1; - * @return {number} + * optional uint64 id = 1; + * @return {string} */ -proto.assistant_api.CreateAssistantResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.assistant_api.AssistantProviderModel.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {number} value - * @return {!proto.assistant_api.CreateAssistantResponse} returns this + * @param {string} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.assistant_api.AssistantProviderModel.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional bool success = 2; - * @return {boolean} + * optional TextChatCompletePrompt template = 2; + * @return {?proto.TextChatCompletePrompt} */ -proto.assistant_api.CreateAssistantResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.assistant_api.AssistantProviderModel.prototype.getTemplate = function() { + return /** @type{?proto.TextChatCompletePrompt} */ ( + jspb.Message.getWrapperField(this, common_pb.TextChatCompletePrompt, 2)); }; /** - * @param {boolean} value - * @return {!proto.assistant_api.CreateAssistantResponse} returns this - */ -proto.assistant_api.CreateAssistantResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); + * @param {?proto.TextChatCompletePrompt|undefined} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this +*/ +proto.assistant_api.AssistantProviderModel.prototype.setTemplate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional Assistant data = 3; - * @return {?proto.assistant_api.Assistant} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantResponse.prototype.getData = function() { - return /** @type{?proto.assistant_api.Assistant} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.Assistant, 3)); -}; - - -/** - * @param {?proto.assistant_api.Assistant|undefined} value - * @return {!proto.assistant_api.CreateAssistantResponse} returns this -*/ -proto.assistant_api.CreateAssistantResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.assistant_api.AssistantProviderModel.prototype.clearTemplate = function() { + return this.setTemplate(undefined); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.assistant_api.AssistantProviderModel.prototype.hasTemplate = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * Returns whether this field is set. - * @return {boolean} + * optional string description = 3; + * @return {string} */ -proto.assistant_api.CreateAssistantResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.assistant_api.AssistantProviderModel.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * @param {string} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.assistant_api.AssistantProviderModel.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.CreateAssistantResponse} returns this -*/ -proto.assistant_api.CreateAssistantResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * optional uint64 modelProviderId = 6; + * @return {string} + */ +proto.assistant_api.AssistantProviderModel.prototype.getModelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.CreateAssistantResponse} returns this + * @param {string} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.assistant_api.AssistantProviderModel.prototype.setModelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional string modelProviderName = 7; + * @return {string} */ -proto.assistant_api.CreateAssistantResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.assistant_api.AssistantProviderModel.prototype.getModelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.repeatedFields_ = [2]; - +proto.assistant_api.AssistantProviderModel.prototype.setModelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * repeated Metadata assistantModelOptions = 9; + * @return {!Array} */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.toObject(opt_includeInstance, this); +proto.assistant_api.AssistantProviderModel.prototype.getAssistantmodeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 9)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - assistantknowledgeconfigurationattributesList: jspb.Message.toObjectList(msg.getAssistantknowledgeconfigurationattributesList(), - proto.assistant_api.AssistantKnowledgeConfigurationAttribute.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {!Array} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this +*/ +proto.assistant_api.AssistantProviderModel.prototype.setAssistantmodeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest; - return proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.deserializeBinaryFromReader(msg, reader); +proto.assistant_api.AssistantProviderModel.prototype.addAssistantmodeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.Metadata, opt_index); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 2: - var value = new proto.assistant_api.AssistantKnowledgeConfigurationAttribute; - reader.readMessage(value,proto.assistant_api.AssistantKnowledgeConfigurationAttribute.deserializeBinaryFromReader); - msg.addAssistantknowledgeconfigurationattributes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.assistant_api.AssistantProviderModel.prototype.clearAssistantmodeloptionsList = function() { + return this.setAssistantmodeloptionsList([]); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string status = 12; + * @return {string} */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.assistant_api.AssistantProviderModel.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getAssistantknowledgeconfigurationattributesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.assistant_api.AssistantKnowledgeConfigurationAttribute.serializeBinaryToWriter - ); - } +proto.assistant_api.AssistantProviderModel.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; /** - * optional uint64 assistantId = 1; + * optional uint64 createdBy = 13; * @return {string} */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.AssistantProviderModel.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} returns this + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.AssistantProviderModel.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 13, value); }; /** - * repeated AssistantKnowledgeConfigurationAttribute assistantKnowledgeConfigurationAttributes = 2; - * @return {!Array} + * optional User createdUser = 14; + * @return {?proto.User} */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.getAssistantknowledgeconfigurationattributesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantKnowledgeConfigurationAttribute, 2)); +proto.assistant_api.AssistantProviderModel.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 14)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} returns this + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.setAssistantknowledgeconfigurationattributesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.assistant_api.AssistantProviderModel.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * @param {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantKnowledgeConfigurationAttribute} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.addAssistantknowledgeconfigurationattributes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.assistant_api.AssistantKnowledgeConfigurationAttribute, opt_index); +proto.assistant_api.AssistantProviderModel.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantKnowledgeConfigurationRequest.prototype.clearAssistantknowledgeconfigurationattributesList = function() { - return this.setAssistantknowledgeconfigurationattributesList([]); +proto.assistant_api.AssistantProviderModel.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 14) != null; }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional uint64 updatedBy = 15; + * @return {string} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.repeatedFields_ = [2]; - +proto.assistant_api.AssistantProviderModel.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantToolConfigurationRequest.toObject(opt_includeInstance, this); +proto.assistant_api.AssistantProviderModel.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantToolConfigurationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional User updatedUser = 16; + * @return {?proto.User} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - assistanttoolconfigurationattributeList: jspb.Message.toObjectList(msg.getAssistanttoolconfigurationattributeList(), - proto.assistant_api.AssistantToolConfigurationAttribute.toObject, includeInstance) - }; +proto.assistant_api.AssistantProviderModel.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 16)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this +*/ +proto.assistant_api.AssistantProviderModel.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 16, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.CreateAssistantToolConfigurationRequest} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantToolConfigurationRequest; - return proto.assistant_api.CreateAssistantToolConfigurationRequest.deserializeBinaryFromReader(msg, reader); +proto.assistant_api.AssistantProviderModel.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantToolConfigurationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantToolConfigurationRequest} + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 2: - var value = new proto.assistant_api.AssistantToolConfigurationAttribute; - reader.readMessage(value,proto.assistant_api.AssistantToolConfigurationAttribute.deserializeBinaryFromReader); - msg.addAssistanttoolconfigurationattribute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.assistant_api.AssistantProviderModel.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 16) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional google.protobuf.Timestamp createdDate = 17; + * @return {?proto.google.protobuf.Timestamp} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantToolConfigurationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.assistant_api.AssistantProviderModel.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantToolConfigurationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getAssistanttoolconfigurationattributeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.assistant_api.AssistantToolConfigurationAttribute.serializeBinaryToWriter - ); - } + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this +*/ +proto.assistant_api.AssistantProviderModel.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** - * optional uint64 assistantId = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.AssistantProviderModel.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); }; /** - * @param {string} value - * @return {!proto.assistant_api.CreateAssistantToolConfigurationRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.AssistantProviderModel.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * repeated AssistantToolConfigurationAttribute assistantToolConfigurationAttribute = 2; - * @return {!Array} + * optional google.protobuf.Timestamp updatedDate = 18; + * @return {?proto.google.protobuf.Timestamp} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.getAssistanttoolconfigurationattributeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantToolConfigurationAttribute, 2)); +proto.assistant_api.AssistantProviderModel.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.CreateAssistantToolConfigurationRequest} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.setAssistanttoolconfigurationattributeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.assistant_api.AssistantProviderModel.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 18, value); }; /** - * @param {!proto.assistant_api.AssistantToolConfigurationAttribute=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantToolConfigurationAttribute} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantProviderModel} returns this */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.addAssistanttoolconfigurationattribute = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.assistant_api.AssistantToolConfigurationAttribute, opt_index); +proto.assistant_api.AssistantProviderModel.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.CreateAssistantToolConfigurationRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.clearAssistanttoolconfigurationattributeList = function() { - return this.setAssistanttoolconfigurationattributeList([]); +proto.assistant_api.AssistantProviderModel.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 18) != null; }; @@ -6499,7 +2440,7 @@ proto.assistant_api.CreateAssistantToolConfigurationRequest.prototype.clearAssis * @private {!Array} * @const */ -proto.assistant_api.CreateAssistantTagRequest.repeatedFields_ = [2]; +proto.assistant_api.CreateAssistantRequest.repeatedFields_ = [2,3,9]; @@ -6516,8 +2457,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.CreateAssistantTagRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.CreateAssistantTagRequest.toObject(opt_includeInstance, this); +proto.assistant_api.CreateAssistantRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantRequest.toObject(opt_includeInstance, this); }; @@ -6526,14 +2467,24 @@ proto.assistant_api.CreateAssistantTagRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.CreateAssistantTagRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.CreateAssistantRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.CreateAssistantTagRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.CreateAssistantRequest.toObject = function(includeInstance, msg) { var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - tagsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + assistantprovidermodel: (f = msg.getAssistantprovidermodel()) && proto.assistant_api.CreateAssistantProviderModelRequest.toObject(includeInstance, f), + assistantknowledgesList: jspb.Message.toObjectList(msg.getAssistantknowledgesList(), + assistant$knowledge_pb.CreateAssistantKnowledgeRequest.toObject, includeInstance), + assistanttoolsList: jspb.Message.toObjectList(msg.getAssistanttoolsList(), + assistant$tool_pb.CreateAssistantToolRequest.toObject, includeInstance), + description: jspb.Message.getFieldWithDefault(msg, 4, ""), + visibility: jspb.Message.getFieldWithDefault(msg, 5, ""), + language: jspb.Message.getFieldWithDefault(msg, 6, ""), + source: jspb.Message.getFieldWithDefault(msg, 7, ""), + sourceidentifier: jspb.Message.getFieldWithDefault(msg, 8, "0"), + tagsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + name: jspb.Message.getFieldWithDefault(msg, 10, "") }; if (includeInstance) { @@ -6547,23 +2498,23 @@ proto.assistant_api.CreateAssistantTagRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.CreateAssistantTagRequest} + * @return {!proto.assistant_api.CreateAssistantRequest} */ -proto.assistant_api.CreateAssistantTagRequest.deserializeBinary = function(bytes) { +proto.assistant_api.CreateAssistantRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.CreateAssistantTagRequest; - return proto.assistant_api.CreateAssistantTagRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.CreateAssistantRequest; + return proto.assistant_api.CreateAssistantRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.CreateAssistantTagRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.CreateAssistantRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.CreateAssistantTagRequest} + * @return {!proto.assistant_api.CreateAssistantRequest} */ -proto.assistant_api.CreateAssistantTagRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.CreateAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6571,13 +2522,48 @@ proto.assistant_api.CreateAssistantTagRequest.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); + var value = new proto.assistant_api.CreateAssistantProviderModelRequest; + reader.readMessage(value,proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinaryFromReader); + msg.setAssistantprovidermodel(value); break; case 2: + var value = new assistant$knowledge_pb.CreateAssistantKnowledgeRequest; + reader.readMessage(value,assistant$knowledge_pb.CreateAssistantKnowledgeRequest.deserializeBinaryFromReader); + msg.addAssistantknowledges(value); + break; + case 3: + var value = new assistant$tool_pb.CreateAssistantToolRequest; + reader.readMessage(value,assistant$tool_pb.CreateAssistantToolRequest.deserializeBinaryFromReader); + msg.addAssistanttools(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setVisibility(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setSource(value); + break; + case 8: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setSourceidentifier(value); + break; + case 9: var value = /** @type {string} */ (reader.readString()); msg.addTags(value); break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; default: reader.skipField(); break; @@ -6591,9 +2577,9 @@ proto.assistant_api.CreateAssistantTagRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.CreateAssistantTagRequest.prototype.serializeBinary = function() { +proto.assistant_api.CreateAssistantRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.CreateAssistantTagRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.CreateAssistantRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6601,23 +2587,82 @@ proto.assistant_api.CreateAssistantTagRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.CreateAssistantTagRequest} message + * @param {!proto.assistant_api.CreateAssistantRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.CreateAssistantTagRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.CreateAssistantRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAssistantid(); + f = message.getAssistantprovidermodel(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.assistant_api.CreateAssistantProviderModelRequest.serializeBinaryToWriter + ); + } + f = message.getAssistantknowledgesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + assistant$knowledge_pb.CreateAssistantKnowledgeRequest.serializeBinaryToWriter + ); + } + f = message.getAssistanttoolsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + assistant$tool_pb.CreateAssistantToolRequest.serializeBinaryToWriter + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getVisibility(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getSource(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getSourceidentifier(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 1, + 8, f ); } f = message.getTagsList(); if (f.length > 0) { writer.writeRepeatedString( - 2, + 9, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 10, f ); } @@ -6625,238 +2670,270 @@ proto.assistant_api.CreateAssistantTagRequest.serializeBinaryToWriter = function /** - * optional uint64 assistantId = 1; - * @return {string} + * optional CreateAssistantProviderModelRequest assistantProviderModel = 1; + * @return {?proto.assistant_api.CreateAssistantProviderModelRequest} */ -proto.assistant_api.CreateAssistantTagRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.CreateAssistantRequest.prototype.getAssistantprovidermodel = function() { + return /** @type{?proto.assistant_api.CreateAssistantProviderModelRequest} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.CreateAssistantProviderModelRequest, 1)); }; /** - * @param {string} value - * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this + * @param {?proto.assistant_api.CreateAssistantProviderModelRequest|undefined} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this +*/ +proto.assistant_api.CreateAssistantRequest.prototype.setAssistantprovidermodel = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.CreateAssistantTagRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.CreateAssistantRequest.prototype.clearAssistantprovidermodel = function() { + return this.setAssistantprovidermodel(undefined); }; /** - * repeated string tags = 2; - * @return {!Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.CreateAssistantTagRequest.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.assistant_api.CreateAssistantRequest.prototype.hasAssistantprovidermodel = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated CreateAssistantKnowledgeRequest assistantKnowledges = 2; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantRequest.prototype.getAssistantknowledgesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, assistant$knowledge_pb.CreateAssistantKnowledgeRequest, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this +*/ +proto.assistant_api.CreateAssistantRequest.prototype.setAssistantknowledgesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.assistant_api.CreateAssistantKnowledgeRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} + */ +proto.assistant_api.CreateAssistantRequest.prototype.addAssistantknowledges = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.assistant_api.CreateAssistantKnowledgeRequest, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantRequest} returns this + */ +proto.assistant_api.CreateAssistantRequest.prototype.clearAssistantknowledgesList = function() { + return this.setAssistantknowledgesList([]); +}; + + +/** + * repeated CreateAssistantToolRequest assistantTools = 3; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantRequest.prototype.getAssistanttoolsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, assistant$tool_pb.CreateAssistantToolRequest, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this +*/ +proto.assistant_api.CreateAssistantRequest.prototype.setAssistanttoolsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.assistant_api.CreateAssistantToolRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.CreateAssistantToolRequest} + */ +proto.assistant_api.CreateAssistantRequest.prototype.addAssistanttools = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.CreateAssistantToolRequest, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantRequest} returns this + */ +proto.assistant_api.CreateAssistantRequest.prototype.clearAssistanttoolsList = function() { + return this.setAssistanttoolsList([]); +}; + + +/** + * optional string description = 4; + * @return {string} + */ +proto.assistant_api.CreateAssistantRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this + */ +proto.assistant_api.CreateAssistantRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this + * optional string visibility = 5; + * @return {string} */ -proto.assistant_api.CreateAssistantTagRequest.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.assistant_api.CreateAssistantRequest.prototype.getVisibility = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.CreateAssistantTagRequest.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.assistant_api.CreateAssistantRequest.prototype.setVisibility = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this + * optional string language = 6; + * @return {string} */ -proto.assistant_api.CreateAssistantTagRequest.prototype.clearTagsList = function() { - return this.setTagsList([]); +proto.assistant_api.CreateAssistantRequest.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAssistantRequest.toObject(opt_includeInstance, this); +proto.assistant_api.CreateAssistantRequest.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAssistantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string source = 7; + * @return {string} */ -proto.assistant_api.GetAssistantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - assistantprovidermodelid: jspb.Message.getFieldWithDefault(msg, 4, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.assistant_api.CreateAssistantRequest.prototype.getSource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAssistantRequest} + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAssistantRequest; - return proto.assistant_api.GetAssistantRequest.deserializeBinaryFromReader(msg, reader); +proto.assistant_api.CreateAssistantRequest.prototype.setSource = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.GetAssistantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAssistantRequest} + * optional uint64 sourceIdentifier = 8; + * @return {string} */ -proto.assistant_api.GetAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantprovidermodelid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.assistant_api.CreateAssistantRequest.prototype.getSourceidentifier = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAssistantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.assistant_api.CreateAssistantRequest.prototype.setSourceidentifier = function(value) { + return jspb.Message.setProto3StringIntField(this, 8, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAssistantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * repeated string tags = 9; + * @return {!Array} */ -proto.assistant_api.GetAssistantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeUint64String( - 4, - f - ); - } +proto.assistant_api.CreateAssistantRequest.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); }; /** - * optional uint64 id = 1; - * @return {string} + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.CreateAssistantRequest.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 9, value || []); }; /** * @param {string} value - * @return {!proto.assistant_api.GetAssistantRequest} returns this + * @param {number=} opt_index + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.CreateAssistantRequest.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); }; /** - * optional uint64 assistantProviderModelId = 4; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.prototype.getAssistantprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +proto.assistant_api.CreateAssistantRequest.prototype.clearTagsList = function() { + return this.setTagsList([]); }; /** - * @param {string} value - * @return {!proto.assistant_api.GetAssistantRequest} returns this + * optional string name = 10; + * @return {string} */ -proto.assistant_api.GetAssistantRequest.prototype.setAssistantprovidermodelid = function(value) { - return jspb.Message.setField(this, 4, value); +proto.assistant_api.CreateAssistantRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** - * Clears the field making it undefined. - * @return {!proto.assistant_api.GetAssistantRequest} returns this + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantRequest} returns this */ -proto.assistant_api.GetAssistantRequest.prototype.clearAssistantprovidermodelid = function() { - return jspb.Message.setField(this, 4, undefined); +proto.assistant_api.CreateAssistantRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); }; + /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.assistant_api.GetAssistantRequest.prototype.hasAssistantprovidermodelid = function() { - return jspb.Message.getField(this, 4) != null; -}; - - +proto.assistant_api.CreateAssistantProviderModelRequest.repeatedFields_ = [8]; @@ -6873,8 +2950,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAssistantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAssistantResponse.toObject(opt_includeInstance, this); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantProviderModelRequest.toObject(opt_includeInstance, this); }; @@ -6883,16 +2960,19 @@ proto.assistant_api.GetAssistantResponse.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAssistantResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.CreateAssistantProviderModelRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAssistantResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.CreateAssistantProviderModelRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.assistant_api.Assistant.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + template: (f = msg.getTemplate()) && common_pb.TextChatCompletePrompt.toObject(includeInstance, f), + modelproviderid: jspb.Message.getFieldWithDefault(msg, 6, "0"), + modelprovidername: jspb.Message.getFieldWithDefault(msg, 7, ""), + assistantmodeloptionsList: jspb.Message.toObjectList(msg.getAssistantmodeloptionsList(), + common_pb.Metadata.toObject, includeInstance) }; if (includeInstance) { @@ -6906,23 +2986,23 @@ proto.assistant_api.GetAssistantResponse.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAssistantResponse} + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} */ -proto.assistant_api.GetAssistantResponse.deserializeBinary = function(bytes) { +proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAssistantResponse; - return proto.assistant_api.GetAssistantResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.CreateAssistantProviderModelRequest; + return proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAssistantResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.CreateAssistantProviderModelRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAssistantResponse} + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} */ -proto.assistant_api.GetAssistantResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.CreateAssistantProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6930,22 +3010,30 @@ proto.assistant_api.GetAssistantResponse.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; case 3: - var value = new proto.assistant_api.Assistant; - reader.readMessage(value,proto.assistant_api.Assistant.deserializeBinaryFromReader); - msg.setData(value); + var value = new common_pb.TextChatCompletePrompt; + reader.readMessage(value,common_pb.TextChatCompletePrompt.deserializeBinaryFromReader); + msg.setTemplate(value); break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + case 6: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setModelproviderid(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setModelprovidername(value); + break; + case 8: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addAssistantmodeloptions(value); break; default: reader.skipField(); @@ -6960,9 +3048,9 @@ proto.assistant_api.GetAssistantResponse.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAssistantResponse.prototype.serializeBinary = function() { +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAssistantResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.CreateAssistantProviderModelRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6970,106 +3058,120 @@ proto.assistant_api.GetAssistantResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAssistantResponse} message + * @param {!proto.assistant_api.CreateAssistantProviderModelRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAssistantResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.CreateAssistantProviderModelRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getData(); + f = message.getTemplate(); if (f != null) { writer.writeMessage( 3, f, - proto.assistant_api.Assistant.serializeBinaryToWriter + common_pb.TextChatCompletePrompt.serializeBinaryToWriter + ); + } + f = message.getModelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 6, + f + ); + } + f = message.getModelprovidername(); + if (f.length > 0) { + writer.writeString( + 7, + f ); } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, + f = message.getAssistantmodeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, f, - common_pb.Error.serializeBinaryToWriter + common_pb.Metadata.serializeBinaryToWriter ); } }; /** - * optional int32 code = 1; - * @return {number} + * optional uint64 assistantId = 1; + * @return {string} */ -proto.assistant_api.GetAssistantResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {number} value - * @return {!proto.assistant_api.GetAssistantResponse} returns this + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this */ -proto.assistant_api.GetAssistantResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional bool success = 2; - * @return {boolean} + * optional string description = 2; + * @return {string} */ -proto.assistant_api.GetAssistantResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {boolean} value - * @return {!proto.assistant_api.GetAssistantResponse} returns this + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this */ -proto.assistant_api.GetAssistantResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional Assistant data = 3; - * @return {?proto.assistant_api.Assistant} + * optional TextChatCompletePrompt template = 3; + * @return {?proto.TextChatCompletePrompt} */ -proto.assistant_api.GetAssistantResponse.prototype.getData = function() { - return /** @type{?proto.assistant_api.Assistant} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.Assistant, 3)); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getTemplate = function() { + return /** @type{?proto.TextChatCompletePrompt} */ ( + jspb.Message.getWrapperField(this, common_pb.TextChatCompletePrompt, 3)); }; /** - * @param {?proto.assistant_api.Assistant|undefined} value - * @return {!proto.assistant_api.GetAssistantResponse} returns this + * @param {?proto.TextChatCompletePrompt|undefined} value + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this */ -proto.assistant_api.GetAssistantResponse.prototype.setData = function(value) { +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setTemplate = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAssistantResponse} returns this + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this */ -proto.assistant_api.GetAssistantResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.clearTemplate = function() { + return this.setTemplate(undefined); }; @@ -7077,55 +3179,85 @@ proto.assistant_api.GetAssistantResponse.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAssistantResponse.prototype.hasData = function() { +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.hasTemplate = function() { return jspb.Message.getField(this, 3) != null; }; /** - * optional Error error = 4; - * @return {?proto.Error} + * optional uint64 modelProviderId = 6; + * @return {string} */ -proto.assistant_api.GetAssistantResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getModelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAssistantResponse} returns this -*/ -proto.assistant_api.GetAssistantResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this + */ +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setModelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAssistantResponse} returns this + * optional string modelProviderName = 7; + * @return {string} */ -proto.assistant_api.GetAssistantResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getModelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this */ -proto.assistant_api.GetAssistantResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setModelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; +/** + * repeated Metadata assistantModelOptions = 8; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.getAssistantmodeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 8)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this +*/ +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.setAssistantmodeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} */ -proto.assistant_api.GetAllAssistantRequest.repeatedFields_ = [2]; +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.addAssistantmodeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantProviderModelRequest} returns this + */ +proto.assistant_api.CreateAssistantProviderModelRequest.prototype.clearAssistantmodeloptionsList = function() { + return this.setAssistantmodeloptionsList([]); +}; + + @@ -7142,8 +3274,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantProviderModelResponse.toObject(opt_includeInstance, this); }; @@ -7152,15 +3284,16 @@ proto.assistant_api.GetAllAssistantRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAssistantProviderModelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAssistantProviderModelResponse.toObject = function(includeInstance, msg) { var f, obj = { - paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance) + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.assistant_api.AssistantProviderModel.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -7174,23 +3307,23 @@ proto.assistant_api.GetAllAssistantRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantRequest} + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} */ -proto.assistant_api.GetAllAssistantRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAssistantProviderModelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantRequest; - return proto.assistant_api.GetAllAssistantRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAssistantProviderModelResponse; + return proto.assistant_api.GetAssistantProviderModelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAssistantProviderModelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantRequest} + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} */ -proto.assistant_api.GetAllAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAssistantProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7198,14 +3331,22 @@ proto.assistant_api.GetAllAssistantRequest.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new common_pb.Paginate; - reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); - msg.setPaginate(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; case 2: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantProviderModel; + reader.readMessage(value,proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); break; default: reader.skipField(); @@ -7220,9 +3361,9 @@ proto.assistant_api.GetAllAssistantRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAssistantProviderModelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAssistantProviderModelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7230,56 +3371,106 @@ proto.assistant_api.GetAllAssistantRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantRequest} message + * @param {!proto.assistant_api.GetAssistantProviderModelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAssistantProviderModelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPaginate(); + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); if (f != null) { writer.writeMessage( - 1, + 3, f, - common_pb.Paginate.serializeBinaryToWriter + proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter ); } - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, f, - common_pb.Criteria.serializeBinaryToWriter + common_pb.Error.serializeBinaryToWriter ); } }; /** - * optional Paginate paginate = 1; - * @return {?proto.Paginate} + * optional int32 code = 1; + * @return {number} */ -proto.assistant_api.GetAllAssistantRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.Paginate|undefined} value - * @return {!proto.assistant_api.GetAllAssistantRequest} returns this + * @param {number} value + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} returns this + */ +proto.assistant_api.GetAssistantProviderModelResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAssistantProviderModelResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} returns this + */ +proto.assistant_api.GetAssistantProviderModelResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional AssistantProviderModel data = 3; + * @return {?proto.assistant_api.AssistantProviderModel} + */ +proto.assistant_api.GetAssistantProviderModelResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.AssistantProviderModel} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantProviderModel, 3)); +}; + + +/** + * @param {?proto.assistant_api.AssistantProviderModel|undefined} value + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} returns this */ -proto.assistant_api.GetAllAssistantRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantRequest} returns this + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} returns this */ -proto.assistant_api.GetAllAssistantRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.clearData = function() { + return this.setData(undefined); }; @@ -7287,46 +3478,45 @@ proto.assistant_api.GetAllAssistantRequest.prototype.clearPaginate = function() * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; +proto.assistant_api.GetAssistantProviderModelResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * repeated Criteria criterias = 2; - * @return {!Array} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.assistant_api.GetAllAssistantRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantRequest} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} returns this */ -proto.assistant_api.GetAllAssistantRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} - */ -proto.assistant_api.GetAllAssistantRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantProviderModelResponse} returns this + */ +proto.assistant_api.GetAssistantProviderModelResponse.prototype.clearError = function() { + return this.setError(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.GetAllAssistantRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); +proto.assistant_api.GetAssistantProviderModelResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -7336,7 +3526,7 @@ proto.assistant_api.GetAllAssistantRequest.prototype.clearCriteriasList = functi * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantResponse.repeatedFields_ = [3]; +proto.assistant_api.CreateAssistantTagRequest.repeatedFields_ = [2]; @@ -7353,8 +3543,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantResponse.toObject(opt_includeInstance, this); +proto.assistant_api.CreateAssistantTagRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantTagRequest.toObject(opt_includeInstance, this); }; @@ -7363,18 +3553,14 @@ proto.assistant_api.GetAllAssistantResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.CreateAssistantTagRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.CreateAssistantTagRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.assistant_api.Assistant.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + tagsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -7388,23 +3574,23 @@ proto.assistant_api.GetAllAssistantResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantResponse} + * @return {!proto.assistant_api.CreateAssistantTagRequest} */ -proto.assistant_api.GetAllAssistantResponse.deserializeBinary = function(bytes) { +proto.assistant_api.CreateAssistantTagRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantResponse; - return proto.assistant_api.GetAllAssistantResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.CreateAssistantTagRequest; + return proto.assistant_api.CreateAssistantTagRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.CreateAssistantTagRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantResponse} + * @return {!proto.assistant_api.CreateAssistantTagRequest} */ -proto.assistant_api.GetAllAssistantResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.CreateAssistantTagRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7412,27 +3598,12 @@ proto.assistant_api.GetAllAssistantResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.assistant_api.Assistant; - reader.readMessage(value,proto.assistant_api.Assistant.deserializeBinaryFromReader); - msg.addData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 5: - var value = new common_pb.Paginated; - reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); - msg.setPaginated(value); + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); break; default: reader.skipField(); @@ -7447,9 +3618,9 @@ proto.assistant_api.GetAllAssistantResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantResponse.prototype.serializeBinary = function() { +proto.assistant_api.CreateAssistantTagRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.CreateAssistantTagRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7457,189 +3628,250 @@ proto.assistant_api.GetAllAssistantResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantResponse} message + * @param {!proto.assistant_api.CreateAssistantTagRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.CreateAssistantTagRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, f ); } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.assistant_api.Assistant.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getPaginated(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Paginated.serializeBinaryToWriter - ); - } }; /** - * optional int32 code = 1; - * @return {number} + * optional uint64 assistantId = 1; + * @return {string} */ -proto.assistant_api.GetAllAssistantResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.assistant_api.CreateAssistantTagRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {number} value - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this */ -proto.assistant_api.GetAllAssistantResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.assistant_api.CreateAssistantTagRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional bool success = 2; - * @return {boolean} + * repeated string tags = 2; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.assistant_api.CreateAssistantTagRequest.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {boolean} value - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this */ -proto.assistant_api.GetAllAssistantResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.assistant_api.CreateAssistantTagRequest.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * repeated Assistant data = 3; - * @return {!Array} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this */ -proto.assistant_api.GetAllAssistantResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.Assistant, 3)); +proto.assistant_api.CreateAssistantTagRequest.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this -*/ -proto.assistant_api.GetAllAssistantResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantTagRequest} returns this + */ +proto.assistant_api.CreateAssistantTagRequest.prototype.clearTagsList = function() { + return this.setTagsList([]); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {!proto.assistant_api.Assistant=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.Assistant} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.assistant_api.GetAllAssistantResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.Assistant, opt_index); +proto.assistant_api.GetAssistantRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantRequest.toObject(opt_includeInstance, this); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantResponse.prototype.clearDataList = function() { - return this.setDataList([]); +proto.assistant_api.GetAssistantRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantprovidermodelid: jspb.Message.getFieldWithDefault(msg, 4, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional Error error = 4; - * @return {?proto.Error} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.assistant_api.GetAssistantRequest} */ -proto.assistant_api.GetAllAssistantResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.assistant_api.GetAssistantRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantRequest; + return proto.assistant_api.GetAssistantRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantRequest} + */ +proto.assistant_api.GetAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantprovidermodelid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this -*/ -proto.assistant_api.GetAllAssistantResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeUint64String( + 4, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this + * optional uint64 id = 1; + * @return {string} */ -proto.assistant_api.GetAllAssistantResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.assistant_api.GetAssistantRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.assistant_api.GetAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.assistant_api.GetAssistantRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional Paginated paginated = 5; - * @return {?proto.Paginated} + * optional uint64 assistantProviderModelId = 4; + * @return {string} */ -proto.assistant_api.GetAllAssistantResponse.prototype.getPaginated = function() { - return /** @type{?proto.Paginated} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +proto.assistant_api.GetAssistantRequest.prototype.getAssistantprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; /** - * @param {?proto.Paginated|undefined} value - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this -*/ -proto.assistant_api.GetAllAssistantResponse.prototype.setPaginated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * @param {string} value + * @return {!proto.assistant_api.GetAssistantRequest} returns this + */ +proto.assistant_api.GetAssistantRequest.prototype.setAssistantprovidermodelid = function(value) { + return jspb.Message.setField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantResponse} returns this + * Clears the field making it undefined. + * @return {!proto.assistant_api.GetAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantResponse.prototype.clearPaginated = function() { - return this.setPaginated(undefined); +proto.assistant_api.GetAssistantRequest.prototype.clearAssistantprovidermodelid = function() { + return jspb.Message.setField(this, 4, undefined); }; @@ -7647,19 +3879,12 @@ proto.assistant_api.GetAllAssistantResponse.prototype.clearPaginated = function( * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantResponse.prototype.hasPaginated = function() { - return jspb.Message.getField(this, 5) != null; +proto.assistant_api.GetAssistantRequest.prototype.hasAssistantprovidermodelid = function() { + return jspb.Message.getField(this, 4) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7675,8 +3900,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantProviderModelRequest.toObject(opt_includeInstance, this); +proto.assistant_api.DeleteAssistantRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.DeleteAssistantRequest.toObject(opt_includeInstance, this); }; @@ -7685,16 +3910,13 @@ proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.toObject = fun * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantProviderModelRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.DeleteAssistantRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantProviderModelRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.DeleteAssistantRequest.toObject = function(includeInstance, msg) { var f, obj = { - paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance), - assistantid: jspb.Message.getFieldWithDefault(msg, 5, "0") + id: jspb.Message.getFieldWithDefault(msg, 1, "0") }; if (includeInstance) { @@ -7708,23 +3930,23 @@ proto.assistant_api.GetAllAssistantProviderModelRequest.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} + * @return {!proto.assistant_api.DeleteAssistantRequest} */ -proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinary = function(bytes) { +proto.assistant_api.DeleteAssistantRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantProviderModelRequest; - return proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.DeleteAssistantRequest; + return proto.assistant_api.DeleteAssistantRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantProviderModelRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.DeleteAssistantRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} + * @return {!proto.assistant_api.DeleteAssistantRequest} */ -proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.DeleteAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7732,18 +3954,8 @@ proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinaryFromRea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new common_pb.Paginate; - reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); - msg.setPaginate(value); - break; - case 2: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); - break; - case 5: var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); + msg.setId(value); break; default: reader.skipField(); @@ -7758,9 +3970,9 @@ proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.serializeBinary = function() { +proto.assistant_api.DeleteAssistantRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantProviderModelRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.DeleteAssistantRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7768,32 +3980,16 @@ proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantProviderModelRequest} message + * @param {!proto.assistant_api.DeleteAssistantRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantProviderModelRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.DeleteAssistantRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPaginate(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Paginate.serializeBinaryToWriter - ); - } - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - common_pb.Criteria.serializeBinaryToWriter - ); - } - f = message.getAssistantid(); + f = message.getId(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 5, + 1, f ); } @@ -7801,106 +3997,24 @@ proto.assistant_api.GetAllAssistantProviderModelRequest.serializeBinaryToWriter /** - * optional Paginate paginate = 1; - * @return {?proto.Paginate} - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); -}; - - -/** - * @param {?proto.Paginate|undefined} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this -*/ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated Criteria criterias = 2; - * @return {!Array} - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this -*/ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this - */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); -}; - - -/** - * optional uint64 assistantId = 5; + * optional uint64 id = 1; * @return {string} */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.assistant_api.DeleteAssistantRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this + * @return {!proto.assistant_api.DeleteAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); +proto.assistant_api.DeleteAssistantRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.assistant_api.GetAllAssistantProviderModelResponse.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7916,8 +4030,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantProviderModelResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAssistantResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantResponse.toObject(opt_includeInstance, this); }; @@ -7926,18 +4040,16 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.toObject = fu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantProviderModelResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAssistantResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantProviderModelResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAssistantResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.assistant_api.AssistantProviderModel.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) + data: (f = msg.getData()) && proto.assistant_api.Assistant.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -7951,23 +4063,23 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} + * @return {!proto.assistant_api.GetAssistantResponse} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAssistantResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantProviderModelResponse; - return proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAssistantResponse; + return proto.assistant_api.GetAssistantResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantProviderModelResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAssistantResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} + * @return {!proto.assistant_api.GetAssistantResponse} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAssistantResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7983,20 +4095,15 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinaryFromRe msg.setSuccess(value); break; case 3: - var value = new proto.assistant_api.AssistantProviderModel; - reader.readMessage(value,proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader); - msg.addData(value); + var value = new proto.assistant_api.Assistant; + reader.readMessage(value,proto.assistant_api.Assistant.deserializeBinaryFromReader); + msg.setData(value); break; case 4: var value = new common_pb.Error; reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; - case 5: - var value = new common_pb.Paginated; - reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); - msg.setPaginated(value); - break; default: reader.skipField(); break; @@ -8010,9 +4117,9 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAssistantResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAssistantResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8020,11 +4127,11 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantProviderModelResponse} message + * @param {!proto.assistant_api.GetAssistantResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAssistantResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -8040,12 +4147,12 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter f ); } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getData(); + if (f != null) { + writer.writeMessage( 3, f, - proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter + proto.assistant_api.Assistant.serializeBinaryToWriter ); } f = message.getError(); @@ -8056,14 +4163,6 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter common_pb.Error.serializeBinaryToWriter ); } - f = message.getPaginated(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Paginated.serializeBinaryToWriter - ); - } }; @@ -8071,16 +4170,16 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter * optional int32 code = 1; * @return {number} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getCode = function() { +proto.assistant_api.GetAssistantResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this + * @return {!proto.assistant_api.GetAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAssistantResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -8089,55 +4188,54 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setCode = fun * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAssistantResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this + * @return {!proto.assistant_api.GetAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAssistantResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated AssistantProviderModel data = 3; - * @return {!Array} + * optional Assistant data = 3; + * @return {?proto.assistant_api.Assistant} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantProviderModel, 3)); +proto.assistant_api.GetAssistantResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.Assistant} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.Assistant, 3)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this + * @param {?proto.assistant_api.Assistant|undefined} value + * @return {!proto.assistant_api.GetAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.assistant_api.GetAssistantResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {!proto.assistant_api.AssistantProviderModel=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantProviderModel} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantProviderModel, opt_index); +proto.assistant_api.GetAssistantResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearDataList = function() { - return this.setDataList([]); +proto.assistant_api.GetAssistantResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -8145,7 +4243,7 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearDataList * optional Error error = 4; * @return {?proto.Error} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getError = function() { +proto.assistant_api.GetAssistantResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -8153,18 +4251,18 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getError = fu /** * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this + * @return {!proto.assistant_api.GetAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setError = function(value) { +proto.assistant_api.GetAssistantResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this + * @return {!proto.assistant_api.GetAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearError = function() { +proto.assistant_api.GetAssistantResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -8173,55 +4271,18 @@ proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearError = * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.hasError = function() { +proto.assistant_api.GetAssistantResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; -/** - * optional Paginated paginated = 5; - * @return {?proto.Paginated} - */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getPaginated = function() { - return /** @type{?proto.Paginated} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); -}; - - -/** - * @param {?proto.Paginated|undefined} value - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this -*/ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setPaginated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this - */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearPaginated = function() { - return this.setPaginated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.hasPaginated = function() { - return jspb.Message.getField(this, 5) != null; -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantMessageRequest.repeatedFields_ = [2]; +proto.assistant_api.GetAllAssistantRequest.repeatedFields_ = [2]; @@ -8238,8 +4299,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantMessageRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantRequest.toObject(opt_includeInstance, this); }; @@ -8248,17 +4309,15 @@ proto.assistant_api.GetAllAssistantMessageRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantMessageRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantMessageRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantRequest.toObject = function(includeInstance, msg) { var f, obj = { paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance), - assistantid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - order: (f = msg.getOrder()) && common_pb.Ordering.toObject(includeInstance, f) + common_pb.Criteria.toObject, includeInstance) }; if (includeInstance) { @@ -8272,23 +4331,23 @@ proto.assistant_api.GetAllAssistantMessageRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} + * @return {!proto.assistant_api.GetAllAssistantRequest} */ -proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantMessageRequest; - return proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantRequest; + return proto.assistant_api.GetAllAssistantRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantMessageRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} + * @return {!proto.assistant_api.GetAllAssistantRequest} */ -proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8305,15 +4364,6 @@ proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinaryFromReader = reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); msg.addCriterias(value); break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 5: - var value = new common_pb.Ordering; - reader.readMessage(value,common_pb.Ordering.deserializeBinaryFromReader); - msg.setOrder(value); - break; default: reader.skipField(); break; @@ -8327,9 +4377,9 @@ proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantMessageRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8337,11 +4387,11 @@ proto.assistant_api.GetAllAssistantMessageRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantMessageRequest} message + * @param {!proto.assistant_api.GetAllAssistantRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantMessageRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPaginate(); if (f != null) { @@ -8359,21 +4409,6 @@ proto.assistant_api.GetAllAssistantMessageRequest.serializeBinaryToWriter = func common_pb.Criteria.serializeBinaryToWriter ); } - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getOrder(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Ordering.serializeBinaryToWriter - ); - } }; @@ -8381,7 +4416,7 @@ proto.assistant_api.GetAllAssistantMessageRequest.serializeBinaryToWriter = func * optional Paginate paginate = 1; * @return {?proto.Paginate} */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.getPaginate = function() { +proto.assistant_api.GetAllAssistantRequest.prototype.getPaginate = function() { return /** @type{?proto.Paginate} */ ( jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); }; @@ -8389,18 +4424,18 @@ proto.assistant_api.GetAllAssistantMessageRequest.prototype.getPaginate = functi /** * @param {?proto.Paginate|undefined} value - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this + * @return {!proto.assistant_api.GetAllAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.setPaginate = function(value) { +proto.assistant_api.GetAllAssistantRequest.prototype.setPaginate = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this + * @return {!proto.assistant_api.GetAllAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearPaginate = function() { +proto.assistant_api.GetAllAssistantRequest.prototype.clearPaginate = function() { return this.setPaginate(undefined); }; @@ -8409,101 +4444,46 @@ proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearPaginate = func * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.hasPaginate = function() { +proto.assistant_api.GetAllAssistantRequest.prototype.hasPaginate = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Criteria criterias = 2; - * @return {!Array} - */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this -*/ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} - */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this - */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); -}; - - -/** - * optional uint64 assistantId = 3; - * @return {string} - */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this - */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional Ordering order = 5; - * @return {?proto.Ordering} + * repeated Criteria criterias = 2; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.getOrder = function() { - return /** @type{?proto.Ordering} */ ( - jspb.Message.getWrapperField(this, common_pb.Ordering, 5)); +proto.assistant_api.GetAllAssistantRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); }; /** - * @param {?proto.Ordering|undefined} value - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.setOrder = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.assistant_api.GetAllAssistantRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearOrder = function() { - return this.setOrder(undefined); +proto.assistant_api.GetAllAssistantRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantRequest} returns this */ -proto.assistant_api.GetAllAssistantMessageRequest.prototype.hasOrder = function() { - return jspb.Message.getField(this, 5) != null; +proto.assistant_api.GetAllAssistantRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; @@ -8513,7 +4493,7 @@ proto.assistant_api.GetAllAssistantMessageRequest.prototype.hasOrder = function( * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantMessageResponse.repeatedFields_ = [3]; +proto.assistant_api.GetAllAssistantResponse.repeatedFields_ = [3]; @@ -8530,8 +4510,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantMessageResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantResponse.toObject(opt_includeInstance, this); }; @@ -8540,16 +4520,16 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantMessageResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantMessageResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.AssistantConversationMessage.toObject, includeInstance), + proto.assistant_api.Assistant.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; @@ -8565,23 +4545,23 @@ proto.assistant_api.GetAllAssistantMessageResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} + * @return {!proto.assistant_api.GetAllAssistantResponse} */ -proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantMessageResponse; - return proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantResponse; + return proto.assistant_api.GetAllAssistantResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantMessageResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} + * @return {!proto.assistant_api.GetAllAssistantResponse} */ -proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8597,8 +4577,8 @@ proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinaryFromReader = msg.setSuccess(value); break; case 3: - var value = new common_pb.AssistantConversationMessage; - reader.readMessage(value,common_pb.AssistantConversationMessage.deserializeBinaryFromReader); + var value = new proto.assistant_api.Assistant; + reader.readMessage(value,proto.assistant_api.Assistant.deserializeBinaryFromReader); msg.addData(value); break; case 4: @@ -8624,9 +4604,9 @@ proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantMessageResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8634,11 +4614,11 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantMessageResponse} message + * @param {!proto.assistant_api.GetAllAssistantResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantMessageResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -8659,7 +4639,7 @@ proto.assistant_api.GetAllAssistantMessageResponse.serializeBinaryToWriter = fun writer.writeRepeatedMessage( 3, f, - common_pb.AssistantConversationMessage.serializeBinaryToWriter + proto.assistant_api.Assistant.serializeBinaryToWriter ); } f = message.getError(); @@ -8685,16 +4665,16 @@ proto.assistant_api.GetAllAssistantMessageResponse.serializeBinaryToWriter = fun * optional int32 code = 1; * @return {number} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.getCode = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAllAssistantResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -8703,54 +4683,54 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.setCode = function( * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAllAssistantResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated AssistantConversationMessage data = 3; - * @return {!Array} + * repeated Assistant data = 3; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversationMessage, 3)); +proto.assistant_api.GetAllAssistantResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.Assistant, 3)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.setDataList = function(value) { +proto.assistant_api.GetAllAssistantResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.AssistantConversationMessage=} opt_value + * @param {!proto.assistant_api.Assistant=} opt_value * @param {number=} opt_index - * @return {!proto.AssistantConversationMessage} + * @return {!proto.assistant_api.Assistant} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversationMessage, opt_index); +proto.assistant_api.GetAllAssistantResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.Assistant, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearDataList = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -8759,7 +4739,7 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearDataList = fun * optional Error error = 4; * @return {?proto.Error} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.getError = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -8767,18 +4747,18 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.getError = function /** * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.setError = function(value) { +proto.assistant_api.GetAllAssistantResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearError = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -8787,7 +4767,7 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearError = functi * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.hasError = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -8796,7 +4776,7 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.hasError = function * optional Paginated paginated = 5; * @return {?proto.Paginated} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.getPaginated = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.getPaginated = function() { return /** @type{?proto.Paginated} */ ( jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; @@ -8804,18 +4784,18 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.getPaginated = func /** * @param {?proto.Paginated|undefined} value - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.setPaginated = function(value) { +proto.assistant_api.GetAllAssistantResponse.prototype.setPaginated = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantResponse} returns this */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearPaginated = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.clearPaginated = function() { return this.setPaginated(undefined); }; @@ -8824,12 +4804,19 @@ proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearPaginated = fu * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantMessageResponse.prototype.hasPaginated = function() { +proto.assistant_api.GetAllAssistantResponse.prototype.hasPaginated = function() { return jspb.Message.getField(this, 5) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantProviderModelRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -8845,8 +4832,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.UpdateAssistantVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.UpdateAssistantVersionRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantProviderModelRequest.toObject(opt_includeInstance, this); }; @@ -8855,14 +4842,16 @@ proto.assistant_api.UpdateAssistantVersionRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.UpdateAssistantVersionRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantProviderModelRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.UpdateAssistantVersionRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantProviderModelRequest.toObject = function(includeInstance, msg) { var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - assistantprovidermodelid: jspb.Message.getFieldWithDefault(msg, 2, "0") + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.toObject, includeInstance), + assistantid: jspb.Message.getFieldWithDefault(msg, 5, "0") }; if (includeInstance) { @@ -8876,23 +4865,23 @@ proto.assistant_api.UpdateAssistantVersionRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.UpdateAssistantVersionRequest} + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} */ -proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.UpdateAssistantVersionRequest; - return proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantProviderModelRequest; + return proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.UpdateAssistantVersionRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantProviderModelRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.UpdateAssistantVersionRequest} + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} */ -proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8900,12 +4889,18 @@ proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); break; case 2: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + case 5: var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantprovidermodelid(value); + msg.setAssistantid(value); break; default: reader.skipField(); @@ -8920,9 +4915,9 @@ proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.UpdateAssistantVersionRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.UpdateAssistantVersionRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantProviderModelRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8930,23 +4925,32 @@ proto.assistant_api.UpdateAssistantVersionRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.UpdateAssistantVersionRequest} message + * @param {!proto.assistant_api.GetAllAssistantProviderModelRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.UpdateAssistantVersionRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantProviderModelRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( 1, - f + f, + common_pb.Paginate.serializeBinaryToWriter ); } - f = message.getAssistantprovidermodelid(); + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } + f = message.getAssistantid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 2, + 5, f ); } @@ -8954,42 +4958,106 @@ proto.assistant_api.UpdateAssistantVersionRequest.serializeBinaryToWriter = func /** - * optional uint64 assistantId = 1; - * @return {string} + * optional Paginate paginate = 1; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this +*/ +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this + */ +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Criteria criterias = 2; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this +*/ +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} */ -proto.assistant_api.UpdateAssistantVersionRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** - * @param {string} value - * @return {!proto.assistant_api.UpdateAssistantVersionRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this */ -proto.assistant_api.UpdateAssistantVersionRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; /** - * optional uint64 assistantProviderModelId = 2; + * optional uint64 assistantId = 5; * @return {string} */ -proto.assistant_api.UpdateAssistantVersionRequest.prototype.getAssistantprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.UpdateAssistantVersionRequest} returns this + * @return {!proto.assistant_api.GetAllAssistantProviderModelRequest} returns this */ -proto.assistant_api.UpdateAssistantVersionRequest.prototype.setAssistantprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.assistant_api.GetAllAssistantProviderModelRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantProviderModelResponse.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -9005,8 +5073,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.UpdateAssistantVersionResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantProviderModelResponse.toObject(opt_includeInstance, this); }; @@ -9015,16 +5083,18 @@ proto.assistant_api.UpdateAssistantVersionResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.UpdateAssistantVersionResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantProviderModelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.UpdateAssistantVersionResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantProviderModelResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.assistant_api.Assistant.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.assistant_api.AssistantProviderModel.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; if (includeInstance) { @@ -9038,23 +5108,23 @@ proto.assistant_api.UpdateAssistantVersionResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} */ -proto.assistant_api.UpdateAssistantVersionResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.UpdateAssistantVersionResponse; - return proto.assistant_api.UpdateAssistantVersionResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantProviderModelResponse; + return proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.UpdateAssistantVersionResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantProviderModelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} */ -proto.assistant_api.UpdateAssistantVersionResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9070,15 +5140,20 @@ proto.assistant_api.UpdateAssistantVersionResponse.deserializeBinaryFromReader = msg.setSuccess(value); break; case 3: - var value = new proto.assistant_api.Assistant; - reader.readMessage(value,proto.assistant_api.Assistant.deserializeBinaryFromReader); - msg.setData(value); + var value = new proto.assistant_api.AssistantProviderModel; + reader.readMessage(value,proto.assistant_api.AssistantProviderModel.deserializeBinaryFromReader); + msg.addData(value); break; case 4: var value = new common_pb.Error; reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; default: reader.skipField(); break; @@ -9092,9 +5167,9 @@ proto.assistant_api.UpdateAssistantVersionResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.UpdateAssistantVersionResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9102,11 +5177,11 @@ proto.assistant_api.UpdateAssistantVersionResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.UpdateAssistantVersionResponse} message + * @param {!proto.assistant_api.GetAllAssistantProviderModelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.UpdateAssistantVersionResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantProviderModelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -9122,12 +5197,12 @@ proto.assistant_api.UpdateAssistantVersionResponse.serializeBinaryToWriter = fun f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, f, - proto.assistant_api.Assistant.serializeBinaryToWriter + proto.assistant_api.AssistantProviderModel.serializeBinaryToWriter ); } f = message.getError(); @@ -9138,6 +5213,14 @@ proto.assistant_api.UpdateAssistantVersionResponse.serializeBinaryToWriter = fun common_pb.Error.serializeBinaryToWriter ); } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } }; @@ -9145,16 +5228,16 @@ proto.assistant_api.UpdateAssistantVersionResponse.serializeBinaryToWriter = fun * optional int32 code = 1; * @return {number} */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.getCode = function() { +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -9163,281 +5246,129 @@ proto.assistant_api.UpdateAssistantVersionResponse.prototype.setCode = function( * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional Assistant data = 3; - * @return {?proto.assistant_api.Assistant} - */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.getData = function() { - return /** @type{?proto.assistant_api.Assistant} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.Assistant, 3)); -}; - - -/** - * @param {?proto.assistant_api.Assistant|undefined} value - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} returns this -*/ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} returns this - */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} + * repeated AssistantProviderModel data = 3; + * @return {!Array} */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantProviderModel, 3)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.UpdateAssistantVersionResponse} returns this - */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.assistant_api.UpdateAssistantVersionResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.UpdateAssistantDetailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.assistant_api.UpdateAssistantDetailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.assistant_api.UpdateAssistantDetailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: 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.assistant_api.UpdateAssistantDetailRequest} - */ -proto.assistant_api.UpdateAssistantDetailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.UpdateAssistantDetailRequest; - return proto.assistant_api.UpdateAssistantDetailRequest.deserializeBinaryFromReader(msg, reader); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.assistant_api.UpdateAssistantDetailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.UpdateAssistantDetailRequest} + * @param {!proto.assistant_api.AssistantProviderModel=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantProviderModel} */ -proto.assistant_api.UpdateAssistantDetailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantProviderModel, opt_index); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.assistant_api.UpdateAssistantDetailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.UpdateAssistantDetailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional Error error = 4; + * @return {?proto.Error} */ -proto.assistant_api.UpdateAssistantDetailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * optional uint64 assistantId = 1; - * @return {string} - */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this +*/ +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * @param {string} value - * @return {!proto.assistant_api.UpdateAssistantDetailRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearError = function() { + return this.setError(undefined); }; /** - * optional string name = 2; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * @param {string} value - * @return {!proto.assistant_api.UpdateAssistantDetailRequest} returns this + * optional Paginated paginated = 5; + * @return {?proto.Paginated} */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; /** - * optional string description = 3; - * @return {string} + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this +*/ +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantProviderModelResponse} returns this */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); }; /** - * @param {string} value - * @return {!proto.assistant_api.UpdateAssistantDetailRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.UpdateAssistantDetailRequest.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.assistant_api.GetAllAssistantProviderModelResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; }; @@ -9447,7 +5378,7 @@ proto.assistant_api.UpdateAssistantDetailRequest.prototype.setDescription = func * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantUserConversationRequest.repeatedFields_ = [3]; +proto.assistant_api.GetAllAssistantMessageRequest.repeatedFields_ = [2,6]; @@ -9464,8 +5395,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantUserConversationRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantMessageRequest.toObject(opt_includeInstance, this); }; @@ -9474,17 +5405,19 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantUserConversationRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantMessageRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantUserConversationRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantMessageRequest.toObject = function(includeInstance, msg) { var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), common_pb.Criteria.toObject, includeInstance), - source: jspb.Message.getFieldWithDefault(msg, 7, 0) + assistantid: jspb.Message.getFieldWithDefault(msg, 3, "0"), + order: (f = msg.getOrder()) && common_pb.Ordering.toObject(includeInstance, f), + selectorsList: jspb.Message.toObjectList(msg.getSelectorsList(), + common_pb.FieldSelector.toObject, includeInstance) }; if (includeInstance) { @@ -9498,23 +5431,23 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantUserConversationRequest; - return proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantMessageRequest; + return proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantUserConversationRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantMessageRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantMessageRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9522,22 +5455,28 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFrom var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 2: var value = new common_pb.Paginate; reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); msg.setPaginate(value); break; - case 3: + case 2: var value = new common_pb.Criteria; reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); msg.addCriterias(value); break; - case 7: - var value = /** @type {!proto.Source} */ (reader.readEnum()); - msg.setSource(value); + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 5: + var value = new common_pb.Ordering; + reader.readMessage(value,common_pb.Ordering.deserializeBinaryFromReader); + msg.setOrder(value); + break; + case 6: + var value = new common_pb.FieldSelector; + reader.readMessage(value,common_pb.FieldSelector.deserializeBinaryFromReader); + msg.addSelectors(value); break; default: reader.skipField(); @@ -9552,9 +5491,9 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantMessageRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantMessageRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9562,23 +5501,16 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantUserConversationRequest} message + * @param {!proto.assistant_api.GetAllAssistantMessageRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantMessageRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } f = message.getPaginate(); if (f != null) { writer.writeMessage( - 2, + 1, f, common_pb.Paginate.serializeBinaryToWriter ); @@ -9586,64 +5518,155 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWrit f = message.getCriteriasList(); if (f.length > 0) { writer.writeRepeatedMessage( - 3, + 2, f, common_pb.Criteria.serializeBinaryToWriter ); } - f = message.getSource(); - if (f !== 0.0) { - writer.writeEnum( - 7, + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, f ); } + f = message.getOrder(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Ordering.serializeBinaryToWriter + ); + } + f = message.getSelectorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + common_pb.FieldSelector.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Paginate paginate = 1; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this +*/ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this + */ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Criteria criterias = 2; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this +*/ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this + */ +proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; /** - * optional uint64 assistantId = 1; + * optional uint64 assistantId = 3; * @return {string} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** - * optional Paginate paginate = 2; - * @return {?proto.Paginate} + * optional Ordering order = 5; + * @return {?proto.Ordering} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.getOrder = function() { + return /** @type{?proto.Ordering} */ ( + jspb.Message.getWrapperField(this, common_pb.Ordering, 5)); }; /** - * @param {?proto.Paginate|undefined} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + * @param {?proto.Ordering|undefined} value + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.setOrder = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearOrder = function() { + return this.setOrder(undefined); }; @@ -9651,64 +5674,46 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearPagina * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 2) != null; +proto.assistant_api.GetAllAssistantMessageRequest.prototype.hasOrder = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * repeated Criteria criterias = 3; - * @return {!Array} + * repeated FieldSelector selectors = 6; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.getSelectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.FieldSelector, 6)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.setSelectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * @param {!proto.Criteria=} opt_value + * @param {!proto.FieldSelector=} opt_value * @param {number=} opt_index - * @return {!proto.Criteria} + * @return {!proto.FieldSelector} */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.addSelectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.FieldSelector, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this - */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); -}; - - -/** - * optional Source source = 7; - * @return {!proto.Source} - */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getSource = function() { - return /** @type {!proto.Source} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.Source} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setSource = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); +proto.assistant_api.GetAllAssistantMessageRequest.prototype.clearSelectorsList = function() { + return this.setSelectorsList([]); }; @@ -9718,7 +5723,7 @@ proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setSource = * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantUserConversationResponse.repeatedFields_ = [3]; +proto.assistant_api.GetAllAssistantMessageResponse.repeatedFields_ = [3]; @@ -9735,8 +5740,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantUserConversationResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantMessageResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantMessageResponse.toObject(opt_includeInstance, this); }; @@ -9745,16 +5750,16 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantUserConversationResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantMessageResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantUserConversationResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantMessageResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.AssistantConversation.toObject, includeInstance), + common_pb.AssistantConversationMessage.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; @@ -9770,23 +5775,23 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.toObject = function( /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantUserConversationResponse; - return proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantMessageResponse; + return proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantUserConversationResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantMessageResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantMessageResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9802,8 +5807,8 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFro msg.setSuccess(value); break; case 3: - var value = new common_pb.AssistantConversation; - reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); + var value = new common_pb.AssistantConversationMessage; + reader.readMessage(value,common_pb.AssistantConversationMessage.deserializeBinaryFromReader); msg.addData(value); break; case 4: @@ -9829,9 +5834,9 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFro * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantMessageResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9839,11 +5844,11 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.serializeB /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantUserConversationResponse} message + * @param {!proto.assistant_api.GetAllAssistantMessageResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantMessageResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -9864,7 +5869,7 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWri writer.writeRepeatedMessage( 3, f, - common_pb.AssistantConversation.serializeBinaryToWriter + common_pb.AssistantConversationMessage.serializeBinaryToWriter ); } f = message.getError(); @@ -9890,16 +5895,16 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWri * optional int32 code = 1; * @return {number} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getCode = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -9908,54 +5913,54 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setCode = * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated AssistantConversation data = 3; - * @return {!Array} + * repeated AssistantConversationMessage data = 3; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversation, 3)); +proto.assistant_api.GetAllAssistantMessageResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversationMessage, 3)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setDataList = function(value) { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.AssistantConversation=} opt_value + * @param {!proto.AssistantConversationMessage=} opt_value * @param {number=} opt_index - * @return {!proto.AssistantConversation} + * @return {!proto.AssistantConversationMessage} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversation, opt_index); +proto.assistant_api.GetAllAssistantMessageResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversationMessage, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearDataList = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -9964,7 +5969,7 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearDataL * optional Error error = 4; * @return {?proto.Error} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getError = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -9972,18 +5977,18 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getError = /** * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setError = function(value) { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearError = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -9992,7 +5997,7 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearError * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasError = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -10001,7 +6006,7 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasError = * optional Paginated paginated = 5; * @return {?proto.Paginated} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getPaginated = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.getPaginated = function() { return /** @type{?proto.Paginated} */ ( jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; @@ -10009,18 +6014,18 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getPaginat /** * @param {?proto.Paginated|undefined} value - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setPaginated = function(value) { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.setPaginated = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearPaginated = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.clearPaginated = function() { return this.setPaginated(undefined); }; @@ -10029,7 +6034,7 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearPagin * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasPaginated = function() { +proto.assistant_api.GetAllAssistantMessageResponse.prototype.hasPaginated = function() { return jspb.Message.getField(this, 5) != null; }; @@ -10040,7 +6045,7 @@ proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasPaginat * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantToolRequest.repeatedFields_ = [3]; +proto.assistant_api.GetAllMessageRequest.repeatedFields_ = [2,6]; @@ -10057,8 +6062,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantToolRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllMessageRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllMessageRequest.toObject(opt_includeInstance, this); }; @@ -10067,16 +6072,18 @@ proto.assistant_api.GetAllAssistantToolRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantToolRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllMessageRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantToolRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllMessageRequest.toObject = function(includeInstance, msg) { var f, obj = { - assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance) + common_pb.Criteria.toObject, includeInstance), + order: (f = msg.getOrder()) && common_pb.Ordering.toObject(includeInstance, f), + selectorsList: jspb.Message.toObjectList(msg.getSelectorsList(), + common_pb.FieldSelector.toObject, includeInstance) }; if (includeInstance) { @@ -10090,23 +6097,23 @@ proto.assistant_api.GetAllAssistantToolRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantToolRequest} + * @return {!proto.assistant_api.GetAllMessageRequest} */ -proto.assistant_api.GetAllAssistantToolRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllMessageRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantToolRequest; - return proto.assistant_api.GetAllAssistantToolRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllMessageRequest; + return proto.assistant_api.GetAllMessageRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantToolRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllMessageRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantToolRequest} + * @return {!proto.assistant_api.GetAllMessageRequest} */ -proto.assistant_api.GetAllAssistantToolRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllMessageRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10114,19 +6121,25 @@ proto.assistant_api.GetAllAssistantToolRequest.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAssistantid(value); - break; - case 2: var value = new common_pb.Paginate; reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); msg.setPaginate(value); break; - case 3: + case 2: var value = new common_pb.Criteria; reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); msg.addCriterias(value); break; + case 5: + var value = new common_pb.Ordering; + reader.readMessage(value,common_pb.Ordering.deserializeBinaryFromReader); + msg.setOrder(value); + break; + case 6: + var value = new common_pb.FieldSelector; + reader.readMessage(value,common_pb.FieldSelector.deserializeBinaryFromReader); + msg.addSelectors(value); + break; default: reader.skipField(); break; @@ -10140,9 +6153,9 @@ proto.assistant_api.GetAllAssistantToolRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAllMessageRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantToolRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllMessageRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10150,23 +6163,16 @@ proto.assistant_api.GetAllAssistantToolRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantToolRequest} message + * @param {!proto.assistant_api.GetAllMessageRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantToolRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllMessageRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAssistantid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } f = message.getPaginate(); if (f != null) { writer.writeMessage( - 2, + 1, f, common_pb.Paginate.serializeBinaryToWriter ); @@ -10174,57 +6180,130 @@ proto.assistant_api.GetAllAssistantToolRequest.serializeBinaryToWriter = functio f = message.getCriteriasList(); if (f.length > 0) { writer.writeRepeatedMessage( - 3, + 2, f, common_pb.Criteria.serializeBinaryToWriter ); } + f = message.getOrder(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Ordering.serializeBinaryToWriter + ); + } + f = message.getSelectorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + common_pb.FieldSelector.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Paginate paginate = 1; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllMessageRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllMessageRequest} returns this +*/ +proto.assistant_api.GetAllMessageRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllMessageRequest} returns this + */ +proto.assistant_api.GetAllMessageRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllMessageRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional uint64 assistantId = 1; - * @return {string} + * repeated Criteria criterias = 2; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.getAssistantid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.GetAllMessageRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); }; /** - * @param {string} value - * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllMessageRequest} returns this +*/ +proto.assistant_api.GetAllMessageRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.setAssistantid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.assistant_api.GetAllMessageRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** - * optional Paginate paginate = 2; - * @return {?proto.Paginate} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +proto.assistant_api.GetAllMessageRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; /** - * @param {?proto.Paginate|undefined} value - * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + * optional Ordering order = 5; + * @return {?proto.Ordering} + */ +proto.assistant_api.GetAllMessageRequest.prototype.getOrder = function() { + return /** @type{?proto.Ordering} */ ( + jspb.Message.getWrapperField(this, common_pb.Ordering, 5)); +}; + + +/** + * @param {?proto.Ordering|undefined} value + * @return {!proto.assistant_api.GetAllMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.assistant_api.GetAllMessageRequest.prototype.setOrder = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + * @return {!proto.assistant_api.GetAllMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); +proto.assistant_api.GetAllMessageRequest.prototype.clearOrder = function() { + return this.setOrder(undefined); }; @@ -10232,46 +6311,46 @@ proto.assistant_api.GetAllAssistantToolRequest.prototype.clearPaginate = functio * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 2) != null; +proto.assistant_api.GetAllMessageRequest.prototype.hasOrder = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * repeated Criteria criterias = 3; - * @return {!Array} + * repeated FieldSelector selectors = 6; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +proto.assistant_api.GetAllMessageRequest.prototype.getSelectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.FieldSelector, 6)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.assistant_api.GetAllMessageRequest.prototype.setSelectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * @param {!proto.Criteria=} opt_value + * @param {!proto.FieldSelector=} opt_value * @param {number=} opt_index - * @return {!proto.Criteria} + * @return {!proto.FieldSelector} */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +proto.assistant_api.GetAllMessageRequest.prototype.addSelectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.FieldSelector, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + * @return {!proto.assistant_api.GetAllMessageRequest} returns this */ -proto.assistant_api.GetAllAssistantToolRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); +proto.assistant_api.GetAllMessageRequest.prototype.clearSelectorsList = function() { + return this.setSelectorsList([]); }; @@ -10281,7 +6360,7 @@ proto.assistant_api.GetAllAssistantToolRequest.prototype.clearCriteriasList = fu * @private {!Array} * @const */ -proto.assistant_api.GetAllAssistantToolResponse.repeatedFields_ = [3]; +proto.assistant_api.GetAllMessageResponse.repeatedFields_ = [3]; @@ -10298,8 +6377,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllAssistantToolResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllMessageResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllMessageResponse.toObject(opt_includeInstance, this); }; @@ -10308,16 +6387,16 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllAssistantToolResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllMessageResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantToolResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllMessageResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.assistant_api.AssistantTool.toObject, includeInstance), + common_pb.AssistantConversationMessage.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; @@ -10333,23 +6412,23 @@ proto.assistant_api.GetAllAssistantToolResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllAssistantToolResponse} + * @return {!proto.assistant_api.GetAllMessageResponse} */ -proto.assistant_api.GetAllAssistantToolResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllMessageResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllAssistantToolResponse; - return proto.assistant_api.GetAllAssistantToolResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllMessageResponse; + return proto.assistant_api.GetAllMessageResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllAssistantToolResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllMessageResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllAssistantToolResponse} + * @return {!proto.assistant_api.GetAllMessageResponse} */ -proto.assistant_api.GetAllAssistantToolResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllMessageResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10365,8 +6444,8 @@ proto.assistant_api.GetAllAssistantToolResponse.deserializeBinaryFromReader = fu msg.setSuccess(value); break; case 3: - var value = new proto.assistant_api.AssistantTool; - reader.readMessage(value,proto.assistant_api.AssistantTool.deserializeBinaryFromReader); + var value = new common_pb.AssistantConversationMessage; + reader.readMessage(value,common_pb.AssistantConversationMessage.deserializeBinaryFromReader); msg.addData(value); break; case 4: @@ -10392,9 +6471,9 @@ proto.assistant_api.GetAllAssistantToolResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAllMessageResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllAssistantToolResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllMessageResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10402,11 +6481,11 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllAssistantToolResponse} message + * @param {!proto.assistant_api.GetAllMessageResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllAssistantToolResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllMessageResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -10427,7 +6506,7 @@ proto.assistant_api.GetAllAssistantToolResponse.serializeBinaryToWriter = functi writer.writeRepeatedMessage( 3, f, - proto.assistant_api.AssistantTool.serializeBinaryToWriter + common_pb.AssistantConversationMessage.serializeBinaryToWriter ); } f = message.getError(); @@ -10453,16 +6532,16 @@ proto.assistant_api.GetAllAssistantToolResponse.serializeBinaryToWriter = functi * optional int32 code = 1; * @return {number} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.getCode = function() { +proto.assistant_api.GetAllMessageResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAllMessageResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -10471,54 +6550,54 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.setCode = function(val * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAllMessageResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAllMessageResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated AssistantTool data = 3; - * @return {!Array} + * repeated AssistantConversationMessage data = 3; + * @return {!Array} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantTool, 3)); +proto.assistant_api.GetAllMessageResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversationMessage, 3)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.setDataList = function(value) { +proto.assistant_api.GetAllMessageResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.assistant_api.AssistantTool=} opt_value + * @param {!proto.AssistantConversationMessage=} opt_value * @param {number=} opt_index - * @return {!proto.assistant_api.AssistantTool} + * @return {!proto.AssistantConversationMessage} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantTool, opt_index); +proto.assistant_api.GetAllMessageResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversationMessage, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.clearDataList = function() { +proto.assistant_api.GetAllMessageResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -10527,7 +6606,7 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.clearDataList = functi * optional Error error = 4; * @return {?proto.Error} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.getError = function() { +proto.assistant_api.GetAllMessageResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -10535,18 +6614,18 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.getError = function() /** * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.setError = function(value) { +proto.assistant_api.GetAllMessageResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.clearError = function() { +proto.assistant_api.GetAllMessageResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -10555,7 +6634,7 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.clearError = function( * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.hasError = function() { +proto.assistant_api.GetAllMessageResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -10564,7 +6643,7 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.hasError = function() * optional Paginated paginated = 5; * @return {?proto.Paginated} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.getPaginated = function() { +proto.assistant_api.GetAllMessageResponse.prototype.getPaginated = function() { return /** @type{?proto.Paginated} */ ( jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; @@ -10572,18 +6651,18 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.getPaginated = functio /** * @param {?proto.Paginated|undefined} value - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.setPaginated = function(value) { +proto.assistant_api.GetAllMessageResponse.prototype.setPaginated = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + * @return {!proto.assistant_api.GetAllMessageResponse} returns this */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.clearPaginated = function() { +proto.assistant_api.GetAllMessageResponse.prototype.clearPaginated = function() { return this.setPaginated(undefined); }; @@ -10592,7 +6671,7 @@ proto.assistant_api.GetAllAssistantToolResponse.prototype.clearPaginated = funct * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllAssistantToolResponse.prototype.hasPaginated = function() { +proto.assistant_api.GetAllMessageResponse.prototype.hasPaginated = function() { return jspb.Message.getField(this, 5) != null; }; @@ -10613,8 +6692,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.Tool.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.Tool.toObject(opt_includeInstance, this); +proto.assistant_api.UpdateAssistantVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.UpdateAssistantVersionRequest.toObject(opt_includeInstance, this); }; @@ -10623,20 +6702,14 @@ proto.assistant_api.Tool.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.Tool} msg The msg instance to transform. + * @param {!proto.assistant_api.UpdateAssistantVersionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.Tool.toObject = function(includeInstance, msg) { +proto.assistant_api.UpdateAssistantVersionRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - code: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: jspb.Message.getFieldWithDefault(msg, 4, ""), - setupoptions: (f = msg.getSetupoptions()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - intializeoptions: (f = msg.getIntializeoptions()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - icon: jspb.Message.getFieldWithDefault(msg, 7, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 8, "") + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantprovidermodelid: jspb.Message.getFieldWithDefault(msg, 2, "0") }; if (includeInstance) { @@ -10650,23 +6723,23 @@ proto.assistant_api.Tool.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.Tool} + * @return {!proto.assistant_api.UpdateAssistantVersionRequest} */ -proto.assistant_api.Tool.deserializeBinary = function(bytes) { +proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.Tool; - return proto.assistant_api.Tool.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.UpdateAssistantVersionRequest; + return proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.Tool} msg The message object to deserialize into. + * @param {!proto.assistant_api.UpdateAssistantVersionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.Tool} + * @return {!proto.assistant_api.UpdateAssistantVersionRequest} */ -proto.assistant_api.Tool.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.UpdateAssistantVersionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10675,37 +6748,11 @@ proto.assistant_api.Tool.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); + msg.setAssistantid(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 5: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setSetupoptions(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setIntializeoptions(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setIcon(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantprovidermodelid(value); break; default: reader.skipField(); @@ -10720,9 +6767,9 @@ proto.assistant_api.Tool.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.Tool.prototype.serializeBinary = function() { +proto.assistant_api.UpdateAssistantVersionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.Tool.serializeBinaryToWriter(this, writer); + proto.assistant_api.UpdateAssistantVersionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10730,255 +6777,262 @@ proto.assistant_api.Tool.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.Tool} message + * @param {!proto.assistant_api.UpdateAssistantVersionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.Tool.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.UpdateAssistantVersionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getAssistantid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 1, f ); } - f = message.getCode(); - if (f.length > 0) { - writer.writeString( + f = message.getAssistantprovidermodelid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 2, f ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSetupoptions(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getIntializeoptions(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getIcon(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } }; /** - * optional uint64 id = 1; + * optional uint64 assistantId = 1; * @return {string} */ -proto.assistant_api.Tool.prototype.getId = function() { +proto.assistant_api.UpdateAssistantVersionRequest.prototype.getAssistantid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.Tool} returns this + * @return {!proto.assistant_api.UpdateAssistantVersionRequest} returns this */ -proto.assistant_api.Tool.prototype.setId = function(value) { +proto.assistant_api.UpdateAssistantVersionRequest.prototype.setAssistantid = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional string code = 2; + * optional uint64 assistantProviderModelId = 2; * @return {string} */ -proto.assistant_api.Tool.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.assistant_api.UpdateAssistantVersionRequest.prototype.getAssistantprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** * @param {string} value - * @return {!proto.assistant_api.Tool} returns this + * @return {!proto.assistant_api.UpdateAssistantVersionRequest} returns this */ -proto.assistant_api.Tool.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.assistant_api.UpdateAssistantVersionRequest.prototype.setAssistantprovidermodelid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string name = 3; - * @return {string} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.assistant_api.Tool.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.assistant_api.UpdateAssistantDetailRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.UpdateAssistantDetailRequest.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.assistant_api.Tool} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.UpdateAssistantDetailRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.Tool.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.assistant_api.UpdateAssistantDetailRequest.toObject = function(includeInstance, msg) { + var f, obj = { + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string description = 4; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.assistant_api.UpdateAssistantDetailRequest} */ -proto.assistant_api.Tool.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.assistant_api.UpdateAssistantDetailRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.UpdateAssistantDetailRequest; + return proto.assistant_api.UpdateAssistantDetailRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.assistant_api.Tool} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.UpdateAssistantDetailRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.UpdateAssistantDetailRequest} */ -proto.assistant_api.Tool.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.assistant_api.UpdateAssistantDetailRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional google.protobuf.Struct setupOptions = 5; - * @return {?proto.google.protobuf.Struct} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.assistant_api.Tool.prototype.getSetupoptions = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.assistant_api.Tool} returns this -*/ -proto.assistant_api.Tool.prototype.setSetupoptions = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.assistant_api.UpdateAssistantDetailRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.UpdateAssistantDetailRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Tool} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.UpdateAssistantDetailRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.Tool.prototype.clearSetupoptions = function() { - return this.setSetupoptions(undefined); +proto.assistant_api.UpdateAssistantDetailRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } }; /** - * Returns whether this field is set. - * @return {boolean} + * optional uint64 assistantId = 1; + * @return {string} */ -proto.assistant_api.Tool.prototype.hasSetupoptions = function() { - return jspb.Message.getField(this, 5) != null; +proto.assistant_api.UpdateAssistantDetailRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * optional google.protobuf.Struct intializeOptions = 6; - * @return {?proto.google.protobuf.Struct} + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantDetailRequest} returns this */ -proto.assistant_api.Tool.prototype.getIntializeoptions = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.assistant_api.Tool} returns this -*/ -proto.assistant_api.Tool.prototype.setIntializeoptions = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.assistant_api.UpdateAssistantDetailRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.Tool} returns this + * optional string name = 2; + * @return {string} */ -proto.assistant_api.Tool.prototype.clearIntializeoptions = function() { - return this.setIntializeoptions(undefined); +proto.assistant_api.UpdateAssistantDetailRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantDetailRequest} returns this */ -proto.assistant_api.Tool.prototype.hasIntializeoptions = function() { - return jspb.Message.getField(this, 6) != null; +proto.assistant_api.UpdateAssistantDetailRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string icon = 7; + * optional string description = 3; * @return {string} */ -proto.assistant_api.Tool.prototype.getIcon = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.assistant_api.UpdateAssistantDetailRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.assistant_api.Tool} returns this + * @return {!proto.assistant_api.UpdateAssistantDetailRequest} returns this */ -proto.assistant_api.Tool.prototype.setIcon = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.assistant_api.UpdateAssistantDetailRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * optional string visibility = 8; - * @return {string} - */ -proto.assistant_api.Tool.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - /** - * @param {string} value - * @return {!proto.assistant_api.Tool} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.assistant_api.Tool.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - +proto.assistant_api.GetAllAssistantUserConversationRequest.repeatedFields_ = [3]; @@ -10995,8 +7049,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetToolRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetToolRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantUserConversationRequest.toObject(opt_includeInstance, this); }; @@ -11005,13 +7059,17 @@ proto.assistant_api.GetToolRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetToolRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantUserConversationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetToolRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantUserConversationRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0") + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.toObject, includeInstance), + source: jspb.Message.getFieldWithDefault(msg, 7, 0) }; if (includeInstance) { @@ -11025,23 +7083,23 @@ proto.assistant_api.GetToolRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetToolRequest} + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} */ -proto.assistant_api.GetToolRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetToolRequest; - return proto.assistant_api.GetToolRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantUserConversationRequest; + return proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetToolRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantUserConversationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetToolRequest} + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} */ -proto.assistant_api.GetToolRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11050,7 +7108,21 @@ proto.assistant_api.GetToolRequest.deserializeBinaryFromReader = function(msg, r switch (field) { case 1: var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); + msg.setAssistantid(value); + break; + case 2: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 3: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + case 7: + var value = /** @type {!proto.Source} */ (reader.readEnum()); + msg.setSource(value); break; default: reader.skipField(); @@ -11065,9 +7137,9 @@ proto.assistant_api.GetToolRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetToolRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetToolRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11075,40 +7147,163 @@ proto.assistant_api.GetToolRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetToolRequest} message + * @param {!proto.assistant_api.GetAllAssistantUserConversationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetToolRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getAssistantid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 1, f ); } + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } + f = message.getSource(); + if (f !== 0.0) { + writer.writeEnum( + 7, + f + ); + } +}; + + +/** + * optional uint64 assistantId = 1; + * @return {string} + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional Paginate paginate = 2; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this +*/ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Criteria criterias = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this +*/ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + +/** + * optional Source source = 7; + * @return {!proto.Source} + */ +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getSource = function() { + return /** @type {!proto.Source} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** - * optional uint64 id = 1; - * @return {string} + * @param {!proto.Source} value + * @return {!proto.assistant_api.GetAllAssistantUserConversationRequest} returns this */ -proto.assistant_api.GetToolRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setSource = function(value) { + return jspb.Message.setProto3EnumField(this, 7, value); }; + /** - * @param {string} value - * @return {!proto.assistant_api.GetToolRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.assistant_api.GetToolRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - +proto.assistant_api.GetAllAssistantUserConversationResponse.repeatedFields_ = [3]; @@ -11125,8 +7320,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetToolResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetToolResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantUserConversationResponse.toObject(opt_includeInstance, this); }; @@ -11135,16 +7330,18 @@ proto.assistant_api.GetToolResponse.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetToolResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAllAssistantUserConversationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetToolResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAllAssistantUserConversationResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.assistant_api.Tool.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + dataList: jspb.Message.toObjectList(msg.getDataList(), + common_pb.AssistantConversation.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; if (includeInstance) { @@ -11158,23 +7355,23 @@ proto.assistant_api.GetToolResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetToolResponse} + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} */ -proto.assistant_api.GetToolResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetToolResponse; - return proto.assistant_api.GetToolResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAllAssistantUserConversationResponse; + return proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetToolResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAllAssistantUserConversationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetToolResponse} + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} */ -proto.assistant_api.GetToolResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11190,15 +7387,20 @@ proto.assistant_api.GetToolResponse.deserializeBinaryFromReader = function(msg, msg.setSuccess(value); break; case 3: - var value = new proto.assistant_api.Tool; - reader.readMessage(value,proto.assistant_api.Tool.deserializeBinaryFromReader); - msg.setData(value); + var value = new common_pb.AssistantConversation; + reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); + msg.addData(value); break; case 4: var value = new common_pb.Error; reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; default: reader.skipField(); break; @@ -11212,9 +7414,9 @@ proto.assistant_api.GetToolResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetToolResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetToolResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11222,11 +7424,11 @@ proto.assistant_api.GetToolResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetToolResponse} message + * @param {!proto.assistant_api.GetAllAssistantUserConversationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetToolResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -11242,12 +7444,12 @@ proto.assistant_api.GetToolResponse.serializeBinaryToWriter = function(message, f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, f, - proto.assistant_api.Tool.serializeBinaryToWriter + common_pb.AssistantConversation.serializeBinaryToWriter ); } f = message.getError(); @@ -11258,6 +7460,14 @@ proto.assistant_api.GetToolResponse.serializeBinaryToWriter = function(message, common_pb.Error.serializeBinaryToWriter ); } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } }; @@ -11265,16 +7475,16 @@ proto.assistant_api.GetToolResponse.serializeBinaryToWriter = function(message, * optional int32 code = 1; * @return {number} */ -proto.assistant_api.GetToolResponse.prototype.getCode = function() { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.GetToolResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this */ -proto.assistant_api.GetToolResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -11283,54 +7493,55 @@ proto.assistant_api.GetToolResponse.prototype.setCode = function(value) { * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.GetToolResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.GetToolResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this */ -proto.assistant_api.GetToolResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional Tool data = 3; - * @return {?proto.assistant_api.Tool} + * repeated AssistantConversation data = 3; + * @return {!Array} */ -proto.assistant_api.GetToolResponse.prototype.getData = function() { - return /** @type{?proto.assistant_api.Tool} */ ( - jspb.Message.getWrapperField(this, proto.assistant_api.Tool, 3)); +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversation, 3)); }; /** - * @param {?proto.assistant_api.Tool|undefined} value - * @return {!proto.assistant_api.GetToolResponse} returns this + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this */ -proto.assistant_api.GetToolResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetToolResponse} returns this + * @param {!proto.AssistantConversation=} opt_value + * @param {number=} opt_index + * @return {!proto.AssistantConversation} */ -proto.assistant_api.GetToolResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversation, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this */ -proto.assistant_api.GetToolResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; @@ -11338,7 +7549,7 @@ proto.assistant_api.GetToolResponse.prototype.hasData = function() { * optional Error error = 4; * @return {?proto.Error} */ -proto.assistant_api.GetToolResponse.prototype.getError = function() { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -11346,18 +7557,18 @@ proto.assistant_api.GetToolResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetToolResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this */ -proto.assistant_api.GetToolResponse.prototype.setError = function(value) { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetToolResponse} returns this + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this */ -proto.assistant_api.GetToolResponse.prototype.clearError = function() { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -11366,18 +7577,55 @@ proto.assistant_api.GetToolResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetToolResponse.prototype.hasError = function() { +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this +*/ +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantUserConversationResponse} returns this + */ +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.assistant_api.GetAllToolRequest.repeatedFields_ = [2]; +proto.assistant_api.GetAssistantConversationRequest.repeatedFields_ = [4,5]; @@ -11394,8 +7642,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllToolRequest.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllToolRequest.toObject(opt_includeInstance, this); +proto.assistant_api.GetAssistantConversationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantConversationRequest.toObject(opt_includeInstance, this); }; @@ -11404,15 +7652,19 @@ proto.assistant_api.GetAllToolRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllToolRequest} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAssistantConversationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllToolRequest.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAssistantConversationRequest.toObject = function(includeInstance, msg) { var f, obj = { + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + conversationid: jspb.Message.getFieldWithDefault(msg, 2, "0"), paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance) + common_pb.Criteria.toObject, includeInstance), + selectorsList: jspb.Message.toObjectList(msg.getSelectorsList(), + common_pb.FieldSelector.toObject, includeInstance) }; if (includeInstance) { @@ -11426,23 +7678,23 @@ proto.assistant_api.GetAllToolRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllToolRequest} + * @return {!proto.assistant_api.GetAssistantConversationRequest} */ -proto.assistant_api.GetAllToolRequest.deserializeBinary = function(bytes) { +proto.assistant_api.GetAssistantConversationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllToolRequest; - return proto.assistant_api.GetAllToolRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAssistantConversationRequest; + return proto.assistant_api.GetAssistantConversationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllToolRequest} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAssistantConversationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllToolRequest} + * @return {!proto.assistant_api.GetAssistantConversationRequest} */ -proto.assistant_api.GetAllToolRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAssistantConversationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11450,15 +7702,28 @@ proto.assistant_api.GetAllToolRequest.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setConversationid(value); + break; + case 3: var value = new common_pb.Paginate; reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); msg.setPaginate(value); break; - case 2: + case 4: var value = new common_pb.Criteria; reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); msg.addCriterias(value); break; + case 5: + var value = new common_pb.FieldSelector; + reader.readMessage(value,common_pb.FieldSelector.deserializeBinaryFromReader); + msg.addSelectors(value); + break; default: reader.skipField(); break; @@ -11472,9 +7737,9 @@ proto.assistant_api.GetAllToolRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllToolRequest.prototype.serializeBinary = function() { +proto.assistant_api.GetAssistantConversationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllToolRequest.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAssistantConversationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11482,16 +7747,30 @@ proto.assistant_api.GetAllToolRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllToolRequest} message + * @param {!proto.assistant_api.GetAssistantConversationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllToolRequest.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAssistantConversationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getConversationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } f = message.getPaginate(); if (f != null) { writer.writeMessage( - 1, + 3, f, common_pb.Paginate.serializeBinaryToWriter ); @@ -11499,38 +7778,82 @@ proto.assistant_api.GetAllToolRequest.serializeBinaryToWriter = function(message f = message.getCriteriasList(); if (f.length > 0) { writer.writeRepeatedMessage( - 2, + 4, f, common_pb.Criteria.serializeBinaryToWriter ); } + f = message.getSelectorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + common_pb.FieldSelector.serializeBinaryToWriter + ); + } }; /** - * optional Paginate paginate = 1; + * optional uint64 assistantId = 1; + * @return {string} + */ +proto.assistant_api.GetAssistantConversationRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this + */ +proto.assistant_api.GetAssistantConversationRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 conversationId = 2; + * @return {string} + */ +proto.assistant_api.GetAssistantConversationRequest.prototype.getConversationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this + */ +proto.assistant_api.GetAssistantConversationRequest.prototype.setConversationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional Paginate paginate = 3; * @return {?proto.Paginate} */ -proto.assistant_api.GetAllToolRequest.prototype.getPaginate = function() { +proto.assistant_api.GetAssistantConversationRequest.prototype.getPaginate = function() { return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); + jspb.Message.getWrapperField(this, common_pb.Paginate, 3)); }; /** * @param {?proto.Paginate|undefined} value - * @return {!proto.assistant_api.GetAllToolRequest} returns this + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this */ -proto.assistant_api.GetAllToolRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.assistant_api.GetAssistantConversationRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllToolRequest} returns this + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this */ -proto.assistant_api.GetAllToolRequest.prototype.clearPaginate = function() { +proto.assistant_api.GetAssistantConversationRequest.prototype.clearPaginate = function() { return this.setPaginate(undefined); }; @@ -11539,27 +7862,27 @@ proto.assistant_api.GetAllToolRequest.prototype.clearPaginate = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllToolRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; +proto.assistant_api.GetAssistantConversationRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * repeated Criteria criterias = 2; + * repeated Criteria criterias = 4; * @return {!Array} */ -proto.assistant_api.GetAllToolRequest.prototype.getCriteriasList = function() { +proto.assistant_api.GetAssistantConversationRequest.prototype.getCriteriasList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 4)); }; /** * @param {!Array} value - * @return {!proto.assistant_api.GetAllToolRequest} returns this + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this */ -proto.assistant_api.GetAllToolRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.assistant_api.GetAssistantConversationRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -11568,27 +7891,58 @@ proto.assistant_api.GetAllToolRequest.prototype.setCriteriasList = function(valu * @param {number=} opt_index * @return {!proto.Criteria} */ -proto.assistant_api.GetAllToolRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); +proto.assistant_api.GetAssistantConversationRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Criteria, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllToolRequest} returns this + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this */ -proto.assistant_api.GetAllToolRequest.prototype.clearCriteriasList = function() { +proto.assistant_api.GetAssistantConversationRequest.prototype.clearCriteriasList = function() { return this.setCriteriasList([]); }; +/** + * repeated FieldSelector selectors = 5; + * @return {!Array} + */ +proto.assistant_api.GetAssistantConversationRequest.prototype.getSelectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.FieldSelector, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this +*/ +proto.assistant_api.GetAssistantConversationRequest.prototype.setSelectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!proto.FieldSelector=} opt_value + * @param {number=} opt_index + * @return {!proto.FieldSelector} + */ +proto.assistant_api.GetAssistantConversationRequest.prototype.addSelectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.FieldSelector, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAssistantConversationRequest} returns this */ -proto.assistant_api.GetAllToolResponse.repeatedFields_ = [3]; +proto.assistant_api.GetAssistantConversationRequest.prototype.clearSelectorsList = function() { + return this.setSelectorsList([]); +}; + + @@ -11605,8 +7959,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.assistant_api.GetAllToolResponse.prototype.toObject = function(opt_includeInstance) { - return proto.assistant_api.GetAllToolResponse.toObject(opt_includeInstance, this); +proto.assistant_api.GetAssistantConversationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantConversationResponse.toObject(opt_includeInstance, this); }; @@ -11615,16 +7969,15 @@ proto.assistant_api.GetAllToolResponse.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.assistant_api.GetAllToolResponse} msg The msg instance to transform. + * @param {!proto.assistant_api.GetAssistantConversationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllToolResponse.toObject = function(includeInstance, msg) { +proto.assistant_api.GetAssistantConversationResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.assistant_api.Tool.toObject, includeInstance), + data: (f = msg.getData()) && common_pb.AssistantConversation.toObject(includeInstance, f), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; @@ -11640,23 +7993,23 @@ proto.assistant_api.GetAllToolResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.assistant_api.GetAllToolResponse} + * @return {!proto.assistant_api.GetAssistantConversationResponse} */ -proto.assistant_api.GetAllToolResponse.deserializeBinary = function(bytes) { +proto.assistant_api.GetAssistantConversationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.assistant_api.GetAllToolResponse; - return proto.assistant_api.GetAllToolResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.assistant_api.GetAssistantConversationResponse; + return proto.assistant_api.GetAssistantConversationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.assistant_api.GetAllToolResponse} msg The message object to deserialize into. + * @param {!proto.assistant_api.GetAssistantConversationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.assistant_api.GetAllToolResponse} + * @return {!proto.assistant_api.GetAssistantConversationResponse} */ -proto.assistant_api.GetAllToolResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.assistant_api.GetAssistantConversationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11672,9 +8025,9 @@ proto.assistant_api.GetAllToolResponse.deserializeBinaryFromReader = function(ms msg.setSuccess(value); break; case 3: - var value = new proto.assistant_api.Tool; - reader.readMessage(value,proto.assistant_api.Tool.deserializeBinaryFromReader); - msg.addData(value); + var value = new common_pb.AssistantConversation; + reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); + msg.setData(value); break; case 4: var value = new common_pb.Error; @@ -11699,9 +8052,9 @@ proto.assistant_api.GetAllToolResponse.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.assistant_api.GetAllToolResponse.prototype.serializeBinary = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.assistant_api.GetAllToolResponse.serializeBinaryToWriter(this, writer); + proto.assistant_api.GetAssistantConversationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11709,11 +8062,11 @@ proto.assistant_api.GetAllToolResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.assistant_api.GetAllToolResponse} message + * @param {!proto.assistant_api.GetAssistantConversationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.assistant_api.GetAllToolResponse.serializeBinaryToWriter = function(message, writer) { +proto.assistant_api.GetAssistantConversationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -11729,12 +8082,12 @@ proto.assistant_api.GetAllToolResponse.serializeBinaryToWriter = function(messag f ); } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getData(); + if (f != null) { + writer.writeMessage( 3, f, - proto.assistant_api.Tool.serializeBinaryToWriter + common_pb.AssistantConversation.serializeBinaryToWriter ); } f = message.getError(); @@ -11760,16 +8113,16 @@ proto.assistant_api.GetAllToolResponse.serializeBinaryToWriter = function(messag * optional int32 code = 1; * @return {number} */ -proto.assistant_api.GetAllToolResponse.prototype.getCode = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.setCode = function(value) { +proto.assistant_api.GetAssistantConversationResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -11778,55 +8131,54 @@ proto.assistant_api.GetAllToolResponse.prototype.setCode = function(value) { * optional bool success = 2; * @return {boolean} */ -proto.assistant_api.GetAllToolResponse.prototype.getSuccess = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.setSuccess = function(value) { +proto.assistant_api.GetAssistantConversationResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated Tool data = 3; - * @return {!Array} + * optional AssistantConversation data = 3; + * @return {?proto.AssistantConversation} */ -proto.assistant_api.GetAllToolResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.Tool, 3)); +proto.assistant_api.GetAssistantConversationResponse.prototype.getData = function() { + return /** @type{?proto.AssistantConversation} */ ( + jspb.Message.getWrapperField(this, common_pb.AssistantConversation, 3)); }; /** - * @param {!Array} value - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @param {?proto.AssistantConversation|undefined} value + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.assistant_api.GetAssistantConversationResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {!proto.assistant_api.Tool=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.Tool} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.Tool, opt_index); +proto.assistant_api.GetAssistantConversationResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.GetAllToolResponse.prototype.clearDataList = function() { - return this.setDataList([]); +proto.assistant_api.GetAssistantConversationResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -11834,7 +8186,7 @@ proto.assistant_api.GetAllToolResponse.prototype.clearDataList = function() { * optional Error error = 4; * @return {?proto.Error} */ -proto.assistant_api.GetAllToolResponse.prototype.getError = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -11842,18 +8194,18 @@ proto.assistant_api.GetAllToolResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.setError = function(value) { +proto.assistant_api.GetAssistantConversationResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.clearError = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -11862,7 +8214,7 @@ proto.assistant_api.GetAllToolResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllToolResponse.prototype.hasError = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -11871,7 +8223,7 @@ proto.assistant_api.GetAllToolResponse.prototype.hasError = function() { * optional Paginated paginated = 5; * @return {?proto.Paginated} */ -proto.assistant_api.GetAllToolResponse.prototype.getPaginated = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.getPaginated = function() { return /** @type{?proto.Paginated} */ ( jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; @@ -11879,18 +8231,18 @@ proto.assistant_api.GetAllToolResponse.prototype.getPaginated = function() { /** * @param {?proto.Paginated|undefined} value - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.setPaginated = function(value) { +proto.assistant_api.GetAssistantConversationResponse.prototype.setPaginated = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.assistant_api.GetAllToolResponse} returns this + * @return {!proto.assistant_api.GetAssistantConversationResponse} returns this */ -proto.assistant_api.GetAllToolResponse.prototype.clearPaginated = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.clearPaginated = function() { return this.setPaginated(undefined); }; @@ -11899,7 +8251,7 @@ proto.assistant_api.GetAllToolResponse.prototype.clearPaginated = function() { * Returns whether this field is set. * @return {boolean} */ -proto.assistant_api.GetAllToolResponse.prototype.hasPaginated = function() { +proto.assistant_api.GetAssistantConversationResponse.prototype.hasPaginated = function() { return jspb.Message.getField(this, 5) != null; }; diff --git a/src/clients/protos/assistant-deployment_pb.d.ts b/src/clients/protos/assistant-deployment_pb.d.ts index 7c9b5bb..0ddc123 100644 --- a/src/clients/protos/assistant-deployment_pb.d.ts +++ b/src/clients/protos/assistant-deployment_pb.d.ts @@ -9,22 +9,22 @@ export class DeploymentAudioProvider extends jspb.Message { getId(): string; setId(value: string): void; - getProvidername(): string; - setProvidername(value: string): void; + getAudioprovider(): string; + setAudioprovider(value: string): void; - clearOptionsList(): void; - getOptionsList(): Array; - setOptionsList(value: Array): void; - addOptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + clearAudiooptionsList(): void; + getAudiooptionsList(): Array; + setAudiooptionsList(value: Array): void; + addAudiooptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; - getProviderid(): string; - setProviderid(value: string): void; + getAudioproviderid(): string; + setAudioproviderid(value: string): void; getStatus(): string; setStatus(value: string): void; - getType(): string; - setType(value: string): void; + getAudiotype(): string; + setAudiotype(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeploymentAudioProvider.AsObject; @@ -39,11 +39,11 @@ export class DeploymentAudioProvider extends jspb.Message { export namespace DeploymentAudioProvider { export type AsObject = { id: string, - providername: string, - optionsList: Array, - providerid: string, + audioprovider: string, + audiooptionsList: Array, + audioproviderid: string, status: string, - type: string, + audiotype: string, } } @@ -54,19 +54,19 @@ export class AssistantDeploymentCapturer extends jspb.Message { getAssistantdeploymentid(): string; setAssistantdeploymentid(value: string): void; - getType(): string; - setType(value: string): void; + getCapturertype(): string; + setCapturertype(value: string): void; - getProviderid(): string; - setProviderid(value: string): void; + getCapturerproviderid(): string; + setCapturerproviderid(value: string): void; - getProvidername(): string; - setProvidername(value: string): void; + getCapturerprovider(): string; + setCapturerprovider(value: string): void; - clearOptionsList(): void; - getOptionsList(): Array; - setOptionsList(value: Array): void; - addOptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + clearCaptureroptionsList(): void; + getCaptureroptionsList(): Array; + setCaptureroptionsList(value: Array): void; + addCaptureroptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; getStatus(): string; setStatus(value: string): void; @@ -85,10 +85,10 @@ export namespace AssistantDeploymentCapturer { export type AsObject = { id: string, assistantdeploymentid: string, - type: string, - providerid: string, - providername: string, - optionsList: Array, + capturertype: string, + capturerproviderid: string, + capturerprovider: string, + captureroptionsList: Array, status: string, } } @@ -127,15 +127,15 @@ export class AssistantWebpluginDeployment extends jspb.Message { getEnding(): string; setEnding(value: string): void; - clearInputaudioList(): void; - getInputaudioList(): Array; - setInputaudioList(value: Array): void; - addInputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasInputaudio(): boolean; + clearInputaudio(): void; + getInputaudio(): DeploymentAudioProvider | undefined; + setInputaudio(value?: DeploymentAudioProvider): void; - clearOutputaudioList(): void; - getOutputaudioList(): Array; - setOutputaudioList(value: Array): void; - addOutputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasOutputaudio(): boolean; + clearOutputaudio(): void; + getOutputaudio(): DeploymentAudioProvider | undefined; + setOutputaudio(value?: DeploymentAudioProvider): void; clearCapturersList(): void; getCapturersList(): Array; @@ -204,8 +204,8 @@ export namespace AssistantWebpluginDeployment { greeting: string, mistake: string, ending: string, - inputaudioList: Array, - outputaudioList: Array, + inputaudio?: DeploymentAudioProvider.AsObject, + outputaudio?: DeploymentAudioProvider.AsObject, capturersList: Array, url: string, raw?: common_pb.Content.AsObject, @@ -260,15 +260,15 @@ export class AssistantPhoneDeployment extends jspb.Message { getEnding(): string; setEnding(value: string): void; - clearInputaudioList(): void; - getInputaudioList(): Array; - setInputaudioList(value: Array): void; - addInputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasInputaudio(): boolean; + clearInputaudio(): void; + getInputaudio(): DeploymentAudioProvider | undefined; + setInputaudio(value?: DeploymentAudioProvider): void; - clearOutputaudioList(): void; - getOutputaudioList(): Array; - setOutputaudioList(value: Array): void; - addOutputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasOutputaudio(): boolean; + clearOutputaudio(): void; + getOutputaudio(): DeploymentAudioProvider | undefined; + setOutputaudio(value?: DeploymentAudioProvider): void; getPhoneprovidername(): string; setPhoneprovidername(value: string): void; @@ -320,8 +320,8 @@ export namespace AssistantPhoneDeployment { greeting: string, mistake: string, ending: string, - inputaudioList: Array, - outputaudioList: Array, + inputaudio?: DeploymentAudioProvider.AsObject, + outputaudio?: DeploymentAudioProvider.AsObject, phoneprovidername: string, phoneproviderid: string, phoneoptionsList: Array, @@ -454,15 +454,15 @@ export class AssistantDebuggerDeployment extends jspb.Message { getEnding(): string; setEnding(value: string): void; - clearInputaudioList(): void; - getInputaudioList(): Array; - setInputaudioList(value: Array): void; - addInputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasInputaudio(): boolean; + clearInputaudio(): void; + getInputaudio(): DeploymentAudioProvider | undefined; + setInputaudio(value?: DeploymentAudioProvider): void; - clearOutputaudioList(): void; - getOutputaudioList(): Array; - setOutputaudioList(value: Array): void; - addOutputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasOutputaudio(): boolean; + clearOutputaudio(): void; + getOutputaudio(): DeploymentAudioProvider | undefined; + setOutputaudio(value?: DeploymentAudioProvider): void; clearCapturersList(): void; getCapturersList(): Array; @@ -519,8 +519,8 @@ export namespace AssistantDebuggerDeployment { greeting: string, mistake: string, ending: string, - inputaudioList: Array, - outputaudioList: Array, + inputaudio?: DeploymentAudioProvider.AsObject, + outputaudio?: DeploymentAudioProvider.AsObject, capturersList: Array, url: string, raw?: common_pb.Content.AsObject, @@ -571,15 +571,15 @@ export class AssistantApiDeployment extends jspb.Message { getEnding(): string; setEnding(value: string): void; - clearInputaudioList(): void; - getInputaudioList(): Array; - setInputaudioList(value: Array): void; - addInputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasInputaudio(): boolean; + clearInputaudio(): void; + getInputaudio(): DeploymentAudioProvider | undefined; + setInputaudio(value?: DeploymentAudioProvider): void; - clearOutputaudioList(): void; - getOutputaudioList(): Array; - setOutputaudioList(value: Array): void; - addOutputaudio(value?: DeploymentAudioProvider, index?: number): DeploymentAudioProvider; + hasOutputaudio(): boolean; + clearOutputaudio(): void; + getOutputaudio(): DeploymentAudioProvider | undefined; + setOutputaudio(value?: DeploymentAudioProvider): void; clearCapturersList(): void; getCapturersList(): Array; @@ -620,8 +620,8 @@ export namespace AssistantApiDeployment { greeting: string, mistake: string, ending: string, - inputaudioList: Array, - outputaudioList: Array, + inputaudio?: DeploymentAudioProvider.AsObject, + outputaudio?: DeploymentAudioProvider.AsObject, capturersList: Array, createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, diff --git a/src/clients/protos/assistant-deployment_pb.js b/src/clients/protos/assistant-deployment_pb.js index 57eadbd..c2d06c8 100644 --- a/src/clients/protos/assistant-deployment_pb.js +++ b/src/clients/protos/assistant-deployment_pb.js @@ -463,12 +463,12 @@ proto.assistant_api.DeploymentAudioProvider.prototype.toObject = function(opt_in proto.assistant_api.DeploymentAudioProvider.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - providername: jspb.Message.getFieldWithDefault(msg, 2, ""), - optionsList: jspb.Message.toObjectList(msg.getOptionsList(), + audioprovider: jspb.Message.getFieldWithDefault(msg, 2, ""), + audiooptionsList: jspb.Message.toObjectList(msg.getAudiooptionsList(), common_pb.Metadata.toObject, includeInstance), - providerid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + audioproviderid: jspb.Message.getFieldWithDefault(msg, 4, "0"), status: jspb.Message.getFieldWithDefault(msg, 5, ""), - type: jspb.Message.getFieldWithDefault(msg, 6, "") + audiotype: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { @@ -511,16 +511,16 @@ proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader = functi break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setProvidername(value); + msg.setAudioprovider(value); break; case 3: var value = new common_pb.Metadata; reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); - msg.addOptions(value); + msg.addAudiooptions(value); break; case 4: var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); + msg.setAudioproviderid(value); break; case 5: var value = /** @type {string} */ (reader.readString()); @@ -528,7 +528,7 @@ proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader = functi break; case 6: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.setAudiotype(value); break; default: reader.skipField(); @@ -566,14 +566,14 @@ proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter = function(m f ); } - f = message.getProvidername(); + f = message.getAudioprovider(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getOptionsList(); + f = message.getAudiooptionsList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, @@ -581,7 +581,7 @@ proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter = function(m common_pb.Metadata.serializeBinaryToWriter ); } - f = message.getProviderid(); + f = message.getAudioproviderid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 4, @@ -595,7 +595,7 @@ proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter = function(m f ); } - f = message.getType(); + f = message.getAudiotype(); if (f.length > 0) { writer.writeString( 6, @@ -624,10 +624,10 @@ proto.assistant_api.DeploymentAudioProvider.prototype.setId = function(value) { /** - * optional string providerName = 2; + * optional string audioProvider = 2; * @return {string} */ -proto.assistant_api.DeploymentAudioProvider.prototype.getProvidername = function() { +proto.assistant_api.DeploymentAudioProvider.prototype.getAudioprovider = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -636,16 +636,16 @@ proto.assistant_api.DeploymentAudioProvider.prototype.getProvidername = function * @param {string} value * @return {!proto.assistant_api.DeploymentAudioProvider} returns this */ -proto.assistant_api.DeploymentAudioProvider.prototype.setProvidername = function(value) { +proto.assistant_api.DeploymentAudioProvider.prototype.setAudioprovider = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated Metadata options = 3; + * repeated Metadata audioOptions = 3; * @return {!Array} */ -proto.assistant_api.DeploymentAudioProvider.prototype.getOptionsList = function() { +proto.assistant_api.DeploymentAudioProvider.prototype.getAudiooptionsList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 3)); }; @@ -655,7 +655,7 @@ proto.assistant_api.DeploymentAudioProvider.prototype.getOptionsList = function( * @param {!Array} value * @return {!proto.assistant_api.DeploymentAudioProvider} returns this */ -proto.assistant_api.DeploymentAudioProvider.prototype.setOptionsList = function(value) { +proto.assistant_api.DeploymentAudioProvider.prototype.setAudiooptionsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -665,7 +665,7 @@ proto.assistant_api.DeploymentAudioProvider.prototype.setOptionsList = function( * @param {number=} opt_index * @return {!proto.Metadata} */ -proto.assistant_api.DeploymentAudioProvider.prototype.addOptions = function(opt_value, opt_index) { +proto.assistant_api.DeploymentAudioProvider.prototype.addAudiooptions = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Metadata, opt_index); }; @@ -674,16 +674,16 @@ proto.assistant_api.DeploymentAudioProvider.prototype.addOptions = function(opt_ * Clears the list making it empty but non-null. * @return {!proto.assistant_api.DeploymentAudioProvider} returns this */ -proto.assistant_api.DeploymentAudioProvider.prototype.clearOptionsList = function() { - return this.setOptionsList([]); +proto.assistant_api.DeploymentAudioProvider.prototype.clearAudiooptionsList = function() { + return this.setAudiooptionsList([]); }; /** - * optional uint64 providerId = 4; + * optional uint64 audioProviderId = 4; * @return {string} */ -proto.assistant_api.DeploymentAudioProvider.prototype.getProviderid = function() { +proto.assistant_api.DeploymentAudioProvider.prototype.getAudioproviderid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; @@ -692,7 +692,7 @@ proto.assistant_api.DeploymentAudioProvider.prototype.getProviderid = function() * @param {string} value * @return {!proto.assistant_api.DeploymentAudioProvider} returns this */ -proto.assistant_api.DeploymentAudioProvider.prototype.setProviderid = function(value) { +proto.assistant_api.DeploymentAudioProvider.prototype.setAudioproviderid = function(value) { return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -716,10 +716,10 @@ proto.assistant_api.DeploymentAudioProvider.prototype.setStatus = function(value /** - * optional string type = 6; + * optional string audioType = 6; * @return {string} */ -proto.assistant_api.DeploymentAudioProvider.prototype.getType = function() { +proto.assistant_api.DeploymentAudioProvider.prototype.getAudiotype = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -728,7 +728,7 @@ proto.assistant_api.DeploymentAudioProvider.prototype.getType = function() { * @param {string} value * @return {!proto.assistant_api.DeploymentAudioProvider} returns this */ -proto.assistant_api.DeploymentAudioProvider.prototype.setType = function(value) { +proto.assistant_api.DeploymentAudioProvider.prototype.setAudiotype = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; @@ -774,10 +774,10 @@ proto.assistant_api.AssistantDeploymentCapturer.toObject = function(includeInsta var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), assistantdeploymentid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - providerid: jspb.Message.getFieldWithDefault(msg, 4, "0"), - providername: jspb.Message.getFieldWithDefault(msg, 5, ""), - optionsList: jspb.Message.toObjectList(msg.getOptionsList(), + capturertype: jspb.Message.getFieldWithDefault(msg, 3, ""), + capturerproviderid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + capturerprovider: jspb.Message.getFieldWithDefault(msg, 5, ""), + captureroptionsList: jspb.Message.toObjectList(msg.getCaptureroptionsList(), common_pb.Metadata.toObject, includeInstance), status: jspb.Message.getFieldWithDefault(msg, 7, "") }; @@ -826,20 +826,20 @@ proto.assistant_api.AssistantDeploymentCapturer.deserializeBinaryFromReader = fu break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.setCapturertype(value); break; case 4: var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); + msg.setCapturerproviderid(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setProvidername(value); + msg.setCapturerprovider(value); break; case 6: var value = new common_pb.Metadata; reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); - msg.addOptions(value); + msg.addCaptureroptions(value); break; case 7: var value = /** @type {string} */ (reader.readString()); @@ -888,28 +888,28 @@ proto.assistant_api.AssistantDeploymentCapturer.serializeBinaryToWriter = functi f ); } - f = message.getType(); + f = message.getCapturertype(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getProviderid(); + f = message.getCapturerproviderid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 4, f ); } - f = message.getProvidername(); + f = message.getCapturerprovider(); if (f.length > 0) { writer.writeString( 5, f ); } - f = message.getOptionsList(); + f = message.getCaptureroptionsList(); if (f.length > 0) { writer.writeRepeatedMessage( 6, @@ -964,10 +964,10 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.setAssistantdeployment /** - * optional string type = 3; + * optional string capturerType = 3; * @return {string} */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.getType = function() { +proto.assistant_api.AssistantDeploymentCapturer.prototype.getCapturertype = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -976,16 +976,16 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.getType = function() { * @param {string} value * @return {!proto.assistant_api.AssistantDeploymentCapturer} returns this */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.setType = function(value) { +proto.assistant_api.AssistantDeploymentCapturer.prototype.setCapturertype = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional uint64 providerId = 4; + * optional uint64 capturerProviderId = 4; * @return {string} */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.getProviderid = function() { +proto.assistant_api.AssistantDeploymentCapturer.prototype.getCapturerproviderid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; @@ -994,16 +994,16 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.getProviderid = functi * @param {string} value * @return {!proto.assistant_api.AssistantDeploymentCapturer} returns this */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.setProviderid = function(value) { +proto.assistant_api.AssistantDeploymentCapturer.prototype.setCapturerproviderid = function(value) { return jspb.Message.setProto3StringIntField(this, 4, value); }; /** - * optional string providerName = 5; + * optional string capturerProvider = 5; * @return {string} */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.getProvidername = function() { +proto.assistant_api.AssistantDeploymentCapturer.prototype.getCapturerprovider = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -1012,16 +1012,16 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.getProvidername = func * @param {string} value * @return {!proto.assistant_api.AssistantDeploymentCapturer} returns this */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.setProvidername = function(value) { +proto.assistant_api.AssistantDeploymentCapturer.prototype.setCapturerprovider = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** - * repeated Metadata options = 6; + * repeated Metadata capturerOptions = 6; * @return {!Array} */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.getOptionsList = function() { +proto.assistant_api.AssistantDeploymentCapturer.prototype.getCaptureroptionsList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 6)); }; @@ -1031,7 +1031,7 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.getOptionsList = funct * @param {!Array} value * @return {!proto.assistant_api.AssistantDeploymentCapturer} returns this */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.setOptionsList = function(value) { +proto.assistant_api.AssistantDeploymentCapturer.prototype.setCaptureroptionsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -1041,7 +1041,7 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.setOptionsList = funct * @param {number=} opt_index * @return {!proto.Metadata} */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.addOptions = function(opt_value, opt_index) { +proto.assistant_api.AssistantDeploymentCapturer.prototype.addCaptureroptions = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metadata, opt_index); }; @@ -1050,8 +1050,8 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.addOptions = function( * Clears the list making it empty but non-null. * @return {!proto.assistant_api.AssistantDeploymentCapturer} returns this */ -proto.assistant_api.AssistantDeploymentCapturer.prototype.clearOptionsList = function() { - return this.setOptionsList([]); +proto.assistant_api.AssistantDeploymentCapturer.prototype.clearCaptureroptionsList = function() { + return this.setCaptureroptionsList([]); }; @@ -1079,7 +1079,7 @@ proto.assistant_api.AssistantDeploymentCapturer.prototype.setStatus = function(v * @private {!Array} * @const */ -proto.assistant_api.AssistantWebpluginDeployment.repeatedFields_ = [13,14,17,20]; +proto.assistant_api.AssistantWebpluginDeployment.repeatedFields_ = [17,20]; /** * Oneof group definitions for this message. Each group defines the field @@ -1147,10 +1147,8 @@ proto.assistant_api.AssistantWebpluginDeployment.toObject = function(includeInst greeting: jspb.Message.getFieldWithDefault(msg, 10, ""), mistake: jspb.Message.getFieldWithDefault(msg, 11, ""), ending: jspb.Message.getFieldWithDefault(msg, 12, ""), - inputaudioList: jspb.Message.toObjectList(msg.getInputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), - outputaudioList: jspb.Message.toObjectList(msg.getOutputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), + inputaudio: (f = msg.getInputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), + outputaudio: (f = msg.getOutputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), capturersList: jspb.Message.toObjectList(msg.getCapturersList(), proto.assistant_api.AssistantDeploymentCapturer.toObject, includeInstance), url: jspb.Message.getFieldWithDefault(msg, 15, ""), @@ -1238,12 +1236,12 @@ proto.assistant_api.AssistantWebpluginDeployment.deserializeBinaryFromReader = f case 13: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addInputaudio(value); + msg.setInputaudio(value); break; case 14: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addOutputaudio(value); + msg.setOutputaudio(value); break; case 17: var value = new proto.assistant_api.AssistantDeploymentCapturer; @@ -1385,17 +1383,17 @@ proto.assistant_api.AssistantWebpluginDeployment.serializeBinaryToWriter = funct f ); } - f = message.getInputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getInputaudio(); + if (f != null) { + writer.writeMessage( 13, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter ); } - f = message.getOutputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getOutputaudio(); + if (f != null) { + writer.writeMessage( 14, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter @@ -1702,78 +1700,76 @@ proto.assistant_api.AssistantWebpluginDeployment.prototype.hasEnding = function( /** - * repeated DeploymentAudioProvider inputAudio = 13; - * @return {!Array} + * optional DeploymentAudioProvider inputAudio = 13; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.getInputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); +proto.assistant_api.AssistantWebpluginDeployment.prototype.getInputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantWebpluginDeployment} returns this */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.setInputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); +proto.assistant_api.AssistantWebpluginDeployment.prototype.setInputaudio = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebpluginDeployment} returns this */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.addInputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantWebpluginDeployment.prototype.clearInputaudio = function() { + return this.setInputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantWebpluginDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.clearInputaudioList = function() { - return this.setInputaudioList([]); +proto.assistant_api.AssistantWebpluginDeployment.prototype.hasInputaudio = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * repeated DeploymentAudioProvider outputAudio = 14; - * @return {!Array} + * optional DeploymentAudioProvider outputAudio = 14; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.getOutputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); +proto.assistant_api.AssistantWebpluginDeployment.prototype.getOutputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantWebpluginDeployment} returns this */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.setOutputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); +proto.assistant_api.AssistantWebpluginDeployment.prototype.setOutputaudio = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebpluginDeployment} returns this */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.addOutputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantWebpluginDeployment.prototype.clearOutputaudio = function() { + return this.setOutputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantWebpluginDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantWebpluginDeployment.prototype.clearOutputaudioList = function() { - return this.setOutputaudioList([]); +proto.assistant_api.AssistantWebpluginDeployment.prototype.hasOutputaudio = function() { + return jspb.Message.getField(this, 14) != null; }; @@ -2095,7 +2091,7 @@ proto.assistant_api.AssistantWebpluginDeployment.prototype.setStatus = function( * @private {!Array} * @const */ -proto.assistant_api.AssistantPhoneDeployment.repeatedFields_ = [13,14,17,18]; +proto.assistant_api.AssistantPhoneDeployment.repeatedFields_ = [17,18]; @@ -2137,10 +2133,8 @@ proto.assistant_api.AssistantPhoneDeployment.toObject = function(includeInstance greeting: jspb.Message.getFieldWithDefault(msg, 10, ""), mistake: jspb.Message.getFieldWithDefault(msg, 11, ""), ending: jspb.Message.getFieldWithDefault(msg, 12, ""), - inputaudioList: jspb.Message.toObjectList(msg.getInputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), - outputaudioList: jspb.Message.toObjectList(msg.getOutputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), + inputaudio: (f = msg.getInputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), + outputaudio: (f = msg.getOutputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), phoneprovidername: jspb.Message.getFieldWithDefault(msg, 15, ""), phoneproviderid: jspb.Message.getFieldWithDefault(msg, 16, "0"), phoneoptionsList: jspb.Message.toObjectList(msg.getPhoneoptionsList(), @@ -2225,12 +2219,12 @@ proto.assistant_api.AssistantPhoneDeployment.deserializeBinaryFromReader = funct case 13: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addInputaudio(value); + msg.setInputaudio(value); break; case 14: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addOutputaudio(value); + msg.setOutputaudio(value); break; case 15: var value = /** @type {string} */ (reader.readString()); @@ -2356,17 +2350,17 @@ proto.assistant_api.AssistantPhoneDeployment.serializeBinaryToWriter = function( f ); } - f = message.getInputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getInputaudio(); + if (f != null) { + writer.writeMessage( 13, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter ); } - f = message.getOutputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getOutputaudio(); + if (f != null) { + writer.writeMessage( 14, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter @@ -2645,78 +2639,76 @@ proto.assistant_api.AssistantPhoneDeployment.prototype.hasEnding = function() { /** - * repeated DeploymentAudioProvider inputAudio = 13; - * @return {!Array} + * optional DeploymentAudioProvider inputAudio = 13; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantPhoneDeployment.prototype.getInputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); +proto.assistant_api.AssistantPhoneDeployment.prototype.getInputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantPhoneDeployment} returns this */ -proto.assistant_api.AssistantPhoneDeployment.prototype.setInputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); +proto.assistant_api.AssistantPhoneDeployment.prototype.setInputaudio = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantPhoneDeployment} returns this */ -proto.assistant_api.AssistantPhoneDeployment.prototype.addInputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantPhoneDeployment.prototype.clearInputaudio = function() { + return this.setInputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantPhoneDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantPhoneDeployment.prototype.clearInputaudioList = function() { - return this.setInputaudioList([]); +proto.assistant_api.AssistantPhoneDeployment.prototype.hasInputaudio = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * repeated DeploymentAudioProvider outputAudio = 14; - * @return {!Array} + * optional DeploymentAudioProvider outputAudio = 14; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantPhoneDeployment.prototype.getOutputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); +proto.assistant_api.AssistantPhoneDeployment.prototype.getOutputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantPhoneDeployment} returns this */ -proto.assistant_api.AssistantPhoneDeployment.prototype.setOutputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); +proto.assistant_api.AssistantPhoneDeployment.prototype.setOutputaudio = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantPhoneDeployment} returns this */ -proto.assistant_api.AssistantPhoneDeployment.prototype.addOutputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantPhoneDeployment.prototype.clearOutputaudio = function() { + return this.setOutputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantPhoneDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantPhoneDeployment.prototype.clearOutputaudioList = function() { - return this.setOutputaudioList([]); +proto.assistant_api.AssistantPhoneDeployment.prototype.hasOutputaudio = function() { + return jspb.Message.getField(this, 14) != null; }; @@ -3606,7 +3598,7 @@ proto.assistant_api.AssistantWhatsappDeployment.prototype.setStatus = function(v * @private {!Array} * @const */ -proto.assistant_api.AssistantDebuggerDeployment.repeatedFields_ = [13,14,18,20]; +proto.assistant_api.AssistantDebuggerDeployment.repeatedFields_ = [18,20]; /** * Oneof group definitions for this message. Each group defines the field @@ -3674,10 +3666,8 @@ proto.assistant_api.AssistantDebuggerDeployment.toObject = function(includeInsta greeting: jspb.Message.getFieldWithDefault(msg, 10, ""), mistake: jspb.Message.getFieldWithDefault(msg, 11, ""), ending: jspb.Message.getFieldWithDefault(msg, 12, ""), - inputaudioList: jspb.Message.toObjectList(msg.getInputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), - outputaudioList: jspb.Message.toObjectList(msg.getOutputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), + inputaudio: (f = msg.getInputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), + outputaudio: (f = msg.getOutputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), capturersList: jspb.Message.toObjectList(msg.getCapturersList(), proto.assistant_api.AssistantDeploymentCapturer.toObject, includeInstance), url: jspb.Message.getFieldWithDefault(msg, 15, ""), @@ -3761,12 +3751,12 @@ proto.assistant_api.AssistantDebuggerDeployment.deserializeBinaryFromReader = fu case 13: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addInputaudio(value); + msg.setInputaudio(value); break; case 14: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addOutputaudio(value); + msg.setOutputaudio(value); break; case 18: var value = new proto.assistant_api.AssistantDeploymentCapturer; @@ -3892,17 +3882,17 @@ proto.assistant_api.AssistantDebuggerDeployment.serializeBinaryToWriter = functi f ); } - f = message.getInputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getInputaudio(); + if (f != null) { + writer.writeMessage( 13, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter ); } - f = message.getOutputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getOutputaudio(); + if (f != null) { + writer.writeMessage( 14, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter @@ -4181,78 +4171,76 @@ proto.assistant_api.AssistantDebuggerDeployment.prototype.hasEnding = function() /** - * repeated DeploymentAudioProvider inputAudio = 13; - * @return {!Array} + * optional DeploymentAudioProvider inputAudio = 13; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.getInputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); +proto.assistant_api.AssistantDebuggerDeployment.prototype.getInputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantDebuggerDeployment} returns this */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.setInputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); +proto.assistant_api.AssistantDebuggerDeployment.prototype.setInputaudio = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantDebuggerDeployment} returns this */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.addInputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantDebuggerDeployment.prototype.clearInputaudio = function() { + return this.setInputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantDebuggerDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.clearInputaudioList = function() { - return this.setInputaudioList([]); +proto.assistant_api.AssistantDebuggerDeployment.prototype.hasInputaudio = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * repeated DeploymentAudioProvider outputAudio = 14; - * @return {!Array} + * optional DeploymentAudioProvider outputAudio = 14; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.getOutputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); +proto.assistant_api.AssistantDebuggerDeployment.prototype.getOutputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantDebuggerDeployment} returns this */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.setOutputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); +proto.assistant_api.AssistantDebuggerDeployment.prototype.setOutputaudio = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantDebuggerDeployment} returns this */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.addOutputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantDebuggerDeployment.prototype.clearOutputaudio = function() { + return this.setOutputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantDebuggerDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantDebuggerDeployment.prototype.clearOutputaudioList = function() { - return this.setOutputaudioList([]); +proto.assistant_api.AssistantDebuggerDeployment.prototype.hasOutputaudio = function() { + return jspb.Message.getField(this, 14) != null; }; @@ -4502,7 +4490,7 @@ proto.assistant_api.AssistantDebuggerDeployment.prototype.setStatus = function(v * @private {!Array} * @const */ -proto.assistant_api.AssistantApiDeployment.repeatedFields_ = [13,14,15]; +proto.assistant_api.AssistantApiDeployment.repeatedFields_ = [15]; @@ -4544,10 +4532,8 @@ proto.assistant_api.AssistantApiDeployment.toObject = function(includeInstance, greeting: jspb.Message.getFieldWithDefault(msg, 10, ""), mistake: jspb.Message.getFieldWithDefault(msg, 11, ""), ending: jspb.Message.getFieldWithDefault(msg, 12, ""), - inputaudioList: jspb.Message.toObjectList(msg.getInputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), - outputaudioList: jspb.Message.toObjectList(msg.getOutputaudioList(), - proto.assistant_api.DeploymentAudioProvider.toObject, includeInstance), + inputaudio: (f = msg.getInputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), + outputaudio: (f = msg.getOutputaudio()) && proto.assistant_api.DeploymentAudioProvider.toObject(includeInstance, f), capturersList: jspb.Message.toObjectList(msg.getCapturersList(), proto.assistant_api.AssistantDeploymentCapturer.toObject, includeInstance), createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), @@ -4628,12 +4614,12 @@ proto.assistant_api.AssistantApiDeployment.deserializeBinaryFromReader = functio case 13: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addInputaudio(value); + msg.setInputaudio(value); break; case 14: var value = new proto.assistant_api.DeploymentAudioProvider; reader.readMessage(value,proto.assistant_api.DeploymentAudioProvider.deserializeBinaryFromReader); - msg.addOutputaudio(value); + msg.setOutputaudio(value); break; case 15: var value = new proto.assistant_api.AssistantDeploymentCapturer; @@ -4746,17 +4732,17 @@ proto.assistant_api.AssistantApiDeployment.serializeBinaryToWriter = function(me f ); } - f = message.getInputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getInputaudio(); + if (f != null) { + writer.writeMessage( 13, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter ); } - f = message.getOutputaudioList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getOutputaudio(); + if (f != null) { + writer.writeMessage( 14, f, proto.assistant_api.DeploymentAudioProvider.serializeBinaryToWriter @@ -5013,78 +4999,76 @@ proto.assistant_api.AssistantApiDeployment.prototype.hasEnding = function() { /** - * repeated DeploymentAudioProvider inputAudio = 13; - * @return {!Array} + * optional DeploymentAudioProvider inputAudio = 13; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantApiDeployment.prototype.getInputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); +proto.assistant_api.AssistantApiDeployment.prototype.getInputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 13)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantApiDeployment} returns this */ -proto.assistant_api.AssistantApiDeployment.prototype.setInputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); +proto.assistant_api.AssistantApiDeployment.prototype.setInputaudio = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantApiDeployment} returns this */ -proto.assistant_api.AssistantApiDeployment.prototype.addInputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantApiDeployment.prototype.clearInputaudio = function() { + return this.setInputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantApiDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantApiDeployment.prototype.clearInputaudioList = function() { - return this.setInputaudioList([]); +proto.assistant_api.AssistantApiDeployment.prototype.hasInputaudio = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * repeated DeploymentAudioProvider outputAudio = 14; - * @return {!Array} + * optional DeploymentAudioProvider outputAudio = 14; + * @return {?proto.assistant_api.DeploymentAudioProvider} */ -proto.assistant_api.AssistantApiDeployment.prototype.getOutputaudioList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); +proto.assistant_api.AssistantApiDeployment.prototype.getOutputaudio = function() { + return /** @type{?proto.assistant_api.DeploymentAudioProvider} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.DeploymentAudioProvider, 14)); }; /** - * @param {!Array} value + * @param {?proto.assistant_api.DeploymentAudioProvider|undefined} value * @return {!proto.assistant_api.AssistantApiDeployment} returns this */ -proto.assistant_api.AssistantApiDeployment.prototype.setOutputaudioList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); +proto.assistant_api.AssistantApiDeployment.prototype.setOutputaudio = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * @param {!proto.assistant_api.DeploymentAudioProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.assistant_api.DeploymentAudioProvider} + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantApiDeployment} returns this */ -proto.assistant_api.AssistantApiDeployment.prototype.addOutputaudio = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.assistant_api.DeploymentAudioProvider, opt_index); +proto.assistant_api.AssistantApiDeployment.prototype.clearOutputaudio = function() { + return this.setOutputaudio(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.assistant_api.AssistantApiDeployment} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.assistant_api.AssistantApiDeployment.prototype.clearOutputaudioList = function() { - return this.setOutputaudioList([]); +proto.assistant_api.AssistantApiDeployment.prototype.hasOutputaudio = function() { + return jspb.Message.getField(this, 14) != null; }; diff --git a/src/clients/protos/assistant-knowledge_grpc_pb.d.ts b/src/clients/protos/assistant-knowledge_grpc_pb.d.ts new file mode 100644 index 0000000..51b4d69 --- /dev/null +++ b/src/clients/protos/assistant-knowledge_grpc_pb.d.ts @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/src/clients/protos/assistant-knowledge_grpc_pb.js b/src/clients/protos/assistant-knowledge_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/src/clients/protos/assistant-knowledge_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/clients/protos/assistant-knowledge_pb.d.ts b/src/clients/protos/assistant-knowledge_pb.d.ts new file mode 100644 index 0000000..b611186 --- /dev/null +++ b/src/clients/protos/assistant-knowledge_pb.d.ts @@ -0,0 +1,353 @@ +// package: assistant_api +// file: assistant-knowledge.proto + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as common_pb from "./common_pb"; + +export class AssistantKnowledge extends jspb.Message { + getId(): string; + setId(value: string): void; + + getKnowledgeid(): string; + setKnowledgeid(value: string): void; + + getRerankerenable(): boolean; + setRerankerenable(value: boolean): void; + + getTopk(): number; + setTopk(value: number): void; + + getScorethreshold(): number; + setScorethreshold(value: number): void; + + hasKnowledge(): boolean; + clearKnowledge(): void; + getKnowledge(): common_pb.Knowledge | undefined; + setKnowledge(value?: common_pb.Knowledge): void; + + getRetrievalmethod(): string; + setRetrievalmethod(value: string): void; + + getRerankermodelproviderid(): string; + setRerankermodelproviderid(value: string): void; + + getRerankermodelprovidername(): string; + setRerankermodelprovidername(value: string): void; + + clearAssistantknowledgererankeroptionsList(): void; + getAssistantknowledgererankeroptionsList(): Array; + setAssistantknowledgererankeroptionsList(value: Array): void; + addAssistantknowledgererankeroptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + hasCreateddate(): boolean; + clearCreateddate(): void; + getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasUpdateddate(): boolean; + clearUpdateddate(): void; + getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + getStatus(): string; + setStatus(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantKnowledge.AsObject; + static toObject(includeInstance: boolean, msg: AssistantKnowledge): AssistantKnowledge.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantKnowledge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantKnowledge; + static deserializeBinaryFromReader(message: AssistantKnowledge, reader: jspb.BinaryReader): AssistantKnowledge; +} + +export namespace AssistantKnowledge { + export type AsObject = { + id: string, + knowledgeid: string, + rerankerenable: boolean, + topk: number, + scorethreshold: number, + knowledge?: common_pb.Knowledge.AsObject, + retrievalmethod: string, + rerankermodelproviderid: string, + rerankermodelprovidername: string, + assistantknowledgererankeroptionsList: Array, + createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + status: string, + } +} + +export class CreateAssistantKnowledgeRequest extends jspb.Message { + getKnowledgeid(): string; + setKnowledgeid(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getRerankermodelproviderid(): string; + setRerankermodelproviderid(value: string): void; + + getRerankermodelprovidername(): string; + setRerankermodelprovidername(value: string): void; + + clearAssistantknowledgererankeroptionsList(): void; + getAssistantknowledgererankeroptionsList(): Array; + setAssistantknowledgererankeroptionsList(value: Array): void; + addAssistantknowledgererankeroptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + getTopk(): number; + setTopk(value: number): void; + + getScorethreshold(): number; + setScorethreshold(value: number): void; + + getRetrievalmethod(): string; + setRetrievalmethod(value: string): void; + + getRerankerenable(): boolean; + setRerankerenable(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateAssistantKnowledgeRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateAssistantKnowledgeRequest): CreateAssistantKnowledgeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateAssistantKnowledgeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateAssistantKnowledgeRequest; + static deserializeBinaryFromReader(message: CreateAssistantKnowledgeRequest, reader: jspb.BinaryReader): CreateAssistantKnowledgeRequest; +} + +export namespace CreateAssistantKnowledgeRequest { + export type AsObject = { + knowledgeid: string, + assistantid: string, + rerankermodelproviderid: string, + rerankermodelprovidername: string, + assistantknowledgererankeroptionsList: Array, + topk: number, + scorethreshold: number, + retrievalmethod: string, + rerankerenable: boolean, + } +} + +export class UpdateAssistantKnowledgeRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getKnowledgeid(): string; + setKnowledgeid(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getRerankermodelproviderid(): string; + setRerankermodelproviderid(value: string): void; + + getRerankermodelprovidername(): string; + setRerankermodelprovidername(value: string): void; + + clearAssistantknowledgererankeroptionsList(): void; + getAssistantknowledgererankeroptionsList(): Array; + setAssistantknowledgererankeroptionsList(value: Array): void; + addAssistantknowledgererankeroptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + getScorethreshold(): number; + setScorethreshold(value: number): void; + + getTopk(): number; + setTopk(value: number): void; + + getRetrievalmethod(): string; + setRetrievalmethod(value: string): void; + + getRerankerenable(): boolean; + setRerankerenable(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateAssistantKnowledgeRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateAssistantKnowledgeRequest): UpdateAssistantKnowledgeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateAssistantKnowledgeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateAssistantKnowledgeRequest; + static deserializeBinaryFromReader(message: UpdateAssistantKnowledgeRequest, reader: jspb.BinaryReader): UpdateAssistantKnowledgeRequest; +} + +export namespace UpdateAssistantKnowledgeRequest { + export type AsObject = { + id: string, + knowledgeid: string, + assistantid: string, + rerankermodelproviderid: string, + rerankermodelprovidername: string, + assistantknowledgererankeroptionsList: Array, + scorethreshold: number, + topk: number, + retrievalmethod: string, + rerankerenable: boolean, + } +} + +export class GetAssistantKnowledgeRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantKnowledgeRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantKnowledgeRequest): GetAssistantKnowledgeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantKnowledgeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantKnowledgeRequest; + static deserializeBinaryFromReader(message: GetAssistantKnowledgeRequest, reader: jspb.BinaryReader): GetAssistantKnowledgeRequest; +} + +export namespace GetAssistantKnowledgeRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class DeleteAssistantKnowledgeRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAssistantKnowledgeRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAssistantKnowledgeRequest): DeleteAssistantKnowledgeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAssistantKnowledgeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAssistantKnowledgeRequest; + static deserializeBinaryFromReader(message: DeleteAssistantKnowledgeRequest, reader: jspb.BinaryReader): DeleteAssistantKnowledgeRequest; +} + +export namespace DeleteAssistantKnowledgeRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class GetAssistantKnowledgeResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): AssistantKnowledge | undefined; + setData(value?: AssistantKnowledge): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantKnowledgeResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantKnowledgeResponse): GetAssistantKnowledgeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantKnowledgeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantKnowledgeResponse; + static deserializeBinaryFromReader(message: GetAssistantKnowledgeResponse, reader: jspb.BinaryReader): GetAssistantKnowledgeResponse; +} + +export namespace GetAssistantKnowledgeResponse { + export type AsObject = { + code: number, + success: boolean, + data?: AssistantKnowledge.AsObject, + error?: common_pb.Error.AsObject, + } +} + +export class GetAllAssistantKnowledgeRequest extends jspb.Message { + getAssistantid(): string; + setAssistantid(value: string): void; + + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantKnowledgeRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantKnowledgeRequest): GetAllAssistantKnowledgeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantKnowledgeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantKnowledgeRequest; + static deserializeBinaryFromReader(message: GetAllAssistantKnowledgeRequest, reader: jspb.BinaryReader): GetAllAssistantKnowledgeRequest; +} + +export namespace GetAllAssistantKnowledgeRequest { + export type AsObject = { + assistantid: string, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + } +} + +export class GetAllAssistantKnowledgeResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: AssistantKnowledge, index?: number): AssistantKnowledge; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantKnowledgeResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantKnowledgeResponse): GetAllAssistantKnowledgeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantKnowledgeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantKnowledgeResponse; + static deserializeBinaryFromReader(message: GetAllAssistantKnowledgeResponse, reader: jspb.BinaryReader): GetAllAssistantKnowledgeResponse; +} + +export namespace GetAllAssistantKnowledgeResponse { + export type AsObject = { + code: number, + success: boolean, + dataList: Array, + error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + diff --git a/src/clients/protos/assistant-knowledge_pb.js b/src/clients/protos/assistant-knowledge_pb.js new file mode 100644 index 0000000..56a8ba2 --- /dev/null +++ b/src/clients/protos/assistant-knowledge_pb.js @@ -0,0 +1,2762 @@ +// source: assistant-knowledge.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @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! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +goog.exportSymbol('proto.assistant_api.AssistantKnowledge', null, global); +goog.exportSymbol('proto.assistant_api.CreateAssistantKnowledgeRequest', null, global); +goog.exportSymbol('proto.assistant_api.DeleteAssistantKnowledgeRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantKnowledgeRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantKnowledgeResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantKnowledgeRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantKnowledgeResponse', null, global); +goog.exportSymbol('proto.assistant_api.UpdateAssistantKnowledgeRequest', 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.assistant_api.AssistantKnowledge = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.AssistantKnowledge.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.AssistantKnowledge, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.AssistantKnowledge.displayName = 'proto.assistant_api.AssistantKnowledge'; +} +/** + * 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.assistant_api.CreateAssistantKnowledgeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantKnowledgeRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.CreateAssistantKnowledgeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.CreateAssistantKnowledgeRequest.displayName = 'proto.assistant_api.CreateAssistantKnowledgeRequest'; +} +/** + * 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.assistant_api.UpdateAssistantKnowledgeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.UpdateAssistantKnowledgeRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.UpdateAssistantKnowledgeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.UpdateAssistantKnowledgeRequest.displayName = 'proto.assistant_api.UpdateAssistantKnowledgeRequest'; +} +/** + * 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.assistant_api.GetAssistantKnowledgeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantKnowledgeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantKnowledgeRequest.displayName = 'proto.assistant_api.GetAssistantKnowledgeRequest'; +} +/** + * 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.assistant_api.DeleteAssistantKnowledgeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.DeleteAssistantKnowledgeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.DeleteAssistantKnowledgeRequest.displayName = 'proto.assistant_api.DeleteAssistantKnowledgeRequest'; +} +/** + * 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.assistant_api.GetAssistantKnowledgeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantKnowledgeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantKnowledgeResponse.displayName = 'proto.assistant_api.GetAssistantKnowledgeResponse'; +} +/** + * 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.assistant_api.GetAllAssistantKnowledgeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantKnowledgeRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantKnowledgeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantKnowledgeRequest.displayName = 'proto.assistant_api.GetAllAssistantKnowledgeRequest'; +} +/** + * 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.assistant_api.GetAllAssistantKnowledgeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantKnowledgeResponse.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantKnowledgeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantKnowledgeResponse.displayName = 'proto.assistant_api.GetAllAssistantKnowledgeResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.AssistantKnowledge.repeatedFields_ = [12]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.AssistantKnowledge.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.AssistantKnowledge.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.AssistantKnowledge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantKnowledge.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + knowledgeid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + rerankerenable: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + topk: jspb.Message.getFieldWithDefault(msg, 6, 0), + scorethreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + knowledge: (f = msg.getKnowledge()) && common_pb.Knowledge.toObject(includeInstance, f), + retrievalmethod: jspb.Message.getFieldWithDefault(msg, 9, ""), + rerankermodelproviderid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + rerankermodelprovidername: jspb.Message.getFieldWithDefault(msg, 11, ""), + assistantknowledgererankeroptionsList: jspb.Message.toObjectList(msg.getAssistantknowledgererankeroptionsList(), + common_pb.Metadata.toObject, includeInstance), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + status: jspb.Message.getFieldWithDefault(msg, 15, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.assistant_api.AssistantKnowledge} + */ +proto.assistant_api.AssistantKnowledge.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.AssistantKnowledge; + return proto.assistant_api.AssistantKnowledge.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.AssistantKnowledge} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.AssistantKnowledge} + */ +proto.assistant_api.AssistantKnowledge.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setKnowledgeid(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRerankerenable(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTopk(value); + break; + case 7: + var value = /** @type {number} */ (reader.readFloat()); + msg.setScorethreshold(value); + break; + case 8: + var value = new common_pb.Knowledge; + reader.readMessage(value,common_pb.Knowledge.deserializeBinaryFromReader); + msg.setKnowledge(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setRetrievalmethod(value); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRerankermodelproviderid(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setRerankermodelprovidername(value); + break; + case 12: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addAssistantknowledgererankeroptions(value); + break; + case 13: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 14: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.AssistantKnowledge.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.AssistantKnowledge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.AssistantKnowledge} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantKnowledge.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getKnowledgeid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getRerankerenable(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getTopk(); + if (f !== 0) { + writer.writeUint32( + 6, + f + ); + } + f = message.getScorethreshold(); + if (f !== 0.0) { + writer.writeFloat( + 7, + f + ); + } + f = message.getKnowledge(); + if (f != null) { + writer.writeMessage( + 8, + f, + common_pb.Knowledge.serializeBinaryToWriter + ); + } + f = message.getRetrievalmethod(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getRerankermodelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getRerankermodelprovidername(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getAssistantknowledgererankeroptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 13, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 14, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.AssistantKnowledge.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 knowledgeId = 2; + * @return {string} + */ +proto.assistant_api.AssistantKnowledge.prototype.getKnowledgeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setKnowledgeid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional bool rerankerEnable = 3; + * @return {boolean} + */ +proto.assistant_api.AssistantKnowledge.prototype.getRerankerenable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setRerankerenable = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional uint32 topK = 6; + * @return {number} + */ +proto.assistant_api.AssistantKnowledge.prototype.getTopk = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setTopk = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional float scoreThreshold = 7; + * @return {number} + */ +proto.assistant_api.AssistantKnowledge.prototype.getScorethreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setScorethreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); +}; + + +/** + * optional Knowledge knowledge = 8; + * @return {?proto.Knowledge} + */ +proto.assistant_api.AssistantKnowledge.prototype.getKnowledge = function() { + return /** @type{?proto.Knowledge} */ ( + jspb.Message.getWrapperField(this, common_pb.Knowledge, 8)); +}; + + +/** + * @param {?proto.Knowledge|undefined} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this +*/ +proto.assistant_api.AssistantKnowledge.prototype.setKnowledge = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.clearKnowledge = function() { + return this.setKnowledge(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantKnowledge.prototype.hasKnowledge = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional string retrievalMethod = 9; + * @return {string} + */ +proto.assistant_api.AssistantKnowledge.prototype.getRetrievalmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setRetrievalmethod = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional uint64 rerankerModelProviderId = 10; + * @return {string} + */ +proto.assistant_api.AssistantKnowledge.prototype.getRerankermodelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setRerankermodelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional string rerankerModelProviderName = 11; + * @return {string} + */ +proto.assistant_api.AssistantKnowledge.prototype.getRerankermodelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setRerankermodelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * repeated Metadata assistantKnowledgeRerankerOptions = 12; + * @return {!Array} + */ +proto.assistant_api.AssistantKnowledge.prototype.getAssistantknowledgererankeroptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this +*/ +proto.assistant_api.AssistantKnowledge.prototype.setAssistantknowledgererankeroptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.assistant_api.AssistantKnowledge.prototype.addAssistantknowledgererankeroptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.clearAssistantknowledgererankeroptionsList = function() { + return this.setAssistantknowledgererankeroptionsList([]); +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 13; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantKnowledge.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this +*/ +proto.assistant_api.AssistantKnowledge.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantKnowledge.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional google.protobuf.Timestamp updatedDate = 14; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantKnowledge.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this +*/ +proto.assistant_api.AssistantKnowledge.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantKnowledge.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional string status = 15; + * @return {string} + */ +proto.assistant_api.AssistantKnowledge.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantKnowledge} returns this + */ +proto.assistant_api.AssistantKnowledge.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.repeatedFields_ = [5]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantKnowledgeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.CreateAssistantKnowledgeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + knowledgeid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + rerankermodelproviderid: jspb.Message.getFieldWithDefault(msg, 3, "0"), + rerankermodelprovidername: jspb.Message.getFieldWithDefault(msg, 4, ""), + assistantknowledgererankeroptionsList: jspb.Message.toObjectList(msg.getAssistantknowledgererankeroptionsList(), + common_pb.Metadata.toObject, includeInstance), + topk: jspb.Message.getFieldWithDefault(msg, 6, 0), + scorethreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + retrievalmethod: jspb.Message.getFieldWithDefault(msg, 8, ""), + rerankerenable: jspb.Message.getBooleanFieldWithDefault(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.assistant_api.CreateAssistantKnowledgeRequest} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.CreateAssistantKnowledgeRequest; + return proto.assistant_api.CreateAssistantKnowledgeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.CreateAssistantKnowledgeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setKnowledgeid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRerankermodelproviderid(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setRerankermodelprovidername(value); + break; + case 5: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addAssistantknowledgererankeroptions(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTopk(value); + break; + case 7: + var value = /** @type {number} */ (reader.readFloat()); + msg.setScorethreshold(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setRetrievalmethod(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRerankerenable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.CreateAssistantKnowledgeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.CreateAssistantKnowledgeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKnowledgeid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getRerankermodelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, + f + ); + } + f = message.getRerankermodelprovidername(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAssistantknowledgererankeroptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getTopk(); + if (f !== 0) { + writer.writeUint32( + 6, + f + ); + } + f = message.getScorethreshold(); + if (f !== 0.0) { + writer.writeFloat( + 7, + f + ); + } + f = message.getRetrievalmethod(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getRerankerenable(); + if (f) { + writer.writeBool( + 9, + f + ); + } +}; + + +/** + * optional uint64 knowledgeId = 1; + * @return {string} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getKnowledgeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setKnowledgeid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional uint64 rerankerModelProviderId = 3; + * @return {string} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getRerankermodelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setRerankermodelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + +/** + * optional string rerankerModelProviderName = 4; + * @return {string} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getRerankermodelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setRerankermodelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * repeated Metadata assistantKnowledgeRerankerOptions = 5; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getAssistantknowledgererankeroptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this +*/ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setAssistantknowledgererankeroptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.addAssistantknowledgererankeroptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.clearAssistantknowledgererankeroptionsList = function() { + return this.setAssistantknowledgererankeroptionsList([]); +}; + + +/** + * optional uint32 topK = 6; + * @return {number} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getTopk = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setTopk = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional float scoreThreshold = 7; + * @return {number} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getScorethreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setScorethreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); +}; + + +/** + * optional string retrievalMethod = 8; + * @return {string} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getRetrievalmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setRetrievalmethod = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional bool rerankerEnable = 9; + * @return {boolean} + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.getRerankerenable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.CreateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.CreateAssistantKnowledgeRequest.prototype.setRerankerenable = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.repeatedFields_ = [6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.UpdateAssistantKnowledgeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.UpdateAssistantKnowledgeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + knowledgeid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + assistantid: jspb.Message.getFieldWithDefault(msg, 3, "0"), + rerankermodelproviderid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + rerankermodelprovidername: jspb.Message.getFieldWithDefault(msg, 5, ""), + assistantknowledgererankeroptionsList: jspb.Message.toObjectList(msg.getAssistantknowledgererankeroptionsList(), + common_pb.Metadata.toObject, includeInstance), + scorethreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + topk: jspb.Message.getFieldWithDefault(msg, 8, 0), + retrievalmethod: jspb.Message.getFieldWithDefault(msg, 9, ""), + rerankerenable: jspb.Message.getBooleanFieldWithDefault(msg, 10, 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.assistant_api.UpdateAssistantKnowledgeRequest} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.UpdateAssistantKnowledgeRequest; + return proto.assistant_api.UpdateAssistantKnowledgeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.UpdateAssistantKnowledgeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setKnowledgeid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRerankermodelproviderid(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setRerankermodelprovidername(value); + break; + case 6: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addAssistantknowledgererankeroptions(value); + break; + case 7: + var value = /** @type {number} */ (reader.readFloat()); + msg.setScorethreshold(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTopk(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setRetrievalmethod(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRerankerenable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.UpdateAssistantKnowledgeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.UpdateAssistantKnowledgeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getKnowledgeid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, + f + ); + } + f = message.getRerankermodelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getRerankermodelprovidername(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getAssistantknowledgererankeroptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getScorethreshold(); + if (f !== 0.0) { + writer.writeFloat( + 7, + f + ); + } + f = message.getTopk(); + if (f !== 0) { + writer.writeUint32( + 8, + f + ); + } + f = message.getRetrievalmethod(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getRerankerenable(); + if (f) { + writer.writeBool( + 10, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 knowledgeId = 2; + * @return {string} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getKnowledgeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setKnowledgeid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional uint64 assistantId = 3; + * @return {string} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + +/** + * optional uint64 rerankerModelProviderId = 4; + * @return {string} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getRerankermodelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setRerankermodelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional string rerankerModelProviderName = 5; + * @return {string} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getRerankermodelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setRerankermodelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * repeated Metadata assistantKnowledgeRerankerOptions = 6; + * @return {!Array} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getAssistantknowledgererankeroptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this +*/ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setAssistantknowledgererankeroptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.addAssistantknowledgererankeroptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.clearAssistantknowledgererankeroptionsList = function() { + return this.setAssistantknowledgererankeroptionsList([]); +}; + + +/** + * optional float scoreThreshold = 7; + * @return {number} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getScorethreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setScorethreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); +}; + + +/** + * optional uint32 topK = 8; + * @return {number} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getTopk = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setTopk = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string retrievalMethod = 9; + * @return {string} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getRetrievalmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setRetrievalmethod = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional bool rerankerEnable = 10; + * @return {boolean} + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.getRerankerenable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.UpdateAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.UpdateAssistantKnowledgeRequest.prototype.setRerankerenable = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantKnowledgeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantKnowledgeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantKnowledgeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantKnowledgeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.GetAssistantKnowledgeRequest} + */ +proto.assistant_api.GetAssistantKnowledgeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantKnowledgeRequest; + return proto.assistant_api.GetAssistantKnowledgeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantKnowledgeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantKnowledgeRequest} + */ +proto.assistant_api.GetAssistantKnowledgeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantKnowledgeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantKnowledgeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantKnowledgeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantKnowledgeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.GetAssistantKnowledgeRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.GetAssistantKnowledgeRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.GetAssistantKnowledgeRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.GetAssistantKnowledgeRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.DeleteAssistantKnowledgeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.DeleteAssistantKnowledgeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.DeleteAssistantKnowledgeRequest} + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.DeleteAssistantKnowledgeRequest; + return proto.assistant_api.DeleteAssistantKnowledgeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.DeleteAssistantKnowledgeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.DeleteAssistantKnowledgeRequest} + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.DeleteAssistantKnowledgeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.DeleteAssistantKnowledgeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.DeleteAssistantKnowledgeRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantKnowledgeResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantKnowledgeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantKnowledgeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.assistant_api.AssistantKnowledge.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.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.assistant_api.GetAssistantKnowledgeResponse} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantKnowledgeResponse; + return proto.assistant_api.GetAssistantKnowledgeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantKnowledgeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantKnowledge; + reader.readMessage(value,proto.assistant_api.AssistantKnowledge.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantKnowledgeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantKnowledgeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantKnowledgeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.assistant_api.AssistantKnowledge.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional AssistantKnowledge data = 3; + * @return {?proto.assistant_api.AssistantKnowledge} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.AssistantKnowledge} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantKnowledge, 3)); +}; + + +/** + * @param {?proto.assistant_api.AssistantKnowledge|undefined} value + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} returns this +*/ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} returns this +*/ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantKnowledgeResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantKnowledgeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantKnowledgeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.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.assistant_api.GetAllAssistantKnowledgeRequest} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantKnowledgeRequest; + return proto.assistant_api.GetAllAssistantKnowledgeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantKnowledgeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeRequest} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 2: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 3: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantKnowledgeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantKnowledgeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 assistantId = 1; + * @return {string} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional Paginate paginate = 2; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeRequest} returns this +*/ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Criteria criterias = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeRequest} returns this +*/ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeRequest} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantKnowledgeResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantKnowledgeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.assistant_api.AssistantKnowledge.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.assistant_api.GetAllAssistantKnowledgeResponse} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantKnowledgeResponse; + return proto.assistant_api.GetAllAssistantKnowledgeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantKnowledgeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantKnowledge; + reader.readMessage(value,proto.assistant_api.AssistantKnowledge.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantKnowledgeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantKnowledgeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.assistant_api.AssistantKnowledge.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated AssistantKnowledge data = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantKnowledge, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this +*/ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.assistant_api.AssistantKnowledge=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantKnowledge} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantKnowledge, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this +*/ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this +*/ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantKnowledgeResponse} returns this + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantKnowledgeResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +goog.object.extend(exports, proto.assistant_api); diff --git a/src/clients/protos/assistant-tool_grpc_pb.d.ts b/src/clients/protos/assistant-tool_grpc_pb.d.ts new file mode 100644 index 0000000..51b4d69 --- /dev/null +++ b/src/clients/protos/assistant-tool_grpc_pb.d.ts @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/src/clients/protos/assistant-tool_grpc_pb.js b/src/clients/protos/assistant-tool_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/src/clients/protos/assistant-tool_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/clients/protos/assistant-tool_pb.d.ts b/src/clients/protos/assistant-tool_pb.d.ts new file mode 100644 index 0000000..697dc5a --- /dev/null +++ b/src/clients/protos/assistant-tool_pb.d.ts @@ -0,0 +1,322 @@ +// package: assistant_api +// file: assistant-tool.proto + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as common_pb from "./common_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +export class AssistantTool extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + hasFields(): boolean; + clearFields(): void; + getFields(): google_protobuf_struct_pb.Struct | undefined; + setFields(value?: google_protobuf_struct_pb.Struct): void; + + getExecutionmethod(): string; + setExecutionmethod(value: string): void; + + clearExecutionoptionsList(): void; + getExecutionoptionsList(): Array; + setExecutionoptionsList(value: Array): void; + addExecutionoptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + getStatus(): string; + setStatus(value: string): void; + + hasCreateddate(): boolean; + clearCreateddate(): void; + getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasUpdateddate(): boolean; + clearUpdateddate(): void; + getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantTool.AsObject; + static toObject(includeInstance: boolean, msg: AssistantTool): AssistantTool.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantTool, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantTool; + static deserializeBinaryFromReader(message: AssistantTool, reader: jspb.BinaryReader): AssistantTool; +} + +export namespace AssistantTool { + export type AsObject = { + id: string, + assistantid: string, + name: string, + description: string, + fields?: google_protobuf_struct_pb.Struct.AsObject, + executionmethod: string, + executionoptionsList: Array, + status: string, + createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class CreateAssistantToolRequest extends jspb.Message { + getAssistantid(): string; + setAssistantid(value: string): void; + + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + hasFields(): boolean; + clearFields(): void; + getFields(): google_protobuf_struct_pb.Struct | undefined; + setFields(value?: google_protobuf_struct_pb.Struct): void; + + getExecutionmethod(): string; + setExecutionmethod(value: string): void; + + clearExecutionoptionsList(): void; + getExecutionoptionsList(): Array; + setExecutionoptionsList(value: Array): void; + addExecutionoptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateAssistantToolRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateAssistantToolRequest): CreateAssistantToolRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateAssistantToolRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateAssistantToolRequest; + static deserializeBinaryFromReader(message: CreateAssistantToolRequest, reader: jspb.BinaryReader): CreateAssistantToolRequest; +} + +export namespace CreateAssistantToolRequest { + export type AsObject = { + assistantid: string, + name: string, + description: string, + fields?: google_protobuf_struct_pb.Struct.AsObject, + executionmethod: string, + executionoptionsList: Array, + } +} + +export class UpdateAssistantToolRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + hasFields(): boolean; + clearFields(): void; + getFields(): google_protobuf_struct_pb.Struct | undefined; + setFields(value?: google_protobuf_struct_pb.Struct): void; + + getExecutionmethod(): string; + setExecutionmethod(value: string): void; + + clearExecutionoptionsList(): void; + getExecutionoptionsList(): Array; + setExecutionoptionsList(value: Array): void; + addExecutionoptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateAssistantToolRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateAssistantToolRequest): UpdateAssistantToolRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateAssistantToolRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateAssistantToolRequest; + static deserializeBinaryFromReader(message: UpdateAssistantToolRequest, reader: jspb.BinaryReader): UpdateAssistantToolRequest; +} + +export namespace UpdateAssistantToolRequest { + export type AsObject = { + id: string, + assistantid: string, + name: string, + description: string, + fields?: google_protobuf_struct_pb.Struct.AsObject, + executionmethod: string, + executionoptionsList: Array, + } +} + +export class GetAssistantToolRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantToolRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantToolRequest): GetAssistantToolRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantToolRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantToolRequest; + static deserializeBinaryFromReader(message: GetAssistantToolRequest, reader: jspb.BinaryReader): GetAssistantToolRequest; +} + +export namespace GetAssistantToolRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class DeleteAssistantToolRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAssistantToolRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAssistantToolRequest): DeleteAssistantToolRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAssistantToolRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAssistantToolRequest; + static deserializeBinaryFromReader(message: DeleteAssistantToolRequest, reader: jspb.BinaryReader): DeleteAssistantToolRequest; +} + +export namespace DeleteAssistantToolRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class GetAssistantToolResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): AssistantTool | undefined; + setData(value?: AssistantTool): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantToolResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantToolResponse): GetAssistantToolResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantToolResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantToolResponse; + static deserializeBinaryFromReader(message: GetAssistantToolResponse, reader: jspb.BinaryReader): GetAssistantToolResponse; +} + +export namespace GetAssistantToolResponse { + export type AsObject = { + code: number, + success: boolean, + data?: AssistantTool.AsObject, + error?: common_pb.Error.AsObject, + } +} + +export class GetAllAssistantToolRequest extends jspb.Message { + getAssistantid(): string; + setAssistantid(value: string): void; + + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantToolRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantToolRequest): GetAllAssistantToolRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantToolRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantToolRequest; + static deserializeBinaryFromReader(message: GetAllAssistantToolRequest, reader: jspb.BinaryReader): GetAllAssistantToolRequest; +} + +export namespace GetAllAssistantToolRequest { + export type AsObject = { + assistantid: string, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + } +} + +export class GetAllAssistantToolResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: AssistantTool, index?: number): AssistantTool; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantToolResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantToolResponse): GetAllAssistantToolResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantToolResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantToolResponse; + static deserializeBinaryFromReader(message: GetAllAssistantToolResponse, reader: jspb.BinaryReader): GetAllAssistantToolResponse; +} + +export namespace GetAllAssistantToolResponse { + export type AsObject = { + code: number, + success: boolean, + dataList: Array, + error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + diff --git a/src/clients/protos/assistant-tool_pb.js b/src/clients/protos/assistant-tool_pb.js new file mode 100644 index 0000000..15c7fde --- /dev/null +++ b/src/clients/protos/assistant-tool_pb.js @@ -0,0 +1,2536 @@ +// source: assistant-tool.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @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! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.assistant_api.AssistantTool', null, global); +goog.exportSymbol('proto.assistant_api.CreateAssistantToolRequest', null, global); +goog.exportSymbol('proto.assistant_api.DeleteAssistantToolRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantToolRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantToolResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantToolRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantToolResponse', null, global); +goog.exportSymbol('proto.assistant_api.UpdateAssistantToolRequest', 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.assistant_api.AssistantTool = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.AssistantTool.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.AssistantTool, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.AssistantTool.displayName = 'proto.assistant_api.AssistantTool'; +} +/** + * 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.assistant_api.CreateAssistantToolRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantToolRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.CreateAssistantToolRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.CreateAssistantToolRequest.displayName = 'proto.assistant_api.CreateAssistantToolRequest'; +} +/** + * 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.assistant_api.UpdateAssistantToolRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.UpdateAssistantToolRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.UpdateAssistantToolRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.UpdateAssistantToolRequest.displayName = 'proto.assistant_api.UpdateAssistantToolRequest'; +} +/** + * 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.assistant_api.GetAssistantToolRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantToolRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantToolRequest.displayName = 'proto.assistant_api.GetAssistantToolRequest'; +} +/** + * 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.assistant_api.DeleteAssistantToolRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.DeleteAssistantToolRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.DeleteAssistantToolRequest.displayName = 'proto.assistant_api.DeleteAssistantToolRequest'; +} +/** + * 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.assistant_api.GetAssistantToolResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantToolResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantToolResponse.displayName = 'proto.assistant_api.GetAssistantToolResponse'; +} +/** + * 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.assistant_api.GetAllAssistantToolRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantToolRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantToolRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantToolRequest.displayName = 'proto.assistant_api.GetAllAssistantToolRequest'; +} +/** + * 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.assistant_api.GetAllAssistantToolResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantToolResponse.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantToolResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantToolResponse.displayName = 'proto.assistant_api.GetAllAssistantToolResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.AssistantTool.repeatedFields_ = [7]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.AssistantTool.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.AssistantTool.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.AssistantTool} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantTool.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + description: jspb.Message.getFieldWithDefault(msg, 4, ""), + fields: (f = msg.getFields()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + executionmethod: jspb.Message.getFieldWithDefault(msg, 6, ""), + executionoptionsList: jspb.Message.toObjectList(msg.getExecutionoptionsList(), + common_pb.Metadata.toObject, includeInstance), + status: jspb.Message.getFieldWithDefault(msg, 25, ""), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && 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.assistant_api.AssistantTool} + */ +proto.assistant_api.AssistantTool.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.AssistantTool; + return proto.assistant_api.AssistantTool.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.AssistantTool} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.AssistantTool} + */ +proto.assistant_api.AssistantTool.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setFields(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setExecutionmethod(value); + break; + case 7: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addExecutionoptions(value); + break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 26: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 27: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.AssistantTool.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.AssistantTool.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.AssistantTool} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantTool.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFields(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getExecutionmethod(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getExecutionoptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 25, + f + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 26, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 27, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.AssistantTool.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.AssistantTool.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.assistant_api.AssistantTool.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string description = 4; + * @return {string} + */ +proto.assistant_api.AssistantTool.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional google.protobuf.Struct fields = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.assistant_api.AssistantTool.prototype.getFields = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.assistant_api.AssistantTool} returns this +*/ +proto.assistant_api.AssistantTool.prototype.setFields = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.clearFields = function() { + return this.setFields(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantTool.prototype.hasFields = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string executionMethod = 6; + * @return {string} + */ +proto.assistant_api.AssistantTool.prototype.getExecutionmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.setExecutionmethod = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * repeated Metadata executionOptions = 7; + * @return {!Array} + */ +proto.assistant_api.AssistantTool.prototype.getExecutionoptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.AssistantTool} returns this +*/ +proto.assistant_api.AssistantTool.prototype.setExecutionoptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.assistant_api.AssistantTool.prototype.addExecutionoptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.clearExecutionoptionsList = function() { + return this.setExecutionoptionsList([]); +}; + + +/** + * optional string status = 25; + * @return {string} + */ +proto.assistant_api.AssistantTool.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 25, value); +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 26; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantTool.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 26)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantTool} returns this +*/ +proto.assistant_api.AssistantTool.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 26, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantTool.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 26) != null; +}; + + +/** + * optional google.protobuf.Timestamp updatedDate = 27; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantTool.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 27)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantTool} returns this +*/ +proto.assistant_api.AssistantTool.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 27, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantTool} returns this + */ +proto.assistant_api.AssistantTool.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantTool.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 27) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.CreateAssistantToolRequest.repeatedFields_ = [7]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantToolRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.CreateAssistantToolRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantToolRequest.toObject = function(includeInstance, msg) { + var f, obj = { + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + description: jspb.Message.getFieldWithDefault(msg, 4, ""), + fields: (f = msg.getFields()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + executionmethod: jspb.Message.getFieldWithDefault(msg, 6, ""), + executionoptionsList: jspb.Message.toObjectList(msg.getExecutionoptionsList(), + common_pb.Metadata.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.assistant_api.CreateAssistantToolRequest} + */ +proto.assistant_api.CreateAssistantToolRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.CreateAssistantToolRequest; + return proto.assistant_api.CreateAssistantToolRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.CreateAssistantToolRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.CreateAssistantToolRequest} + */ +proto.assistant_api.CreateAssistantToolRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setFields(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setExecutionmethod(value); + break; + case 7: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addExecutionoptions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.CreateAssistantToolRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.CreateAssistantToolRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantToolRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFields(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getExecutionmethod(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getExecutionoptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 assistantId = 1; + * @return {string} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string description = 4; + * @return {string} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional google.protobuf.Struct fields = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.getFields = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this +*/ +proto.assistant_api.CreateAssistantToolRequest.prototype.setFields = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.clearFields = function() { + return this.setFields(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.hasFields = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string executionMethod = 6; + * @return {string} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.getExecutionmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.setExecutionmethod = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * repeated Metadata executionOptions = 7; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.getExecutionoptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this +*/ +proto.assistant_api.CreateAssistantToolRequest.prototype.setExecutionoptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.addExecutionoptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantToolRequest} returns this + */ +proto.assistant_api.CreateAssistantToolRequest.prototype.clearExecutionoptionsList = function() { + return this.setExecutionoptionsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.UpdateAssistantToolRequest.repeatedFields_ = [7]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.UpdateAssistantToolRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.UpdateAssistantToolRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantToolRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + description: jspb.Message.getFieldWithDefault(msg, 4, ""), + fields: (f = msg.getFields()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + executionmethod: jspb.Message.getFieldWithDefault(msg, 6, ""), + executionoptionsList: jspb.Message.toObjectList(msg.getExecutionoptionsList(), + common_pb.Metadata.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.assistant_api.UpdateAssistantToolRequest} + */ +proto.assistant_api.UpdateAssistantToolRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.UpdateAssistantToolRequest; + return proto.assistant_api.UpdateAssistantToolRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.UpdateAssistantToolRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.UpdateAssistantToolRequest} + */ +proto.assistant_api.UpdateAssistantToolRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setFields(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setExecutionmethod(value); + break; + case 7: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addExecutionoptions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.UpdateAssistantToolRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.UpdateAssistantToolRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantToolRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFields(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getExecutionmethod(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getExecutionoptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string description = 4; + * @return {string} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional google.protobuf.Struct fields = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getFields = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this +*/ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setFields = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.clearFields = function() { + return this.setFields(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.hasFields = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string executionMethod = 6; + * @return {string} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getExecutionmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setExecutionmethod = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * repeated Metadata executionOptions = 7; + * @return {!Array} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.getExecutionoptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this +*/ +proto.assistant_api.UpdateAssistantToolRequest.prototype.setExecutionoptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.addExecutionoptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.UpdateAssistantToolRequest} returns this + */ +proto.assistant_api.UpdateAssistantToolRequest.prototype.clearExecutionoptionsList = function() { + return this.setExecutionoptionsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantToolRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantToolRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantToolRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantToolRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.GetAssistantToolRequest} + */ +proto.assistant_api.GetAssistantToolRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantToolRequest; + return proto.assistant_api.GetAssistantToolRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantToolRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantToolRequest} + */ +proto.assistant_api.GetAssistantToolRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantToolRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantToolRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantToolRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantToolRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.GetAssistantToolRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantToolRequest} returns this + */ +proto.assistant_api.GetAssistantToolRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.GetAssistantToolRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantToolRequest} returns this + */ +proto.assistant_api.GetAssistantToolRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.DeleteAssistantToolRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.DeleteAssistantToolRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.DeleteAssistantToolRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantToolRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.DeleteAssistantToolRequest} + */ +proto.assistant_api.DeleteAssistantToolRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.DeleteAssistantToolRequest; + return proto.assistant_api.DeleteAssistantToolRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.DeleteAssistantToolRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.DeleteAssistantToolRequest} + */ +proto.assistant_api.DeleteAssistantToolRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.DeleteAssistantToolRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.DeleteAssistantToolRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.DeleteAssistantToolRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantToolRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.DeleteAssistantToolRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantToolRequest} returns this + */ +proto.assistant_api.DeleteAssistantToolRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.DeleteAssistantToolRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantToolRequest} returns this + */ +proto.assistant_api.DeleteAssistantToolRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantToolResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantToolResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantToolResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.assistant_api.AssistantTool.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.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.assistant_api.GetAssistantToolResponse} + */ +proto.assistant_api.GetAssistantToolResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantToolResponse; + return proto.assistant_api.GetAssistantToolResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantToolResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantToolResponse} + */ +proto.assistant_api.GetAssistantToolResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantTool; + reader.readMessage(value,proto.assistant_api.AssistantTool.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantToolResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantToolResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantToolResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.assistant_api.AssistantTool.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAssistantToolResponse} returns this + */ +proto.assistant_api.GetAssistantToolResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAssistantToolResponse} returns this + */ +proto.assistant_api.GetAssistantToolResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional AssistantTool data = 3; + * @return {?proto.assistant_api.AssistantTool} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.AssistantTool} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantTool, 3)); +}; + + +/** + * @param {?proto.assistant_api.AssistantTool|undefined} value + * @return {!proto.assistant_api.GetAssistantToolResponse} returns this +*/ +proto.assistant_api.GetAssistantToolResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantToolResponse} returns this + */ +proto.assistant_api.GetAssistantToolResponse.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAssistantToolResponse} returns this +*/ +proto.assistant_api.GetAssistantToolResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantToolResponse} returns this + */ +proto.assistant_api.GetAssistantToolResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantToolResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantToolRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantToolRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantToolRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantToolRequest.toObject = function(includeInstance, msg) { + var f, obj = { + assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.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.assistant_api.GetAllAssistantToolRequest} + */ +proto.assistant_api.GetAllAssistantToolRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantToolRequest; + return proto.assistant_api.GetAllAssistantToolRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantToolRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantToolRequest} + */ +proto.assistant_api.GetAllAssistantToolRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 2: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 3: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantToolRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantToolRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantToolRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 assistantId = 1; + * @return {string} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional Paginate paginate = 2; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this +*/ +proto.assistant_api.GetAllAssistantToolRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Criteria criterias = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this +*/ +proto.assistant_api.GetAllAssistantToolRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantToolRequest} returns this + */ +proto.assistant_api.GetAllAssistantToolRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantToolResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantToolResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantToolResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantToolResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.assistant_api.AssistantTool.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.assistant_api.GetAllAssistantToolResponse} + */ +proto.assistant_api.GetAllAssistantToolResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantToolResponse; + return proto.assistant_api.GetAllAssistantToolResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantToolResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantToolResponse} + */ +proto.assistant_api.GetAllAssistantToolResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantTool; + reader.readMessage(value,proto.assistant_api.AssistantTool.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantToolResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantToolResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantToolResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.assistant_api.AssistantTool.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated AssistantTool data = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantTool, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this +*/ +proto.assistant_api.GetAllAssistantToolResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.assistant_api.AssistantTool=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantTool} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantTool, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this +*/ +proto.assistant_api.GetAllAssistantToolResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this +*/ +proto.assistant_api.GetAllAssistantToolResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantToolResponse} returns this + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantToolResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +goog.object.extend(exports, proto.assistant_api); diff --git a/src/clients/protos/assistant-webhook_grpc_pb.d.ts b/src/clients/protos/assistant-webhook_grpc_pb.d.ts new file mode 100644 index 0000000..51b4d69 --- /dev/null +++ b/src/clients/protos/assistant-webhook_grpc_pb.d.ts @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/src/clients/protos/assistant-webhook_grpc_pb.js b/src/clients/protos/assistant-webhook_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/src/clients/protos/assistant-webhook_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/clients/protos/assistant-webhook_pb.d.ts b/src/clients/protos/assistant-webhook_pb.d.ts new file mode 100644 index 0000000..744b5b4 --- /dev/null +++ b/src/clients/protos/assistant-webhook_pb.d.ts @@ -0,0 +1,636 @@ +// package: assistant_api +// file: assistant-webhook.proto + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as common_pb from "./common_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +export class AssistantWebhook extends jspb.Message { + getId(): string; + setId(value: string): void; + + clearAssistanteventsList(): void; + getAssistanteventsList(): Array; + setAssistanteventsList(value: Array): void; + addAssistantevents(value: string, index?: number): string; + + getDescription(): string; + setDescription(value: string): void; + + getHttpmethod(): string; + setHttpmethod(value: string): void; + + getHttpurl(): string; + setHttpurl(value: string): void; + + getHttpheadersMap(): jspb.Map; + clearHttpheadersMap(): void; + getHttpbodyMap(): jspb.Map; + clearHttpbodyMap(): void; + getTimeoutsecond(): number; + setTimeoutsecond(value: number): void; + + getExecutionpriority(): number; + setExecutionpriority(value: number): void; + + clearRetrystatuscodesList(): void; + getRetrystatuscodesList(): Array; + setRetrystatuscodesList(value: Array): void; + addRetrystatuscodes(value: string, index?: number): string; + + getRetrycount(): number; + setRetrycount(value: number): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getStatus(): string; + setStatus(value: string): void; + + getCreatedby(): string; + setCreatedby(value: string): void; + + hasCreateduser(): boolean; + clearCreateduser(): void; + getCreateduser(): common_pb.User | undefined; + setCreateduser(value?: common_pb.User): void; + + getUpdatedby(): string; + setUpdatedby(value: string): void; + + hasUpdateduser(): boolean; + clearUpdateduser(): void; + getUpdateduser(): common_pb.User | undefined; + setUpdateduser(value?: common_pb.User): void; + + hasCreateddate(): boolean; + clearCreateddate(): void; + getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasUpdateddate(): boolean; + clearUpdateddate(): void; + getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantWebhook.AsObject; + static toObject(includeInstance: boolean, msg: AssistantWebhook): AssistantWebhook.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantWebhook, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantWebhook; + static deserializeBinaryFromReader(message: AssistantWebhook, reader: jspb.BinaryReader): AssistantWebhook; +} + +export namespace AssistantWebhook { + export type AsObject = { + id: string, + assistanteventsList: Array, + description: string, + httpmethod: string, + httpurl: string, + httpheadersMap: Array<[string, string]>, + httpbodyMap: Array<[string, string]>, + timeoutsecond: number, + executionpriority: number, + retrystatuscodesList: Array, + retrycount: number, + assistantid: string, + status: string, + createdby: string, + createduser?: common_pb.User.AsObject, + updatedby: string, + updateduser?: common_pb.User.AsObject, + createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class AssistantWebhookLog extends jspb.Message { + getId(): string; + setId(value: string): void; + + getWebhookid(): string; + setWebhookid(value: string): void; + + hasRequest(): boolean; + clearRequest(): void; + getRequest(): google_protobuf_struct_pb.Struct | undefined; + setRequest(value?: google_protobuf_struct_pb.Struct): void; + + hasResponse(): boolean; + clearResponse(): void; + getResponse(): google_protobuf_struct_pb.Struct | undefined; + setResponse(value?: google_protobuf_struct_pb.Struct): void; + + getStatus(): string; + setStatus(value: string): void; + + hasCreateddate(): boolean; + clearCreateddate(): void; + getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasUpdateddate(): boolean; + clearUpdateddate(): void; + getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getProjectid(): string; + setProjectid(value: string): void; + + getOrganizationid(): string; + setOrganizationid(value: string): void; + + getConversationid(): string; + setConversationid(value: string): void; + + getAssetprefix(): string; + setAssetprefix(value: string): void; + + getEvent(): string; + setEvent(value: string): void; + + getResponsestatus(): string; + setResponsestatus(value: string): void; + + getTimetaken(): string; + setTimetaken(value: string): void; + + getRetrycount(): number; + setRetrycount(value: number): void; + + getHttpmethod(): string; + setHttpmethod(value: string): void; + + getHttpurl(): string; + setHttpurl(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantWebhookLog.AsObject; + static toObject(includeInstance: boolean, msg: AssistantWebhookLog): AssistantWebhookLog.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantWebhookLog, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantWebhookLog; + static deserializeBinaryFromReader(message: AssistantWebhookLog, reader: jspb.BinaryReader): AssistantWebhookLog; +} + +export namespace AssistantWebhookLog { + export type AsObject = { + id: string, + webhookid: string, + request?: google_protobuf_struct_pb.Struct.AsObject, + response?: google_protobuf_struct_pb.Struct.AsObject, + status: string, + createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + assistantid: string, + projectid: string, + organizationid: string, + conversationid: string, + assetprefix: string, + event: string, + responsestatus: string, + timetaken: string, + retrycount: number, + httpmethod: string, + httpurl: string, + } +} + +export class CreateAssistantWebhookRequest extends jspb.Message { + clearAssistanteventsList(): void; + getAssistanteventsList(): Array; + setAssistanteventsList(value: Array): void; + addAssistantevents(value: string, index?: number): string; + + getDescription(): string; + setDescription(value: string): void; + + getHttpmethod(): string; + setHttpmethod(value: string): void; + + getHttpurl(): string; + setHttpurl(value: string): void; + + getHttpheadersMap(): jspb.Map; + clearHttpheadersMap(): void; + getHttpbodyMap(): jspb.Map; + clearHttpbodyMap(): void; + getTimeoutsecond(): number; + setTimeoutsecond(value: number): void; + + clearRetrystatuscodesList(): void; + getRetrystatuscodesList(): Array; + setRetrystatuscodesList(value: Array): void; + addRetrystatuscodes(value: string, index?: number): string; + + getMaxretrycount(): number; + setMaxretrycount(value: number): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getExecutionpriority(): number; + setExecutionpriority(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateAssistantWebhookRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateAssistantWebhookRequest): CreateAssistantWebhookRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateAssistantWebhookRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateAssistantWebhookRequest; + static deserializeBinaryFromReader(message: CreateAssistantWebhookRequest, reader: jspb.BinaryReader): CreateAssistantWebhookRequest; +} + +export namespace CreateAssistantWebhookRequest { + export type AsObject = { + assistanteventsList: Array, + description: string, + httpmethod: string, + httpurl: string, + httpheadersMap: Array<[string, string]>, + httpbodyMap: Array<[string, string]>, + timeoutsecond: number, + retrystatuscodesList: Array, + maxretrycount: number, + assistantid: string, + executionpriority: number, + } +} + +export class UpdateAssistantWebhookRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + clearAssistanteventsList(): void; + getAssistanteventsList(): Array; + setAssistanteventsList(value: Array): void; + addAssistantevents(value: string, index?: number): string; + + getDescription(): string; + setDescription(value: string): void; + + getHttpmethod(): string; + setHttpmethod(value: string): void; + + getHttpurl(): string; + setHttpurl(value: string): void; + + getHttpheadersMap(): jspb.Map; + clearHttpheadersMap(): void; + getHttpbodyMap(): jspb.Map; + clearHttpbodyMap(): void; + getTimeoutsecond(): number; + setTimeoutsecond(value: number): void; + + clearRetrystatuscodesList(): void; + getRetrystatuscodesList(): Array; + setRetrystatuscodesList(value: Array): void; + addRetrystatuscodes(value: string, index?: number): string; + + getMaxretrycount(): number; + setMaxretrycount(value: number): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + getExecutionpriority(): number; + setExecutionpriority(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateAssistantWebhookRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateAssistantWebhookRequest): UpdateAssistantWebhookRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateAssistantWebhookRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateAssistantWebhookRequest; + static deserializeBinaryFromReader(message: UpdateAssistantWebhookRequest, reader: jspb.BinaryReader): UpdateAssistantWebhookRequest; +} + +export namespace UpdateAssistantWebhookRequest { + export type AsObject = { + id: string, + assistanteventsList: Array, + description: string, + httpmethod: string, + httpurl: string, + httpheadersMap: Array<[string, string]>, + httpbodyMap: Array<[string, string]>, + timeoutsecond: number, + retrystatuscodesList: Array, + maxretrycount: number, + assistantid: string, + executionpriority: number, + } +} + +export class GetAssistantWebhookRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantWebhookRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantWebhookRequest): GetAssistantWebhookRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantWebhookRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantWebhookRequest; + static deserializeBinaryFromReader(message: GetAssistantWebhookRequest, reader: jspb.BinaryReader): GetAssistantWebhookRequest; +} + +export namespace GetAssistantWebhookRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class DeleteAssistantWebhookRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAssistantWebhookRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAssistantWebhookRequest): DeleteAssistantWebhookRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAssistantWebhookRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAssistantWebhookRequest; + static deserializeBinaryFromReader(message: DeleteAssistantWebhookRequest, reader: jspb.BinaryReader): DeleteAssistantWebhookRequest; +} + +export namespace DeleteAssistantWebhookRequest { + export type AsObject = { + id: string, + assistantid: string, + } +} + +export class GetAssistantWebhookResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): AssistantWebhook | undefined; + setData(value?: AssistantWebhook): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantWebhookResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantWebhookResponse): GetAssistantWebhookResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantWebhookResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantWebhookResponse; + static deserializeBinaryFromReader(message: GetAssistantWebhookResponse, reader: jspb.BinaryReader): GetAssistantWebhookResponse; +} + +export namespace GetAssistantWebhookResponse { + export type AsObject = { + code: number, + success: boolean, + data?: AssistantWebhook.AsObject, + error?: common_pb.Error.AsObject, + } +} + +export class GetAllAssistantWebhookRequest extends jspb.Message { + getWebhookid(): string; + setWebhookid(value: string): void; + + getAssistantid(): string; + setAssistantid(value: string): void; + + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantWebhookRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantWebhookRequest): GetAllAssistantWebhookRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantWebhookRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantWebhookRequest; + static deserializeBinaryFromReader(message: GetAllAssistantWebhookRequest, reader: jspb.BinaryReader): GetAllAssistantWebhookRequest; +} + +export namespace GetAllAssistantWebhookRequest { + export type AsObject = { + webhookid: string, + assistantid: string, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + } +} + +export class GetAllAssistantWebhookResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: AssistantWebhook, index?: number): AssistantWebhook; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantWebhookResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantWebhookResponse): GetAllAssistantWebhookResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantWebhookResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantWebhookResponse; + static deserializeBinaryFromReader(message: GetAllAssistantWebhookResponse, reader: jspb.BinaryReader): GetAllAssistantWebhookResponse; +} + +export namespace GetAllAssistantWebhookResponse { + export type AsObject = { + code: number, + success: boolean, + dataList: Array, + error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + +export class GetAllAssistantWebhookLogRequest extends jspb.Message { + getProjectid(): string; + setProjectid(value: string): void; + + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + hasOrder(): boolean; + clearOrder(): void; + getOrder(): common_pb.Ordering | undefined; + setOrder(value?: common_pb.Ordering): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantWebhookLogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantWebhookLogRequest): GetAllAssistantWebhookLogRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantWebhookLogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantWebhookLogRequest; + static deserializeBinaryFromReader(message: GetAllAssistantWebhookLogRequest, reader: jspb.BinaryReader): GetAllAssistantWebhookLogRequest; +} + +export namespace GetAllAssistantWebhookLogRequest { + export type AsObject = { + projectid: string, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + order?: common_pb.Ordering.AsObject, + } +} + +export class GetAssistantWebhookLogRequest extends jspb.Message { + getProjectid(): string; + setProjectid(value: string): void; + + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantWebhookLogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantWebhookLogRequest): GetAssistantWebhookLogRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantWebhookLogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantWebhookLogRequest; + static deserializeBinaryFromReader(message: GetAssistantWebhookLogRequest, reader: jspb.BinaryReader): GetAssistantWebhookLogRequest; +} + +export namespace GetAssistantWebhookLogRequest { + export type AsObject = { + projectid: string, + id: string, + } +} + +export class GetAssistantWebhookLogResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): AssistantWebhookLog | undefined; + setData(value?: AssistantWebhookLog): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAssistantWebhookLogResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAssistantWebhookLogResponse): GetAssistantWebhookLogResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAssistantWebhookLogResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAssistantWebhookLogResponse; + static deserializeBinaryFromReader(message: GetAssistantWebhookLogResponse, reader: jspb.BinaryReader): GetAssistantWebhookLogResponse; +} + +export namespace GetAssistantWebhookLogResponse { + export type AsObject = { + code: number, + success: boolean, + data?: AssistantWebhookLog.AsObject, + error?: common_pb.Error.AsObject, + } +} + +export class GetAllAssistantWebhookLogResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: AssistantWebhookLog, index?: number): AssistantWebhookLog; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllAssistantWebhookLogResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllAssistantWebhookLogResponse): GetAllAssistantWebhookLogResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllAssistantWebhookLogResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllAssistantWebhookLogResponse; + static deserializeBinaryFromReader(message: GetAllAssistantWebhookLogResponse, reader: jspb.BinaryReader): GetAllAssistantWebhookLogResponse; +} + +export namespace GetAllAssistantWebhookLogResponse { + export type AsObject = { + code: number, + success: boolean, + dataList: Array, + error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + diff --git a/src/clients/protos/assistant-webhook_pb.js b/src/clients/protos/assistant-webhook_pb.js new file mode 100644 index 0000000..2d83cf4 --- /dev/null +++ b/src/clients/protos/assistant-webhook_pb.js @@ -0,0 +1,5048 @@ +// source: assistant-webhook.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @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! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.assistant_api.AssistantWebhook', null, global); +goog.exportSymbol('proto.assistant_api.AssistantWebhookLog', null, global); +goog.exportSymbol('proto.assistant_api.CreateAssistantWebhookRequest', null, global); +goog.exportSymbol('proto.assistant_api.DeleteAssistantWebhookRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantWebhookLogRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantWebhookLogResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantWebhookRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAllAssistantWebhookResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantWebhookLogRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantWebhookLogResponse', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantWebhookRequest', null, global); +goog.exportSymbol('proto.assistant_api.GetAssistantWebhookResponse', null, global); +goog.exportSymbol('proto.assistant_api.UpdateAssistantWebhookRequest', 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.assistant_api.AssistantWebhook = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.AssistantWebhook.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.AssistantWebhook, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.AssistantWebhook.displayName = 'proto.assistant_api.AssistantWebhook'; +} +/** + * 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.assistant_api.AssistantWebhookLog = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.AssistantWebhookLog, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.AssistantWebhookLog.displayName = 'proto.assistant_api.AssistantWebhookLog'; +} +/** + * 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.assistant_api.CreateAssistantWebhookRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.CreateAssistantWebhookRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.CreateAssistantWebhookRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.CreateAssistantWebhookRequest.displayName = 'proto.assistant_api.CreateAssistantWebhookRequest'; +} +/** + * 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.assistant_api.UpdateAssistantWebhookRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.UpdateAssistantWebhookRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.UpdateAssistantWebhookRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.UpdateAssistantWebhookRequest.displayName = 'proto.assistant_api.UpdateAssistantWebhookRequest'; +} +/** + * 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.assistant_api.GetAssistantWebhookRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantWebhookRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantWebhookRequest.displayName = 'proto.assistant_api.GetAssistantWebhookRequest'; +} +/** + * 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.assistant_api.DeleteAssistantWebhookRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.DeleteAssistantWebhookRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.DeleteAssistantWebhookRequest.displayName = 'proto.assistant_api.DeleteAssistantWebhookRequest'; +} +/** + * 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.assistant_api.GetAssistantWebhookResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantWebhookResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantWebhookResponse.displayName = 'proto.assistant_api.GetAssistantWebhookResponse'; +} +/** + * 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.assistant_api.GetAllAssistantWebhookRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantWebhookRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantWebhookRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantWebhookRequest.displayName = 'proto.assistant_api.GetAllAssistantWebhookRequest'; +} +/** + * 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.assistant_api.GetAllAssistantWebhookResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantWebhookResponse.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantWebhookResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantWebhookResponse.displayName = 'proto.assistant_api.GetAllAssistantWebhookResponse'; +} +/** + * 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.assistant_api.GetAllAssistantWebhookLogRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantWebhookLogRequest.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantWebhookLogRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantWebhookLogRequest.displayName = 'proto.assistant_api.GetAllAssistantWebhookLogRequest'; +} +/** + * 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.assistant_api.GetAssistantWebhookLogRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantWebhookLogRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantWebhookLogRequest.displayName = 'proto.assistant_api.GetAssistantWebhookLogRequest'; +} +/** + * 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.assistant_api.GetAssistantWebhookLogResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.assistant_api.GetAssistantWebhookLogResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAssistantWebhookLogResponse.displayName = 'proto.assistant_api.GetAssistantWebhookLogResponse'; +} +/** + * 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.assistant_api.GetAllAssistantWebhookLogResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantWebhookLogResponse.repeatedFields_, null); +}; +goog.inherits(proto.assistant_api.GetAllAssistantWebhookLogResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.assistant_api.GetAllAssistantWebhookLogResponse.displayName = 'proto.assistant_api.GetAllAssistantWebhookLogResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.AssistantWebhook.repeatedFields_ = [2,8]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.AssistantWebhook.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.AssistantWebhook.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.AssistantWebhook} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantWebhook.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistanteventsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + httpmethod: jspb.Message.getFieldWithDefault(msg, 4, ""), + httpurl: jspb.Message.getFieldWithDefault(msg, 5, ""), + httpheadersMap: (f = msg.getHttpheadersMap()) ? f.toObject(includeInstance, undefined) : [], + httpbodyMap: (f = msg.getHttpbodyMap()) ? f.toObject(includeInstance, undefined) : [], + timeoutsecond: jspb.Message.getFieldWithDefault(msg, 19, 0), + executionpriority: jspb.Message.getFieldWithDefault(msg, 20, 0), + retrystatuscodesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + retrycount: jspb.Message.getFieldWithDefault(msg, 9, 0), + assistantid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + status: jspb.Message.getFieldWithDefault(msg, 12, ""), + createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), + updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && 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.assistant_api.AssistantWebhook} + */ +proto.assistant_api.AssistantWebhook.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.AssistantWebhook; + return proto.assistant_api.AssistantWebhook.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.AssistantWebhook} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.AssistantWebhook} + */ +proto.assistant_api.AssistantWebhook.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addAssistantevents(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpmethod(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpurl(value); + break; + case 6: + var value = msg.getHttpheadersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 7: + var value = msg.getHttpbodyMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 19: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTimeoutsecond(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint32()); + msg.setExecutionpriority(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.addRetrystatuscodes(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint32()); + msg.setRetrycount(value); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 13: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); + break; + case 14: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); + break; + case 15: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); + break; + case 16: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); + break; + case 17: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 18: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.AssistantWebhook.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.AssistantWebhook.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.AssistantWebhook} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantWebhook.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistanteventsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getHttpmethod(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getHttpurl(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getHttpheadersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getHttpbodyMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getTimeoutsecond(); + if (f !== 0) { + writer.writeUint32( + 19, + f + ); + } + f = message.getExecutionpriority(); + if (f !== 0) { + writer.writeUint32( + 20, + f + ); + } + f = message.getRetrystatuscodesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 8, + f + ); + } + f = message.getRetrycount(); + if (f !== 0) { + writer.writeUint32( + 9, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 13, + f + ); + } + f = message.getCreateduser(); + if (f != null) { + writer.writeMessage( + 14, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 15, + f + ); + } + f = message.getUpdateduser(); + if (f != null) { + writer.writeMessage( + 16, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 18, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * repeated string assistantEvents = 2; + * @return {!Array} + */ +proto.assistant_api.AssistantWebhook.prototype.getAssistanteventsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setAssistanteventsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.addAssistantevents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearAssistanteventsList = function() { + return this.setAssistanteventsList([]); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string httpMethod = 4; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getHttpmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setHttpmethod = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string httpUrl = 5; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getHttpurl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setHttpurl = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * map httpHeaders = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.AssistantWebhook.prototype.getHttpheadersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearHttpheadersMap = function() { + this.getHttpheadersMap().clear(); + return this;}; + + +/** + * map httpBody = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.AssistantWebhook.prototype.getHttpbodyMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearHttpbodyMap = function() { + this.getHttpbodyMap().clear(); + return this;}; + + +/** + * optional uint32 timeoutSecond = 19; + * @return {number} + */ +proto.assistant_api.AssistantWebhook.prototype.getTimeoutsecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setTimeoutsecond = function(value) { + return jspb.Message.setProto3IntField(this, 19, value); +}; + + +/** + * optional uint32 executionPriority = 20; + * @return {number} + */ +proto.assistant_api.AssistantWebhook.prototype.getExecutionpriority = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setExecutionpriority = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + +/** + * repeated string retryStatusCodes = 8; + * @return {!Array} + */ +proto.assistant_api.AssistantWebhook.prototype.getRetrystatuscodesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setRetrystatuscodesList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.addRetrystatuscodes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearRetrystatuscodesList = function() { + return this.setRetrystatuscodesList([]); +}; + + +/** + * optional uint32 retryCount = 9; + * @return {number} + */ +proto.assistant_api.AssistantWebhook.prototype.getRetrycount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setRetrycount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint64 assistantId = 10; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional string status = 12; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional uint64 createdBy = 13; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 13, value); +}; + + +/** + * optional User createdUser = 14; + * @return {?proto.User} + */ +proto.assistant_api.AssistantWebhook.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 14)); +}; + + +/** + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.AssistantWebhook} returns this +*/ +proto.assistant_api.AssistantWebhook.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhook.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional uint64 updatedBy = 15; + * @return {string} + */ +proto.assistant_api.AssistantWebhook.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); +}; + + +/** + * optional User updatedUser = 16; + * @return {?proto.User} + */ +proto.assistant_api.AssistantWebhook.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 16)); +}; + + +/** + * @param {?proto.User|undefined} value + * @return {!proto.assistant_api.AssistantWebhook} returns this +*/ +proto.assistant_api.AssistantWebhook.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhook.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 17; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantWebhook.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantWebhook} returns this +*/ +proto.assistant_api.AssistantWebhook.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhook.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional google.protobuf.Timestamp updatedDate = 18; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantWebhook.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantWebhook} returns this +*/ +proto.assistant_api.AssistantWebhook.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 18, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhook} returns this + */ +proto.assistant_api.AssistantWebhook.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhook.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 18) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.AssistantWebhookLog.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.AssistantWebhookLog.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.AssistantWebhookLog} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantWebhookLog.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + webhookid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + request: (f = msg.getRequest()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + response: (f = msg.getResponse()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + status: jspb.Message.getFieldWithDefault(msg, 5, ""), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + assistantid: jspb.Message.getFieldWithDefault(msg, 8, "0"), + projectid: jspb.Message.getFieldWithDefault(msg, 9, "0"), + organizationid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + conversationid: jspb.Message.getFieldWithDefault(msg, 11, "0"), + assetprefix: jspb.Message.getFieldWithDefault(msg, 12, ""), + event: jspb.Message.getFieldWithDefault(msg, 13, ""), + responsestatus: jspb.Message.getFieldWithDefault(msg, 14, "0"), + timetaken: jspb.Message.getFieldWithDefault(msg, 15, "0"), + retrycount: jspb.Message.getFieldWithDefault(msg, 16, 0), + httpmethod: jspb.Message.getFieldWithDefault(msg, 17, ""), + httpurl: 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.assistant_api.AssistantWebhookLog} + */ +proto.assistant_api.AssistantWebhookLog.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.AssistantWebhookLog; + return proto.assistant_api.AssistantWebhookLog.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.AssistantWebhookLog} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.AssistantWebhookLog} + */ +proto.assistant_api.AssistantWebhookLog.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setWebhookid(value); + break; + case 3: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setRequest(value); + break; + case 4: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setResponse(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 7: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + case 8: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 9: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setProjectid(value); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setOrganizationid(value); + break; + case 11: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setConversationid(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setAssetprefix(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setEvent(value); + break; + case 14: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setResponsestatus(value); + break; + case 15: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setTimetaken(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint32()); + msg.setRetrycount(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpmethod(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpurl(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.AssistantWebhookLog.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.AssistantWebhookLog.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.AssistantWebhookLog} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.AssistantWebhookLog.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getWebhookid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getRequest(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getResponse(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 7, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 8, + f + ); + } + f = message.getProjectid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 9, + f + ); + } + f = message.getOrganizationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getConversationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 11, + f + ); + } + f = message.getAssetprefix(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getEvent(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getResponsestatus(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 14, + f + ); + } + f = message.getTimetaken(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 15, + f + ); + } + f = message.getRetrycount(); + if (f !== 0) { + writer.writeUint32( + 16, + f + ); + } + f = message.getHttpmethod(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } + f = message.getHttpurl(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 webhookId = 2; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getWebhookid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setWebhookid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional google.protobuf.Struct request = 3; + * @return {?proto.google.protobuf.Struct} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getRequest = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this +*/ +proto.assistant_api.AssistantWebhookLog.prototype.setRequest = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.clearRequest = function() { + return this.setRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhookLog.prototype.hasRequest = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional google.protobuf.Struct response = 4; + * @return {?proto.google.protobuf.Struct} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getResponse = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this +*/ +proto.assistant_api.AssistantWebhookLog.prototype.setResponse = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.clearResponse = function() { + return this.setResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhookLog.prototype.hasResponse = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string status = 5; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this +*/ +proto.assistant_api.AssistantWebhookLog.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhookLog.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional google.protobuf.Timestamp updatedDate = 7; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this +*/ +proto.assistant_api.AssistantWebhookLog.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.AssistantWebhookLog.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 assistantId = 8; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 8, value); +}; + + +/** + * optional uint64 projectId = 9; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 9, value); +}; + + +/** + * optional uint64 organizationId = 10; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getOrganizationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setOrganizationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional uint64 conversationId = 11; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getConversationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setConversationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 11, value); +}; + + +/** + * optional string assetPrefix = 12; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getAssetprefix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setAssetprefix = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional string event = 13; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getEvent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setEvent = function(value) { + return jspb.Message.setProto3StringField(this, 13, value); +}; + + +/** + * optional uint64 responseStatus = 14; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getResponsestatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setResponsestatus = function(value) { + return jspb.Message.setProto3StringIntField(this, 14, value); +}; + + +/** + * optional uint64 timeTaken = 15; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getTimetaken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setTimetaken = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); +}; + + +/** + * optional uint32 retryCount = 16; + * @return {number} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getRetrycount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setRetrycount = function(value) { + return jspb.Message.setProto3IntField(this, 16, value); +}; + + +/** + * optional string httpMethod = 17; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getHttpmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setHttpmethod = function(value) { + return jspb.Message.setProto3StringField(this, 17, value); +}; + + +/** + * optional string httpUrl = 18; + * @return {string} + */ +proto.assistant_api.AssistantWebhookLog.prototype.getHttpurl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.AssistantWebhookLog} returns this + */ +proto.assistant_api.AssistantWebhookLog.prototype.setHttpurl = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.CreateAssistantWebhookRequest.repeatedFields_ = [2,8]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.CreateAssistantWebhookRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.CreateAssistantWebhookRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantWebhookRequest.toObject = function(includeInstance, msg) { + var f, obj = { + assistanteventsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + httpmethod: jspb.Message.getFieldWithDefault(msg, 4, ""), + httpurl: jspb.Message.getFieldWithDefault(msg, 5, ""), + httpheadersMap: (f = msg.getHttpheadersMap()) ? f.toObject(includeInstance, undefined) : [], + httpbodyMap: (f = msg.getHttpbodyMap()) ? f.toObject(includeInstance, undefined) : [], + timeoutsecond: jspb.Message.getFieldWithDefault(msg, 7, 0), + retrystatuscodesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + maxretrycount: jspb.Message.getFieldWithDefault(msg, 9, 0), + assistantid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + executionpriority: jspb.Message.getFieldWithDefault(msg, 20, 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.assistant_api.CreateAssistantWebhookRequest} + */ +proto.assistant_api.CreateAssistantWebhookRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.CreateAssistantWebhookRequest; + return proto.assistant_api.CreateAssistantWebhookRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.CreateAssistantWebhookRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} + */ +proto.assistant_api.CreateAssistantWebhookRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addAssistantevents(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpmethod(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpurl(value); + break; + case 6: + var value = msg.getHttpheadersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 11: + var value = msg.getHttpbodyMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTimeoutsecond(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.addRetrystatuscodes(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxretrycount(value); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint32()); + msg.setExecutionpriority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.CreateAssistantWebhookRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.CreateAssistantWebhookRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.CreateAssistantWebhookRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssistanteventsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getHttpmethod(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getHttpurl(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getHttpheadersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getHttpbodyMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getTimeoutsecond(); + if (f !== 0) { + writer.writeUint32( + 7, + f + ); + } + f = message.getRetrystatuscodesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 8, + f + ); + } + f = message.getMaxretrycount(); + if (f !== 0) { + writer.writeUint32( + 9, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getExecutionpriority(); + if (f !== 0) { + writer.writeUint32( + 20, + f + ); + } +}; + + +/** + * repeated string assistantEvents = 2; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getAssistanteventsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setAssistanteventsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.addAssistantevents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.clearAssistanteventsList = function() { + return this.setAssistanteventsList([]); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string httpMethod = 4; + * @return {string} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getHttpmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setHttpmethod = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string httpUrl = 5; + * @return {string} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getHttpurl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setHttpurl = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * map httpHeaders = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getHttpheadersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.clearHttpheadersMap = function() { + this.getHttpheadersMap().clear(); + return this;}; + + +/** + * map httpBody = 11; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getHttpbodyMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 11, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.clearHttpbodyMap = function() { + this.getHttpbodyMap().clear(); + return this;}; + + +/** + * optional uint32 timeoutSecond = 7; + * @return {number} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getTimeoutsecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setTimeoutsecond = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * repeated string retryStatusCodes = 8; + * @return {!Array} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getRetrystatuscodesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setRetrystatuscodesList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.addRetrystatuscodes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.clearRetrystatuscodesList = function() { + return this.setRetrystatuscodesList([]); +}; + + +/** + * optional uint32 maxRetryCount = 9; + * @return {number} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getMaxretrycount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setMaxretrycount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint64 assistantId = 10; + * @return {string} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional uint32 executionPriority = 20; + * @return {number} + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.getExecutionpriority = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.CreateAssistantWebhookRequest} returns this + */ +proto.assistant_api.CreateAssistantWebhookRequest.prototype.setExecutionpriority = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.UpdateAssistantWebhookRequest.repeatedFields_ = [2,8]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.UpdateAssistantWebhookRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.UpdateAssistantWebhookRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantWebhookRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistanteventsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + httpmethod: jspb.Message.getFieldWithDefault(msg, 4, ""), + httpurl: jspb.Message.getFieldWithDefault(msg, 5, ""), + httpheadersMap: (f = msg.getHttpheadersMap()) ? f.toObject(includeInstance, undefined) : [], + httpbodyMap: (f = msg.getHttpbodyMap()) ? f.toObject(includeInstance, undefined) : [], + timeoutsecond: jspb.Message.getFieldWithDefault(msg, 7, 0), + retrystatuscodesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + maxretrycount: jspb.Message.getFieldWithDefault(msg, 9, 0), + assistantid: jspb.Message.getFieldWithDefault(msg, 10, "0"), + executionpriority: jspb.Message.getFieldWithDefault(msg, 20, 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.assistant_api.UpdateAssistantWebhookRequest} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.UpdateAssistantWebhookRequest; + return proto.assistant_api.UpdateAssistantWebhookRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.UpdateAssistantWebhookRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addAssistantevents(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpmethod(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpurl(value); + break; + case 6: + var value = msg.getHttpheadersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 11: + var value = msg.getHttpbodyMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTimeoutsecond(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.addRetrystatuscodes(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxretrycount(value); + break; + case 10: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint32()); + msg.setExecutionpriority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.UpdateAssistantWebhookRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.UpdateAssistantWebhookRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.UpdateAssistantWebhookRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistanteventsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getHttpmethod(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getHttpurl(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getHttpheadersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getHttpbodyMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getTimeoutsecond(); + if (f !== 0) { + writer.writeUint32( + 7, + f + ); + } + f = message.getRetrystatuscodesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 8, + f + ); + } + f = message.getMaxretrycount(); + if (f !== 0) { + writer.writeUint32( + 9, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 10, + f + ); + } + f = message.getExecutionpriority(); + if (f !== 0) { + writer.writeUint32( + 20, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * repeated string assistantEvents = 2; + * @return {!Array} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getAssistanteventsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setAssistanteventsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.addAssistantevents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.clearAssistanteventsList = function() { + return this.setAssistanteventsList([]); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string httpMethod = 4; + * @return {string} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getHttpmethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setHttpmethod = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string httpUrl = 5; + * @return {string} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getHttpurl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setHttpurl = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * map httpHeaders = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getHttpheadersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.clearHttpheadersMap = function() { + this.getHttpheadersMap().clear(); + return this;}; + + +/** + * map httpBody = 11; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getHttpbodyMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 11, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.clearHttpbodyMap = function() { + this.getHttpbodyMap().clear(); + return this;}; + + +/** + * optional uint32 timeoutSecond = 7; + * @return {number} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getTimeoutsecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setTimeoutsecond = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * repeated string retryStatusCodes = 8; + * @return {!Array} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getRetrystatuscodesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setRetrystatuscodesList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.addRetrystatuscodes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.clearRetrystatuscodesList = function() { + return this.setRetrystatuscodesList([]); +}; + + +/** + * optional uint32 maxRetryCount = 9; + * @return {number} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getMaxretrycount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setMaxretrycount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint64 assistantId = 10; + * @return {string} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 10, value); +}; + + +/** + * optional uint32 executionPriority = 20; + * @return {number} + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.getExecutionpriority = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.UpdateAssistantWebhookRequest} returns this + */ +proto.assistant_api.UpdateAssistantWebhookRequest.prototype.setExecutionpriority = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantWebhookRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantWebhookRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantWebhookRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.GetAssistantWebhookRequest} + */ +proto.assistant_api.GetAssistantWebhookRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantWebhookRequest; + return proto.assistant_api.GetAssistantWebhookRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantWebhookRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantWebhookRequest} + */ +proto.assistant_api.GetAssistantWebhookRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantWebhookRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantWebhookRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantWebhookRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.GetAssistantWebhookRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantWebhookRequest} returns this + */ +proto.assistant_api.GetAssistantWebhookRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.GetAssistantWebhookRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantWebhookRequest} returns this + */ +proto.assistant_api.GetAssistantWebhookRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.DeleteAssistantWebhookRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.DeleteAssistantWebhookRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.DeleteAssistantWebhookRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantWebhookRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: 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.assistant_api.DeleteAssistantWebhookRequest} + */ +proto.assistant_api.DeleteAssistantWebhookRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.DeleteAssistantWebhookRequest; + return proto.assistant_api.DeleteAssistantWebhookRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.DeleteAssistantWebhookRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.DeleteAssistantWebhookRequest} + */ +proto.assistant_api.DeleteAssistantWebhookRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.DeleteAssistantWebhookRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.DeleteAssistantWebhookRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.DeleteAssistantWebhookRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.DeleteAssistantWebhookRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.assistant_api.DeleteAssistantWebhookRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantWebhookRequest} returns this + */ +proto.assistant_api.DeleteAssistantWebhookRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 2; + * @return {string} + */ +proto.assistant_api.DeleteAssistantWebhookRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.DeleteAssistantWebhookRequest} returns this + */ +proto.assistant_api.DeleteAssistantWebhookRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantWebhookResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantWebhookResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.assistant_api.AssistantWebhook.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.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.assistant_api.GetAssistantWebhookResponse} + */ +proto.assistant_api.GetAssistantWebhookResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantWebhookResponse; + return proto.assistant_api.GetAssistantWebhookResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantWebhookResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantWebhookResponse} + */ +proto.assistant_api.GetAssistantWebhookResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantWebhook; + reader.readMessage(value,proto.assistant_api.AssistantWebhook.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantWebhookResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantWebhookResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.assistant_api.AssistantWebhook.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional AssistantWebhook data = 3; + * @return {?proto.assistant_api.AssistantWebhook} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.AssistantWebhook} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantWebhook, 3)); +}; + + +/** + * @param {?proto.assistant_api.AssistantWebhook|undefined} value + * @return {!proto.assistant_api.GetAssistantWebhookResponse} returns this +*/ +proto.assistant_api.GetAssistantWebhookResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAssistantWebhookResponse} returns this +*/ +proto.assistant_api.GetAssistantWebhookResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantWebhookResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantWebhookRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantWebhookRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantWebhookRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookRequest.toObject = function(includeInstance, msg) { + var f, obj = { + webhookid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistantid: jspb.Message.getFieldWithDefault(msg, 4, "0"), + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.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.assistant_api.GetAllAssistantWebhookRequest} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantWebhookRequest; + return proto.assistant_api.GetAllAssistantWebhookRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantWebhookRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setWebhookid(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantid(value); + break; + case 2: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 3: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantWebhookRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantWebhookRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getWebhookid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getAssistantid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 webhookId = 1; + * @return {string} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.getWebhookid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.setWebhookid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 assistantId = 4; + * @return {string} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.getAssistantid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.setAssistantid = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional Paginate paginate = 2; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 2)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Criteria criterias = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantWebhookRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantWebhookResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantWebhookResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantWebhookResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.assistant_api.AssistantWebhook.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.assistant_api.GetAllAssistantWebhookResponse} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantWebhookResponse; + return proto.assistant_api.GetAllAssistantWebhookResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantWebhookResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantWebhook; + reader.readMessage(value,proto.assistant_api.AssistantWebhook.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantWebhookResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantWebhookResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.assistant_api.AssistantWebhook.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated AssistantWebhook data = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantWebhook, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.assistant_api.AssistantWebhook=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantWebhook} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantWebhook, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantWebhookLogRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantWebhookLogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.toObject = function(includeInstance, msg) { + var f, obj = { + projectid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.toObject, includeInstance), + order: (f = msg.getOrder()) && common_pb.Ordering.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.assistant_api.GetAllAssistantWebhookLogRequest} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantWebhookLogRequest; + return proto.assistant_api.GetAllAssistantWebhookLogRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantWebhookLogRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setProjectid(value); + break; + case 3: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 4: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + case 5: + var value = new common_pb.Ordering; + reader.readMessage(value,common_pb.Ordering.deserializeBinaryFromReader); + msg.setOrder(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantWebhookLogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantWebhookLogRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProjectid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 3, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } + f = message.getOrder(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Ordering.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 projectId = 2; + * @return {string} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional Paginate paginate = 3; + * @return {?proto.Paginate} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 3)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated Criteria criterias = 4; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + +/** + * optional Ordering order = 5; + * @return {?proto.Ordering} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.getOrder = function() { + return /** @type{?proto.Ordering} */ ( + jspb.Message.getWrapperField(this, common_pb.Ordering, 5)); +}; + + +/** + * @param {?proto.Ordering|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.setOrder = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogRequest} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.clearOrder = function() { + return this.setOrder(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookLogRequest.prototype.hasOrder = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantWebhookLogRequest.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantWebhookLogRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantWebhookLogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookLogRequest.toObject = function(includeInstance, msg) { + var f, obj = { + projectid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + id: 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.assistant_api.GetAssistantWebhookLogRequest} + */ +proto.assistant_api.GetAssistantWebhookLogRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantWebhookLogRequest; + return proto.assistant_api.GetAssistantWebhookLogRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantWebhookLogRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantWebhookLogRequest} + */ +proto.assistant_api.GetAssistantWebhookLogRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setProjectid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantWebhookLogRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantWebhookLogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantWebhookLogRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookLogRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProjectid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, + f + ); + } +}; + + +/** + * optional uint64 projectId = 2; + * @return {string} + */ +proto.assistant_api.GetAssistantWebhookLogRequest.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantWebhookLogRequest} returns this + */ +proto.assistant_api.GetAssistantWebhookLogRequest.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional uint64 id = 3; + * @return {string} + */ +proto.assistant_api.GetAssistantWebhookLogRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.assistant_api.GetAssistantWebhookLogRequest} returns this + */ +proto.assistant_api.GetAssistantWebhookLogRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAssistantWebhookLogResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAssistantWebhookLogResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookLogResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.assistant_api.AssistantWebhookLog.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.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.assistant_api.GetAssistantWebhookLogResponse} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAssistantWebhookLogResponse; + return proto.assistant_api.GetAssistantWebhookLogResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAssistantWebhookLogResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantWebhookLog; + reader.readMessage(value,proto.assistant_api.AssistantWebhookLog.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAssistantWebhookLogResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAssistantWebhookLogResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAssistantWebhookLogResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.assistant_api.AssistantWebhookLog.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional AssistantWebhookLog data = 3; + * @return {?proto.assistant_api.AssistantWebhookLog} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.getData = function() { + return /** @type{?proto.assistant_api.AssistantWebhookLog} */ ( + jspb.Message.getWrapperField(this, proto.assistant_api.AssistantWebhookLog, 3)); +}; + + +/** + * @param {?proto.assistant_api.AssistantWebhookLog|undefined} value + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} returns this +*/ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} returns this +*/ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAssistantWebhookLogResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.toObject = function(opt_includeInstance) { + return proto.assistant_api.GetAllAssistantWebhookLogResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.assistant_api.GetAllAssistantWebhookLogResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.assistant_api.AssistantWebhookLog.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.assistant_api.GetAllAssistantWebhookLogResponse} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.assistant_api.GetAllAssistantWebhookLogResponse; + return proto.assistant_api.GetAllAssistantWebhookLogResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.assistant_api.GetAllAssistantWebhookLogResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.assistant_api.AssistantWebhookLog; + reader.readMessage(value,proto.assistant_api.AssistantWebhookLog.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.assistant_api.GetAllAssistantWebhookLogResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.assistant_api.GetAllAssistantWebhookLogResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.assistant_api.AssistantWebhookLog.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated AssistantWebhookLog data = 3; + * @return {!Array} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.assistant_api.AssistantWebhookLog, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.assistant_api.AssistantWebhookLog=} opt_value + * @param {number=} opt_index + * @return {!proto.assistant_api.AssistantWebhookLog} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.assistant_api.AssistantWebhookLog, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this +*/ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.assistant_api.GetAllAssistantWebhookLogResponse} returns this + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.assistant_api.GetAllAssistantWebhookLogResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +goog.object.extend(exports, proto.assistant_api); diff --git a/src/clients/protos/common_pb.d.ts b/src/clients/protos/common_pb.d.ts index 7bc4f2a..ced0cb7 100644 --- a/src/clients/protos/common_pb.d.ts +++ b/src/clients/protos/common_pb.d.ts @@ -5,6 +5,26 @@ import * as jspb from "google-protobuf"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +export class FieldSelector extends jspb.Message { + getField(): string; + setField(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FieldSelector.AsObject; + static toObject(includeInstance: boolean, msg: FieldSelector): FieldSelector.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FieldSelector, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FieldSelector; + static deserializeBinaryFromReader(message: FieldSelector, reader: jspb.BinaryReader): FieldSelector; +} + +export namespace FieldSelector { + export type AsObject = { + field: string, + } +} + export class Criteria extends jspb.Message { getKey(): string; setKey(value: string): void; @@ -236,6 +256,34 @@ export namespace Metadata { } } +export class Argument extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getValue(): string; + setValue(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Argument.AsObject; + static toObject(includeInstance: boolean, msg: Argument): Argument.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Argument, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Argument; + static deserializeBinaryFromReader(message: Argument, reader: jspb.BinaryReader): Argument; +} + +export namespace Argument { + export type AsObject = { + id: string, + name: string, + value: string, + } +} + export class Variable extends jspb.Message { getId(): string; setId(value: string): void; @@ -251,19 +299,6 @@ export class Variable extends jspb.Message { getDefaultvalue(): string; setDefaultvalue(value: string): void; - hasIn(): boolean; - clearIn(): void; - getIn(): string; - setIn(value: string): void; - - getRequired(): boolean; - setRequired(value: boolean): void; - - hasLabel(): boolean; - clearLabel(): void; - getLabel(): string; - setLabel(value: string): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Variable.AsObject; static toObject(includeInstance: boolean, msg: Variable): Variable.AsObject; @@ -280,37 +315,6 @@ export namespace Variable { name: string, type: string, defaultvalue: string, - pb_in: string, - required: boolean, - label: string, - } -} - -export class ProviderModelParameter extends jspb.Message { - getId(): string; - setId(value: string): void; - - getProvidermodelvariableid(): string; - setProvidermodelvariableid(value: string): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProviderModelParameter.AsObject; - static toObject(includeInstance: boolean, msg: ProviderModelParameter): ProviderModelParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProviderModelParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProviderModelParameter; - static deserializeBinaryFromReader(message: ProviderModelParameter, reader: jspb.BinaryReader): ProviderModelParameter; -} - -export namespace ProviderModelParameter { - export type AsObject = { - id: string, - providermodelvariableid: string, - value: string, } } @@ -364,130 +368,6 @@ export namespace Provider { } } -export class ProviderModelVariable extends jspb.Message { - getId(): string; - setId(value: string): void; - - getProvidermodelid(): string; - setProvidermodelid(value: string): void; - - getKey(): string; - setKey(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getDefaultvalue(): string; - setDefaultvalue(value: string): void; - - getType(): string; - setType(value: string): void; - - getPlace(): string; - setPlace(value: string): void; - - clearMetadatasList(): void; - getMetadatasList(): Array; - setMetadatasList(value: Array): void; - addMetadatas(value?: Metadata, index?: number): Metadata; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProviderModelVariable.AsObject; - static toObject(includeInstance: boolean, msg: ProviderModelVariable): ProviderModelVariable.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProviderModelVariable, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProviderModelVariable; - static deserializeBinaryFromReader(message: ProviderModelVariable, reader: jspb.BinaryReader): ProviderModelVariable; -} - -export namespace ProviderModelVariable { - export type AsObject = { - id: string, - providermodelid: string, - key: string, - name: string, - description: string, - defaultvalue: string, - type: string, - place: string, - metadatasList: Array, - } -} - -export class ProviderModel extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getHumanname(): string; - setHumanname(value: string): void; - - getCategory(): string; - setCategory(value: string): void; - - getStatus(): string; - setStatus(value: string): void; - - getOwner(): string; - setOwner(value: string): void; - - hasProvider(): boolean; - clearProvider(): void; - getProvider(): Provider | undefined; - setProvider(value?: Provider): void; - - clearParametersList(): void; - getParametersList(): Array; - setParametersList(value: Array): void; - addParameters(value?: ProviderModelVariable, index?: number): ProviderModelVariable; - - clearMetadatasList(): void; - getMetadatasList(): Array; - setMetadatasList(value: Array): void; - addMetadatas(value?: Metadata, index?: number): Metadata; - - getProviderid(): string; - setProviderid(value: string): void; - - getEndpoint(): string; - setEndpoint(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProviderModel.AsObject; - static toObject(includeInstance: boolean, msg: ProviderModel): ProviderModel.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProviderModel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProviderModel; - static deserializeBinaryFromReader(message: ProviderModel, reader: jspb.BinaryReader): ProviderModel; -} - -export namespace ProviderModel { - export type AsObject = { - id: string, - name: string, - description: string, - humanname: string, - category: string, - status: string, - owner: string, - provider?: Provider.AsObject, - parametersList: Array, - metadatasList: Array, - providerid: string, - endpoint: string, - } -} - export class Tag extends jspb.Message { getId(): string; setId(value: string): void; @@ -654,38 +534,6 @@ export namespace Message { } } -export class Event extends jspb.Message { - getName(): string; - setName(value: string): void; - - hasMeta(): boolean; - clearMeta(): void; - getMeta(): google_protobuf_struct_pb.Struct | undefined; - setMeta(value?: google_protobuf_struct_pb.Struct): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Event.AsObject; - static toObject(includeInstance: boolean, msg: Event): Event.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Event, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Event; - static deserializeBinaryFromReader(message: Event, reader: jspb.BinaryReader): Event; -} - -export namespace Event { - export type AsObject = { - name: string, - meta?: google_protobuf_struct_pb.Struct.AsObject, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - export class ToolCall extends jspb.Message { getId(): string; setId(value: string): void; @@ -723,11 +571,6 @@ export class FunctionCall extends jspb.Message { getArguments(): string; setArguments(value: string): void; - hasArgs(): boolean; - clearArgs(): void; - getArgs(): google_protobuf_struct_pb.Struct | undefined; - setArgs(value?: google_protobuf_struct_pb.Struct): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FunctionCall.AsObject; static toObject(includeInstance: boolean, msg: FunctionCall): FunctionCall.AsObject; @@ -742,7 +585,6 @@ export namespace FunctionCall { export type AsObject = { name: string, arguments: string, - args?: google_protobuf_struct_pb.Struct.AsObject, } } @@ -762,13 +604,16 @@ export class Knowledge extends jspb.Message { getLanguage(): string; setLanguage(value: string): void; - getEmbeddingprovidermodelid(): string; - setEmbeddingprovidermodelid(value: string): void; + getEmbeddingmodelproviderid(): string; + setEmbeddingmodelproviderid(value: string): void; + + getEmbeddingmodelprovidername(): string; + setEmbeddingmodelprovidername(value: string): void; - hasEmbeddingprovidermodel(): boolean; - clearEmbeddingprovidermodel(): void; - getEmbeddingprovidermodel(): ProviderModel | undefined; - setEmbeddingprovidermodel(value?: ProviderModel): void; + clearKnowledgeembeddingmodeloptionsList(): void; + getKnowledgeembeddingmodeloptionsList(): Array; + setKnowledgeembeddingmodeloptionsList(value: Array): void; + addKnowledgeembeddingmodeloptions(value?: Metadata, index?: number): Metadata; getStatus(): string; setStatus(value: string): void; @@ -824,9 +669,6 @@ export class Knowledge extends jspb.Message { getWordcount(): number; setWordcount(value: number): void; - getEmbeddingproviderid(): string; - setEmbeddingproviderid(value: string): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Knowledge.AsObject; static toObject(includeInstance: boolean, msg: Knowledge): Knowledge.AsObject; @@ -844,8 +686,9 @@ export namespace Knowledge { description: string, visibility: string, language: string, - embeddingprovidermodelid: string, - embeddingprovidermodel?: ProviderModel.AsObject, + embeddingmodelproviderid: string, + embeddingmodelprovidername: string, + knowledgeembeddingmodeloptionsList: Array, status: string, createdby: string, createduser?: User.AsObject, @@ -860,37 +703,6 @@ export namespace Knowledge { documentcount: number, tokencount: number, wordcount: number, - embeddingproviderid: string, - } -} - -export class AgentPromptTemplate extends jspb.Message { - getType(): string; - setType(value: string): void; - - getPrompt(): string; - setPrompt(value: string): void; - - clearPromptvariablesList(): void; - getPromptvariablesList(): Array; - setPromptvariablesList(value: Array): void; - addPromptvariables(value?: Variable, index?: number): Variable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AgentPromptTemplate.AsObject; - static toObject(includeInstance: boolean, msg: AgentPromptTemplate): AgentPromptTemplate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AgentPromptTemplate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AgentPromptTemplate; - static deserializeBinaryFromReader(message: AgentPromptTemplate, reader: jspb.BinaryReader): AgentPromptTemplate; -} - -export namespace AgentPromptTemplate { - export type AsObject = { - type: string, - prompt: string, - promptvariablesList: Array, } } @@ -918,30 +730,6 @@ export namespace TextPrompt { } } -export class FilePrompt extends jspb.Message { - getName(): string; - setName(value: string): void; - - getAccepts(): string; - setAccepts(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FilePrompt.AsObject; - static toObject(includeInstance: boolean, msg: FilePrompt): FilePrompt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FilePrompt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FilePrompt; - static deserializeBinaryFromReader(message: FilePrompt, reader: jspb.BinaryReader): FilePrompt; -} - -export namespace FilePrompt { - export type AsObject = { - name: string, - accepts: string, - } -} - export class TextChatCompletePrompt extends jspb.Message { clearPromptList(): void; getPromptList(): Array; @@ -970,118 +758,6 @@ export namespace TextChatCompletePrompt { } } -export class TextCompletePrompt extends jspb.Message { - hasPrompt(): boolean; - clearPrompt(): void; - getPrompt(): TextPrompt | undefined; - setPrompt(value?: TextPrompt): void; - - clearPromptvariablesList(): void; - getPromptvariablesList(): Array; - setPromptvariablesList(value: Array): void; - addPromptvariables(value?: Variable, index?: number): Variable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TextCompletePrompt.AsObject; - static toObject(includeInstance: boolean, msg: TextCompletePrompt): TextCompletePrompt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TextCompletePrompt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TextCompletePrompt; - static deserializeBinaryFromReader(message: TextCompletePrompt, reader: jspb.BinaryReader): TextCompletePrompt; -} - -export namespace TextCompletePrompt { - export type AsObject = { - prompt?: TextPrompt.AsObject, - promptvariablesList: Array, - } -} - -export class TextToImagePrompt extends jspb.Message { - hasPrompt(): boolean; - clearPrompt(): void; - getPrompt(): TextPrompt | undefined; - setPrompt(value?: TextPrompt): void; - - clearPromptvariablesList(): void; - getPromptvariablesList(): Array; - setPromptvariablesList(value: Array): void; - addPromptvariables(value?: Variable, index?: number): Variable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TextToImagePrompt.AsObject; - static toObject(includeInstance: boolean, msg: TextToImagePrompt): TextToImagePrompt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TextToImagePrompt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TextToImagePrompt; - static deserializeBinaryFromReader(message: TextToImagePrompt, reader: jspb.BinaryReader): TextToImagePrompt; -} - -export namespace TextToImagePrompt { - export type AsObject = { - prompt?: TextPrompt.AsObject, - promptvariablesList: Array, - } -} - -export class TextToSpeechPrompt extends jspb.Message { - hasPrompt(): boolean; - clearPrompt(): void; - getPrompt(): TextPrompt | undefined; - setPrompt(value?: TextPrompt): void; - - clearPromptvariablesList(): void; - getPromptvariablesList(): Array; - setPromptvariablesList(value: Array): void; - addPromptvariables(value?: Variable, index?: number): Variable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TextToSpeechPrompt.AsObject; - static toObject(includeInstance: boolean, msg: TextToSpeechPrompt): TextToSpeechPrompt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TextToSpeechPrompt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TextToSpeechPrompt; - static deserializeBinaryFromReader(message: TextToSpeechPrompt, reader: jspb.BinaryReader): TextToSpeechPrompt; -} - -export namespace TextToSpeechPrompt { - export type AsObject = { - prompt?: TextPrompt.AsObject, - promptvariablesList: Array, - } -} - -export class SpeechToTextPrompt extends jspb.Message { - hasPrompt(): boolean; - clearPrompt(): void; - getPrompt(): FilePrompt | undefined; - setPrompt(value?: FilePrompt): void; - - clearPromptvariablesList(): void; - getPromptvariablesList(): Array; - setPromptvariablesList(value: Array): void; - addPromptvariables(value?: Variable, index?: number): Variable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SpeechToTextPrompt.AsObject; - static toObject(includeInstance: boolean, msg: SpeechToTextPrompt): SpeechToTextPrompt.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SpeechToTextPrompt, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SpeechToTextPrompt; - static deserializeBinaryFromReader(message: SpeechToTextPrompt, reader: jspb.BinaryReader): SpeechToTextPrompt; -} - -export namespace SpeechToTextPrompt { - export type AsObject = { - prompt?: FilePrompt.AsObject, - promptvariablesList: Array, - } -} - export class AssistantMessageStage extends jspb.Message { getStage(): string; setStage(value: string): void; @@ -1335,6 +1011,16 @@ export class AssistantConversation extends jspb.Message { setMetadataList(value: Array): void; addMetadata(value?: Metadata, index?: number): Metadata; + clearArgumentsList(): void; + getArgumentsList(): Array; + setArgumentsList(value: Array): void; + addArguments(value?: Argument, index?: number): Argument; + + clearOptionsList(): void; + getOptionsList(): Array; + setOptionsList(value: Array): void; + addOptions(value?: Metadata, index?: number): Metadata; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AssistantConversation.AsObject; static toObject(includeInstance: boolean, msg: AssistantConversation): AssistantConversation.AsObject; @@ -1366,6 +1052,8 @@ export namespace AssistantConversation { contextsList: Array, metricsList: Array, metadataList: Array, + argumentsList: Array, + optionsList: Array, } } @@ -1537,16 +1225,10 @@ export namespace GetAllConversationMessageResponse { export interface SourceMap { WEB_PLUGIN: 0; - RAPIDA_APP: 1; - PYTHON_SDK: 2; - NODE_SDK: 3; - GO_SDK: 4; - TYPESCRIPT_SDK: 5; - JAVA_SDK: 6; - PHP_SDK: 7; - RUST_SDK: 8; - REACT_SDK: 9; - TWILIO_CALL: 10; + DEBUGGER: 1; + SDK: 2; + PHONE_CALL: 3; + WHATSAPP: 4; } export const Source: SourceMap; diff --git a/src/clients/protos/common_pb.js b/src/clients/protos/common_pb.js index b97464d..52c5211 100644 --- a/src/clients/protos/common_pb.js +++ b/src/clients/protos/common_pb.js @@ -25,7 +25,7 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.AgentPromptTemplate', null, global); +goog.exportSymbol('proto.Argument', null, global); goog.exportSymbol('proto.AssistantConversation', null, global); goog.exportSymbol('proto.AssistantConversationContext', null, global); goog.exportSymbol('proto.AssistantConversationMessage', null, global); @@ -34,8 +34,7 @@ goog.exportSymbol('proto.BaseResponse', null, global); goog.exportSymbol('proto.Content', null, global); goog.exportSymbol('proto.Criteria', null, global); goog.exportSymbol('proto.Error', null, global); -goog.exportSymbol('proto.Event', null, global); -goog.exportSymbol('proto.FilePrompt', null, global); +goog.exportSymbol('proto.FieldSelector', null, global); goog.exportSymbol('proto.FunctionCall', null, global); goog.exportSymbol('proto.GetAllAssistantConversationRequest', null, global); goog.exportSymbol('proto.GetAllAssistantConversationResponse', null, global); @@ -50,20 +49,34 @@ goog.exportSymbol('proto.Organization', null, global); goog.exportSymbol('proto.Paginate', null, global); goog.exportSymbol('proto.Paginated', null, global); goog.exportSymbol('proto.Provider', null, global); -goog.exportSymbol('proto.ProviderModel', null, global); -goog.exportSymbol('proto.ProviderModelParameter', null, global); -goog.exportSymbol('proto.ProviderModelVariable', null, global); goog.exportSymbol('proto.Source', null, global); -goog.exportSymbol('proto.SpeechToTextPrompt', null, global); goog.exportSymbol('proto.Tag', null, global); goog.exportSymbol('proto.TextChatCompletePrompt', null, global); -goog.exportSymbol('proto.TextCompletePrompt', null, global); goog.exportSymbol('proto.TextPrompt', null, global); -goog.exportSymbol('proto.TextToImagePrompt', null, global); -goog.exportSymbol('proto.TextToSpeechPrompt', null, global); goog.exportSymbol('proto.ToolCall', null, global); goog.exportSymbol('proto.User', null, global); goog.exportSymbol('proto.Variable', 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.FieldSelector = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.FieldSelector, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.FieldSelector.displayName = 'proto.FieldSelector'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -242,16 +255,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.Variable = function(opt_data) { +proto.Argument = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.Variable, jspb.Message); +goog.inherits(proto.Argument, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.Variable.displayName = 'proto.Variable'; + proto.Argument.displayName = 'proto.Argument'; } /** * Generated by JsPbCodeGenerator. @@ -263,16 +276,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ProviderModelParameter = function(opt_data) { +proto.Variable = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ProviderModelParameter, jspb.Message); +goog.inherits(proto.Variable, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ProviderModelParameter.displayName = 'proto.ProviderModelParameter'; + proto.Variable.displayName = 'proto.Variable'; } /** * Generated by JsPbCodeGenerator. @@ -295,48 +308,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.Provider.displayName = 'proto.Provider'; } -/** - * 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.ProviderModelVariable = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ProviderModelVariable.repeatedFields_, null); -}; -goog.inherits(proto.ProviderModelVariable, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ProviderModelVariable.displayName = 'proto.ProviderModelVariable'; -} -/** - * 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.ProviderModel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ProviderModel.repeatedFields_, null); -}; -goog.inherits(proto.ProviderModel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ProviderModel.displayName = 'proto.ProviderModel'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -442,27 +413,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.Message.displayName = 'proto.Message'; } -/** - * 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.Event = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Event, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Event.displayName = 'proto.Event'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -516,7 +466,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.Knowledge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.Knowledge.repeatedFields_, null); }; goog.inherits(proto.Knowledge, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -526,27 +476,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.Knowledge.displayName = 'proto.Knowledge'; } -/** - * 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.AgentPromptTemplate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.AgentPromptTemplate.repeatedFields_, null); -}; -goog.inherits(proto.AgentPromptTemplate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.AgentPromptTemplate.displayName = 'proto.AgentPromptTemplate'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -568,27 +497,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.TextPrompt.displayName = 'proto.TextPrompt'; } -/** - * 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.FilePrompt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.FilePrompt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.FilePrompt.displayName = 'proto.FilePrompt'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -610,90 +518,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.TextChatCompletePrompt.displayName = 'proto.TextChatCompletePrompt'; } -/** - * 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.TextCompletePrompt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.TextCompletePrompt.repeatedFields_, null); -}; -goog.inherits(proto.TextCompletePrompt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.TextCompletePrompt.displayName = 'proto.TextCompletePrompt'; -} -/** - * 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.TextToImagePrompt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.TextToImagePrompt.repeatedFields_, null); -}; -goog.inherits(proto.TextToImagePrompt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.TextToImagePrompt.displayName = 'proto.TextToImagePrompt'; -} -/** - * 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.TextToSpeechPrompt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.TextToSpeechPrompt.repeatedFields_, null); -}; -goog.inherits(proto.TextToSpeechPrompt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.TextToSpeechPrompt.displayName = 'proto.TextToSpeechPrompt'; -} -/** - * 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.SpeechToTextPrompt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.SpeechToTextPrompt.repeatedFields_, null); -}; -goog.inherits(proto.SpeechToTextPrompt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.SpeechToTextPrompt.displayName = 'proto.SpeechToTextPrompt'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -878,8 +702,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Criteria.prototype.toObject = function(opt_includeInstance) { - return proto.Criteria.toObject(opt_includeInstance, this); +proto.FieldSelector.prototype.toObject = function(opt_includeInstance) { + return proto.FieldSelector.toObject(opt_includeInstance, this); }; @@ -888,15 +712,13 @@ proto.Criteria.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Criteria} msg The msg instance to transform. + * @param {!proto.FieldSelector} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Criteria.toObject = function(includeInstance, msg) { +proto.FieldSelector.toObject = function(includeInstance, msg) { var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, ""), - logic: jspb.Message.getFieldWithDefault(msg, 3, "") + field: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -910,23 +732,23 @@ proto.Criteria.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Criteria} + * @return {!proto.FieldSelector} */ -proto.Criteria.deserializeBinary = function(bytes) { +proto.FieldSelector.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Criteria; - return proto.Criteria.deserializeBinaryFromReader(msg, reader); + var msg = new proto.FieldSelector; + return proto.FieldSelector.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Criteria} msg The message object to deserialize into. + * @param {!proto.FieldSelector} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Criteria} + * @return {!proto.FieldSelector} */ -proto.Criteria.deserializeBinaryFromReader = function(msg, reader) { +proto.FieldSelector.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -935,15 +757,7 @@ proto.Criteria.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLogic(value); + msg.setField(value); break; default: reader.skipField(); @@ -958,9 +772,9 @@ proto.Criteria.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.Criteria.prototype.serializeBinary = function() { +proto.FieldSelector.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.Criteria.serializeBinaryToWriter(this, writer); + proto.FieldSelector.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -968,78 +782,218 @@ proto.Criteria.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.Criteria} message + * @param {!proto.FieldSelector} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Criteria.serializeBinaryToWriter = function(message, writer) { +proto.FieldSelector.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKey(); + f = message.getField(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLogic(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } }; /** - * optional string key = 1; + * optional string field = 1; * @return {string} */ -proto.Criteria.prototype.getKey = function() { +proto.FieldSelector.prototype.getField = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.Criteria} returns this + * @return {!proto.FieldSelector} returns this */ -proto.Criteria.prototype.setKey = function(value) { +proto.FieldSelector.prototype.setField = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional string value = 2; - * @return {string} - */ -proto.Criteria.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {string} value - * @return {!proto.Criteria} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.Criteria.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.Criteria.prototype.toObject = function(opt_includeInstance) { + return proto.Criteria.toObject(opt_includeInstance, this); }; /** - * optional string logic = 3; - * @return {string} - */ -proto.Criteria.prototype.getLogic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Criteria} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Criteria.toObject = function(includeInstance, msg) { + var f, obj = { + key: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFieldWithDefault(msg, 2, ""), + logic: 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.Criteria} + */ +proto.Criteria.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Criteria; + return proto.Criteria.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Criteria} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Criteria} + */ +proto.Criteria.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.setKey(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setValue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setLogic(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Criteria.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Criteria.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Criteria} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Criteria.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getLogic(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string key = 1; + * @return {string} + */ +proto.Criteria.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Criteria} returns this + */ +proto.Criteria.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string value = 2; + * @return {string} + */ +proto.Criteria.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Criteria} returns this + */ +proto.Criteria.prototype.setValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string logic = 3; + * @return {string} + */ +proto.Criteria.prototype.getLogic = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -2473,8 +2427,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Variable.prototype.toObject = function(opt_includeInstance) { - return proto.Variable.toObject(opt_includeInstance, this); +proto.Argument.prototype.toObject = function(opt_includeInstance) { + return proto.Argument.toObject(opt_includeInstance, this); }; @@ -2483,19 +2437,15 @@ proto.Variable.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Variable} msg The msg instance to transform. + * @param {!proto.Argument} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Variable.toObject = function(includeInstance, msg) { +proto.Argument.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), name: jspb.Message.getFieldWithDefault(msg, 2, ""), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - defaultvalue: jspb.Message.getFieldWithDefault(msg, 4, ""), - pb_in: jspb.Message.getFieldWithDefault(msg, 5, ""), - required: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - label: jspb.Message.getFieldWithDefault(msg, 7, "") + value: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -2509,23 +2459,23 @@ proto.Variable.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Variable} + * @return {!proto.Argument} */ -proto.Variable.deserializeBinary = function(bytes) { +proto.Argument.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Variable; - return proto.Variable.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Argument; + return proto.Argument.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Variable} msg The message object to deserialize into. + * @param {!proto.Argument} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Variable} + * @return {!proto.Argument} */ -proto.Variable.deserializeBinaryFromReader = function(msg, reader) { +proto.Argument.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2542,23 +2492,7 @@ proto.Variable.deserializeBinaryFromReader = function(msg, reader) { break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDefaultvalue(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setIn(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRequired(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setLabel(value); + msg.setValue(value); break; default: reader.skipField(); @@ -2573,9 +2507,9 @@ proto.Variable.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.Variable.prototype.serializeBinary = function() { +proto.Argument.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.Variable.serializeBinaryToWriter(this, writer); + proto.Argument.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2583,11 +2517,11 @@ proto.Variable.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.Variable} message + * @param {!proto.Argument} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Variable.serializeBinaryToWriter = function(message, writer) { +proto.Argument.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (parseInt(f, 10) !== 0) { @@ -2603,41 +2537,13 @@ proto.Variable.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getType(); + f = message.getValue(); if (f.length > 0) { writer.writeString( 3, f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeString( - 5, - f - ); - } - f = message.getRequired(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } }; @@ -2645,16 +2551,16 @@ proto.Variable.serializeBinaryToWriter = function(message, writer) { * optional uint64 id = 1; * @return {string} */ -proto.Variable.prototype.getId = function() { +proto.Argument.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.Variable} returns this + * @return {!proto.Argument} returns this */ -proto.Variable.prototype.setId = function(value) { +proto.Argument.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -2663,182 +2569,56 @@ proto.Variable.prototype.setId = function(value) { * optional string name = 2; * @return {string} */ -proto.Variable.prototype.getName = function() { +proto.Argument.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.Variable} returns this + * @return {!proto.Argument} returns this */ -proto.Variable.prototype.setName = function(value) { +proto.Argument.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string type = 3; + * optional string value = 3; * @return {string} */ -proto.Variable.prototype.getType = function() { +proto.Argument.prototype.getValue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.Variable} returns this + * @return {!proto.Argument} returns this */ -proto.Variable.prototype.setType = function(value) { +proto.Argument.prototype.setValue = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * optional string defaultValue = 4; - * @return {string} - */ -proto.Variable.prototype.getDefaultvalue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {string} value - * @return {!proto.Variable} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.Variable.prototype.setDefaultvalue = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.Variable} returns this - */ -proto.Variable.prototype.clearDefaultvalue = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Variable.prototype.hasDefaultvalue = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string in = 5; - * @return {string} - */ -proto.Variable.prototype.getIn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Variable} returns this - */ -proto.Variable.prototype.setIn = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.Variable} returns this - */ -proto.Variable.prototype.clearIn = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Variable.prototype.hasIn = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional bool required = 6; - * @return {boolean} - */ -proto.Variable.prototype.getRequired = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.Variable} returns this - */ -proto.Variable.prototype.setRequired = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional string label = 7; - * @return {string} - */ -proto.Variable.prototype.getLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Variable} returns this - */ -proto.Variable.prototype.setLabel = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.Variable} returns this - */ -proto.Variable.prototype.clearLabel = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Variable.prototype.hasLabel = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ProviderModelParameter.prototype.toObject = function(opt_includeInstance) { - return proto.ProviderModelParameter.toObject(opt_includeInstance, this); +proto.Variable.prototype.toObject = function(opt_includeInstance) { + return proto.Variable.toObject(opt_includeInstance, this); }; @@ -2847,15 +2627,16 @@ proto.ProviderModelParameter.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ProviderModelParameter} msg The msg instance to transform. + * @param {!proto.Variable} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModelParameter.toObject = function(includeInstance, msg) { +proto.Variable.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - providermodelvariableid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - value: jspb.Message.getFieldWithDefault(msg, 3, "") + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + type: jspb.Message.getFieldWithDefault(msg, 3, ""), + defaultvalue: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -2869,23 +2650,23 @@ proto.ProviderModelParameter.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ProviderModelParameter} + * @return {!proto.Variable} */ -proto.ProviderModelParameter.deserializeBinary = function(bytes) { +proto.Variable.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ProviderModelParameter; - return proto.ProviderModelParameter.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Variable; + return proto.Variable.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ProviderModelParameter} msg The message object to deserialize into. + * @param {!proto.Variable} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ProviderModelParameter} + * @return {!proto.Variable} */ -proto.ProviderModelParameter.deserializeBinaryFromReader = function(msg, reader) { +proto.Variable.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2897,12 +2678,16 @@ proto.ProviderModelParameter.deserializeBinaryFromReader = function(msg, reader) msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProvidermodelvariableid(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); + msg.setType(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDefaultvalue(value); break; default: reader.skipField(); @@ -2917,9 +2702,9 @@ proto.ProviderModelParameter.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ProviderModelParameter.prototype.serializeBinary = function() { +proto.Variable.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ProviderModelParameter.serializeBinaryToWriter(this, writer); + proto.Variable.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2927,11 +2712,11 @@ proto.ProviderModelParameter.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ProviderModelParameter} message + * @param {!proto.Variable} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModelParameter.serializeBinaryToWriter = function(message, writer) { +proto.Variable.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (parseInt(f, 10) !== 0) { @@ -2940,20 +2725,27 @@ proto.ProviderModelParameter.serializeBinaryToWriter = function(message, writer) f ); } - f = message.getProvidermodelvariableid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getValue(); + f = message.getType(); if (f.length > 0) { writer.writeString( 3, f ); } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } }; @@ -2961,56 +2753,92 @@ proto.ProviderModelParameter.serializeBinaryToWriter = function(message, writer) * optional uint64 id = 1; * @return {string} */ -proto.ProviderModelParameter.prototype.getId = function() { +proto.Variable.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.ProviderModelParameter} returns this + * @return {!proto.Variable} returns this */ -proto.ProviderModelParameter.prototype.setId = function(value) { +proto.Variable.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional uint64 providerModelVariableId = 2; + * optional string name = 2; * @return {string} */ -proto.ProviderModelParameter.prototype.getProvidermodelvariableid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.Variable.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.ProviderModelParameter} returns this + * @return {!proto.Variable} returns this */ -proto.ProviderModelParameter.prototype.setProvidermodelvariableid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.Variable.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string value = 3; + * optional string type = 3; * @return {string} */ -proto.ProviderModelParameter.prototype.getValue = function() { +proto.Variable.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.ProviderModelParameter} returns this + * @return {!proto.Variable} returns this */ -proto.ProviderModelParameter.prototype.setValue = function(value) { +proto.Variable.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * optional string defaultValue = 4; + * @return {string} + */ +proto.Variable.prototype.getDefaultvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Variable} returns this + */ +proto.Variable.prototype.setDefaultvalue = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.Variable} returns this + */ +proto.Variable.prototype.clearDefaultvalue = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Variable.prototype.hasDefaultvalue = function() { + return jspb.Message.getField(this, 4) != null; +}; + + /** * List of repeated fields within this message type. @@ -3387,7 +3215,7 @@ proto.Provider.prototype.clearConnectconfigurationList = function() { * @private {!Array} * @const */ -proto.ProviderModelVariable.repeatedFields_ = [9]; +proto.Tag.repeatedFields_ = [2]; @@ -3404,8 +3232,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ProviderModelVariable.prototype.toObject = function(opt_includeInstance) { - return proto.ProviderModelVariable.toObject(opt_includeInstance, this); +proto.Tag.prototype.toObject = function(opt_includeInstance) { + return proto.Tag.toObject(opt_includeInstance, this); }; @@ -3414,22 +3242,14 @@ proto.ProviderModelVariable.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ProviderModelVariable} msg The msg instance to transform. + * @param {!proto.Tag} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModelVariable.toObject = function(includeInstance, msg) { +proto.Tag.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - providermodelid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - key: jspb.Message.getFieldWithDefault(msg, 3, ""), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - description: jspb.Message.getFieldWithDefault(msg, 5, ""), - defaultvalue: jspb.Message.getFieldWithDefault(msg, 6, ""), - type: jspb.Message.getFieldWithDefault(msg, 7, ""), - place: jspb.Message.getFieldWithDefault(msg, 8, ""), - metadatasList: jspb.Message.toObjectList(msg.getMetadatasList(), - proto.Metadata.toObject, includeInstance) + tagList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -3443,23 +3263,23 @@ proto.ProviderModelVariable.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ProviderModelVariable} + * @return {!proto.Tag} */ -proto.ProviderModelVariable.deserializeBinary = function(bytes) { +proto.Tag.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ProviderModelVariable; - return proto.ProviderModelVariable.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Tag; + return proto.Tag.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ProviderModelVariable} msg The message object to deserialize into. + * @param {!proto.Tag} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ProviderModelVariable} + * @return {!proto.Tag} */ -proto.ProviderModelVariable.deserializeBinaryFromReader = function(msg, reader) { +proto.Tag.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3471,37 +3291,8 @@ proto.ProviderModelVariable.deserializeBinaryFromReader = function(msg, reader) msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProvidermodelid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 6: var value = /** @type {string} */ (reader.readString()); - msg.setDefaultvalue(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setPlace(value); - break; - case 9: - var value = new proto.Metadata; - reader.readMessage(value,proto.Metadata.deserializeBinaryFromReader); - msg.addMetadatas(value); + msg.addTag(value); break; default: reader.skipField(); @@ -3516,9 +3307,9 @@ proto.ProviderModelVariable.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ProviderModelVariable.prototype.serializeBinary = function() { +proto.Tag.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ProviderModelVariable.serializeBinaryToWriter(this, writer); + proto.Tag.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3526,11 +3317,11 @@ proto.ProviderModelVariable.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ProviderModelVariable} message + * @param {!proto.Tag} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModelVariable.serializeBinaryToWriter = function(message, writer) { +proto.Tag.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (parseInt(f, 10) !== 0) { @@ -3539,63 +3330,13 @@ proto.ProviderModelVariable.serializeBinaryToWriter = function(message, writer) f ); } - f = message.getProvidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getKey(); + f = message.getTagList(); if (f.length > 0) { - writer.writeString( - 3, + writer.writeRepeatedString( + 2, f ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDefaultvalue(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getPlace(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getMetadatasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.Metadata.serializeBinaryToWriter - ); - } }; @@ -3603,192 +3344,58 @@ proto.ProviderModelVariable.serializeBinaryToWriter = function(message, writer) * optional uint64 id = 1; * @return {string} */ -proto.ProviderModelVariable.prototype.getId = function() { +proto.Tag.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.ProviderModelVariable} returns this + * @return {!proto.Tag} returns this */ -proto.ProviderModelVariable.prototype.setId = function(value) { +proto.Tag.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional uint64 providerModelId = 2; - * @return {string} - */ -proto.ProviderModelVariable.prototype.getProvidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ProviderModelVariable} returns this - */ -proto.ProviderModelVariable.prototype.setProvidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional string key = 3; - * @return {string} - */ -proto.ProviderModelVariable.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ProviderModelVariable} returns this - */ -proto.ProviderModelVariable.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.ProviderModelVariable.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ProviderModelVariable} returns this - */ -proto.ProviderModelVariable.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string description = 5; - * @return {string} - */ -proto.ProviderModelVariable.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ProviderModelVariable} returns this - */ -proto.ProviderModelVariable.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string defaultValue = 6; - * @return {string} - */ -proto.ProviderModelVariable.prototype.getDefaultvalue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ProviderModelVariable} returns this - */ -proto.ProviderModelVariable.prototype.setDefaultvalue = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string type = 7; - * @return {string} - */ -proto.ProviderModelVariable.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ProviderModelVariable} returns this + * repeated string tag = 2; + * @return {!Array} */ -proto.ProviderModelVariable.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.Tag.prototype.getTagList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * optional string place = 8; - * @return {string} + * @param {!Array} value + * @return {!proto.Tag} returns this */ -proto.ProviderModelVariable.prototype.getPlace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.Tag.prototype.setTagList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value - * @return {!proto.ProviderModelVariable} returns this - */ -proto.ProviderModelVariable.prototype.setPlace = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * repeated Metadata metadatas = 9; - * @return {!Array} - */ -proto.ProviderModelVariable.prototype.getMetadatasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Metadata, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ProviderModelVariable} returns this -*/ -proto.ProviderModelVariable.prototype.setMetadatasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); -}; - - -/** - * @param {!proto.Metadata=} opt_value * @param {number=} opt_index - * @return {!proto.Metadata} + * @return {!proto.Tag} returns this */ -proto.ProviderModelVariable.prototype.addMetadatas = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.Metadata, opt_index); +proto.Tag.prototype.addTag = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.ProviderModelVariable} returns this + * @return {!proto.Tag} returns this */ -proto.ProviderModelVariable.prototype.clearMetadatasList = function() { - return this.setMetadatasList([]); +proto.Tag.prototype.clearTagList = function() { + return this.setTagList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.ProviderModel.repeatedFields_ = [9,10]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -3804,8 +3411,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ProviderModel.prototype.toObject = function(opt_includeInstance) { - return proto.ProviderModel.toObject(opt_includeInstance, this); +proto.Organization.prototype.toObject = function(opt_includeInstance) { + return proto.Organization.toObject(opt_includeInstance, this); }; @@ -3814,26 +3421,18 @@ proto.ProviderModel.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ProviderModel} msg The msg instance to transform. + * @param {!proto.Organization} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModel.toObject = function(includeInstance, msg) { +proto.Organization.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), name: jspb.Message.getFieldWithDefault(msg, 2, ""), description: jspb.Message.getFieldWithDefault(msg, 3, ""), - humanname: jspb.Message.getFieldWithDefault(msg, 4, ""), - category: jspb.Message.getFieldWithDefault(msg, 5, ""), - status: jspb.Message.getFieldWithDefault(msg, 6, ""), - owner: jspb.Message.getFieldWithDefault(msg, 7, ""), - provider: (f = msg.getProvider()) && proto.Provider.toObject(includeInstance, f), - parametersList: jspb.Message.toObjectList(msg.getParametersList(), - proto.ProviderModelVariable.toObject, includeInstance), - metadatasList: jspb.Message.toObjectList(msg.getMetadatasList(), - proto.Metadata.toObject, includeInstance), - providerid: jspb.Message.getFieldWithDefault(msg, 11, "0"), - endpoint: jspb.Message.getFieldWithDefault(msg, 12, "") + industry: jspb.Message.getFieldWithDefault(msg, 4, ""), + contact: jspb.Message.getFieldWithDefault(msg, 5, ""), + size: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { @@ -3847,23 +3446,23 @@ proto.ProviderModel.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ProviderModel} + * @return {!proto.Organization} */ -proto.ProviderModel.deserializeBinary = function(bytes) { +proto.Organization.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ProviderModel; - return proto.ProviderModel.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Organization; + return proto.Organization.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ProviderModel} msg The message object to deserialize into. + * @param {!proto.Organization} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ProviderModel} + * @return {!proto.Organization} */ -proto.ProviderModel.deserializeBinaryFromReader = function(msg, reader) { +proto.Organization.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3884,42 +3483,15 @@ proto.ProviderModel.deserializeBinaryFromReader = function(msg, reader) { break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setHumanname(value); + msg.setIndustry(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setCategory(value); + msg.setContact(value); break; case 6: var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 8: - var value = new proto.Provider; - reader.readMessage(value,proto.Provider.deserializeBinaryFromReader); - msg.setProvider(value); - break; - case 9: - var value = new proto.ProviderModelVariable; - reader.readMessage(value,proto.ProviderModelVariable.deserializeBinaryFromReader); - msg.addParameters(value); - break; - case 10: - var value = new proto.Metadata; - reader.readMessage(value,proto.Metadata.deserializeBinaryFromReader); - msg.addMetadatas(value); - break; - case 11: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setEndpoint(value); + msg.setSize(value); break; default: reader.skipField(); @@ -3934,9 +3506,9 @@ proto.ProviderModel.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ProviderModel.prototype.serializeBinary = function() { +proto.Organization.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ProviderModel.serializeBinaryToWriter(this, writer); + proto.Organization.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3944,11 +3516,11 @@ proto.ProviderModel.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ProviderModel} message + * @param {!proto.Organization} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModel.serializeBinaryToWriter = function(message, writer) { +proto.Organization.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (parseInt(f, 10) !== 0) { @@ -3971,72 +3543,27 @@ proto.ProviderModel.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getHumanname(); + f = message.getIndustry(); if (f.length > 0) { writer.writeString( 4, f ); } - f = message.getCategory(); + f = message.getContact(); if (f.length > 0) { writer.writeString( 5, f ); } - f = message.getStatus(); + f = message.getSize(); if (f.length > 0) { writer.writeString( 6, f ); } - f = message.getOwner(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getProvider(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.Provider.serializeBinaryToWriter - ); - } - f = message.getParametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.ProviderModelVariable.serializeBinaryToWriter - ); - } - f = message.getMetadatasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - proto.Metadata.serializeBinaryToWriter - ); - } - f = message.getProviderid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 11, - f - ); - } - f = message.getEndpoint(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } }; @@ -4044,16 +3571,16 @@ proto.ProviderModel.serializeBinaryToWriter = function(message, writer) { * optional uint64 id = 1; * @return {string} */ -proto.ProviderModel.prototype.getId = function() { +proto.Organization.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Organization} returns this */ -proto.ProviderModel.prototype.setId = function(value) { +proto.Organization.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -4062,16 +3589,16 @@ proto.ProviderModel.prototype.setId = function(value) { * optional string name = 2; * @return {string} */ -proto.ProviderModel.prototype.getName = function() { +proto.Organization.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Organization} returns this */ -proto.ProviderModel.prototype.setName = function(value) { +proto.Organization.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -4080,249 +3607,265 @@ proto.ProviderModel.prototype.setName = function(value) { * optional string description = 3; * @return {string} */ -proto.ProviderModel.prototype.getDescription = function() { +proto.Organization.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Organization} returns this */ -proto.ProviderModel.prototype.setDescription = function(value) { +proto.Organization.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string humanName = 4; + * optional string industry = 4; * @return {string} */ -proto.ProviderModel.prototype.getHumanname = function() { +proto.Organization.prototype.getIndustry = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Organization} returns this */ -proto.ProviderModel.prototype.setHumanname = function(value) { +proto.Organization.prototype.setIndustry = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string category = 5; + * optional string contact = 5; * @return {string} */ -proto.ProviderModel.prototype.getCategory = function() { +proto.Organization.prototype.getContact = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Organization} returns this */ -proto.ProviderModel.prototype.setCategory = function(value) { +proto.Organization.prototype.setContact = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional string status = 6; + * optional string size = 6; * @return {string} */ -proto.ProviderModel.prototype.getStatus = function() { +proto.Organization.prototype.getSize = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Organization} returns this */ -proto.ProviderModel.prototype.setStatus = function(value) { +proto.Organization.prototype.setSize = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; -/** - * optional string owner = 7; - * @return {string} - */ -proto.ProviderModel.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - -/** - * @param {string} value - * @return {!proto.ProviderModel} returns this - */ -proto.ProviderModel.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional Provider provider = 8; - * @return {?proto.Provider} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.ProviderModel.prototype.getProvider = function() { - return /** @type{?proto.Provider} */ ( - jspb.Message.getWrapperField(this, proto.Provider, 8)); -}; - - -/** - * @param {?proto.Provider|undefined} value - * @return {!proto.ProviderModel} returns this -*/ -proto.ProviderModel.prototype.setProvider = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.Metric.prototype.toObject = function(opt_includeInstance) { + return proto.Metric.toObject(opt_includeInstance, this); }; /** - * Clears the message field making it undefined. - * @return {!proto.ProviderModel} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Metric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModel.prototype.clearProvider = function() { - return this.setProvider(undefined); -}; - +proto.Metric.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, "") + }; -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ProviderModel.prototype.hasProvider = function() { - return jspb.Message.getField(this, 8) != null; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * repeated ProviderModelVariable parameters = 9; - * @return {!Array} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Metric} */ -proto.ProviderModel.prototype.getParametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ProviderModelVariable, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ProviderModel} returns this -*/ -proto.ProviderModel.prototype.setParametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); +proto.Metric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Metric; + return proto.Metric.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!proto.ProviderModelVariable=} opt_value - * @param {number=} opt_index - * @return {!proto.ProviderModelVariable} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Metric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Metric} */ -proto.ProviderModel.prototype.addParameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.ProviderModelVariable, opt_index); +proto.Metric.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; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setValue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ProviderModel} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ProviderModel.prototype.clearParametersList = function() { - return this.setParametersList([]); +proto.Metric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Metric.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * repeated Metadata metadatas = 10; - * @return {!Array} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Metric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ProviderModel.prototype.getMetadatasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Metadata, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ProviderModel} returns this -*/ -proto.ProviderModel.prototype.setMetadatasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); +proto.Metric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } }; /** - * @param {!proto.Metadata=} opt_value - * @param {number=} opt_index - * @return {!proto.Metadata} + * optional string name = 1; + * @return {string} */ -proto.ProviderModel.prototype.addMetadatas = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.Metadata, opt_index); +proto.Metric.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ProviderModel} returns this + * @param {string} value + * @return {!proto.Metric} returns this */ -proto.ProviderModel.prototype.clearMetadatasList = function() { - return this.setMetadatasList([]); +proto.Metric.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint64 providerId = 11; + * optional string value = 2; * @return {string} */ -proto.ProviderModel.prototype.getProviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "0")); +proto.Metric.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Metric} returns this */ -proto.ProviderModel.prototype.setProviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 11, value); +proto.Metric.prototype.setValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string endpoint = 12; + * optional string description = 3; * @return {string} */ -proto.ProviderModel.prototype.getEndpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.Metric.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.ProviderModel} returns this + * @return {!proto.Metric} returns this */ -proto.ProviderModel.prototype.setEndpoint = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); +proto.Metric.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.Tag.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4338,8 +3881,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Tag.prototype.toObject = function(opt_includeInstance) { - return proto.Tag.toObject(opt_includeInstance, this); +proto.Content.prototype.toObject = function(opt_includeInstance) { + return proto.Content.toObject(opt_includeInstance, this); }; @@ -4348,14 +3891,17 @@ proto.Tag.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Tag} msg The msg instance to transform. + * @param {!proto.Content} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Tag.toObject = function(includeInstance, msg) { +proto.Content.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - tagList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + contenttype: jspb.Message.getFieldWithDefault(msg, 2, ""), + contentformat: jspb.Message.getFieldWithDefault(msg, 3, ""), + content: msg.getContent_asB64(), + meta: (f = msg.getMeta()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -4369,23 +3915,23 @@ proto.Tag.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Tag} + * @return {!proto.Content} */ -proto.Tag.deserializeBinary = function(bytes) { +proto.Content.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Tag; - return proto.Tag.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Content; + return proto.Content.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Tag} msg The message object to deserialize into. + * @param {!proto.Content} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Tag} + * @return {!proto.Content} */ -proto.Tag.deserializeBinaryFromReader = function(msg, reader) { +proto.Content.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4393,12 +3939,25 @@ proto.Tag.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addTag(value); + msg.setContenttype(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setContentformat(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setContent(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMeta(value); break; default: reader.skipField(); @@ -4413,9 +3972,9 @@ proto.Tag.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.Tag.prototype.serializeBinary = function() { +proto.Content.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.Tag.serializeBinaryToWriter(this, writer); + proto.Content.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4423,85 +3982,192 @@ proto.Tag.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.Tag} message + * @param {!proto.Content} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Tag.serializeBinaryToWriter = function(message, writer) { +proto.Content.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getTagList(); + f = message.getContenttype(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } -}; - - + f = message.getContentformat(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getContent_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getMeta(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } +}; + + /** - * optional uint64 id = 1; + * optional string name = 1; * @return {string} */ -proto.Tag.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.Content.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.Tag} returns this + * @return {!proto.Content} returns this */ -proto.Tag.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.Content.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated string tag = 2; - * @return {!Array} + * optional string contentType = 2; + * @return {string} */ -proto.Tag.prototype.getTagList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.Content.prototype.getContenttype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.Tag} returns this + * @param {string} value + * @return {!proto.Content} returns this */ -proto.Tag.prototype.setTagList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.Content.prototype.setContenttype = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string contentFormat = 3; + * @return {string} + */ +proto.Content.prototype.getContentformat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.Tag} returns this + * @return {!proto.Content} returns this */ -proto.Tag.prototype.addTag = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.Content.prototype.setContentformat = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.Tag} returns this + * optional bytes content = 4; + * @return {!(string|Uint8Array)} */ -proto.Tag.prototype.clearTagList = function() { - return this.setTagList([]); +proto.Content.prototype.getContent = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes content = 4; + * This is a type-conversion wrapper around `getContent()` + * @return {string} + */ +proto.Content.prototype.getContent_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getContent())); +}; + + +/** + * optional bytes content = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getContent()` + * @return {!Uint8Array} + */ +proto.Content.prototype.getContent_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getContent())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.Content} returns this + */ +proto.Content.prototype.setContent = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional google.protobuf.Struct meta = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.Content.prototype.getMeta = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.Content} returns this +*/ +proto.Content.prototype.setMeta = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Content} returns this + */ +proto.Content.prototype.clearMeta = function() { + return this.setMeta(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Content.prototype.hasMeta = function() { + return jspb.Message.getField(this, 5) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Message.repeatedFields_ = [2,3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4517,8 +4183,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Organization.prototype.toObject = function(opt_includeInstance) { - return proto.Organization.toObject(opt_includeInstance, this); +proto.Message.prototype.toObject = function(opt_includeInstance) { + return proto.Message.toObject(opt_includeInstance, this); }; @@ -4527,18 +4193,17 @@ proto.Organization.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Organization} msg The msg instance to transform. + * @param {!proto.Message} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Organization.toObject = function(includeInstance, msg) { +proto.Message.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - industry: jspb.Message.getFieldWithDefault(msg, 4, ""), - contact: jspb.Message.getFieldWithDefault(msg, 5, ""), - size: jspb.Message.getFieldWithDefault(msg, 6, "") + role: jspb.Message.getFieldWithDefault(msg, 1, ""), + contentsList: jspb.Message.toObjectList(msg.getContentsList(), + proto.Content.toObject, includeInstance), + toolcallsList: jspb.Message.toObjectList(msg.getToolcallsList(), + proto.ToolCall.toObject, includeInstance) }; if (includeInstance) { @@ -4552,23 +4217,23 @@ proto.Organization.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Organization} + * @return {!proto.Message} */ -proto.Organization.deserializeBinary = function(bytes) { +proto.Message.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Organization; - return proto.Organization.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Message; + return proto.Message.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Organization} msg The message object to deserialize into. + * @param {!proto.Message} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Organization} + * @return {!proto.Message} */ -proto.Organization.deserializeBinaryFromReader = function(msg, reader) { +proto.Message.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4576,28 +4241,18 @@ proto.Organization.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRole(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new proto.Content; + reader.readMessage(value,proto.Content.deserializeBinaryFromReader); + msg.addContents(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setIndustry(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setContact(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSize(value); + var value = new proto.ToolCall; + reader.readMessage(value,proto.ToolCall.deserializeBinaryFromReader); + msg.addToolcalls(value); break; default: reader.skipField(); @@ -4612,9 +4267,9 @@ proto.Organization.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.Organization.prototype.serializeBinary = function() { +proto.Message.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.Organization.serializeBinaryToWriter(this, writer); + proto.Message.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4622,162 +4277,129 @@ proto.Organization.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.Organization} message + * @param {!proto.Message} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Organization.serializeBinaryToWriter = function(message, writer) { +proto.Message.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getRole(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getName(); + f = message.getContentsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto.Content.serializeBinaryToWriter ); } - f = message.getDescription(); + f = message.getToolcallsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 3, - f - ); - } - f = message.getIndustry(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getContact(); - if (f.length > 0) { - writer.writeString( - 5, - f + f, + proto.ToolCall.serializeBinaryToWriter ); } - f = message.getSize(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.Organization.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Organization} returns this - */ -proto.Organization.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional string name = 2; + * optional string role = 1; * @return {string} */ -proto.Organization.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.Message.prototype.getRole = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.Organization} returns this + * @return {!proto.Message} returns this */ -proto.Organization.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.Message.prototype.setRole = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string description = 3; - * @return {string} + * repeated Content contents = 2; + * @return {!Array} */ -proto.Organization.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.Message.prototype.getContentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.Content, 2)); }; /** - * @param {string} value - * @return {!proto.Organization} returns this - */ -proto.Organization.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + * @param {!Array} value + * @return {!proto.Message} returns this +*/ +proto.Message.prototype.setContentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string industry = 4; - * @return {string} + * @param {!proto.Content=} opt_value + * @param {number=} opt_index + * @return {!proto.Content} */ -proto.Organization.prototype.getIndustry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.Message.prototype.addContents = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Content, opt_index); }; /** - * @param {string} value - * @return {!proto.Organization} returns this + * Clears the list making it empty but non-null. + * @return {!proto.Message} returns this */ -proto.Organization.prototype.setIndustry = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.Message.prototype.clearContentsList = function() { + return this.setContentsList([]); }; /** - * optional string contact = 5; - * @return {string} + * repeated ToolCall toolCalls = 3; + * @return {!Array} */ -proto.Organization.prototype.getContact = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.Message.prototype.getToolcallsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ToolCall, 3)); }; /** - * @param {string} value - * @return {!proto.Organization} returns this - */ -proto.Organization.prototype.setContact = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + * @param {!Array} value + * @return {!proto.Message} returns this +*/ +proto.Message.prototype.setToolcallsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * optional string size = 6; - * @return {string} + * @param {!proto.ToolCall=} opt_value + * @param {number=} opt_index + * @return {!proto.ToolCall} */ -proto.Organization.prototype.getSize = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.Message.prototype.addToolcalls = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ToolCall, opt_index); }; /** - * @param {string} value - * @return {!proto.Organization} returns this + * Clears the list making it empty but non-null. + * @return {!proto.Message} returns this */ -proto.Organization.prototype.setSize = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.Message.prototype.clearToolcallsList = function() { + return this.setToolcallsList([]); }; @@ -4797,8 +4419,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Metric.prototype.toObject = function(opt_includeInstance) { - return proto.Metric.toObject(opt_includeInstance, this); +proto.ToolCall.prototype.toObject = function(opt_includeInstance) { + return proto.ToolCall.toObject(opt_includeInstance, this); }; @@ -4807,15 +4429,15 @@ proto.Metric.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Metric} msg The msg instance to transform. + * @param {!proto.ToolCall} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Metric.toObject = function(includeInstance, msg) { +proto.ToolCall.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, ""), + pb_function: (f = msg.getFunction()) && proto.FunctionCall.toObject(includeInstance, f) }; if (includeInstance) { @@ -4829,23 +4451,23 @@ proto.Metric.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Metric} + * @return {!proto.ToolCall} */ -proto.Metric.deserializeBinary = function(bytes) { +proto.ToolCall.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Metric; - return proto.Metric.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ToolCall; + return proto.ToolCall.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Metric} msg The message object to deserialize into. + * @param {!proto.ToolCall} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Metric} + * @return {!proto.ToolCall} */ -proto.Metric.deserializeBinaryFromReader = function(msg, reader) { +proto.ToolCall.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4854,15 +4476,16 @@ proto.Metric.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); + msg.setType(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + var value = new proto.FunctionCall; + reader.readMessage(value,proto.FunctionCall.deserializeBinaryFromReader); + msg.setFunction(value); break; default: reader.skipField(); @@ -4877,9 +4500,9 @@ proto.Metric.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.Metric.prototype.serializeBinary = function() { +proto.ToolCall.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.Metric.serializeBinaryToWriter(this, writer); + proto.ToolCall.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4887,87 +4510,107 @@ proto.Metric.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.Metric} message + * @param {!proto.ToolCall} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Metric.serializeBinaryToWriter = function(message, writer) { +proto.ToolCall.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getValue(); + f = message.getType(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( + f = message.getFunction(); + if (f != null) { + writer.writeMessage( 3, - f + f, + proto.FunctionCall.serializeBinaryToWriter ); } }; /** - * optional string name = 1; + * optional string id = 1; * @return {string} */ -proto.Metric.prototype.getName = function() { +proto.ToolCall.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.Metric} returns this + * @return {!proto.ToolCall} returns this */ -proto.Metric.prototype.setName = function(value) { +proto.ToolCall.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string value = 2; + * optional string type = 2; * @return {string} */ -proto.Metric.prototype.getValue = function() { +proto.ToolCall.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.Metric} returns this + * @return {!proto.ToolCall} returns this */ -proto.Metric.prototype.setValue = function(value) { +proto.ToolCall.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string description = 3; - * @return {string} + * optional FunctionCall function = 3; + * @return {?proto.FunctionCall} */ -proto.Metric.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.ToolCall.prototype.getFunction = function() { + return /** @type{?proto.FunctionCall} */ ( + jspb.Message.getWrapperField(this, proto.FunctionCall, 3)); }; /** - * @param {string} value - * @return {!proto.Metric} returns this + * @param {?proto.FunctionCall|undefined} value + * @return {!proto.ToolCall} returns this +*/ +proto.ToolCall.prototype.setFunction = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ToolCall} returns this */ -proto.Metric.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.ToolCall.prototype.clearFunction = function() { + return this.setFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ToolCall.prototype.hasFunction = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -4987,8 +4630,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Content.prototype.toObject = function(opt_includeInstance) { - return proto.Content.toObject(opt_includeInstance, this); +proto.FunctionCall.prototype.toObject = function(opt_includeInstance) { + return proto.FunctionCall.toObject(opt_includeInstance, this); }; @@ -4997,17 +4640,14 @@ proto.Content.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Content} msg The msg instance to transform. + * @param {!proto.FunctionCall} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Content.toObject = function(includeInstance, msg) { +proto.FunctionCall.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contenttype: jspb.Message.getFieldWithDefault(msg, 2, ""), - contentformat: jspb.Message.getFieldWithDefault(msg, 3, ""), - content: msg.getContent_asB64(), - meta: (f = msg.getMeta()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + arguments: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -5021,23 +4661,23 @@ proto.Content.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Content} + * @return {!proto.FunctionCall} */ -proto.Content.deserializeBinary = function(bytes) { +proto.FunctionCall.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Content; - return proto.Content.deserializeBinaryFromReader(msg, reader); + var msg = new proto.FunctionCall; + return proto.FunctionCall.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Content} msg The message object to deserialize into. + * @param {!proto.FunctionCall} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Content} + * @return {!proto.FunctionCall} */ -proto.Content.deserializeBinaryFromReader = function(msg, reader) { +proto.FunctionCall.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5050,23 +4690,10 @@ proto.Content.deserializeBinaryFromReader = function(msg, reader) { break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setContenttype(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setContentformat(value); + msg.setArguments(value); break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContent(value); - break; - case 5: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMeta(value); - break; - default: - reader.skipField(); + default: + reader.skipField(); break; } } @@ -5078,9 +4705,9 @@ proto.Content.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.Content.prototype.serializeBinary = function() { +proto.FunctionCall.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.Content.serializeBinaryToWriter(this, writer); + proto.FunctionCall.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5088,11 +4715,11 @@ proto.Content.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.Content} message + * @param {!proto.FunctionCall} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Content.serializeBinaryToWriter = function(message, writer) { +proto.FunctionCall.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { @@ -5101,35 +4728,13 @@ proto.Content.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getContenttype(); + f = message.getArguments(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getContentformat(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getContent_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getMeta(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } }; @@ -5137,142 +4742,45 @@ proto.Content.serializeBinaryToWriter = function(message, writer) { * optional string name = 1; * @return {string} */ -proto.Content.prototype.getName = function() { +proto.FunctionCall.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.Content} returns this + * @return {!proto.FunctionCall} returns this */ -proto.Content.prototype.setName = function(value) { +proto.FunctionCall.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string contentType = 2; + * optional string arguments = 2; * @return {string} */ -proto.Content.prototype.getContenttype = function() { +proto.FunctionCall.prototype.getArguments = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.Content} returns this + * @return {!proto.FunctionCall} returns this */ -proto.Content.prototype.setContenttype = function(value) { +proto.FunctionCall.prototype.setArguments = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional string contentFormat = 3; - * @return {string} - */ -proto.Content.prototype.getContentformat = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Content} returns this - */ -proto.Content.prototype.setContentformat = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes content = 4; - * @return {!(string|Uint8Array)} - */ -proto.Content.prototype.getContent = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes content = 4; - * This is a type-conversion wrapper around `getContent()` - * @return {string} - */ -proto.Content.prototype.getContent_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContent())); -}; - - -/** - * optional bytes content = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContent()` - * @return {!Uint8Array} - */ -proto.Content.prototype.getContent_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContent())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Content} returns this - */ -proto.Content.prototype.setContent = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional google.protobuf.Struct meta = 5; - * @return {?proto.google.protobuf.Struct} - */ -proto.Content.prototype.getMeta = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.Content} returns this -*/ -proto.Content.prototype.setMeta = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Content} returns this - */ -proto.Content.prototype.clearMeta = function() { - return this.setMeta(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Content.prototype.hasMeta = function() { - return jspb.Message.getField(this, 5) != null; -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.Message.repeatedFields_ = [2,3]; +proto.Knowledge.repeatedFields_ = [8]; @@ -5289,8 +4797,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.Message.prototype.toObject = function(opt_includeInstance) { - return proto.Message.toObject(opt_includeInstance, this); +proto.Knowledge.prototype.toObject = function(opt_includeInstance) { + return proto.Knowledge.toObject(opt_includeInstance, this); }; @@ -5299,17 +4807,35 @@ proto.Message.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.Message} msg The msg instance to transform. + * @param {!proto.Knowledge} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.Message.toObject = function(includeInstance, msg) { +proto.Knowledge.toObject = function(includeInstance, msg) { var f, obj = { - role: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentsList: jspb.Message.toObjectList(msg.getContentsList(), - proto.Content.toObject, includeInstance), - toolcallsList: jspb.Message.toObjectList(msg.getToolcallsList(), - proto.ToolCall.toObject, includeInstance) + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + visibility: jspb.Message.getFieldWithDefault(msg, 4, ""), + language: jspb.Message.getFieldWithDefault(msg, 5, ""), + embeddingmodelproviderid: jspb.Message.getFieldWithDefault(msg, 6, "0"), + embeddingmodelprovidername: jspb.Message.getFieldWithDefault(msg, 7, ""), + knowledgeembeddingmodeloptionsList: jspb.Message.toObjectList(msg.getKnowledgeembeddingmodeloptionsList(), + proto.Metadata.toObject, includeInstance), + status: jspb.Message.getFieldWithDefault(msg, 12, ""), + createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), + createduser: (f = msg.getCreateduser()) && proto.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), + updateduser: (f = msg.getUpdateduser()) && proto.User.toObject(includeInstance, f), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + organizationid: jspb.Message.getFieldWithDefault(msg, 19, "0"), + projectid: jspb.Message.getFieldWithDefault(msg, 20, "0"), + organization: (f = msg.getOrganization()) && proto.Organization.toObject(includeInstance, f), + knowledgetag: (f = msg.getKnowledgetag()) && proto.Tag.toObject(includeInstance, f), + documentcount: jspb.Message.getFieldWithDefault(msg, 23, 0), + tokencount: jspb.Message.getFieldWithDefault(msg, 24, 0), + wordcount: jspb.Message.getFieldWithDefault(msg, 25, 0) }; if (includeInstance) { @@ -5323,23 +4849,23 @@ proto.Message.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Message} + * @return {!proto.Knowledge} */ -proto.Message.deserializeBinary = function(bytes) { +proto.Knowledge.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Message; - return proto.Message.deserializeBinaryFromReader(msg, reader); + var msg = new proto.Knowledge; + return proto.Knowledge.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.Message} msg The message object to deserialize into. + * @param {!proto.Knowledge} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Message} + * @return {!proto.Knowledge} */ -proto.Message.deserializeBinaryFromReader = function(msg, reader) { +proto.Knowledge.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5347,2186 +4873,99 @@ proto.Message.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRole(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); break; case 2: - var value = new proto.Content; - reader.readMessage(value,proto.Content.deserializeBinaryFromReader); - msg.addContents(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 3: - var value = new proto.ToolCall; - reader.readMessage(value,proto.ToolCall.deserializeBinaryFromReader); - msg.addToolcalls(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; - default: - reader.skipField(); + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVisibility(value); break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Message.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Message.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Message} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Message.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRole(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.Content.serializeBinaryToWriter - ); - } - f = message.getToolcallsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.ToolCall.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string role = 1; - * @return {string} - */ -proto.Message.prototype.getRole = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Message} returns this - */ -proto.Message.prototype.setRole = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated Content contents = 2; - * @return {!Array} - */ -proto.Message.prototype.getContentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Content, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.Message} returns this -*/ -proto.Message.prototype.setContentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.Content=} opt_value - * @param {number=} opt_index - * @return {!proto.Content} - */ -proto.Message.prototype.addContents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Content, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.Message} returns this - */ -proto.Message.prototype.clearContentsList = function() { - return this.setContentsList([]); -}; - - -/** - * repeated ToolCall toolCalls = 3; - * @return {!Array} - */ -proto.Message.prototype.getToolcallsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ToolCall, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.Message} returns this -*/ -proto.Message.prototype.setToolcallsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.ToolCall=} opt_value - * @param {number=} opt_index - * @return {!proto.ToolCall} - */ -proto.Message.prototype.addToolcalls = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ToolCall, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.Message} returns this - */ -proto.Message.prototype.clearToolcallsList = function() { - return this.setToolcallsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Event.prototype.toObject = function(opt_includeInstance) { - return proto.Event.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Event} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Event.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - meta: (f = msg.getMeta()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - time: (f = msg.getTime()) && 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.Event} - */ -proto.Event.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Event; - return proto.Event.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Event} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Event} - */ -proto.Event.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; - case 2: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMeta(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Event.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Event.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Event} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Event.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMeta(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.Event.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Event} returns this - */ -proto.Event.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Struct meta = 2; - * @return {?proto.google.protobuf.Struct} - */ -proto.Event.prototype.getMeta = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.Event} returns this -*/ -proto.Event.prototype.setMeta = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Event} returns this - */ -proto.Event.prototype.clearMeta = function() { - return this.setMeta(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Event.prototype.hasMeta = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp time = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.Event.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Event} returns this -*/ -proto.Event.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Event} returns this - */ -proto.Event.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Event.prototype.hasTime = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.ToolCall.prototype.toObject = function(opt_includeInstance) { - return proto.ToolCall.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.ToolCall} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ToolCall.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, ""), - pb_function: (f = msg.getFunction()) && proto.FunctionCall.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.ToolCall} - */ -proto.ToolCall.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ToolCall; - return proto.ToolCall.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ToolCall} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ToolCall} - */ -proto.ToolCall.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.setType(value); - break; - case 3: - var value = new proto.FunctionCall; - reader.readMessage(value,proto.FunctionCall.deserializeBinaryFromReader); - msg.setFunction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ToolCall.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ToolCall.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ToolCall} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ToolCall.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFunction(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.FunctionCall.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.ToolCall.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ToolCall} returns this - */ -proto.ToolCall.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string type = 2; - * @return {string} - */ -proto.ToolCall.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ToolCall} returns this - */ -proto.ToolCall.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional FunctionCall function = 3; - * @return {?proto.FunctionCall} - */ -proto.ToolCall.prototype.getFunction = function() { - return /** @type{?proto.FunctionCall} */ ( - jspb.Message.getWrapperField(this, proto.FunctionCall, 3)); -}; - - -/** - * @param {?proto.FunctionCall|undefined} value - * @return {!proto.ToolCall} returns this -*/ -proto.ToolCall.prototype.setFunction = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ToolCall} returns this - */ -proto.ToolCall.prototype.clearFunction = function() { - return this.setFunction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ToolCall.prototype.hasFunction = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.FunctionCall.prototype.toObject = function(opt_includeInstance) { - return proto.FunctionCall.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.FunctionCall} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.FunctionCall.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - arguments: jspb.Message.getFieldWithDefault(msg, 2, ""), - args: (f = msg.getArgs()) && 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.FunctionCall} - */ -proto.FunctionCall.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.FunctionCall; - return proto.FunctionCall.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.FunctionCall} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.FunctionCall} - */ -proto.FunctionCall.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; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setArguments(value); - break; - case 3: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setArgs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.FunctionCall.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.FunctionCall.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.FunctionCall} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.FunctionCall.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getArguments(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getArgs(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.FunctionCall.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.FunctionCall} returns this - */ -proto.FunctionCall.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string arguments = 2; - * @return {string} - */ -proto.FunctionCall.prototype.getArguments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.FunctionCall} returns this - */ -proto.FunctionCall.prototype.setArguments = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Struct args = 3; - * @return {?proto.google.protobuf.Struct} - */ -proto.FunctionCall.prototype.getArgs = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.FunctionCall} returns this -*/ -proto.FunctionCall.prototype.setArgs = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.FunctionCall} returns this - */ -proto.FunctionCall.prototype.clearArgs = function() { - return this.setArgs(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.FunctionCall.prototype.hasArgs = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Knowledge.prototype.toObject = function(opt_includeInstance) { - return proto.Knowledge.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Knowledge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Knowledge.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 4, ""), - language: jspb.Message.getFieldWithDefault(msg, 5, ""), - embeddingprovidermodelid: jspb.Message.getFieldWithDefault(msg, 6, "0"), - embeddingprovidermodel: (f = msg.getEmbeddingprovidermodel()) && proto.ProviderModel.toObject(includeInstance, f), - status: jspb.Message.getFieldWithDefault(msg, 12, ""), - createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), - createduser: (f = msg.getCreateduser()) && proto.User.toObject(includeInstance, f), - updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), - updateduser: (f = msg.getUpdateduser()) && proto.User.toObject(includeInstance, f), - createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - organizationid: jspb.Message.getFieldWithDefault(msg, 19, "0"), - projectid: jspb.Message.getFieldWithDefault(msg, 20, "0"), - organization: (f = msg.getOrganization()) && proto.Organization.toObject(includeInstance, f), - knowledgetag: (f = msg.getKnowledgetag()) && proto.Tag.toObject(includeInstance, f), - documentcount: jspb.Message.getFieldWithDefault(msg, 23, 0), - tokencount: jspb.Message.getFieldWithDefault(msg, 24, 0), - wordcount: jspb.Message.getFieldWithDefault(msg, 25, 0), - embeddingproviderid: jspb.Message.getFieldWithDefault(msg, 26, "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.Knowledge} - */ -proto.Knowledge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Knowledge; - return proto.Knowledge.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Knowledge} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Knowledge} - */ -proto.Knowledge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEmbeddingprovidermodelid(value); - break; - case 7: - var value = new proto.ProviderModel; - reader.readMessage(value,proto.ProviderModel.deserializeBinaryFromReader); - msg.setEmbeddingprovidermodel(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 13: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 14: - var value = new proto.User; - reader.readMessage(value,proto.User.deserializeBinaryFromReader); - msg.setCreateduser(value); - break; - case 15: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); - break; - case 16: - var value = new proto.User; - reader.readMessage(value,proto.User.deserializeBinaryFromReader); - msg.setUpdateduser(value); - break; - case 17: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreateddate(value); - break; - case 18: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdateddate(value); - break; - case 19: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOrganizationid(value); - break; - case 20: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProjectid(value); - break; - case 21: - var value = new proto.Organization; - reader.readMessage(value,proto.Organization.deserializeBinaryFromReader); - msg.setOrganization(value); - break; - case 22: - var value = new proto.Tag; - reader.readMessage(value,proto.Tag.deserializeBinaryFromReader); - msg.setKnowledgetag(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDocumentcount(value); - break; - case 24: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTokencount(value); - break; - case 25: - var value = /** @type {number} */ (reader.readUint32()); - msg.setWordcount(value); - break; - case 26: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEmbeddingproviderid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Knowledge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Knowledge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Knowledge} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Knowledge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getEmbeddingprovidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 6, - f - ); - } - f = message.getEmbeddingprovidermodel(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.ProviderModel.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 13, - f - ); - } - f = message.getCreateduser(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.User.serializeBinaryToWriter - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 15, - f - ); - } - f = message.getUpdateduser(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.User.serializeBinaryToWriter - ); - } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 17, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 18, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getOrganizationid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 19, - f - ); - } - f = message.getProjectid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 20, - f - ); - } - f = message.getOrganization(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.Organization.serializeBinaryToWriter - ); - } - f = message.getKnowledgetag(); - if (f != null) { - writer.writeMessage( - 22, - f, - proto.Tag.serializeBinaryToWriter - ); - } - f = message.getDocumentcount(); - if (f !== 0) { - writer.writeUint32( - 23, - f - ); - } - f = message.getTokencount(); - if (f !== 0) { - writer.writeUint32( - 24, - f - ); - } - f = message.getWordcount(); - if (f !== 0) { - writer.writeUint32( - 25, - f - ); - } - f = message.getEmbeddingproviderid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 26, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.Knowledge.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.Knowledge.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.Knowledge.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string visibility = 4; - * @return {string} - */ -proto.Knowledge.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string language = 5; - * @return {string} - */ -proto.Knowledge.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 embeddingProviderModelId = 6; - * @return {string} - */ -proto.Knowledge.prototype.getEmbeddingprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setEmbeddingprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); -}; - - -/** - * optional ProviderModel embeddingProviderModel = 7; - * @return {?proto.ProviderModel} - */ -proto.Knowledge.prototype.getEmbeddingprovidermodel = function() { - return /** @type{?proto.ProviderModel} */ ( - jspb.Message.getWrapperField(this, proto.ProviderModel, 7)); -}; - - -/** - * @param {?proto.ProviderModel|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setEmbeddingprovidermodel = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearEmbeddingprovidermodel = function() { - return this.setEmbeddingprovidermodel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasEmbeddingprovidermodel = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional string status = 12; - * @return {string} - */ -proto.Knowledge.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional uint64 createdBy = 13; - * @return {string} - */ -proto.Knowledge.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 13, value); -}; - - -/** - * optional User createdUser = 14; - * @return {?proto.User} - */ -proto.Knowledge.prototype.getCreateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, proto.User, 14)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setCreateduser = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearCreateduser = function() { - return this.setCreateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasCreateduser = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional uint64 updatedBy = 15; - * @return {string} - */ -proto.Knowledge.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 15, value); -}; - - -/** - * optional User updatedUser = 16; - * @return {?proto.User} - */ -proto.Knowledge.prototype.getUpdateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, proto.User, 16)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setUpdateduser = function(value) { - return jspb.Message.setWrapperField(this, 16, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearUpdateduser = function() { - return this.setUpdateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasUpdateduser = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional google.protobuf.Timestamp createdDate = 17; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.Knowledge.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional google.protobuf.Timestamp updatedDate = 18; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.Knowledge.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 18, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional uint64 organizationId = 19; - * @return {string} - */ -proto.Knowledge.prototype.getOrganizationid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setOrganizationid = function(value) { - return jspb.Message.setProto3StringIntField(this, 19, value); -}; - - -/** - * optional uint64 projectId = 20; - * @return {string} - */ -proto.Knowledge.prototype.getProjectid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setProjectid = function(value) { - return jspb.Message.setProto3StringIntField(this, 20, value); -}; - - -/** - * optional Organization organization = 21; - * @return {?proto.Organization} - */ -proto.Knowledge.prototype.getOrganization = function() { - return /** @type{?proto.Organization} */ ( - jspb.Message.getWrapperField(this, proto.Organization, 21)); -}; - - -/** - * @param {?proto.Organization|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setOrganization = function(value) { - return jspb.Message.setWrapperField(this, 21, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearOrganization = function() { - return this.setOrganization(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasOrganization = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * optional Tag knowledgeTag = 22; - * @return {?proto.Tag} - */ -proto.Knowledge.prototype.getKnowledgetag = function() { - return /** @type{?proto.Tag} */ ( - jspb.Message.getWrapperField(this, proto.Tag, 22)); -}; - - -/** - * @param {?proto.Tag|undefined} value - * @return {!proto.Knowledge} returns this -*/ -proto.Knowledge.prototype.setKnowledgetag = function(value) { - return jspb.Message.setWrapperField(this, 22, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.clearKnowledgetag = function() { - return this.setKnowledgetag(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Knowledge.prototype.hasKnowledgetag = function() { - return jspb.Message.getField(this, 22) != null; -}; - - -/** - * optional uint32 documentCount = 23; - * @return {number} - */ -proto.Knowledge.prototype.getDocumentcount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setDocumentcount = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional uint32 tokenCount = 24; - * @return {number} - */ -proto.Knowledge.prototype.getTokencount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setTokencount = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * optional uint32 wordCount = 25; - * @return {number} - */ -proto.Knowledge.prototype.getWordcount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setWordcount = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - -/** - * optional uint64 embeddingProviderId = 26; - * @return {string} - */ -proto.Knowledge.prototype.getEmbeddingproviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.Knowledge} returns this - */ -proto.Knowledge.prototype.setEmbeddingproviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 26, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.AgentPromptTemplate.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.AgentPromptTemplate.prototype.toObject = function(opt_includeInstance) { - return proto.AgentPromptTemplate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.AgentPromptTemplate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.AgentPromptTemplate.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - prompt: jspb.Message.getFieldWithDefault(msg, 2, ""), - promptvariablesList: jspb.Message.toObjectList(msg.getPromptvariablesList(), - proto.Variable.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.AgentPromptTemplate} - */ -proto.AgentPromptTemplate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.AgentPromptTemplate; - return proto.AgentPromptTemplate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.AgentPromptTemplate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.AgentPromptTemplate} - */ -proto.AgentPromptTemplate.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.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPrompt(value); - break; - case 3: - var value = new proto.Variable; - reader.readMessage(value,proto.Variable.deserializeBinaryFromReader); - msg.addPromptvariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.AgentPromptTemplate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.AgentPromptTemplate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.AgentPromptTemplate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.AgentPromptTemplate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrompt(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPromptvariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.Variable.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.AgentPromptTemplate.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.AgentPromptTemplate} returns this - */ -proto.AgentPromptTemplate.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string prompt = 2; - * @return {string} - */ -proto.AgentPromptTemplate.prototype.getPrompt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.AgentPromptTemplate} returns this - */ -proto.AgentPromptTemplate.prototype.setPrompt = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated Variable promptVariables = 3; - * @return {!Array} - */ -proto.AgentPromptTemplate.prototype.getPromptvariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Variable, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.AgentPromptTemplate} returns this -*/ -proto.AgentPromptTemplate.prototype.setPromptvariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.Variable=} opt_value - * @param {number=} opt_index - * @return {!proto.Variable} - */ -proto.AgentPromptTemplate.prototype.addPromptvariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Variable, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.AgentPromptTemplate} returns this - */ -proto.AgentPromptTemplate.prototype.clearPromptvariablesList = function() { - return this.setPromptvariablesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.TextPrompt.prototype.toObject = function(opt_includeInstance) { - return proto.TextPrompt.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.TextPrompt} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.TextPrompt.toObject = function(includeInstance, msg) { - var f, obj = { - role: jspb.Message.getFieldWithDefault(msg, 1, ""), - content: 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.TextPrompt} - */ -proto.TextPrompt.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.TextPrompt; - return proto.TextPrompt.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.TextPrompt} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.TextPrompt} - */ -proto.TextPrompt.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: + case 6: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEmbeddingmodelproviderid(value); + break; + case 7: var value = /** @type {string} */ (reader.readString()); - msg.setRole(value); + msg.setEmbeddingmodelprovidername(value); break; - case 2: + case 8: + var value = new proto.Metadata; + reader.readMessage(value,proto.Metadata.deserializeBinaryFromReader); + msg.addKnowledgeembeddingmodeloptions(value); + break; + case 12: var value = /** @type {string} */ (reader.readString()); - msg.setContent(value); + msg.setStatus(value); break; - default: - reader.skipField(); + case 13: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.TextPrompt.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.TextPrompt.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.TextPrompt} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.TextPrompt.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRole(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string role = 1; - * @return {string} - */ -proto.TextPrompt.prototype.getRole = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.TextPrompt} returns this - */ -proto.TextPrompt.prototype.setRole = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string content = 2; - * @return {string} - */ -proto.TextPrompt.prototype.getContent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.TextPrompt} returns this - */ -proto.TextPrompt.prototype.setContent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.FilePrompt.prototype.toObject = function(opt_includeInstance) { - return proto.FilePrompt.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.FilePrompt} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.FilePrompt.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - accepts: 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.FilePrompt} - */ -proto.FilePrompt.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.FilePrompt; - return proto.FilePrompt.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.FilePrompt} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.FilePrompt} - */ -proto.FilePrompt.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { + case 14: + var value = new proto.User; + reader.readMessage(value,proto.User.deserializeBinaryFromReader); + msg.setCreateduser(value); + break; + case 15: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + case 16: + var value = new proto.User; + reader.readMessage(value,proto.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAccepts(value); + case 17: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 18: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + case 19: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setOrganizationid(value); + break; + case 20: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setProjectid(value); + break; + case 21: + var value = new proto.Organization; + reader.readMessage(value,proto.Organization.deserializeBinaryFromReader); + msg.setOrganization(value); + break; + case 22: + var value = new proto.Tag; + reader.readMessage(value,proto.Tag.deserializeBinaryFromReader); + msg.setKnowledgetag(value); + break; + case 23: + var value = /** @type {number} */ (reader.readUint32()); + msg.setDocumentcount(value); + break; + case 24: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTokencount(value); + break; + case 25: + var value = /** @type {number} */ (reader.readUint32()); + msg.setWordcount(value); break; default: reader.skipField(); @@ -7541,9 +4980,9 @@ proto.FilePrompt.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.FilePrompt.prototype.serializeBinary = function() { +proto.Knowledge.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.FilePrompt.serializeBinaryToWriter(this, writer); + proto.Knowledge.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7551,23 +4990,170 @@ proto.FilePrompt.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.FilePrompt} message + * @param {!proto.Knowledge} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.FilePrompt.serializeBinaryToWriter = function(message, writer) { +proto.Knowledge.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } f = message.getName(); if (f.length > 0) { writer.writeString( - 1, + 2, f ); } - f = message.getAccepts(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( - 2, + 3, + f + ); + } + f = message.getVisibility(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getEmbeddingmodelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 6, + f + ); + } + f = message.getEmbeddingmodelprovidername(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getKnowledgeembeddingmodeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.Metadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 13, + f + ); + } + f = message.getCreateduser(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.User.serializeBinaryToWriter + ); + } + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 15, + f + ); + } + f = message.getUpdateduser(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.User.serializeBinaryToWriter + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 18, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getOrganizationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 19, + f + ); + } + f = message.getProjectid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 20, + f + ); + } + f = message.getOrganization(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.Organization.serializeBinaryToWriter + ); + } + f = message.getKnowledgetag(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.Tag.serializeBinaryToWriter + ); + } + f = message.getDocumentcount(); + if (f !== 0) { + writer.writeUint32( + 23, + f + ); + } + f = message.getTokencount(); + if (f !== 0) { + writer.writeUint32( + 24, + f + ); + } + f = message.getWordcount(); + if (f !== 0) { + writer.writeUint32( + 25, f ); } @@ -7575,415 +5161,322 @@ proto.FilePrompt.serializeBinaryToWriter = function(message, writer) { /** - * optional string name = 1; + * optional uint64 id = 1; * @return {string} */ -proto.FilePrompt.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.Knowledge.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.FilePrompt} returns this + * @return {!proto.Knowledge} returns this */ -proto.FilePrompt.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.Knowledge.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional string accepts = 2; + * optional string name = 2; * @return {string} */ -proto.FilePrompt.prototype.getAccepts = function() { +proto.Knowledge.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.FilePrompt} returns this + * @return {!proto.Knowledge} returns this */ -proto.FilePrompt.prototype.setAccepts = function(value) { +proto.Knowledge.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional string description = 3; + * @return {string} */ -proto.TextChatCompletePrompt.repeatedFields_ = [1,2]; +proto.Knowledge.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; +/** + * @param {string} value + * @return {!proto.Knowledge} returns this + */ +proto.Knowledge.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional string visibility = 4; + * @return {string} + */ +proto.Knowledge.prototype.getVisibility = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Knowledge} returns this */ -proto.TextChatCompletePrompt.prototype.toObject = function(opt_includeInstance) { - return proto.TextChatCompletePrompt.toObject(opt_includeInstance, this); +proto.Knowledge.prototype.setVisibility = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.TextChatCompletePrompt} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string language = 5; + * @return {string} */ -proto.TextChatCompletePrompt.toObject = function(includeInstance, msg) { - var f, obj = { - promptList: jspb.Message.toObjectList(msg.getPromptList(), - proto.TextPrompt.toObject, includeInstance), - promptvariablesList: jspb.Message.toObjectList(msg.getPromptvariablesList(), - proto.Variable.toObject, includeInstance) - }; +proto.Knowledge.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {string} value + * @return {!proto.Knowledge} returns this + */ +proto.Knowledge.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.TextChatCompletePrompt} + * optional uint64 embeddingModelProviderId = 6; + * @return {string} */ -proto.TextChatCompletePrompt.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.TextChatCompletePrompt; - return proto.TextChatCompletePrompt.deserializeBinaryFromReader(msg, reader); +proto.Knowledge.prototype.getEmbeddingmodelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.TextChatCompletePrompt} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.TextChatCompletePrompt} + * @param {string} value + * @return {!proto.Knowledge} returns this */ -proto.TextChatCompletePrompt.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.TextPrompt; - reader.readMessage(value,proto.TextPrompt.deserializeBinaryFromReader); - msg.addPrompt(value); - break; - case 2: - var value = new proto.Variable; - reader.readMessage(value,proto.Variable.deserializeBinaryFromReader); - msg.addPromptvariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.Knowledge.prototype.setEmbeddingmodelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string embeddingModelProviderName = 7; + * @return {string} */ -proto.TextChatCompletePrompt.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.TextChatCompletePrompt.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.Knowledge.prototype.getEmbeddingmodelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.TextChatCompletePrompt} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.Knowledge} returns this */ -proto.TextChatCompletePrompt.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPromptList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.TextPrompt.serializeBinaryToWriter - ); - } - f = message.getPromptvariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.Variable.serializeBinaryToWriter - ); - } +proto.Knowledge.prototype.setEmbeddingmodelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * repeated TextPrompt prompt = 1; - * @return {!Array} + * repeated Metadata knowledgeEmbeddingModelOptions = 8; + * @return {!Array} */ -proto.TextChatCompletePrompt.prototype.getPromptList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.TextPrompt, 1)); +proto.Knowledge.prototype.getKnowledgeembeddingmodeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.Metadata, 8)); }; /** - * @param {!Array} value - * @return {!proto.TextChatCompletePrompt} returns this + * @param {!Array} value + * @return {!proto.Knowledge} returns this */ -proto.TextChatCompletePrompt.prototype.setPromptList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.Knowledge.prototype.setKnowledgeembeddingmodeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** - * @param {!proto.TextPrompt=} opt_value + * @param {!proto.Metadata=} opt_value * @param {number=} opt_index - * @return {!proto.TextPrompt} + * @return {!proto.Metadata} */ -proto.TextChatCompletePrompt.prototype.addPrompt = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TextPrompt, opt_index); +proto.Knowledge.prototype.addKnowledgeembeddingmodeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.Metadata, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.TextChatCompletePrompt} returns this + * @return {!proto.Knowledge} returns this */ -proto.TextChatCompletePrompt.prototype.clearPromptList = function() { - return this.setPromptList([]); +proto.Knowledge.prototype.clearKnowledgeembeddingmodeloptionsList = function() { + return this.setKnowledgeembeddingmodeloptionsList([]); }; /** - * repeated Variable promptVariables = 2; - * @return {!Array} + * optional string status = 12; + * @return {string} */ -proto.TextChatCompletePrompt.prototype.getPromptvariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Variable, 2)); +proto.Knowledge.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** - * @param {!Array} value - * @return {!proto.TextChatCompletePrompt} returns this -*/ -proto.TextChatCompletePrompt.prototype.setPromptvariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.Knowledge} returns this + */ +proto.Knowledge.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; /** - * @param {!proto.Variable=} opt_value - * @param {number=} opt_index - * @return {!proto.Variable} + * optional uint64 createdBy = 13; + * @return {string} */ -proto.TextChatCompletePrompt.prototype.addPromptvariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Variable, opt_index); +proto.Knowledge.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.TextChatCompletePrompt} returns this + * @param {string} value + * @return {!proto.Knowledge} returns this */ -proto.TextChatCompletePrompt.prototype.clearPromptvariablesList = function() { - return this.setPromptvariablesList([]); +proto.Knowledge.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 13, value); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional User createdUser = 14; + * @return {?proto.User} */ -proto.TextCompletePrompt.repeatedFields_ = [2]; - +proto.Knowledge.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, proto.User, 14)); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.TextCompletePrompt.prototype.toObject = function(opt_includeInstance) { - return proto.TextCompletePrompt.toObject(opt_includeInstance, this); + * @param {?proto.User|undefined} value + * @return {!proto.Knowledge} returns this +*/ +proto.Knowledge.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.TextCompletePrompt} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.Knowledge} returns this */ -proto.TextCompletePrompt.toObject = function(includeInstance, msg) { - var f, obj = { - prompt: (f = msg.getPrompt()) && proto.TextPrompt.toObject(includeInstance, f), - promptvariablesList: jspb.Message.toObjectList(msg.getPromptvariablesList(), - proto.Variable.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.Knowledge.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.TextCompletePrompt} + * Returns whether this field is set. + * @return {boolean} */ -proto.TextCompletePrompt.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.TextCompletePrompt; - return proto.TextCompletePrompt.deserializeBinaryFromReader(msg, reader); +proto.Knowledge.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 14) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.TextCompletePrompt} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.TextCompletePrompt} + * optional uint64 updatedBy = 15; + * @return {string} */ -proto.TextCompletePrompt.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.TextPrompt; - reader.readMessage(value,proto.TextPrompt.deserializeBinaryFromReader); - msg.setPrompt(value); - break; - case 2: - var value = new proto.Variable; - reader.readMessage(value,proto.Variable.deserializeBinaryFromReader); - msg.addPromptvariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.Knowledge.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.Knowledge} returns this + */ +proto.Knowledge.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional User updatedUser = 16; + * @return {?proto.User} */ -proto.TextCompletePrompt.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.TextCompletePrompt.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.Knowledge.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, proto.User, 16)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.TextCompletePrompt} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {?proto.User|undefined} value + * @return {!proto.Knowledge} returns this +*/ +proto.Knowledge.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Knowledge} returns this */ -proto.TextCompletePrompt.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPrompt(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.TextPrompt.serializeBinaryToWriter - ); - } - f = message.getPromptvariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.Variable.serializeBinaryToWriter - ); - } +proto.Knowledge.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Knowledge.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 16) != null; }; /** - * optional TextPrompt prompt = 1; - * @return {?proto.TextPrompt} + * optional google.protobuf.Timestamp createdDate = 17; + * @return {?proto.google.protobuf.Timestamp} */ -proto.TextCompletePrompt.prototype.getPrompt = function() { - return /** @type{?proto.TextPrompt} */ ( - jspb.Message.getWrapperField(this, proto.TextPrompt, 1)); +proto.Knowledge.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); }; /** - * @param {?proto.TextPrompt|undefined} value - * @return {!proto.TextCompletePrompt} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.Knowledge} returns this */ -proto.TextCompletePrompt.prototype.setPrompt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.Knowledge.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** * Clears the message field making it undefined. - * @return {!proto.TextCompletePrompt} returns this + * @return {!proto.Knowledge} returns this */ -proto.TextCompletePrompt.prototype.clearPrompt = function() { - return this.setPrompt(undefined); +proto.Knowledge.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); }; @@ -7991,210 +5484,146 @@ proto.TextCompletePrompt.prototype.clearPrompt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.TextCompletePrompt.prototype.hasPrompt = function() { - return jspb.Message.getField(this, 1) != null; +proto.Knowledge.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * repeated Variable promptVariables = 2; - * @return {!Array} + * optional google.protobuf.Timestamp updatedDate = 18; + * @return {?proto.google.protobuf.Timestamp} */ -proto.TextCompletePrompt.prototype.getPromptvariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Variable, 2)); +proto.Knowledge.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); }; /** - * @param {!Array} value - * @return {!proto.TextCompletePrompt} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.Knowledge} returns this */ -proto.TextCompletePrompt.prototype.setPromptvariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.Knowledge.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 18, value); }; /** - * @param {!proto.Variable=} opt_value - * @param {number=} opt_index - * @return {!proto.Variable} + * Clears the message field making it undefined. + * @return {!proto.Knowledge} returns this */ -proto.TextCompletePrompt.prototype.addPromptvariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Variable, opt_index); +proto.Knowledge.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.TextCompletePrompt} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.TextCompletePrompt.prototype.clearPromptvariablesList = function() { - return this.setPromptvariablesList([]); +proto.Knowledge.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 18) != null; }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional uint64 organizationId = 19; + * @return {string} */ -proto.TextToImagePrompt.repeatedFields_ = [2]; - +proto.Knowledge.prototype.getOrganizationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "0")); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.Knowledge} returns this */ -proto.TextToImagePrompt.prototype.toObject = function(opt_includeInstance) { - return proto.TextToImagePrompt.toObject(opt_includeInstance, this); +proto.Knowledge.prototype.setOrganizationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 19, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.TextToImagePrompt} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint64 projectId = 20; + * @return {string} */ -proto.TextToImagePrompt.toObject = function(includeInstance, msg) { - var f, obj = { - prompt: (f = msg.getPrompt()) && proto.TextPrompt.toObject(includeInstance, f), - promptvariablesList: jspb.Message.toObjectList(msg.getPromptvariablesList(), - proto.Variable.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.Knowledge.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "0")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.TextToImagePrompt} + * @param {string} value + * @return {!proto.Knowledge} returns this */ -proto.TextToImagePrompt.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.TextToImagePrompt; - return proto.TextToImagePrompt.deserializeBinaryFromReader(msg, reader); +proto.Knowledge.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 20, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.TextToImagePrompt} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.TextToImagePrompt} + * optional Organization organization = 21; + * @return {?proto.Organization} */ -proto.TextToImagePrompt.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.TextPrompt; - reader.readMessage(value,proto.TextPrompt.deserializeBinaryFromReader); - msg.setPrompt(value); - break; - case 2: - var value = new proto.Variable; - reader.readMessage(value,proto.Variable.deserializeBinaryFromReader); - msg.addPromptvariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.Knowledge.prototype.getOrganization = function() { + return /** @type{?proto.Organization} */ ( + jspb.Message.getWrapperField(this, proto.Organization, 21)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {?proto.Organization|undefined} value + * @return {!proto.Knowledge} returns this +*/ +proto.Knowledge.prototype.setOrganization = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Knowledge} returns this */ -proto.TextToImagePrompt.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.TextToImagePrompt.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.Knowledge.prototype.clearOrganization = function() { + return this.setOrganization(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.TextToImagePrompt} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.TextToImagePrompt.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPrompt(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.TextPrompt.serializeBinaryToWriter - ); - } - f = message.getPromptvariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.Variable.serializeBinaryToWriter - ); - } +proto.Knowledge.prototype.hasOrganization = function() { + return jspb.Message.getField(this, 21) != null; }; /** - * optional TextPrompt prompt = 1; - * @return {?proto.TextPrompt} + * optional Tag knowledgeTag = 22; + * @return {?proto.Tag} */ -proto.TextToImagePrompt.prototype.getPrompt = function() { - return /** @type{?proto.TextPrompt} */ ( - jspb.Message.getWrapperField(this, proto.TextPrompt, 1)); +proto.Knowledge.prototype.getKnowledgetag = function() { + return /** @type{?proto.Tag} */ ( + jspb.Message.getWrapperField(this, proto.Tag, 22)); }; /** - * @param {?proto.TextPrompt|undefined} value - * @return {!proto.TextToImagePrompt} returns this + * @param {?proto.Tag|undefined} value + * @return {!proto.Knowledge} returns this */ -proto.TextToImagePrompt.prototype.setPrompt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.Knowledge.prototype.setKnowledgetag = function(value) { + return jspb.Message.setWrapperField(this, 22, value); }; /** * Clears the message field making it undefined. - * @return {!proto.TextToImagePrompt} returns this + * @return {!proto.Knowledge} returns this */ -proto.TextToImagePrompt.prototype.clearPrompt = function() { - return this.setPrompt(undefined); +proto.Knowledge.prototype.clearKnowledgetag = function() { + return this.setKnowledgetag(undefined); }; @@ -8202,57 +5631,66 @@ proto.TextToImagePrompt.prototype.clearPrompt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.TextToImagePrompt.prototype.hasPrompt = function() { - return jspb.Message.getField(this, 1) != null; +proto.Knowledge.prototype.hasKnowledgetag = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional uint32 documentCount = 23; + * @return {number} + */ +proto.Knowledge.prototype.getDocumentcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.Knowledge} returns this + */ +proto.Knowledge.prototype.setDocumentcount = function(value) { + return jspb.Message.setProto3IntField(this, 23, value); }; /** - * repeated Variable promptVariables = 2; - * @return {!Array} + * optional uint32 tokenCount = 24; + * @return {number} */ -proto.TextToImagePrompt.prototype.getPromptvariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Variable, 2)); +proto.Knowledge.prototype.getTokencount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); }; /** - * @param {!Array} value - * @return {!proto.TextToImagePrompt} returns this -*/ -proto.TextToImagePrompt.prototype.setPromptvariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.Knowledge} returns this + */ +proto.Knowledge.prototype.setTokencount = function(value) { + return jspb.Message.setProto3IntField(this, 24, value); }; /** - * @param {!proto.Variable=} opt_value - * @param {number=} opt_index - * @return {!proto.Variable} + * optional uint32 wordCount = 25; + * @return {number} */ -proto.TextToImagePrompt.prototype.addPromptvariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Variable, opt_index); +proto.Knowledge.prototype.getWordcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.TextToImagePrompt} returns this + * @param {number} value + * @return {!proto.Knowledge} returns this */ -proto.TextToImagePrompt.prototype.clearPromptvariablesList = function() { - return this.setPromptvariablesList([]); +proto.Knowledge.prototype.setWordcount = function(value) { + return jspb.Message.setProto3IntField(this, 25, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.TextToSpeechPrompt.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -8268,8 +5706,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.TextToSpeechPrompt.prototype.toObject = function(opt_includeInstance) { - return proto.TextToSpeechPrompt.toObject(opt_includeInstance, this); +proto.TextPrompt.prototype.toObject = function(opt_includeInstance) { + return proto.TextPrompt.toObject(opt_includeInstance, this); }; @@ -8278,15 +5716,14 @@ proto.TextToSpeechPrompt.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.TextToSpeechPrompt} msg The msg instance to transform. + * @param {!proto.TextPrompt} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.TextToSpeechPrompt.toObject = function(includeInstance, msg) { +proto.TextPrompt.toObject = function(includeInstance, msg) { var f, obj = { - prompt: (f = msg.getPrompt()) && proto.TextPrompt.toObject(includeInstance, f), - promptvariablesList: jspb.Message.toObjectList(msg.getPromptvariablesList(), - proto.Variable.toObject, includeInstance) + role: jspb.Message.getFieldWithDefault(msg, 1, ""), + content: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -8300,23 +5737,23 @@ proto.TextToSpeechPrompt.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.TextToSpeechPrompt} + * @return {!proto.TextPrompt} */ -proto.TextToSpeechPrompt.deserializeBinary = function(bytes) { +proto.TextPrompt.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.TextToSpeechPrompt; - return proto.TextToSpeechPrompt.deserializeBinaryFromReader(msg, reader); + var msg = new proto.TextPrompt; + return proto.TextPrompt.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.TextToSpeechPrompt} msg The message object to deserialize into. + * @param {!proto.TextPrompt} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.TextToSpeechPrompt} + * @return {!proto.TextPrompt} */ -proto.TextToSpeechPrompt.deserializeBinaryFromReader = function(msg, reader) { +proto.TextPrompt.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8324,14 +5761,12 @@ proto.TextToSpeechPrompt.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.TextPrompt; - reader.readMessage(value,proto.TextPrompt.deserializeBinaryFromReader); - msg.setPrompt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRole(value); break; case 2: - var value = new proto.Variable; - reader.readMessage(value,proto.Variable.deserializeBinaryFromReader); - msg.addPromptvariables(value); + var value = /** @type {string} */ (reader.readString()); + msg.setContent(value); break; default: reader.skipField(); @@ -8346,9 +5781,9 @@ proto.TextToSpeechPrompt.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.TextToSpeechPrompt.prototype.serializeBinary = function() { +proto.TextPrompt.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.TextToSpeechPrompt.serializeBinaryToWriter(this, writer); + proto.TextPrompt.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8356,103 +5791,62 @@ proto.TextToSpeechPrompt.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.TextToSpeechPrompt} message + * @param {!proto.TextPrompt} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.TextToSpeechPrompt.serializeBinaryToWriter = function(message, writer) { +proto.TextPrompt.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPrompt(); - if (f != null) { - writer.writeMessage( + f = message.getRole(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto.TextPrompt.serializeBinaryToWriter + f ); } - f = message.getPromptvariablesList(); + f = message.getContent(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto.Variable.serializeBinaryToWriter + f ); } }; /** - * optional TextPrompt prompt = 1; - * @return {?proto.TextPrompt} - */ -proto.TextToSpeechPrompt.prototype.getPrompt = function() { - return /** @type{?proto.TextPrompt} */ ( - jspb.Message.getWrapperField(this, proto.TextPrompt, 1)); -}; - - -/** - * @param {?proto.TextPrompt|undefined} value - * @return {!proto.TextToSpeechPrompt} returns this -*/ -proto.TextToSpeechPrompt.prototype.setPrompt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.TextToSpeechPrompt} returns this - */ -proto.TextToSpeechPrompt.prototype.clearPrompt = function() { - return this.setPrompt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional string role = 1; + * @return {string} */ -proto.TextToSpeechPrompt.prototype.hasPrompt = function() { - return jspb.Message.getField(this, 1) != null; +proto.TextPrompt.prototype.getRole = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * repeated Variable promptVariables = 2; - * @return {!Array} + * @param {string} value + * @return {!proto.TextPrompt} returns this */ -proto.TextToSpeechPrompt.prototype.getPromptvariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.Variable, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.TextToSpeechPrompt} returns this -*/ -proto.TextToSpeechPrompt.prototype.setPromptvariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.TextPrompt.prototype.setRole = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {!proto.Variable=} opt_value - * @param {number=} opt_index - * @return {!proto.Variable} + * optional string content = 2; + * @return {string} */ -proto.TextToSpeechPrompt.prototype.addPromptvariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Variable, opt_index); +proto.TextPrompt.prototype.getContent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.TextToSpeechPrompt} returns this + * @param {string} value + * @return {!proto.TextPrompt} returns this */ -proto.TextToSpeechPrompt.prototype.clearPromptvariablesList = function() { - return this.setPromptvariablesList([]); +proto.TextPrompt.prototype.setContent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8462,7 +5856,7 @@ proto.TextToSpeechPrompt.prototype.clearPromptvariablesList = function() { * @private {!Array} * @const */ -proto.SpeechToTextPrompt.repeatedFields_ = [2]; +proto.TextChatCompletePrompt.repeatedFields_ = [1,2]; @@ -8479,8 +5873,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.SpeechToTextPrompt.prototype.toObject = function(opt_includeInstance) { - return proto.SpeechToTextPrompt.toObject(opt_includeInstance, this); +proto.TextChatCompletePrompt.prototype.toObject = function(opt_includeInstance) { + return proto.TextChatCompletePrompt.toObject(opt_includeInstance, this); }; @@ -8489,13 +5883,14 @@ proto.SpeechToTextPrompt.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.SpeechToTextPrompt} msg The msg instance to transform. + * @param {!proto.TextChatCompletePrompt} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.SpeechToTextPrompt.toObject = function(includeInstance, msg) { +proto.TextChatCompletePrompt.toObject = function(includeInstance, msg) { var f, obj = { - prompt: (f = msg.getPrompt()) && proto.FilePrompt.toObject(includeInstance, f), + promptList: jspb.Message.toObjectList(msg.getPromptList(), + proto.TextPrompt.toObject, includeInstance), promptvariablesList: jspb.Message.toObjectList(msg.getPromptvariablesList(), proto.Variable.toObject, includeInstance) }; @@ -8511,23 +5906,23 @@ proto.SpeechToTextPrompt.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.SpeechToTextPrompt} + * @return {!proto.TextChatCompletePrompt} */ -proto.SpeechToTextPrompt.deserializeBinary = function(bytes) { +proto.TextChatCompletePrompt.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.SpeechToTextPrompt; - return proto.SpeechToTextPrompt.deserializeBinaryFromReader(msg, reader); + var msg = new proto.TextChatCompletePrompt; + return proto.TextChatCompletePrompt.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.SpeechToTextPrompt} msg The message object to deserialize into. + * @param {!proto.TextChatCompletePrompt} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.SpeechToTextPrompt} + * @return {!proto.TextChatCompletePrompt} */ -proto.SpeechToTextPrompt.deserializeBinaryFromReader = function(msg, reader) { +proto.TextChatCompletePrompt.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8535,9 +5930,9 @@ proto.SpeechToTextPrompt.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.FilePrompt; - reader.readMessage(value,proto.FilePrompt.deserializeBinaryFromReader); - msg.setPrompt(value); + var value = new proto.TextPrompt; + reader.readMessage(value,proto.TextPrompt.deserializeBinaryFromReader); + msg.addPrompt(value); break; case 2: var value = new proto.Variable; @@ -8557,9 +5952,9 @@ proto.SpeechToTextPrompt.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.SpeechToTextPrompt.prototype.serializeBinary = function() { +proto.TextChatCompletePrompt.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.SpeechToTextPrompt.serializeBinaryToWriter(this, writer); + proto.TextChatCompletePrompt.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8567,18 +5962,18 @@ proto.SpeechToTextPrompt.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.SpeechToTextPrompt} message + * @param {!proto.TextChatCompletePrompt} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.SpeechToTextPrompt.serializeBinaryToWriter = function(message, writer) { +proto.TextChatCompletePrompt.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPrompt(); - if (f != null) { - writer.writeMessage( + f = message.getPromptList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, f, - proto.FilePrompt.serializeBinaryToWriter + proto.TextPrompt.serializeBinaryToWriter ); } f = message.getPromptvariablesList(); @@ -8593,39 +5988,40 @@ proto.SpeechToTextPrompt.serializeBinaryToWriter = function(message, writer) { /** - * optional FilePrompt prompt = 1; - * @return {?proto.FilePrompt} + * repeated TextPrompt prompt = 1; + * @return {!Array} */ -proto.SpeechToTextPrompt.prototype.getPrompt = function() { - return /** @type{?proto.FilePrompt} */ ( - jspb.Message.getWrapperField(this, proto.FilePrompt, 1)); +proto.TextChatCompletePrompt.prototype.getPromptList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.TextPrompt, 1)); }; /** - * @param {?proto.FilePrompt|undefined} value - * @return {!proto.SpeechToTextPrompt} returns this + * @param {!Array} value + * @return {!proto.TextChatCompletePrompt} returns this */ -proto.SpeechToTextPrompt.prototype.setPrompt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.TextChatCompletePrompt.prototype.setPromptList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.SpeechToTextPrompt} returns this + * @param {!proto.TextPrompt=} opt_value + * @param {number=} opt_index + * @return {!proto.TextPrompt} */ -proto.SpeechToTextPrompt.prototype.clearPrompt = function() { - return this.setPrompt(undefined); +proto.TextChatCompletePrompt.prototype.addPrompt = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TextPrompt, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.TextChatCompletePrompt} returns this */ -proto.SpeechToTextPrompt.prototype.hasPrompt = function() { - return jspb.Message.getField(this, 1) != null; +proto.TextChatCompletePrompt.prototype.clearPromptList = function() { + return this.setPromptList([]); }; @@ -8633,7 +6029,7 @@ proto.SpeechToTextPrompt.prototype.hasPrompt = function() { * repeated Variable promptVariables = 2; * @return {!Array} */ -proto.SpeechToTextPrompt.prototype.getPromptvariablesList = function() { +proto.TextChatCompletePrompt.prototype.getPromptvariablesList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, proto.Variable, 2)); }; @@ -8641,9 +6037,9 @@ proto.SpeechToTextPrompt.prototype.getPromptvariablesList = function() { /** * @param {!Array} value - * @return {!proto.SpeechToTextPrompt} returns this + * @return {!proto.TextChatCompletePrompt} returns this */ -proto.SpeechToTextPrompt.prototype.setPromptvariablesList = function(value) { +proto.TextChatCompletePrompt.prototype.setPromptvariablesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -8653,16 +6049,16 @@ proto.SpeechToTextPrompt.prototype.setPromptvariablesList = function(value) { * @param {number=} opt_index * @return {!proto.Variable} */ -proto.SpeechToTextPrompt.prototype.addPromptvariables = function(opt_value, opt_index) { +proto.TextChatCompletePrompt.prototype.addPromptvariables = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Variable, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.SpeechToTextPrompt} returns this + * @return {!proto.TextChatCompletePrompt} returns this */ -proto.SpeechToTextPrompt.prototype.clearPromptvariablesList = function() { +proto.TextChatCompletePrompt.prototype.clearPromptvariablesList = function() { return this.setPromptvariablesList([]); }; @@ -10070,7 +7466,7 @@ proto.AssistantConversationContext.prototype.hasQuery = function() { * @private {!Array} * @const */ -proto.AssistantConversation.repeatedFields_ = [13,28,30,32]; +proto.AssistantConversation.repeatedFields_ = [13,28,30,32,31,33]; @@ -10125,6 +7521,10 @@ proto.AssistantConversation.toObject = function(includeInstance, msg) { metricsList: jspb.Message.toObjectList(msg.getMetricsList(), proto.Metric.toObject, includeInstance), metadataList: jspb.Message.toObjectList(msg.getMetadataList(), + proto.Metadata.toObject, includeInstance), + argumentsList: jspb.Message.toObjectList(msg.getArgumentsList(), + proto.Argument.toObject, includeInstance), + optionsList: jspb.Message.toObjectList(msg.getOptionsList(), proto.Metadata.toObject, includeInstance) }; @@ -10245,6 +7645,16 @@ proto.AssistantConversation.deserializeBinaryFromReader = function(msg, reader) reader.readMessage(value,proto.Metadata.deserializeBinaryFromReader); msg.addMetadata(value); break; + case 31: + var value = new proto.Argument; + reader.readMessage(value,proto.Argument.deserializeBinaryFromReader); + msg.addArguments(value); + break; + case 33: + var value = new proto.Metadata; + reader.readMessage(value,proto.Metadata.deserializeBinaryFromReader); + msg.addOptions(value); + break; default: reader.skipField(); break; @@ -10414,6 +7824,22 @@ proto.AssistantConversation.serializeBinaryToWriter = function(message, writer) proto.Metadata.serializeBinaryToWriter ); } + f = message.getArgumentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 31, + f, + proto.Argument.serializeBinaryToWriter + ); + } + f = message.getOptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 33, + f, + proto.Metadata.serializeBinaryToWriter + ); + } }; @@ -10896,6 +8322,82 @@ proto.AssistantConversation.prototype.clearMetadataList = function() { }; +/** + * repeated Argument arguments = 31; + * @return {!Array} + */ +proto.AssistantConversation.prototype.getArgumentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.Argument, 31)); +}; + + +/** + * @param {!Array} value + * @return {!proto.AssistantConversation} returns this +*/ +proto.AssistantConversation.prototype.setArgumentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 31, value); +}; + + +/** + * @param {!proto.Argument=} opt_value + * @param {number=} opt_index + * @return {!proto.Argument} + */ +proto.AssistantConversation.prototype.addArguments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.Argument, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.AssistantConversation} returns this + */ +proto.AssistantConversation.prototype.clearArgumentsList = function() { + return this.setArgumentsList([]); +}; + + +/** + * repeated Metadata options = 33; + * @return {!Array} + */ +proto.AssistantConversation.prototype.getOptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.Metadata, 33)); +}; + + +/** + * @param {!Array} value + * @return {!proto.AssistantConversation} returns this +*/ +proto.AssistantConversation.prototype.setOptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 33, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.AssistantConversation.prototype.addOptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 33, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.AssistantConversation} returns this + */ +proto.AssistantConversation.prototype.clearOptionsList = function() { + return this.setOptionsList([]); +}; + + /** * List of repeated fields within this message type. @@ -12168,16 +9670,10 @@ proto.GetAllConversationMessageResponse.prototype.hasPaginated = function() { */ proto.Source = { WEB_PLUGIN: 0, - RAPIDA_APP: 1, - PYTHON_SDK: 2, - NODE_SDK: 3, - GO_SDK: 4, - TYPESCRIPT_SDK: 5, - JAVA_SDK: 6, - PHP_SDK: 7, - RUST_SDK: 8, - REACT_SDK: 9, - TWILIO_CALL: 10 + DEBUGGER: 1, + SDK: 2, + PHONE_CALL: 3, + WHATSAPP: 4 }; goog.object.extend(exports, proto); diff --git a/src/clients/protos/endpoint-api_grpc_pb.d.ts b/src/clients/protos/endpoint-api_grpc_pb.d.ts index f8cf605..7eb2caf 100644 --- a/src/clients/protos/endpoint-api_grpc_pb.d.ts +++ b/src/clients/protos/endpoint-api_grpc_pb.d.ts @@ -10,7 +10,6 @@ import * as grpc from "grpc"; interface IEndpointServiceService extends grpc.ServiceDefinition { getEndpoint: grpc.MethodDefinition; getAllEndpoint: grpc.MethodDefinition; - getAllDeployment: grpc.MethodDefinition; getAllEndpointProviderModel: grpc.MethodDefinition; updateEndpointVersion: grpc.MethodDefinition; createEndpoint: grpc.MethodDefinition; @@ -20,6 +19,8 @@ interface IEndpointServiceService extends grpc.ServiceDefinition; forkEndpoint: grpc.MethodDefinition; updateEndpointDetail: grpc.MethodDefinition; + getAllEndpointLog: grpc.MethodDefinition; + getEndpointLog: grpc.MethodDefinition; } export const EndpointServiceService: IEndpointServiceService; @@ -27,7 +28,6 @@ export const EndpointServiceService: IEndpointServiceService; export interface IEndpointServiceServer extends grpc.UntypedServiceImplementation { getEndpoint: grpc.handleUnaryCall; getAllEndpoint: grpc.handleUnaryCall; - getAllDeployment: grpc.handleUnaryCall; getAllEndpointProviderModel: grpc.handleUnaryCall; updateEndpointVersion: grpc.handleUnaryCall; createEndpoint: grpc.handleUnaryCall; @@ -37,6 +37,8 @@ export interface IEndpointServiceServer extends grpc.UntypedServiceImplementatio createEndpointTag: grpc.handleUnaryCall; forkEndpoint: grpc.handleUnaryCall; updateEndpointDetail: grpc.handleUnaryCall; + getAllEndpointLog: grpc.handleUnaryCall; + getEndpointLog: grpc.handleUnaryCall; } export class EndpointServiceClient extends grpc.Client { @@ -47,9 +49,6 @@ export class EndpointServiceClient extends grpc.Client { getAllEndpoint(argument: endpoint_api_pb.GetAllEndpointRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllEndpoint(argument: endpoint_api_pb.GetAllEndpointRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllEndpoint(argument: endpoint_api_pb.GetAllEndpointRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllDeployment(argument: endpoint_api_pb.GetAllDeploymentRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllDeployment(argument: endpoint_api_pb.GetAllDeploymentRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllDeployment(argument: endpoint_api_pb.GetAllDeploymentRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllEndpointProviderModel(argument: endpoint_api_pb.GetAllEndpointProviderModelRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllEndpointProviderModel(argument: endpoint_api_pb.GetAllEndpointProviderModelRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllEndpointProviderModel(argument: endpoint_api_pb.GetAllEndpointProviderModelRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -77,4 +76,10 @@ export class EndpointServiceClient extends grpc.Client { updateEndpointDetail(argument: endpoint_api_pb.UpdateEndpointDetailRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; updateEndpointDetail(argument: endpoint_api_pb.UpdateEndpointDetailRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; updateEndpointDetail(argument: endpoint_api_pb.UpdateEndpointDetailRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllEndpointLog(argument: endpoint_api_pb.GetAllEndpointLogRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllEndpointLog(argument: endpoint_api_pb.GetAllEndpointLogRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllEndpointLog(argument: endpoint_api_pb.GetAllEndpointLogRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getEndpointLog(argument: endpoint_api_pb.GetEndpointLogRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getEndpointLog(argument: endpoint_api_pb.GetEndpointLogRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getEndpointLog(argument: endpoint_api_pb.GetEndpointLogRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } diff --git a/src/clients/protos/endpoint-api_grpc_pb.js b/src/clients/protos/endpoint-api_grpc_pb.js index 7abd9e8..fd0f462 100644 --- a/src/clients/protos/endpoint-api_grpc_pb.js +++ b/src/clients/protos/endpoint-api_grpc_pb.js @@ -4,7 +4,6 @@ var grpc = require('@grpc/grpc-js'); var endpoint$api_pb = require('./endpoint-api_pb.js'); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); var common_pb = require('./common_pb.js'); function serialize_BaseResponse(arg) { @@ -128,26 +127,26 @@ function deserialize_endpoint_api_ForkEndpointRequest(buffer_arg) { return endpoint$api_pb.ForkEndpointRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_endpoint_api_GetAllDeploymentRequest(arg) { - if (!(arg instanceof endpoint$api_pb.GetAllDeploymentRequest)) { - throw new Error('Expected argument of type endpoint_api.GetAllDeploymentRequest'); +function serialize_endpoint_api_GetAllEndpointLogRequest(arg) { + if (!(arg instanceof endpoint$api_pb.GetAllEndpointLogRequest)) { + throw new Error('Expected argument of type endpoint_api.GetAllEndpointLogRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_endpoint_api_GetAllDeploymentRequest(buffer_arg) { - return endpoint$api_pb.GetAllDeploymentRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_endpoint_api_GetAllEndpointLogRequest(buffer_arg) { + return endpoint$api_pb.GetAllEndpointLogRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_endpoint_api_GetAllDeploymentResponse(arg) { - if (!(arg instanceof endpoint$api_pb.GetAllDeploymentResponse)) { - throw new Error('Expected argument of type endpoint_api.GetAllDeploymentResponse'); +function serialize_endpoint_api_GetAllEndpointLogResponse(arg) { + if (!(arg instanceof endpoint$api_pb.GetAllEndpointLogResponse)) { + throw new Error('Expected argument of type endpoint_api.GetAllEndpointLogResponse'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_endpoint_api_GetAllDeploymentResponse(buffer_arg) { - return endpoint$api_pb.GetAllDeploymentResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_endpoint_api_GetAllEndpointLogResponse(buffer_arg) { + return endpoint$api_pb.GetAllEndpointLogResponse.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_endpoint_api_GetAllEndpointProviderModelRequest(arg) { @@ -194,6 +193,28 @@ function deserialize_endpoint_api_GetAllEndpointResponse(buffer_arg) { return endpoint$api_pb.GetAllEndpointResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_endpoint_api_GetEndpointLogRequest(arg) { + if (!(arg instanceof endpoint$api_pb.GetEndpointLogRequest)) { + throw new Error('Expected argument of type endpoint_api.GetEndpointLogRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_endpoint_api_GetEndpointLogRequest(buffer_arg) { + return endpoint$api_pb.GetEndpointLogRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_endpoint_api_GetEndpointLogResponse(arg) { + if (!(arg instanceof endpoint$api_pb.GetEndpointLogResponse)) { + throw new Error('Expected argument of type endpoint_api.GetEndpointLogResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_endpoint_api_GetEndpointLogResponse(buffer_arg) { + return endpoint$api_pb.GetEndpointLogResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_endpoint_api_GetEndpointRequest(arg) { if (!(arg instanceof endpoint$api_pb.GetEndpointRequest)) { throw new Error('Expected argument of type endpoint_api.GetEndpointRequest'); @@ -273,19 +294,6 @@ var EndpointServiceService = exports.EndpointServiceService = { responseSerialize: serialize_endpoint_api_GetAllEndpointResponse, responseDeserialize: deserialize_endpoint_api_GetAllEndpointResponse, }, - // -// get all public deployments -getAllDeployment: { - path: '/endpoint_api.EndpointService/GetAllDeployment', - requestStream: false, - responseStream: false, - requestType: endpoint$api_pb.GetAllDeploymentRequest, - responseType: endpoint$api_pb.GetAllDeploymentResponse, - requestSerialize: serialize_endpoint_api_GetAllDeploymentRequest, - requestDeserialize: deserialize_endpoint_api_GetAllDeploymentRequest, - responseSerialize: serialize_endpoint_api_GetAllDeploymentResponse, - responseDeserialize: deserialize_endpoint_api_GetAllDeploymentResponse, - }, getAllEndpointProviderModel: { path: '/endpoint_api.EndpointService/GetAllEndpointProviderModel', requestStream: false, @@ -387,6 +395,28 @@ createEndpointCacheConfiguration: { responseSerialize: serialize_endpoint_api_GetEndpointResponse, responseDeserialize: deserialize_endpoint_api_GetEndpointResponse, }, + getAllEndpointLog: { + path: '/endpoint_api.EndpointService/GetAllEndpointLog', + requestStream: false, + responseStream: false, + requestType: endpoint$api_pb.GetAllEndpointLogRequest, + responseType: endpoint$api_pb.GetAllEndpointLogResponse, + requestSerialize: serialize_endpoint_api_GetAllEndpointLogRequest, + requestDeserialize: deserialize_endpoint_api_GetAllEndpointLogRequest, + responseSerialize: serialize_endpoint_api_GetAllEndpointLogResponse, + responseDeserialize: deserialize_endpoint_api_GetAllEndpointLogResponse, + }, + getEndpointLog: { + path: '/endpoint_api.EndpointService/GetEndpointLog', + requestStream: false, + responseStream: false, + requestType: endpoint$api_pb.GetEndpointLogRequest, + responseType: endpoint$api_pb.GetEndpointLogResponse, + requestSerialize: serialize_endpoint_api_GetEndpointLogRequest, + requestDeserialize: deserialize_endpoint_api_GetEndpointLogRequest, + responseSerialize: serialize_endpoint_api_GetEndpointLogResponse, + responseDeserialize: deserialize_endpoint_api_GetEndpointLogResponse, + }, }; exports.EndpointServiceClient = grpc.makeGenericClientConstructor(EndpointServiceService, 'EndpointService'); diff --git a/src/clients/protos/endpoint-api_pb.d.ts b/src/clients/protos/endpoint-api_pb.d.ts index e52d428..f959936 100644 --- a/src/clients/protos/endpoint-api_pb.d.ts +++ b/src/clients/protos/endpoint-api_pb.d.ts @@ -3,56 +3,189 @@ import * as jspb from "google-protobuf"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; import * as common_pb from "./common_pb"; -export class EndpointProviderModel extends jspb.Message { - getId(): string; - setId(value: string): void; +export class EndpointAttribute extends jspb.Message { + getSource(): string; + setSource(value: string): void; + + getSourceidentifier(): string; + setSourceidentifier(value: string): void; + + getVisibility(): string; + setVisibility(value: string): void; + + getLanguage(): string; + setLanguage(value: string): void; - getModeltype(): string; - setModeltype(value: string): void; + getName(): string; + setName(value: string): void; - getModelmodetype(): string; - setModelmodetype(value: string): void; + getDescription(): string; + setDescription(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EndpointAttribute.AsObject; + static toObject(includeInstance: boolean, msg: EndpointAttribute): EndpointAttribute.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EndpointAttribute, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EndpointAttribute; + static deserializeBinaryFromReader(message: EndpointAttribute, reader: jspb.BinaryReader): EndpointAttribute; +} + +export namespace EndpointAttribute { + export type AsObject = { + source: string, + sourceidentifier: string, + visibility: string, + language: string, + name: string, + description: string, + } +} + +export class EndpointProviderModelAttribute extends jspb.Message { + getDescription(): string; + setDescription(value: string): void; hasChatcompleteprompt(): boolean; clearChatcompleteprompt(): void; getChatcompleteprompt(): common_pb.TextChatCompletePrompt | undefined; setChatcompleteprompt(value?: common_pb.TextChatCompletePrompt): void; - hasCompleteprompt(): boolean; - clearCompleteprompt(): void; - getCompleteprompt(): common_pb.TextCompletePrompt | undefined; - setCompleteprompt(value?: common_pb.TextCompletePrompt): void; + getModelproviderid(): string; + setModelproviderid(value: string): void; + + getModelprovidername(): string; + setModelprovidername(value: string): void; + + clearEndpointmodeloptionsList(): void; + getEndpointmodeloptionsList(): Array; + setEndpointmodeloptionsList(value: Array): void; + addEndpointmodeloptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EndpointProviderModelAttribute.AsObject; + static toObject(includeInstance: boolean, msg: EndpointProviderModelAttribute): EndpointProviderModelAttribute.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EndpointProviderModelAttribute, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EndpointProviderModelAttribute; + static deserializeBinaryFromReader(message: EndpointProviderModelAttribute, reader: jspb.BinaryReader): EndpointProviderModelAttribute; +} + +export namespace EndpointProviderModelAttribute { + export type AsObject = { + description: string, + chatcompleteprompt?: common_pb.TextChatCompletePrompt.AsObject, + modelproviderid: string, + modelprovidername: string, + endpointmodeloptionsList: Array, + } +} - hasTexttoimageprompt(): boolean; - clearTexttoimageprompt(): void; - getTexttoimageprompt(): common_pb.TextToImagePrompt | undefined; - setTexttoimageprompt(value?: common_pb.TextToImagePrompt): void; +export class CreateEndpointRequest extends jspb.Message { + hasEndpointprovidermodelattribute(): boolean; + clearEndpointprovidermodelattribute(): void; + getEndpointprovidermodelattribute(): EndpointProviderModelAttribute | undefined; + setEndpointprovidermodelattribute(value?: EndpointProviderModelAttribute): void; - hasTexttospeechprompt(): boolean; - clearTexttospeechprompt(): void; - getTexttospeechprompt(): common_pb.TextToSpeechPrompt | undefined; - setTexttospeechprompt(value?: common_pb.TextToSpeechPrompt): void; + hasEndpointattribute(): boolean; + clearEndpointattribute(): void; + getEndpointattribute(): EndpointAttribute | undefined; + setEndpointattribute(value?: EndpointAttribute): void; - hasSpeechtotextprompt(): boolean; - clearSpeechtotextprompt(): void; - getSpeechtotextprompt(): common_pb.SpeechToTextPrompt | undefined; - setSpeechtotextprompt(value?: common_pb.SpeechToTextPrompt): void; + hasRetryconfiguration(): boolean; + clearRetryconfiguration(): void; + getRetryconfiguration(): EndpointRetryConfiguration | undefined; + setRetryconfiguration(value?: EndpointRetryConfiguration): void; - getProvidermodelid(): string; - setProvidermodelid(value: string): void; + hasCacheconfiguration(): boolean; + clearCacheconfiguration(): void; + getCacheconfiguration(): EndpointCacheConfiguration | undefined; + setCacheconfiguration(value?: EndpointCacheConfiguration): void; - hasProvidermodel(): boolean; - clearProvidermodel(): void; - getProvidermodel(): common_pb.ProviderModel | undefined; - setProvidermodel(value?: common_pb.ProviderModel): void; + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): void; + addTags(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateEndpointRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateEndpointRequest): CreateEndpointRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateEndpointRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateEndpointRequest; + static deserializeBinaryFromReader(message: CreateEndpointRequest, reader: jspb.BinaryReader): CreateEndpointRequest; +} - clearEndpointprovidermodelparametersList(): void; - getEndpointprovidermodelparametersList(): Array; - setEndpointprovidermodelparametersList(value: Array): void; - addEndpointprovidermodelparameters(value?: common_pb.ProviderModelParameter, index?: number): common_pb.ProviderModelParameter; +export namespace CreateEndpointRequest { + export type AsObject = { + endpointprovidermodelattribute?: EndpointProviderModelAttribute.AsObject, + endpointattribute?: EndpointAttribute.AsObject, + retryconfiguration?: EndpointRetryConfiguration.AsObject, + cacheconfiguration?: EndpointCacheConfiguration.AsObject, + tagsList: Array, + } +} + +export class CreateEndpointResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): Endpoint | undefined; + setData(value?: Endpoint): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateEndpointResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateEndpointResponse): CreateEndpointResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateEndpointResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateEndpointResponse; + static deserializeBinaryFromReader(message: CreateEndpointResponse, reader: jspb.BinaryReader): CreateEndpointResponse; +} + +export namespace CreateEndpointResponse { + export type AsObject = { + code: number, + success: boolean, + data?: Endpoint.AsObject, + error?: common_pb.Error.AsObject, + } +} + +export class EndpointProviderModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasChatcompleteprompt(): boolean; + clearChatcompleteprompt(): void; + getChatcompleteprompt(): common_pb.TextChatCompletePrompt | undefined; + setChatcompleteprompt(value?: common_pb.TextChatCompletePrompt): void; + + getModelproviderid(): string; + setModelproviderid(value: string): void; + + getModelprovidername(): string; + setModelprovidername(value: string): void; + + clearEndpointmodeloptionsList(): void; + getEndpointmodeloptionsList(): Array; + setEndpointmodeloptionsList(value: Array): void; + addEndpointmodeloptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; getStatus(): string; setStatus(value: string): void; @@ -102,16 +235,10 @@ export class EndpointProviderModel extends jspb.Message { export namespace EndpointProviderModel { export type AsObject = { id: string, - modeltype: string, - modelmodetype: string, chatcompleteprompt?: common_pb.TextChatCompletePrompt.AsObject, - completeprompt?: common_pb.TextCompletePrompt.AsObject, - texttoimageprompt?: common_pb.TextToImagePrompt.AsObject, - texttospeechprompt?: common_pb.TextToSpeechPrompt.AsObject, - speechtotextprompt?: common_pb.SpeechToTextPrompt.AsObject, - providermodelid: string, - providermodel?: common_pb.ProviderModel.AsObject, - endpointprovidermodelparametersList: Array, + modelproviderid: string, + modelprovidername: string, + endpointmodeloptionsList: Array, status: string, createdby: string, createduser?: common_pb.User.AsObject, @@ -194,9 +321,6 @@ export class Endpoint extends jspb.Message { getSourceidentifier(): string; setSourceidentifier(value: string): void; - getType(): string; - setType(value: string): void; - getProjectid(): string; setProjectid(value: string): void; @@ -288,7 +412,6 @@ export namespace Endpoint { visibility: string, source: string, sourceidentifier: string, - type: string, projectid: string, organizationid: string, endpointprovidermodelid: string, @@ -310,204 +433,6 @@ export namespace Endpoint { } } -export class EndpointProviderModelAttribute extends jspb.Message { - getModeltype(): string; - setModeltype(value: string): void; - - getModelmodetype(): string; - setModelmodetype(value: string): void; - - hasChatcompleteprompt(): boolean; - clearChatcompleteprompt(): void; - getChatcompleteprompt(): common_pb.TextChatCompletePrompt | undefined; - setChatcompleteprompt(value?: common_pb.TextChatCompletePrompt): void; - - hasCompleteprompt(): boolean; - clearCompleteprompt(): void; - getCompleteprompt(): common_pb.TextCompletePrompt | undefined; - setCompleteprompt(value?: common_pb.TextCompletePrompt): void; - - getProvidermodelid(): string; - setProvidermodelid(value: string): void; - - getProviderid(): string; - setProviderid(value: string): void; - - clearEndpointprovidermodelparametersList(): void; - getEndpointprovidermodelparametersList(): Array; - setEndpointprovidermodelparametersList(value: Array): void; - addEndpointprovidermodelparameters(value?: common_pb.ProviderModelParameter, index?: number): common_pb.ProviderModelParameter; - - hasTexttoimageprompt(): boolean; - clearTexttoimageprompt(): void; - getTexttoimageprompt(): common_pb.TextToImagePrompt | undefined; - setTexttoimageprompt(value?: common_pb.TextToImagePrompt): void; - - hasTexttospeechprompt(): boolean; - clearTexttospeechprompt(): void; - getTexttospeechprompt(): common_pb.TextToSpeechPrompt | undefined; - setTexttospeechprompt(value?: common_pb.TextToSpeechPrompt): void; - - hasSpeechtotextprompt(): boolean; - clearSpeechtotextprompt(): void; - getSpeechtotextprompt(): common_pb.SpeechToTextPrompt | undefined; - setSpeechtotextprompt(value?: common_pb.SpeechToTextPrompt): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EndpointProviderModelAttribute.AsObject; - static toObject(includeInstance: boolean, msg: EndpointProviderModelAttribute): EndpointProviderModelAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EndpointProviderModelAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EndpointProviderModelAttribute; - static deserializeBinaryFromReader(message: EndpointProviderModelAttribute, reader: jspb.BinaryReader): EndpointProviderModelAttribute; -} - -export namespace EndpointProviderModelAttribute { - export type AsObject = { - modeltype: string, - modelmodetype: string, - chatcompleteprompt?: common_pb.TextChatCompletePrompt.AsObject, - completeprompt?: common_pb.TextCompletePrompt.AsObject, - providermodelid: string, - providerid: string, - endpointprovidermodelparametersList: Array, - texttoimageprompt?: common_pb.TextToImagePrompt.AsObject, - texttospeechprompt?: common_pb.TextToSpeechPrompt.AsObject, - speechtotextprompt?: common_pb.SpeechToTextPrompt.AsObject, - description: string, - } -} - -export class EndpointAttribute extends jspb.Message { - getSource(): string; - setSource(value: string): void; - - getSourceidentifier(): string; - setSourceidentifier(value: string): void; - - getType(): string; - setType(value: string): void; - - getVisibility(): string; - setVisibility(value: string): void; - - getLanguage(): string; - setLanguage(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EndpointAttribute.AsObject; - static toObject(includeInstance: boolean, msg: EndpointAttribute): EndpointAttribute.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EndpointAttribute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EndpointAttribute; - static deserializeBinaryFromReader(message: EndpointAttribute, reader: jspb.BinaryReader): EndpointAttribute; -} - -export namespace EndpointAttribute { - export type AsObject = { - source: string, - sourceidentifier: string, - type: string, - visibility: string, - language: string, - name: string, - description: string, - } -} - -export class CreateEndpointRequest extends jspb.Message { - hasEndpointprovidermodelattribute(): boolean; - clearEndpointprovidermodelattribute(): void; - getEndpointprovidermodelattribute(): EndpointProviderModelAttribute | undefined; - setEndpointprovidermodelattribute(value?: EndpointProviderModelAttribute): void; - - hasEndpointattribute(): boolean; - clearEndpointattribute(): void; - getEndpointattribute(): EndpointAttribute | undefined; - setEndpointattribute(value?: EndpointAttribute): void; - - hasRetryconfiguration(): boolean; - clearRetryconfiguration(): void; - getRetryconfiguration(): EndpointRetryConfiguration | undefined; - setRetryconfiguration(value?: EndpointRetryConfiguration): void; - - hasCacheconfiguration(): boolean; - clearCacheconfiguration(): void; - getCacheconfiguration(): EndpointCacheConfiguration | undefined; - setCacheconfiguration(value?: EndpointCacheConfiguration): void; - - clearTagsList(): void; - getTagsList(): Array; - setTagsList(value: Array): void; - addTags(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateEndpointRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateEndpointRequest): CreateEndpointRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateEndpointRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateEndpointRequest; - static deserializeBinaryFromReader(message: CreateEndpointRequest, reader: jspb.BinaryReader): CreateEndpointRequest; -} - -export namespace CreateEndpointRequest { - export type AsObject = { - endpointprovidermodelattribute?: EndpointProviderModelAttribute.AsObject, - endpointattribute?: EndpointAttribute.AsObject, - retryconfiguration?: EndpointRetryConfiguration.AsObject, - cacheconfiguration?: EndpointCacheConfiguration.AsObject, - tagsList: Array, - } -} - -export class CreateEndpointResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): Endpoint | undefined; - setData(value?: Endpoint): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateEndpointResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateEndpointResponse): CreateEndpointResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateEndpointResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateEndpointResponse; - static deserializeBinaryFromReader(message: CreateEndpointResponse, reader: jspb.BinaryReader): CreateEndpointResponse; -} - -export namespace CreateEndpointResponse { - export type AsObject = { - code: number, - success: boolean, - data?: Endpoint.AsObject, - error?: common_pb.Error.AsObject, - } -} - export class CreateEndpointProviderModelRequest extends jspb.Message { getEndpointid(): string; setEndpointid(value: string): void; @@ -1092,46 +1017,46 @@ export namespace ForkEndpointRequest { } } -export class GetAllDeploymentRequest extends jspb.Message { - hasPaginate(): boolean; - clearPaginate(): void; - getPaginate(): common_pb.Paginate | undefined; - setPaginate(value?: common_pb.Paginate): void; +export class UpdateEndpointDetailRequest extends jspb.Message { + getEndpointid(): string; + setEndpointid(value: string): void; - clearCriteriasList(): void; - getCriteriasList(): Array; - setCriteriasList(value: Array): void; - addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllDeploymentRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllDeploymentRequest): GetAllDeploymentRequest.AsObject; + toObject(includeInstance?: boolean): UpdateEndpointDetailRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateEndpointDetailRequest): UpdateEndpointDetailRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllDeploymentRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllDeploymentRequest; - static deserializeBinaryFromReader(message: GetAllDeploymentRequest, reader: jspb.BinaryReader): GetAllDeploymentRequest; + static serializeBinaryToWriter(message: UpdateEndpointDetailRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateEndpointDetailRequest; + static deserializeBinaryFromReader(message: UpdateEndpointDetailRequest, reader: jspb.BinaryReader): UpdateEndpointDetailRequest; } -export namespace GetAllDeploymentRequest { +export namespace UpdateEndpointDetailRequest { export type AsObject = { - paginate?: common_pb.Paginate.AsObject, - criteriasList: Array, + endpointid: string, + name: string, + description: string, } } -export class SearchableDeployment extends jspb.Message { +export class EndpointLog extends jspb.Message { getId(): string; setId(value: string): void; - getStatus(): string; - setStatus(value: string): void; + getEndpointid(): string; + setEndpointid(value: string): void; - getVisibility(): string; - setVisibility(value: string): void; + getSource(): string; + setSource(value: string): void; - getType(): string; - setType(value: string): void; + getStatus(): string; + setStatus(value: string): void; getProjectid(): string; setProjectid(value: string): void; @@ -1139,24 +1064,11 @@ export class SearchableDeployment extends jspb.Message { getOrganizationid(): string; setOrganizationid(value: string): void; - clearTagList(): void; - getTagList(): Array; - setTagList(value: Array): void; - addTag(value: string, index?: number): string; - - getLanguage(): string; - setLanguage(value: string): void; - - hasOrganization(): boolean; - clearOrganization(): void; - getOrganization(): common_pb.Organization | undefined; - setOrganization(value?: common_pb.Organization): void; - - getName(): string; - setName(value: string): void; + getEndpointprovidermodelid(): string; + setEndpointprovidermodelid(value: string): void; - getDescription(): string; - setDescription(value: string): void; + getTimetaken(): string; + setTimetaken(value: string): void; hasCreateddate(): boolean; clearCreateddate(): void; @@ -1168,55 +1080,88 @@ export class SearchableDeployment extends jspb.Message { getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; - getProvidermodelid(): string; - setProvidermodelid(value: string): void; + clearMetricsList(): void; + getMetricsList(): Array; + setMetricsList(value: Array): void; + addMetrics(value?: common_pb.Metric, index?: number): common_pb.Metric; - getProviderid(): string; - setProviderid(value: string): void; + clearMetadataList(): void; + getMetadataList(): Array; + setMetadataList(value: Array): void; + addMetadata(value?: common_pb.Metadata, index?: number): common_pb.Metadata; - hasAppappearance(): boolean; - clearAppappearance(): void; - getAppappearance(): google_protobuf_struct_pb.Struct | undefined; - setAppappearance(value?: google_protobuf_struct_pb.Struct): void; + clearArgumentsList(): void; + getArgumentsList(): Array; + setArgumentsList(value: Array): void; + addArguments(value?: common_pb.Argument, index?: number): common_pb.Argument; - hasWebappearance(): boolean; - clearWebappearance(): void; - getWebappearance(): google_protobuf_struct_pb.Struct | undefined; - setWebappearance(value?: google_protobuf_struct_pb.Struct): void; + clearOptionsList(): void; + getOptionsList(): Array; + setOptionsList(value: Array): void; + addOptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SearchableDeployment.AsObject; - static toObject(includeInstance: boolean, msg: SearchableDeployment): SearchableDeployment.AsObject; + toObject(includeInstance?: boolean): EndpointLog.AsObject; + static toObject(includeInstance: boolean, msg: EndpointLog): EndpointLog.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SearchableDeployment, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SearchableDeployment; - static deserializeBinaryFromReader(message: SearchableDeployment, reader: jspb.BinaryReader): SearchableDeployment; + static serializeBinaryToWriter(message: EndpointLog, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EndpointLog; + static deserializeBinaryFromReader(message: EndpointLog, reader: jspb.BinaryReader): EndpointLog; } -export namespace SearchableDeployment { +export namespace EndpointLog { export type AsObject = { id: string, + endpointid: string, + source: string, status: string, - visibility: string, - type: string, projectid: string, organizationid: string, - tagList: Array, - language: string, - organization?: common_pb.Organization.AsObject, - name: string, - description: string, + endpointprovidermodelid: string, + timetaken: string, createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - providermodelid: string, - providerid: string, - appappearance?: google_protobuf_struct_pb.Struct.AsObject, - webappearance?: google_protobuf_struct_pb.Struct.AsObject, + metricsList: Array, + metadataList: Array, + argumentsList: Array, + optionsList: Array, } } -export class GetAllDeploymentResponse extends jspb.Message { +export class GetAllEndpointLogRequest extends jspb.Message { + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + getEndpointid(): string; + setEndpointid(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllEndpointLogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllEndpointLogRequest): GetAllEndpointLogRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllEndpointLogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllEndpointLogRequest; + static deserializeBinaryFromReader(message: GetAllEndpointLogRequest, reader: jspb.BinaryReader): GetAllEndpointLogRequest; +} + +export namespace GetAllEndpointLogRequest { + export type AsObject = { + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + endpointid: string, + } +} + +export class GetAllEndpointLogResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -1224,9 +1169,9 @@ export class GetAllDeploymentResponse extends jspb.Message { setSuccess(value: boolean): void; clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: SearchableDeployment, index?: number): SearchableDeployment; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: EndpointLog, index?: number): EndpointLog; hasError(): boolean; clearError(): void; @@ -1239,50 +1184,82 @@ export class GetAllDeploymentResponse extends jspb.Message { setPaginated(value?: common_pb.Paginated): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllDeploymentResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllDeploymentResponse): GetAllDeploymentResponse.AsObject; + toObject(includeInstance?: boolean): GetAllEndpointLogResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllEndpointLogResponse): GetAllEndpointLogResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllDeploymentResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllDeploymentResponse; - static deserializeBinaryFromReader(message: GetAllDeploymentResponse, reader: jspb.BinaryReader): GetAllDeploymentResponse; + static serializeBinaryToWriter(message: GetAllEndpointLogResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllEndpointLogResponse; + static deserializeBinaryFromReader(message: GetAllEndpointLogResponse, reader: jspb.BinaryReader): GetAllEndpointLogResponse; } -export namespace GetAllDeploymentResponse { +export namespace GetAllEndpointLogResponse { export type AsObject = { code: number, success: boolean, - dataList: Array, + dataList: Array, error?: common_pb.Error.AsObject, paginated?: common_pb.Paginated.AsObject, } } -export class UpdateEndpointDetailRequest extends jspb.Message { +export class GetEndpointLogRequest extends jspb.Message { getEndpointid(): string; setEndpointid(value: string): void; - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; + getId(): string; + setId(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateEndpointDetailRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateEndpointDetailRequest): UpdateEndpointDetailRequest.AsObject; + toObject(includeInstance?: boolean): GetEndpointLogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetEndpointLogRequest): GetEndpointLogRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateEndpointDetailRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateEndpointDetailRequest; - static deserializeBinaryFromReader(message: UpdateEndpointDetailRequest, reader: jspb.BinaryReader): UpdateEndpointDetailRequest; + static serializeBinaryToWriter(message: GetEndpointLogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetEndpointLogRequest; + static deserializeBinaryFromReader(message: GetEndpointLogRequest, reader: jspb.BinaryReader): GetEndpointLogRequest; } -export namespace UpdateEndpointDetailRequest { +export namespace GetEndpointLogRequest { export type AsObject = { endpointid: string, - name: string, - description: string, + id: string, + } +} + +export class GetEndpointLogResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + hasData(): boolean; + clearData(): void; + getData(): EndpointLog | undefined; + setData(value?: EndpointLog): void; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetEndpointLogResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetEndpointLogResponse): GetEndpointLogResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetEndpointLogResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetEndpointLogResponse; + static deserializeBinaryFromReader(message: GetEndpointLogResponse, reader: jspb.BinaryReader): GetEndpointLogResponse; +} + +export namespace GetEndpointLogResponse { + export type AsObject = { + code: number, + success: boolean, + data?: EndpointLog.AsObject, + error?: common_pb.Error.AsObject, } } diff --git a/src/clients/protos/endpoint-api_pb.js b/src/clients/protos/endpoint-api_pb.js index 314c649..f0e928e 100644 --- a/src/clients/protos/endpoint-api_pb.js +++ b/src/clients/protos/endpoint-api_pb.js @@ -23,8 +23,6 @@ var global = (function() { var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); var common_pb = require('./common_pb.js'); goog.object.extend(proto, common_pb); goog.exportSymbol('proto.endpoint_api.AggregatedEndpointAnalytics', null, global); @@ -40,19 +38,21 @@ goog.exportSymbol('proto.endpoint_api.CreateEndpointTagRequest', null, global); goog.exportSymbol('proto.endpoint_api.Endpoint', null, global); goog.exportSymbol('proto.endpoint_api.EndpointAttribute', null, global); goog.exportSymbol('proto.endpoint_api.EndpointCacheConfiguration', null, global); +goog.exportSymbol('proto.endpoint_api.EndpointLog', null, global); goog.exportSymbol('proto.endpoint_api.EndpointProviderModel', null, global); goog.exportSymbol('proto.endpoint_api.EndpointProviderModelAttribute', null, global); goog.exportSymbol('proto.endpoint_api.EndpointRetryConfiguration', null, global); goog.exportSymbol('proto.endpoint_api.ForkEndpointRequest', null, global); -goog.exportSymbol('proto.endpoint_api.GetAllDeploymentRequest', null, global); -goog.exportSymbol('proto.endpoint_api.GetAllDeploymentResponse', null, global); +goog.exportSymbol('proto.endpoint_api.GetAllEndpointLogRequest', null, global); +goog.exportSymbol('proto.endpoint_api.GetAllEndpointLogResponse', null, global); goog.exportSymbol('proto.endpoint_api.GetAllEndpointProviderModelRequest', null, global); goog.exportSymbol('proto.endpoint_api.GetAllEndpointProviderModelResponse', null, global); goog.exportSymbol('proto.endpoint_api.GetAllEndpointRequest', null, global); goog.exportSymbol('proto.endpoint_api.GetAllEndpointResponse', null, global); +goog.exportSymbol('proto.endpoint_api.GetEndpointLogRequest', null, global); +goog.exportSymbol('proto.endpoint_api.GetEndpointLogResponse', null, global); goog.exportSymbol('proto.endpoint_api.GetEndpointRequest', null, global); goog.exportSymbol('proto.endpoint_api.GetEndpointResponse', null, global); -goog.exportSymbol('proto.endpoint_api.SearchableDeployment', null, global); goog.exportSymbol('proto.endpoint_api.UpdateEndpointDetailRequest', null, global); goog.exportSymbol('proto.endpoint_api.UpdateEndpointVersionRequest', null, global); goog.exportSymbol('proto.endpoint_api.UpdateEndpointVersionResponse', null, global); @@ -66,16 +66,16 @@ goog.exportSymbol('proto.endpoint_api.UpdateEndpointVersionResponse', null, glob * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.EndpointProviderModel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.EndpointProviderModel.repeatedFields_, null); +proto.endpoint_api.EndpointAttribute = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.endpoint_api.EndpointProviderModel, jspb.Message); +goog.inherits(proto.endpoint_api.EndpointAttribute, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.EndpointProviderModel.displayName = 'proto.endpoint_api.EndpointProviderModel'; + proto.endpoint_api.EndpointAttribute.displayName = 'proto.endpoint_api.EndpointAttribute'; } /** * Generated by JsPbCodeGenerator. @@ -87,16 +87,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.AggregatedEndpointAnalytics = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.endpoint_api.EndpointProviderModelAttribute = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.EndpointProviderModelAttribute.repeatedFields_, null); }; -goog.inherits(proto.endpoint_api.AggregatedEndpointAnalytics, jspb.Message); +goog.inherits(proto.endpoint_api.EndpointProviderModelAttribute, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.AggregatedEndpointAnalytics.displayName = 'proto.endpoint_api.AggregatedEndpointAnalytics'; + proto.endpoint_api.EndpointProviderModelAttribute.displayName = 'proto.endpoint_api.EndpointProviderModelAttribute'; } /** * Generated by JsPbCodeGenerator. @@ -108,16 +108,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.Endpoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.endpoint_api.CreateEndpointRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.CreateEndpointRequest.repeatedFields_, null); }; -goog.inherits(proto.endpoint_api.Endpoint, jspb.Message); +goog.inherits(proto.endpoint_api.CreateEndpointRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.Endpoint.displayName = 'proto.endpoint_api.Endpoint'; + proto.endpoint_api.CreateEndpointRequest.displayName = 'proto.endpoint_api.CreateEndpointRequest'; } /** * Generated by JsPbCodeGenerator. @@ -129,16 +129,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.EndpointProviderModelAttribute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.EndpointProviderModelAttribute.repeatedFields_, null); +proto.endpoint_api.CreateEndpointResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.endpoint_api.EndpointProviderModelAttribute, jspb.Message); +goog.inherits(proto.endpoint_api.CreateEndpointResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.EndpointProviderModelAttribute.displayName = 'proto.endpoint_api.EndpointProviderModelAttribute'; + proto.endpoint_api.CreateEndpointResponse.displayName = 'proto.endpoint_api.CreateEndpointResponse'; } /** * Generated by JsPbCodeGenerator. @@ -150,16 +150,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.EndpointAttribute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.endpoint_api.EndpointProviderModel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.EndpointProviderModel.repeatedFields_, null); }; -goog.inherits(proto.endpoint_api.EndpointAttribute, jspb.Message); +goog.inherits(proto.endpoint_api.EndpointProviderModel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.EndpointAttribute.displayName = 'proto.endpoint_api.EndpointAttribute'; + proto.endpoint_api.EndpointProviderModel.displayName = 'proto.endpoint_api.EndpointProviderModel'; } /** * Generated by JsPbCodeGenerator. @@ -171,16 +171,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.CreateEndpointRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.CreateEndpointRequest.repeatedFields_, null); +proto.endpoint_api.AggregatedEndpointAnalytics = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.endpoint_api.CreateEndpointRequest, jspb.Message); +goog.inherits(proto.endpoint_api.AggregatedEndpointAnalytics, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.CreateEndpointRequest.displayName = 'proto.endpoint_api.CreateEndpointRequest'; + proto.endpoint_api.AggregatedEndpointAnalytics.displayName = 'proto.endpoint_api.AggregatedEndpointAnalytics'; } /** * Generated by JsPbCodeGenerator. @@ -192,16 +192,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.CreateEndpointResponse = function(opt_data) { +proto.endpoint_api.Endpoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.endpoint_api.CreateEndpointResponse, jspb.Message); +goog.inherits(proto.endpoint_api.Endpoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.CreateEndpointResponse.displayName = 'proto.endpoint_api.CreateEndpointResponse'; + proto.endpoint_api.Endpoint.displayName = 'proto.endpoint_api.Endpoint'; } /** * Generated by JsPbCodeGenerator. @@ -591,16 +591,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.GetAllDeploymentRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.GetAllDeploymentRequest.repeatedFields_, null); +proto.endpoint_api.UpdateEndpointDetailRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.endpoint_api.GetAllDeploymentRequest, jspb.Message); +goog.inherits(proto.endpoint_api.UpdateEndpointDetailRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.GetAllDeploymentRequest.displayName = 'proto.endpoint_api.GetAllDeploymentRequest'; + proto.endpoint_api.UpdateEndpointDetailRequest.displayName = 'proto.endpoint_api.UpdateEndpointDetailRequest'; } /** * Generated by JsPbCodeGenerator. @@ -612,16 +612,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.SearchableDeployment = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.SearchableDeployment.repeatedFields_, null); +proto.endpoint_api.EndpointLog = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.EndpointLog.repeatedFields_, null); }; -goog.inherits(proto.endpoint_api.SearchableDeployment, jspb.Message); +goog.inherits(proto.endpoint_api.EndpointLog, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.SearchableDeployment.displayName = 'proto.endpoint_api.SearchableDeployment'; + proto.endpoint_api.EndpointLog.displayName = 'proto.endpoint_api.EndpointLog'; } /** * Generated by JsPbCodeGenerator. @@ -633,16 +633,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.GetAllDeploymentResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.GetAllDeploymentResponse.repeatedFields_, null); +proto.endpoint_api.GetAllEndpointLogRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.GetAllEndpointLogRequest.repeatedFields_, null); }; -goog.inherits(proto.endpoint_api.GetAllDeploymentResponse, jspb.Message); +goog.inherits(proto.endpoint_api.GetAllEndpointLogRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.GetAllDeploymentResponse.displayName = 'proto.endpoint_api.GetAllDeploymentResponse'; + proto.endpoint_api.GetAllEndpointLogRequest.displayName = 'proto.endpoint_api.GetAllEndpointLogRequest'; } /** * Generated by JsPbCodeGenerator. @@ -654,24 +654,59 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.endpoint_api.UpdateEndpointDetailRequest = function(opt_data) { +proto.endpoint_api.GetAllEndpointLogResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.GetAllEndpointLogResponse.repeatedFields_, null); +}; +goog.inherits(proto.endpoint_api.GetAllEndpointLogResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.endpoint_api.GetAllEndpointLogResponse.displayName = 'proto.endpoint_api.GetAllEndpointLogResponse'; +} +/** + * 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.endpoint_api.GetEndpointLogRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.endpoint_api.UpdateEndpointDetailRequest, jspb.Message); +goog.inherits(proto.endpoint_api.GetEndpointLogRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.endpoint_api.UpdateEndpointDetailRequest.displayName = 'proto.endpoint_api.UpdateEndpointDetailRequest'; + proto.endpoint_api.GetEndpointLogRequest.displayName = 'proto.endpoint_api.GetEndpointLogRequest'; } - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * 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.endpoint_api.EndpointProviderModel.repeatedFields_ = [10]; +proto.endpoint_api.GetEndpointLogResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.endpoint_api.GetEndpointLogResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.endpoint_api.GetEndpointLogResponse.displayName = 'proto.endpoint_api.GetEndpointLogResponse'; +} @@ -688,8 +723,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.EndpointProviderModel.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.EndpointProviderModel.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointAttribute.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.EndpointAttribute.toObject(opt_includeInstance, this); }; @@ -698,33 +733,18 @@ proto.endpoint_api.EndpointProviderModel.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.EndpointProviderModel} msg The msg instance to transform. + * @param {!proto.endpoint_api.EndpointAttribute} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModel.toObject = function(includeInstance, msg) { +proto.endpoint_api.EndpointAttribute.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - modeltype: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelmodetype: jspb.Message.getFieldWithDefault(msg, 3, ""), - chatcompleteprompt: (f = msg.getChatcompleteprompt()) && common_pb.TextChatCompletePrompt.toObject(includeInstance, f), - completeprompt: (f = msg.getCompleteprompt()) && common_pb.TextCompletePrompt.toObject(includeInstance, f), - texttoimageprompt: (f = msg.getTexttoimageprompt()) && common_pb.TextToImagePrompt.toObject(includeInstance, f), - texttospeechprompt: (f = msg.getTexttospeechprompt()) && common_pb.TextToSpeechPrompt.toObject(includeInstance, f), - speechtotextprompt: (f = msg.getSpeechtotextprompt()) && common_pb.SpeechToTextPrompt.toObject(includeInstance, f), - providermodelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - providermodel: (f = msg.getProvidermodel()) && common_pb.ProviderModel.toObject(includeInstance, f), - endpointprovidermodelparametersList: jspb.Message.toObjectList(msg.getEndpointprovidermodelparametersList(), - common_pb.ProviderModelParameter.toObject, includeInstance), - status: jspb.Message.getFieldWithDefault(msg, 12, ""), - createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), - createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), - updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), - updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), - createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - endpointid: jspb.Message.getFieldWithDefault(msg, 19, "0"), - description: jspb.Message.getFieldWithDefault(msg, 20, "") + source: jspb.Message.getFieldWithDefault(msg, 1, ""), + sourceidentifier: jspb.Message.getFieldWithDefault(msg, 2, "0"), + visibility: jspb.Message.getFieldWithDefault(msg, 4, ""), + language: jspb.Message.getFieldWithDefault(msg, 6, ""), + name: jspb.Message.getFieldWithDefault(msg, 7, ""), + description: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { @@ -738,23 +758,23 @@ proto.endpoint_api.EndpointProviderModel.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.EndpointProviderModel} + * @return {!proto.endpoint_api.EndpointAttribute} */ -proto.endpoint_api.EndpointProviderModel.deserializeBinary = function(bytes) { +proto.endpoint_api.EndpointAttribute.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.EndpointProviderModel; - return proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.EndpointAttribute; + return proto.endpoint_api.EndpointAttribute.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.EndpointProviderModel} msg The message object to deserialize into. + * @param {!proto.endpoint_api.EndpointAttribute} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.EndpointProviderModel} + * @return {!proto.endpoint_api.EndpointAttribute} */ -proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.EndpointAttribute.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -762,93 +782,26 @@ proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModeltype(value); + msg.setSource(value); break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelmodetype(value); + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setSourceidentifier(value); break; case 4: - var value = new common_pb.TextChatCompletePrompt; - reader.readMessage(value,common_pb.TextChatCompletePrompt.deserializeBinaryFromReader); - msg.setChatcompleteprompt(value); - break; - case 5: - var value = new common_pb.TextCompletePrompt; - reader.readMessage(value,common_pb.TextCompletePrompt.deserializeBinaryFromReader); - msg.setCompleteprompt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setVisibility(value); break; case 6: - var value = new common_pb.TextToImagePrompt; - reader.readMessage(value,common_pb.TextToImagePrompt.deserializeBinaryFromReader); - msg.setTexttoimageprompt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); break; case 7: - var value = new common_pb.TextToSpeechPrompt; - reader.readMessage(value,common_pb.TextToSpeechPrompt.deserializeBinaryFromReader); - msg.setTexttospeechprompt(value); - break; - case 31: - var value = new common_pb.SpeechToTextPrompt; - reader.readMessage(value,common_pb.SpeechToTextPrompt.deserializeBinaryFromReader); - msg.setSpeechtotextprompt(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProvidermodelid(value); - break; - case 9: - var value = new common_pb.ProviderModel; - reader.readMessage(value,common_pb.ProviderModel.deserializeBinaryFromReader); - msg.setProvidermodel(value); - break; - case 10: - var value = new common_pb.ProviderModelParameter; - reader.readMessage(value,common_pb.ProviderModelParameter.deserializeBinaryFromReader); - msg.addEndpointprovidermodelparameters(value); - break; - case 12: var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 13: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 14: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setCreateduser(value); - break; - case 15: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); - break; - case 16: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setUpdateduser(value); - break; - case 17: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreateddate(value); - break; - case 18: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdateddate(value); - break; - case 19: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); + msg.setName(value); break; - case 20: + case 8: var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; @@ -865,9 +818,9 @@ proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.EndpointProviderModel.prototype.serializeBinary = function() { +proto.endpoint_api.EndpointAttribute.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter(this, writer); + proto.endpoint_api.EndpointAttribute.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -875,160 +828,51 @@ proto.endpoint_api.EndpointProviderModel.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.EndpointProviderModel} message + * @param {!proto.endpoint_api.EndpointAttribute} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.EndpointAttribute.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getSource(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getModeltype(); - if (f.length > 0) { - writer.writeString( + f = message.getSourceidentifier(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 2, f ); } - f = message.getModelmodetype(); + f = message.getVisibility(); if (f.length > 0) { writer.writeString( - 3, - f - ); - } - f = message.getChatcompleteprompt(); - if (f != null) { - writer.writeMessage( 4, - f, - common_pb.TextChatCompletePrompt.serializeBinaryToWriter - ); - } - f = message.getCompleteprompt(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.TextCompletePrompt.serializeBinaryToWriter + f ); } - f = message.getTexttoimageprompt(); - if (f != null) { - writer.writeMessage( + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( 6, - f, - common_pb.TextToImagePrompt.serializeBinaryToWriter + f ); } - f = message.getTexttospeechprompt(); - if (f != null) { - writer.writeMessage( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 7, - f, - common_pb.TextToSpeechPrompt.serializeBinaryToWriter - ); - } - f = message.getSpeechtotextprompt(); - if (f != null) { - writer.writeMessage( - 31, - f, - common_pb.SpeechToTextPrompt.serializeBinaryToWriter - ); - } - f = message.getProvidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getProvidermodel(); - if (f != null) { - writer.writeMessage( - 9, - f, - common_pb.ProviderModel.serializeBinaryToWriter - ); - } - f = message.getEndpointprovidermodelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - common_pb.ProviderModelParameter.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 13, - f - ); - } - f = message.getCreateduser(); - if (f != null) { - writer.writeMessage( - 14, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 15, - f - ); - } - f = message.getUpdateduser(); - if (f != null) { - writer.writeMessage( - 16, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 17, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 18, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEndpointid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 19, - f + f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( - 20, + 8, f ); } @@ -1036,232 +880,328 @@ proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter = function(mess /** - * optional uint64 id = 1; + * optional string source = 1; * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.endpoint_api.EndpointAttribute.prototype.getSource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.EndpointAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.endpoint_api.EndpointAttribute.prototype.setSource = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string modelType = 2; + * optional uint64 sourceIdentifier = 2; * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.getModeltype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.endpoint_api.EndpointAttribute.prototype.getSourceidentifier = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.EndpointAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setModeltype = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.endpoint_api.EndpointAttribute.prototype.setSourceidentifier = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); }; /** - * optional string modelModeType = 3; + * optional string visibility = 4; * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.getModelmodetype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.endpoint_api.EndpointAttribute.prototype.getVisibility = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.EndpointAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setModelmodetype = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.endpoint_api.EndpointAttribute.prototype.setVisibility = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional TextChatCompletePrompt chatCompletePrompt = 4; - * @return {?proto.TextChatCompletePrompt} + * optional string language = 6; + * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.getChatcompleteprompt = function() { - return /** @type{?proto.TextChatCompletePrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextChatCompletePrompt, 4)); +proto.endpoint_api.EndpointAttribute.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {?proto.TextChatCompletePrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this -*/ -proto.endpoint_api.EndpointProviderModel.prototype.setChatcompleteprompt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {string} value + * @return {!proto.endpoint_api.EndpointAttribute} returns this + */ +proto.endpoint_api.EndpointAttribute.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * optional string name = 7; + * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.clearChatcompleteprompt = function() { - return this.setChatcompleteprompt(undefined); +proto.endpoint_api.EndpointAttribute.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.EndpointAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.hasChatcompleteprompt = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.EndpointAttribute.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * optional TextCompletePrompt completePrompt = 5; - * @return {?proto.TextCompletePrompt} + * optional string description = 8; + * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.getCompleteprompt = function() { - return /** @type{?proto.TextCompletePrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextCompletePrompt, 5)); +proto.endpoint_api.EndpointAttribute.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * @param {?proto.TextCompletePrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this -*/ -proto.endpoint_api.EndpointProviderModel.prototype.setCompleteprompt = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * @param {string} value + * @return {!proto.endpoint_api.EndpointAttribute} returns this + */ +proto.endpoint_api.EndpointAttribute.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; + /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.endpoint_api.EndpointProviderModel.prototype.clearCompleteprompt = function() { - return this.setCompleteprompt(undefined); -}; +proto.endpoint_api.EndpointProviderModelAttribute.repeatedFields_ = [8]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Returns whether this field is set. - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasCompleteprompt = function() { - return jspb.Message.getField(this, 5) != null; +proto.endpoint_api.EndpointProviderModelAttribute.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.EndpointProviderModelAttribute.toObject(opt_includeInstance, this); }; /** - * optional TextToImagePrompt textToImagePrompt = 6; - * @return {?proto.TextToImagePrompt} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.endpoint_api.EndpointProviderModelAttribute} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModel.prototype.getTexttoimageprompt = function() { - return /** @type{?proto.TextToImagePrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextToImagePrompt, 6)); -}; - +proto.endpoint_api.EndpointProviderModelAttribute.toObject = function(includeInstance, msg) { + var f, obj = { + description: jspb.Message.getFieldWithDefault(msg, 1, ""), + chatcompleteprompt: (f = msg.getChatcompleteprompt()) && common_pb.TextChatCompletePrompt.toObject(includeInstance, f), + modelproviderid: jspb.Message.getFieldWithDefault(msg, 6, "0"), + modelprovidername: jspb.Message.getFieldWithDefault(msg, 7, ""), + endpointmodeloptionsList: jspb.Message.toObjectList(msg.getEndpointmodeloptionsList(), + common_pb.Metadata.toObject, includeInstance) + }; -/** - * @param {?proto.TextToImagePrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this -*/ -proto.endpoint_api.EndpointProviderModel.prototype.setTexttoimageprompt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} */ -proto.endpoint_api.EndpointProviderModel.prototype.clearTexttoimageprompt = function() { - return this.setTexttoimageprompt(undefined); +proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.endpoint_api.EndpointProviderModelAttribute; + return proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.endpoint_api.EndpointProviderModelAttribute} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasTexttoimageprompt = function() { - return jspb.Message.getField(this, 6) != null; +proto.endpoint_api.EndpointProviderModelAttribute.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 = new common_pb.TextChatCompletePrompt; + reader.readMessage(value,common_pb.TextChatCompletePrompt.deserializeBinaryFromReader); + msg.setChatcompleteprompt(value); + break; + case 6: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setModelproviderid(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setModelprovidername(value); + break; + case 8: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addEndpointmodeloptions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional TextToSpeechPrompt textToSpeechPrompt = 7; - * @return {?proto.TextToSpeechPrompt} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.EndpointProviderModel.prototype.getTexttospeechprompt = function() { - return /** @type{?proto.TextToSpeechPrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextToSpeechPrompt, 7)); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.TextToSpeechPrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this -*/ -proto.endpoint_api.EndpointProviderModel.prototype.setTexttospeechprompt = function(value) { - return jspb.Message.setWrapperField(this, 7, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.EndpointProviderModelAttribute} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChatcompleteprompt(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.TextChatCompletePrompt.serializeBinaryToWriter + ); + } + f = message.getModelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 6, + f + ); + } + f = message.getModelprovidername(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getEndpointmodeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * optional string description = 1; + * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.clearTexttospeechprompt = function() { - return this.setTexttospeechprompt(undefined); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.hasTexttospeechprompt = function() { - return jspb.Message.getField(this, 7) != null; +proto.endpoint_api.EndpointProviderModelAttribute.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional SpeechToTextPrompt speechToTextPrompt = 31; - * @return {?proto.SpeechToTextPrompt} + * optional TextChatCompletePrompt chatCompletePrompt = 2; + * @return {?proto.TextChatCompletePrompt} */ -proto.endpoint_api.EndpointProviderModel.prototype.getSpeechtotextprompt = function() { - return /** @type{?proto.SpeechToTextPrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.SpeechToTextPrompt, 31)); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.getChatcompleteprompt = function() { + return /** @type{?proto.TextChatCompletePrompt} */ ( + jspb.Message.getWrapperField(this, common_pb.TextChatCompletePrompt, 2)); }; /** - * @param {?proto.SpeechToTextPrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {?proto.TextChatCompletePrompt|undefined} value + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setSpeechtotextprompt = function(value) { - return jspb.Message.setWrapperField(this, 31, value); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.setChatcompleteprompt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.clearSpeechtotextprompt = function() { - return this.setSpeechtotextprompt(undefined); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearChatcompleteprompt = function() { + return this.setChatcompleteprompt(undefined); }; @@ -1269,220 +1209,285 @@ proto.endpoint_api.EndpointProviderModel.prototype.clearSpeechtotextprompt = fun * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasSpeechtotextprompt = function() { - return jspb.Message.getField(this, 31) != null; +proto.endpoint_api.EndpointProviderModelAttribute.prototype.hasChatcompleteprompt = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional uint64 providerModelId = 8; + * optional uint64 modelProviderId = 6; * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.getProvidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.getModelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this - */ -proto.endpoint_api.EndpointProviderModel.prototype.setProvidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional ProviderModel providerModel = 9; - * @return {?proto.ProviderModel} + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.getProvidermodel = function() { - return /** @type{?proto.ProviderModel} */ ( - jspb.Message.getWrapperField(this, common_pb.ProviderModel, 9)); -}; - - -/** - * @param {?proto.ProviderModel|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this -*/ -proto.endpoint_api.EndpointProviderModel.prototype.setProvidermodel = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.setModelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * optional string modelProviderName = 7; + * @return {string} */ -proto.endpoint_api.EndpointProviderModel.prototype.clearProvidermodel = function() { - return this.setProvidermodel(undefined); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.getModelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.hasProvidermodel = function() { - return jspb.Message.getField(this, 9) != null; +proto.endpoint_api.EndpointProviderModelAttribute.prototype.setModelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * repeated ProviderModelParameter endpointProviderModelParameters = 10; - * @return {!Array} + * repeated Metadata endpointModelOptions = 8; + * @return {!Array} */ -proto.endpoint_api.EndpointProviderModel.prototype.getEndpointprovidermodelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.ProviderModelParameter, 10)); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.getEndpointmodeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 8)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setEndpointprovidermodelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.setEndpointmodeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** - * @param {!proto.ProviderModelParameter=} opt_value + * @param {!proto.Metadata=} opt_value * @param {number=} opt_index - * @return {!proto.ProviderModelParameter} + * @return {!proto.Metadata} */ -proto.endpoint_api.EndpointProviderModel.prototype.addEndpointprovidermodelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.ProviderModelParameter, opt_index); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.addEndpointmodeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.Metadata, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.clearEndpointprovidermodelparametersList = function() { - return this.setEndpointprovidermodelparametersList([]); +proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearEndpointmodeloptionsList = function() { + return this.setEndpointmodeloptionsList([]); }; -/** - * optional string status = 12; - * @return {string} - */ -proto.endpoint_api.EndpointProviderModel.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.endpoint_api.EndpointProviderModel.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - +proto.endpoint_api.CreateEndpointRequest.repeatedFields_ = [5]; -/** - * optional uint64 createdBy = 13; - * @return {string} - */ -proto.endpoint_api.EndpointProviderModel.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.endpoint_api.EndpointProviderModel.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 13, value); +proto.endpoint_api.CreateEndpointRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointRequest.toObject(opt_includeInstance, this); }; /** - * optional User createdUser = 14; - * @return {?proto.User} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.endpoint_api.CreateEndpointRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModel.prototype.getCreateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 14)); -}; - +proto.endpoint_api.CreateEndpointRequest.toObject = function(includeInstance, msg) { + var f, obj = { + endpointprovidermodelattribute: (f = msg.getEndpointprovidermodelattribute()) && proto.endpoint_api.EndpointProviderModelAttribute.toObject(includeInstance, f), + endpointattribute: (f = msg.getEndpointattribute()) && proto.endpoint_api.EndpointAttribute.toObject(includeInstance, f), + retryconfiguration: (f = msg.getRetryconfiguration()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f), + cacheconfiguration: (f = msg.getCacheconfiguration()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f), + tagsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f + }; -/** - * @param {?proto.User|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this -*/ -proto.endpoint_api.EndpointProviderModel.prototype.setCreateduser = function(value) { - return jspb.Message.setWrapperField(this, 14, value); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.endpoint_api.CreateEndpointRequest} */ -proto.endpoint_api.EndpointProviderModel.prototype.clearCreateduser = function() { - return this.setCreateduser(undefined); +proto.endpoint_api.CreateEndpointRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.endpoint_api.CreateEndpointRequest; + return proto.endpoint_api.CreateEndpointRequest.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.endpoint_api.CreateEndpointRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.endpoint_api.CreateEndpointRequest} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasCreateduser = function() { - return jspb.Message.getField(this, 14) != null; +proto.endpoint_api.CreateEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.endpoint_api.EndpointProviderModelAttribute; + reader.readMessage(value,proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader); + msg.setEndpointprovidermodelattribute(value); + break; + case 2: + var value = new proto.endpoint_api.EndpointAttribute; + reader.readMessage(value,proto.endpoint_api.EndpointAttribute.deserializeBinaryFromReader); + msg.setEndpointattribute(value); + break; + case 3: + var value = new proto.endpoint_api.EndpointRetryConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); + msg.setRetryconfiguration(value); + break; + case 4: + var value = new proto.endpoint_api.EndpointCacheConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); + msg.setCacheconfiguration(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional uint64 updatedBy = 15; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.EndpointProviderModel.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +proto.endpoint_api.CreateEndpointRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.CreateEndpointRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.CreateEndpointRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModel.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 15, value); -}; - - -/** - * optional User updatedUser = 16; - * @return {?proto.User} +proto.endpoint_api.CreateEndpointRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEndpointprovidermodelattribute(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter + ); + } + f = message.getEndpointattribute(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.endpoint_api.EndpointAttribute.serializeBinaryToWriter + ); + } + f = message.getRetryconfiguration(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter + ); + } + f = message.getCacheconfiguration(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } +}; + + +/** + * optional EndpointProviderModelAttribute endpointProviderModelAttribute = 1; + * @return {?proto.endpoint_api.EndpointProviderModelAttribute} */ -proto.endpoint_api.EndpointProviderModel.prototype.getUpdateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 16)); +proto.endpoint_api.CreateEndpointRequest.prototype.getEndpointprovidermodelattribute = function() { + return /** @type{?proto.endpoint_api.EndpointProviderModelAttribute} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModelAttribute, 1)); }; /** - * @param {?proto.User|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {?proto.endpoint_api.EndpointProviderModelAttribute|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setUpdateduser = function(value) { - return jspb.Message.setWrapperField(this, 16, value); +proto.endpoint_api.CreateEndpointRequest.prototype.setEndpointprovidermodelattribute = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.clearUpdateduser = function() { - return this.setUpdateduser(undefined); +proto.endpoint_api.CreateEndpointRequest.prototype.clearEndpointprovidermodelattribute = function() { + return this.setEndpointprovidermodelattribute(undefined); }; @@ -1490,36 +1495,36 @@ proto.endpoint_api.EndpointProviderModel.prototype.clearUpdateduser = function() * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasUpdateduser = function() { - return jspb.Message.getField(this, 16) != null; +proto.endpoint_api.CreateEndpointRequest.prototype.hasEndpointprovidermodelattribute = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional google.protobuf.Timestamp createdDate = 17; - * @return {?proto.google.protobuf.Timestamp} + * optional EndpointAttribute endpointAttribute = 2; + * @return {?proto.endpoint_api.EndpointAttribute} */ -proto.endpoint_api.EndpointProviderModel.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); +proto.endpoint_api.CreateEndpointRequest.prototype.getEndpointattribute = function() { + return /** @type{?proto.endpoint_api.EndpointAttribute} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointAttribute, 2)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {?proto.endpoint_api.EndpointAttribute|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 17, value); +proto.endpoint_api.CreateEndpointRequest.prototype.setEndpointattribute = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); +proto.endpoint_api.CreateEndpointRequest.prototype.clearEndpointattribute = function() { + return this.setEndpointattribute(undefined); }; @@ -1527,36 +1532,36 @@ proto.endpoint_api.EndpointProviderModel.prototype.clearCreateddate = function() * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 17) != null; +proto.endpoint_api.CreateEndpointRequest.prototype.hasEndpointattribute = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional google.protobuf.Timestamp updatedDate = 18; - * @return {?proto.google.protobuf.Timestamp} + * optional EndpointRetryConfiguration retryConfiguration = 3; + * @return {?proto.endpoint_api.EndpointRetryConfiguration} */ -proto.endpoint_api.EndpointProviderModel.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); +proto.endpoint_api.CreateEndpointRequest.prototype.getRetryconfiguration = function() { + return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 3)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 18, value); +proto.endpoint_api.CreateEndpointRequest.prototype.setRetryconfiguration = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); +proto.endpoint_api.CreateEndpointRequest.prototype.clearRetryconfiguration = function() { + return this.setRetryconfiguration(undefined); }; @@ -1564,44 +1569,82 @@ proto.endpoint_api.EndpointProviderModel.prototype.clearUpdateddate = function() * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModel.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 18) != null; +proto.endpoint_api.CreateEndpointRequest.prototype.hasRetryconfiguration = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional uint64 endpointId = 19; - * @return {string} + * optional EndpointCacheConfiguration cacheConfiguration = 4; + * @return {?proto.endpoint_api.EndpointCacheConfiguration} */ -proto.endpoint_api.EndpointProviderModel.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "0")); +proto.endpoint_api.CreateEndpointRequest.prototype.getCacheconfiguration = function() { + return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 4)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this +*/ +proto.endpoint_api.CreateEndpointRequest.prototype.setCacheconfiguration = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 19, value); +proto.endpoint_api.CreateEndpointRequest.prototype.clearCacheconfiguration = function() { + return this.setCacheconfiguration(undefined); }; /** - * optional string description = 20; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointProviderModel.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); +proto.endpoint_api.CreateEndpointRequest.prototype.hasCacheconfiguration = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * repeated string tags = 5; + * @return {!Array} + */ +proto.endpoint_api.CreateEndpointRequest.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this + */ +proto.endpoint_api.CreateEndpointRequest.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 5, value || []); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModel} returns this + * @param {number=} opt_index + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this */ -proto.endpoint_api.EndpointProviderModel.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); +proto.endpoint_api.CreateEndpointRequest.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.CreateEndpointRequest} returns this + */ +proto.endpoint_api.CreateEndpointRequest.prototype.clearTagsList = function() { + return this.setTagsList([]); }; @@ -1621,8 +1664,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.AggregatedEndpointAnalytics.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointResponse.toObject(opt_includeInstance, this); }; @@ -1631,21 +1674,16 @@ proto.endpoint_api.AggregatedEndpointAnalytics.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.AggregatedEndpointAnalytics} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.AggregatedEndpointAnalytics.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointResponse.toObject = function(includeInstance, msg) { var f, obj = { - count: jspb.Message.getFieldWithDefault(msg, 1, "0"), - totalinputcost: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - totaloutputcost: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - totaltoken: jspb.Message.getFieldWithDefault(msg, 4, "0"), - successcount: jspb.Message.getFieldWithDefault(msg, 5, "0"), - errorcount: jspb.Message.getFieldWithDefault(msg, 6, "0"), - p50latency: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - p99latency: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - lastactivity: (f = msg.getLastactivity()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.endpoint_api.Endpoint.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -1659,23 +1697,23 @@ proto.endpoint_api.AggregatedEndpointAnalytics.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} + * @return {!proto.endpoint_api.CreateEndpointResponse} */ -proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.AggregatedEndpointAnalytics; - return proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointResponse; + return proto.endpoint_api.CreateEndpointResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.AggregatedEndpointAnalytics} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} + * @return {!proto.endpoint_api.CreateEndpointResponse} */ -proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1683,44 +1721,25 @@ proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCount(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setTotalinputcost(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setTotaloutputcost(value); + var value = new proto.endpoint_api.Endpoint; + reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); + msg.setData(value); break; case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTotaltoken(value); + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSuccesscount(value); - break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setErrorcount(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setP50latency(value); - break; - case 8: - var value = /** @type {number} */ (reader.readFloat()); - msg.setP99latency(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastactivity(value); - break; - default: - reader.skipField(); + default: + reader.skipField(); break; } } @@ -1732,9 +1751,9 @@ proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.serializeBinary = function() { +proto.endpoint_api.CreateEndpointResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.AggregatedEndpointAnalytics.serializeBinaryToWriter(this, writer); + proto.endpoint_api.CreateEndpointResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1742,248 +1761,143 @@ proto.endpoint_api.AggregatedEndpointAnalytics.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.AggregatedEndpointAnalytics} message + * @param {!proto.endpoint_api.CreateEndpointResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.AggregatedEndpointAnalytics.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.CreateEndpointResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCount(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( 1, f ); } - f = message.getTotalinputcost(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getSuccess(); + if (f) { + writer.writeBool( 2, f ); } - f = message.getTotaloutputcost(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getData(); + if (f != null) { + writer.writeMessage( 3, - f - ); - } - f = message.getTotaltoken(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getSuccesscount(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getErrorcount(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 6, - f - ); - } - f = message.getP50latency(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getP99latency(); - if (f !== 0.0) { - writer.writeFloat( - 8, - f + f, + proto.endpoint_api.Endpoint.serializeBinaryToWriter ); } - f = message.getLastactivity(); + f = message.getError(); if (f != null) { writer.writeMessage( - 9, + 4, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + common_pb.Error.serializeBinaryToWriter ); } }; /** - * optional uint64 count = 1; - * @return {string} - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getCount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setCount = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional float totalInputCost = 2; - * @return {number} - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getTotalinputcost = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setTotalinputcost = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional float totalOutputCost = 3; + * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getTotaloutputcost = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.endpoint_api.CreateEndpointResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setTotaloutputcost = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional uint64 totalToken = 4; - * @return {string} - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getTotaltoken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setTotaltoken = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional uint64 successCount = 5; - * @return {string} - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getSuccesscount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + * @return {!proto.endpoint_api.CreateEndpointResponse} returns this */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setSuccesscount = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); +proto.endpoint_api.CreateEndpointResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional uint64 errorCount = 6; - * @return {string} + * optional bool success = 2; + * @return {boolean} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getErrorcount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +proto.endpoint_api.CreateEndpointResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + * @param {boolean} value + * @return {!proto.endpoint_api.CreateEndpointResponse} returns this */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setErrorcount = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); +proto.endpoint_api.CreateEndpointResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional float p50Latency = 7; - * @return {number} + * optional Endpoint data = 3; + * @return {?proto.endpoint_api.Endpoint} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getP50latency = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +proto.endpoint_api.CreateEndpointResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.Endpoint} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.Endpoint, 3)); }; /** - * @param {number} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this - */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setP50latency = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); + * @param {?proto.endpoint_api.Endpoint|undefined} value + * @return {!proto.endpoint_api.CreateEndpointResponse} returns this +*/ +proto.endpoint_api.CreateEndpointResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * optional float p99Latency = 8; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointResponse} returns this */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getP99latency = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); +proto.endpoint_api.CreateEndpointResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * @param {number} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setP99latency = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); +proto.endpoint_api.CreateEndpointResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional google.protobuf.Timestamp lastActivity = 9; - * @return {?proto.google.protobuf.Timestamp} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getLastactivity = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +proto.endpoint_api.CreateEndpointResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.endpoint_api.CreateEndpointResponse} returns this */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setLastactivity = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.endpoint_api.CreateEndpointResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + * @return {!proto.endpoint_api.CreateEndpointResponse} returns this */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.clearLastactivity = function() { - return this.setLastactivity(undefined); +proto.endpoint_api.CreateEndpointResponse.prototype.clearError = function() { + return this.setError(undefined); }; @@ -1991,12 +1905,19 @@ proto.endpoint_api.AggregatedEndpointAnalytics.prototype.clearLastactivity = fun * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.AggregatedEndpointAnalytics.prototype.hasLastactivity = function() { - return jspb.Message.getField(this, 9) != null; +proto.endpoint_api.CreateEndpointResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.endpoint_api.EndpointProviderModel.repeatedFields_ = [5]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -2012,8 +1933,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.Endpoint.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.Endpoint.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointProviderModel.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.EndpointProviderModel.toObject(opt_includeInstance, this); }; @@ -2022,36 +1943,27 @@ proto.endpoint_api.Endpoint.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.Endpoint} msg The msg instance to transform. + * @param {!proto.endpoint_api.EndpointProviderModel} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.Endpoint.toObject = function(includeInstance, msg) { +proto.endpoint_api.EndpointProviderModel.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - status: jspb.Message.getFieldWithDefault(msg, 2, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 3, ""), - source: jspb.Message.getFieldWithDefault(msg, 4, ""), - sourceidentifier: jspb.Message.getFieldWithDefault(msg, 5, "0"), - type: jspb.Message.getFieldWithDefault(msg, 6, ""), - projectid: jspb.Message.getFieldWithDefault(msg, 7, "0"), - organizationid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - endpointprovidermodelid: jspb.Message.getFieldWithDefault(msg, 9, "0"), - endpointprovidermodel: (f = msg.getEndpointprovidermodel()) && proto.endpoint_api.EndpointProviderModel.toObject(includeInstance, f), - endpointanalytics: (f = msg.getEndpointanalytics()) && proto.endpoint_api.AggregatedEndpointAnalytics.toObject(includeInstance, f), - endpointretry: (f = msg.getEndpointretry()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f), - endpointcaching: (f = msg.getEndpointcaching()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f), - endpointtag: (f = msg.getEndpointtag()) && common_pb.Tag.toObject(includeInstance, f), - language: jspb.Message.getFieldWithDefault(msg, 16, ""), - organization: (f = msg.getOrganization()) && common_pb.Organization.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 18, ""), - description: jspb.Message.getFieldWithDefault(msg, 19, ""), + chatcompleteprompt: (f = msg.getChatcompleteprompt()) && common_pb.TextChatCompletePrompt.toObject(includeInstance, f), + modelproviderid: jspb.Message.getFieldWithDefault(msg, 3, "0"), + modelprovidername: jspb.Message.getFieldWithDefault(msg, 4, ""), + endpointmodeloptionsList: jspb.Message.toObjectList(msg.getEndpointmodeloptionsList(), + common_pb.Metadata.toObject, includeInstance), + status: jspb.Message.getFieldWithDefault(msg, 12, ""), + createdby: jspb.Message.getFieldWithDefault(msg, 13, "0"), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 15, "0"), + updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - createdby: jspb.Message.getFieldWithDefault(msg, 22, "0"), - createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), - updatedby: jspb.Message.getFieldWithDefault(msg, 24, "0"), - updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f) + endpointid: jspb.Message.getFieldWithDefault(msg, 19, "0"), + description: jspb.Message.getFieldWithDefault(msg, 20, "") }; if (includeInstance) { @@ -2065,23 +1977,23 @@ proto.endpoint_api.Endpoint.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.Endpoint} + * @return {!proto.endpoint_api.EndpointProviderModel} */ -proto.endpoint_api.Endpoint.deserializeBinary = function(bytes) { +proto.endpoint_api.EndpointProviderModel.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.Endpoint; - return proto.endpoint_api.Endpoint.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.EndpointProviderModel; + return proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.Endpoint} msg The message object to deserialize into. + * @param {!proto.endpoint_api.EndpointProviderModel} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.Endpoint} + * @return {!proto.endpoint_api.EndpointProviderModel} */ -proto.endpoint_api.Endpoint.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2093,106 +2005,62 @@ proto.endpoint_api.Endpoint.deserializeBinaryFromReader = function(msg, reader) msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); + var value = new common_pb.TextChatCompletePrompt; + reader.readMessage(value,common_pb.TextChatCompletePrompt.deserializeBinaryFromReader); + msg.setChatcompleteprompt(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setModelproviderid(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setSource(value); + msg.setModelprovidername(value); break; case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSourceidentifier(value); + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addEndpointmodeloptions(value); break; - case 6: + case 12: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.setStatus(value); break; - case 7: + case 13: var value = /** @type {string} */ (reader.readUint64String()); - msg.setProjectid(value); + msg.setCreatedby(value); break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOrganizationid(value); + case 14: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); break; - case 9: + case 15: var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointprovidermodelid(value); - break; - case 10: - var value = new proto.endpoint_api.EndpointProviderModel; - reader.readMessage(value,proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader); - msg.setEndpointprovidermodel(value); - break; - case 11: - var value = new proto.endpoint_api.AggregatedEndpointAnalytics; - reader.readMessage(value,proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader); - msg.setEndpointanalytics(value); - break; - case 12: - var value = new proto.endpoint_api.EndpointRetryConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); - msg.setEndpointretry(value); - break; - case 13: - var value = new proto.endpoint_api.EndpointCacheConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); - msg.setEndpointcaching(value); - break; - case 14: - var value = new common_pb.Tag; - reader.readMessage(value,common_pb.Tag.deserializeBinaryFromReader); - msg.setEndpointtag(value); + msg.setUpdatedby(value); break; case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); break; case 17: - var value = new common_pb.Organization; - reader.readMessage(value,common_pb.Organization.deserializeBinaryFromReader); - msg.setOrganization(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 20: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreateddate(value); break; - case 21: + case 18: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setUpdateddate(value); break; - case 22: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 23: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setCreateduser(value); - break; - case 24: + case 19: var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); + msg.setEndpointid(value); break; - case 25: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setUpdateduser(value); + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; default: reader.skipField(); @@ -2207,9 +2075,9 @@ proto.endpoint_api.Endpoint.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.Endpoint.prototype.serializeBinary = function() { +proto.endpoint_api.EndpointProviderModel.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.Endpoint.serializeBinaryToWriter(this, writer); + proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2217,11 +2085,11 @@ proto.endpoint_api.Endpoint.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.Endpoint} message + * @param {!proto.endpoint_api.EndpointProviderModel} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.Endpoint.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (parseInt(f, 10) !== 0) { @@ -2230,177 +2098,103 @@ proto.endpoint_api.Endpoint.serializeBinaryToWriter = function(message, writer) f ); } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( + f = message.getChatcompleteprompt(); + if (f != null) { + writer.writeMessage( 2, - f + f, + common_pb.TextChatCompletePrompt.serializeBinaryToWriter ); } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( + f = message.getModelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 3, f ); } - f = message.getSource(); + f = message.getModelprovidername(); if (f.length > 0) { writer.writeString( 4, f ); } - f = message.getSourceidentifier(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getEndpointmodeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 5, - f + f, + common_pb.Metadata.serializeBinaryToWriter ); } - f = message.getType(); + f = message.getStatus(); if (f.length > 0) { writer.writeString( - 6, - f - ); - } - f = message.getProjectid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f - ); - } - f = message.getOrganizationid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, + 12, f ); } - f = message.getEndpointprovidermodelid(); + f = message.getCreatedby(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 9, + 13, f ); } - f = message.getEndpointprovidermodel(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter - ); - } - f = message.getEndpointanalytics(); + f = message.getCreateduser(); if (f != null) { writer.writeMessage( - 11, + 14, f, - proto.endpoint_api.AggregatedEndpointAnalytics.serializeBinaryToWriter + common_pb.User.serializeBinaryToWriter ); } - f = message.getEndpointretry(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 15, + f ); } - f = message.getEndpointcaching(); + f = message.getUpdateduser(); if (f != null) { writer.writeMessage( - 13, + 16, f, - proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter + common_pb.User.serializeBinaryToWriter ); } - f = message.getEndpointtag(); + f = message.getCreateddate(); if (f != null) { writer.writeMessage( - 14, + 17, f, - common_pb.Tag.serializeBinaryToWriter - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 16, - f + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getOrganization(); + f = message.getUpdateddate(); if (f != null) { writer.writeMessage( - 17, + 18, f, - common_pb.Organization.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 18, + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 19, f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( - 19, + 20, f ); } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 20, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 21, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 22, - f - ); - } - f = message.getCreateduser(); - if (f != null) { - writer.writeMessage( - 23, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 24, - f - ); - } - f = message.getUpdateduser(); - if (f != null) { - writer.writeMessage( - 25, - f, - common_pb.User.serializeBinaryToWriter - ); - } }; @@ -2408,189 +2202,192 @@ proto.endpoint_api.Endpoint.serializeBinaryToWriter = function(message, writer) * optional uint64 id = 1; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getId = function() { +proto.endpoint_api.EndpointProviderModel.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setId = function(value) { +proto.endpoint_api.EndpointProviderModel.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional string status = 2; - * @return {string} + * optional TextChatCompletePrompt chatCompletePrompt = 2; + * @return {?proto.TextChatCompletePrompt} */ -proto.endpoint_api.Endpoint.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.endpoint_api.EndpointProviderModel.prototype.getChatcompleteprompt = function() { + return /** @type{?proto.TextChatCompletePrompt} */ ( + jspb.Message.getWrapperField(this, common_pb.TextChatCompletePrompt, 2)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this - */ -proto.endpoint_api.Endpoint.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {?proto.TextChatCompletePrompt|undefined} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this +*/ +proto.endpoint_api.EndpointProviderModel.prototype.setChatcompleteprompt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional string visibility = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.endpoint_api.EndpointProviderModel.prototype.clearChatcompleteprompt = function() { + return this.setChatcompleteprompt(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.Endpoint.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.endpoint_api.EndpointProviderModel.prototype.hasChatcompleteprompt = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional string source = 4; + * optional uint64 modelProviderId = 3; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.endpoint_api.EndpointProviderModel.prototype.getModelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.endpoint_api.EndpointProviderModel.prototype.setModelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** - * optional uint64 sourceIdentifier = 5; + * optional string modelProviderName = 4; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getSourceidentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.endpoint_api.EndpointProviderModel.prototype.getModelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setSourceidentifier = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); +proto.endpoint_api.EndpointProviderModel.prototype.setModelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string type = 6; - * @return {string} + * repeated Metadata endpointModelOptions = 5; + * @return {!Array} */ -proto.endpoint_api.Endpoint.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.endpoint_api.EndpointProviderModel.prototype.getEndpointmodeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 5)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this - */ -proto.endpoint_api.Endpoint.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this +*/ +proto.endpoint_api.EndpointProviderModel.prototype.setEndpointmodeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** - * optional uint64 projectId = 7; - * @return {string} + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} */ -proto.endpoint_api.Endpoint.prototype.getProjectid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); +proto.endpoint_api.EndpointProviderModel.prototype.addEndpointmodeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.Metadata, opt_index); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setProjectid = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); +proto.endpoint_api.EndpointProviderModel.prototype.clearEndpointmodeloptionsList = function() { + return this.setEndpointmodeloptionsList([]); }; /** - * optional uint64 organizationId = 8; + * optional string status = 12; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getOrganizationid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); +proto.endpoint_api.EndpointProviderModel.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setOrganizationid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); +proto.endpoint_api.EndpointProviderModel.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; /** - * optional uint64 endpointProviderModelId = 9; + * optional uint64 createdBy = 13; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getEndpointprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); +proto.endpoint_api.EndpointProviderModel.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setEndpointprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 9, value); +proto.endpoint_api.EndpointProviderModel.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 13, value); }; /** - * optional EndpointProviderModel endpointProviderModel = 10; - * @return {?proto.endpoint_api.EndpointProviderModel} + * optional User createdUser = 14; + * @return {?proto.User} */ -proto.endpoint_api.Endpoint.prototype.getEndpointprovidermodel = function() { - return /** @type{?proto.endpoint_api.EndpointProviderModel} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModel, 10)); +proto.endpoint_api.EndpointProviderModel.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 14)); }; /** - * @param {?proto.endpoint_api.EndpointProviderModel|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @param {?proto.User|undefined} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setEndpointprovidermodel = function(value) { - return jspb.Message.setWrapperField(this, 10, value); +proto.endpoint_api.EndpointProviderModel.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.clearEndpointprovidermodel = function() { - return this.setEndpointprovidermodel(undefined); +proto.endpoint_api.EndpointProviderModel.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); }; @@ -2598,36 +2395,54 @@ proto.endpoint_api.Endpoint.prototype.clearEndpointprovidermodel = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.Endpoint.prototype.hasEndpointprovidermodel = function() { - return jspb.Message.getField(this, 10) != null; +proto.endpoint_api.EndpointProviderModel.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 14) != null; }; /** - * optional AggregatedEndpointAnalytics endpointAnalytics = 11; - * @return {?proto.endpoint_api.AggregatedEndpointAnalytics} + * optional uint64 updatedBy = 15; + * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getEndpointanalytics = function() { - return /** @type{?proto.endpoint_api.AggregatedEndpointAnalytics} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.AggregatedEndpointAnalytics, 11)); +proto.endpoint_api.EndpointProviderModel.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); }; /** - * @param {?proto.endpoint_api.AggregatedEndpointAnalytics|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @param {string} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this + */ +proto.endpoint_api.EndpointProviderModel.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); +}; + + +/** + * optional User updatedUser = 16; + * @return {?proto.User} + */ +proto.endpoint_api.EndpointProviderModel.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 16)); +}; + + +/** + * @param {?proto.User|undefined} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setEndpointanalytics = function(value) { - return jspb.Message.setWrapperField(this, 11, value); +proto.endpoint_api.EndpointProviderModel.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 16, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.clearEndpointanalytics = function() { - return this.setEndpointanalytics(undefined); +proto.endpoint_api.EndpointProviderModel.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); }; @@ -2635,36 +2450,36 @@ proto.endpoint_api.Endpoint.prototype.clearEndpointanalytics = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.Endpoint.prototype.hasEndpointanalytics = function() { - return jspb.Message.getField(this, 11) != null; +proto.endpoint_api.EndpointProviderModel.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 16) != null; }; /** - * optional EndpointRetryConfiguration endpointRetry = 12; - * @return {?proto.endpoint_api.EndpointRetryConfiguration} + * optional google.protobuf.Timestamp createdDate = 17; + * @return {?proto.google.protobuf.Timestamp} */ -proto.endpoint_api.Endpoint.prototype.getEndpointretry = function() { - return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 12)); +proto.endpoint_api.EndpointProviderModel.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); }; /** - * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setEndpointretry = function(value) { - return jspb.Message.setWrapperField(this, 12, value); +proto.endpoint_api.EndpointProviderModel.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.clearEndpointretry = function() { - return this.setEndpointretry(undefined); +proto.endpoint_api.EndpointProviderModel.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); }; @@ -2672,36 +2487,36 @@ proto.endpoint_api.Endpoint.prototype.clearEndpointretry = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.Endpoint.prototype.hasEndpointretry = function() { - return jspb.Message.getField(this, 12) != null; +proto.endpoint_api.EndpointProviderModel.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * optional EndpointCacheConfiguration endpointCaching = 13; - * @return {?proto.endpoint_api.EndpointCacheConfiguration} + * optional google.protobuf.Timestamp updatedDate = 18; + * @return {?proto.google.protobuf.Timestamp} */ -proto.endpoint_api.Endpoint.prototype.getEndpointcaching = function() { - return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 13)); -}; - +proto.endpoint_api.EndpointProviderModel.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18)); +}; + /** - * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setEndpointcaching = function(value) { - return jspb.Message.setWrapperField(this, 13, value); +proto.endpoint_api.EndpointProviderModel.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 18, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.clearEndpointcaching = function() { - return this.setEndpointcaching(undefined); +proto.endpoint_api.EndpointProviderModel.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); }; @@ -2709,311 +2524,426 @@ proto.endpoint_api.Endpoint.prototype.clearEndpointcaching = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.Endpoint.prototype.hasEndpointcaching = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional Tag endpointTag = 14; - * @return {?proto.Tag} - */ -proto.endpoint_api.Endpoint.prototype.getEndpointtag = function() { - return /** @type{?proto.Tag} */ ( - jspb.Message.getWrapperField(this, common_pb.Tag, 14)); -}; - - -/** - * @param {?proto.Tag|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this -*/ -proto.endpoint_api.Endpoint.prototype.setEndpointtag = function(value) { - return jspb.Message.setWrapperField(this, 14, value); +proto.endpoint_api.EndpointProviderModel.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 18) != null; }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * optional uint64 endpointId = 19; + * @return {string} */ -proto.endpoint_api.Endpoint.prototype.clearEndpointtag = function() { - return this.setEndpointtag(undefined); +proto.endpoint_api.EndpointProviderModel.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.hasEndpointtag = function() { - return jspb.Message.getField(this, 14) != null; +proto.endpoint_api.EndpointProviderModel.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 19, value); }; /** - * optional string language = 16; + * optional string description = 20; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +proto.endpoint_api.EndpointProviderModel.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.EndpointProviderModel} returns this */ -proto.endpoint_api.Endpoint.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); +proto.endpoint_api.EndpointProviderModel.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 20, value); }; -/** - * optional Organization organization = 17; - * @return {?proto.Organization} - */ -proto.endpoint_api.Endpoint.prototype.getOrganization = function() { - return /** @type{?proto.Organization} */ ( - jspb.Message.getWrapperField(this, common_pb.Organization, 17)); -}; -/** - * @param {?proto.Organization|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this -*/ -proto.endpoint_api.Endpoint.prototype.setOrganization = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.endpoint_api.Endpoint.prototype.clearOrganization = function() { - return this.setOrganization(undefined); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.AggregatedEndpointAnalytics.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.endpoint_api.AggregatedEndpointAnalytics} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.Endpoint.prototype.hasOrganization = function() { - return jspb.Message.getField(this, 17) != null; +proto.endpoint_api.AggregatedEndpointAnalytics.toObject = function(includeInstance, msg) { + var f, obj = { + count: jspb.Message.getFieldWithDefault(msg, 1, "0"), + totalinputcost: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + totaloutputcost: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + totaltoken: jspb.Message.getFieldWithDefault(msg, 4, "0"), + successcount: jspb.Message.getFieldWithDefault(msg, 5, "0"), + errorcount: jspb.Message.getFieldWithDefault(msg, 6, "0"), + p50latency: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + p99latency: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), + lastactivity: (f = msg.getLastactivity()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string name = 18; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} */ -proto.endpoint_api.Endpoint.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.endpoint_api.AggregatedEndpointAnalytics; + return proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.endpoint_api.AggregatedEndpointAnalytics} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} */ -proto.endpoint_api.Endpoint.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); +proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setTotalinputcost(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setTotaloutputcost(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setTotaltoken(value); + break; + case 5: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setSuccesscount(value); + break; + case 6: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setErrorcount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readFloat()); + msg.setP50latency(value); + break; + case 8: + var value = /** @type {number} */ (reader.readFloat()); + msg.setP99latency(value); + break; + case 9: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setLastactivity(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string description = 19; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.Endpoint.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.AggregatedEndpointAnalytics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.AggregatedEndpointAnalytics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.Endpoint.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); +proto.endpoint_api.AggregatedEndpointAnalytics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCount(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getTotalinputcost(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getTotaloutputcost(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getTotaltoken(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getSuccesscount(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 5, + f + ); + } + f = message.getErrorcount(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 6, + f + ); + } + f = message.getP50latency(); + if (f !== 0.0) { + writer.writeFloat( + 7, + f + ); + } + f = message.getP99latency(); + if (f !== 0.0) { + writer.writeFloat( + 8, + f + ); + } + f = message.getLastactivity(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } }; /** - * optional google.protobuf.Timestamp createdDate = 20; - * @return {?proto.google.protobuf.Timestamp} + * optional uint64 count = 1; + * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 20)); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getCount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this -*/ -proto.endpoint_api.Endpoint.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 20, value); + * @param {string} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + */ +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setCount = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * optional float totalInputCost = 2; + * @return {number} */ -proto.endpoint_api.Endpoint.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getTotalinputcost = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 20) != null; +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setTotalinputcost = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); }; /** - * optional google.protobuf.Timestamp updatedDate = 21; - * @return {?proto.google.protobuf.Timestamp} + * optional float totalOutputCost = 3; + * @return {number} */ -proto.endpoint_api.Endpoint.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 21)); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getTotaloutputcost = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this -*/ -proto.endpoint_api.Endpoint.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 21, value); + * @param {number} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + */ +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setTotaloutputcost = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * optional uint64 totalToken = 4; + * @return {string} */ -proto.endpoint_api.Endpoint.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getTotaltoken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 21) != null; +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setTotaltoken = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); }; /** - * optional uint64 createdBy = 22; + * optional uint64 successCount = 5; * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getSuccesscount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 22, value); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setSuccesscount = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); }; /** - * optional User createdUser = 23; - * @return {?proto.User} + * optional uint64 errorCount = 6; + * @return {string} */ -proto.endpoint_api.Endpoint.prototype.getCreateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 23)); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getErrorcount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; /** - * @param {?proto.User|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this -*/ -proto.endpoint_api.Endpoint.prototype.setCreateduser = function(value) { - return jspb.Message.setWrapperField(this, 23, value); + * @param {string} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this + */ +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setErrorcount = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * optional float p50Latency = 7; + * @return {number} */ -proto.endpoint_api.Endpoint.prototype.clearCreateduser = function() { - return this.setCreateduser(undefined); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getP50latency = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.hasCreateduser = function() { - return jspb.Message.getField(this, 23) != null; +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setP50latency = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); }; /** - * optional uint64 updatedBy = 24; - * @return {string} + * optional float p99Latency = 8; + * @return {number} */ -proto.endpoint_api.Endpoint.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "0")); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getP99latency = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @param {number} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 24, value); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setP99latency = function(value) { + return jspb.Message.setProto3FloatField(this, 8, value); }; /** - * optional User updatedUser = 25; - * @return {?proto.User} + * optional google.protobuf.Timestamp lastActivity = 9; + * @return {?proto.google.protobuf.Timestamp} */ -proto.endpoint_api.Endpoint.prototype.getUpdateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 25)); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.getLastactivity = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); }; /** - * @param {?proto.User|undefined} value - * @return {!proto.endpoint_api.Endpoint} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.setUpdateduser = function(value) { - return jspb.Message.setWrapperField(this, 25, value); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.setLastactivity = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.Endpoint} returns this + * @return {!proto.endpoint_api.AggregatedEndpointAnalytics} returns this */ -proto.endpoint_api.Endpoint.prototype.clearUpdateduser = function() { - return this.setUpdateduser(undefined); +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.clearLastactivity = function() { + return this.setLastactivity(undefined); }; @@ -3021,19 +2951,12 @@ proto.endpoint_api.Endpoint.prototype.clearUpdateduser = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.Endpoint.prototype.hasUpdateduser = function() { - return jspb.Message.getField(this, 25) != null; +proto.endpoint_api.AggregatedEndpointAnalytics.prototype.hasLastactivity = function() { + return jspb.Message.getField(this, 9) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.endpoint_api.EndpointProviderModelAttribute.repeatedFields_ = [7]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -3049,8 +2972,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.EndpointProviderModelAttribute.toObject(opt_includeInstance, this); +proto.endpoint_api.Endpoint.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.Endpoint.toObject(opt_includeInstance, this); }; @@ -3059,24 +2982,35 @@ proto.endpoint_api.EndpointProviderModelAttribute.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.EndpointProviderModelAttribute} msg The msg instance to transform. + * @param {!proto.endpoint_api.Endpoint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModelAttribute.toObject = function(includeInstance, msg) { +proto.endpoint_api.Endpoint.toObject = function(includeInstance, msg) { var f, obj = { - modeltype: jspb.Message.getFieldWithDefault(msg, 1, ""), - modelmodetype: jspb.Message.getFieldWithDefault(msg, 2, ""), - chatcompleteprompt: (f = msg.getChatcompleteprompt()) && common_pb.TextChatCompletePrompt.toObject(includeInstance, f), - completeprompt: (f = msg.getCompleteprompt()) && common_pb.TextCompletePrompt.toObject(includeInstance, f), - providermodelid: jspb.Message.getFieldWithDefault(msg, 5, "0"), - providerid: jspb.Message.getFieldWithDefault(msg, 6, "0"), - endpointprovidermodelparametersList: jspb.Message.toObjectList(msg.getEndpointprovidermodelparametersList(), - common_pb.ProviderModelParameter.toObject, includeInstance), - texttoimageprompt: (f = msg.getTexttoimageprompt()) && common_pb.TextToImagePrompt.toObject(includeInstance, f), - texttospeechprompt: (f = msg.getTexttospeechprompt()) && common_pb.TextToSpeechPrompt.toObject(includeInstance, f), - speechtotextprompt: (f = msg.getSpeechtotextprompt()) && common_pb.SpeechToTextPrompt.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 11, "") + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + status: jspb.Message.getFieldWithDefault(msg, 2, ""), + visibility: jspb.Message.getFieldWithDefault(msg, 3, ""), + source: jspb.Message.getFieldWithDefault(msg, 4, ""), + sourceidentifier: jspb.Message.getFieldWithDefault(msg, 5, "0"), + projectid: jspb.Message.getFieldWithDefault(msg, 7, "0"), + organizationid: jspb.Message.getFieldWithDefault(msg, 8, "0"), + endpointprovidermodelid: jspb.Message.getFieldWithDefault(msg, 9, "0"), + endpointprovidermodel: (f = msg.getEndpointprovidermodel()) && proto.endpoint_api.EndpointProviderModel.toObject(includeInstance, f), + endpointanalytics: (f = msg.getEndpointanalytics()) && proto.endpoint_api.AggregatedEndpointAnalytics.toObject(includeInstance, f), + endpointretry: (f = msg.getEndpointretry()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f), + endpointcaching: (f = msg.getEndpointcaching()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f), + endpointtag: (f = msg.getEndpointtag()) && common_pb.Tag.toObject(includeInstance, f), + language: jspb.Message.getFieldWithDefault(msg, 16, ""), + organization: (f = msg.getOrganization()) && common_pb.Organization.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 18, ""), + description: jspb.Message.getFieldWithDefault(msg, 19, ""), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + createdby: jspb.Message.getFieldWithDefault(msg, 22, "0"), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), + updatedby: jspb.Message.getFieldWithDefault(msg, 24, "0"), + updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f) }; if (includeInstance) { @@ -3090,78 +3024,130 @@ proto.endpoint_api.EndpointProviderModelAttribute.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} + * @return {!proto.endpoint_api.Endpoint} */ -proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinary = function(bytes) { +proto.endpoint_api.Endpoint.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.EndpointProviderModelAttribute; - return proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.Endpoint; + return proto.endpoint_api.Endpoint.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.EndpointProviderModelAttribute} msg The message object to deserialize into. + * @param {!proto.endpoint_api.Endpoint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} + * @return {!proto.endpoint_api.Endpoint} */ -proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.Endpoint.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.setModeltype(value); + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVisibility(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSource(value); + break; + case 5: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setSourceidentifier(value); + break; + case 7: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setProjectid(value); + break; + case 8: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setOrganizationid(value); + break; + case 9: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointprovidermodelid(value); + break; + case 10: + var value = new proto.endpoint_api.EndpointProviderModel; + reader.readMessage(value,proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader); + msg.setEndpointprovidermodel(value); + break; + case 11: + var value = new proto.endpoint_api.AggregatedEndpointAnalytics; + reader.readMessage(value,proto.endpoint_api.AggregatedEndpointAnalytics.deserializeBinaryFromReader); + msg.setEndpointanalytics(value); + break; + case 12: + var value = new proto.endpoint_api.EndpointRetryConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); + msg.setEndpointretry(value); break; - case 2: + case 13: + var value = new proto.endpoint_api.EndpointCacheConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); + msg.setEndpointcaching(value); + break; + case 14: + var value = new common_pb.Tag; + reader.readMessage(value,common_pb.Tag.deserializeBinaryFromReader); + msg.setEndpointtag(value); + break; + case 16: var value = /** @type {string} */ (reader.readString()); - msg.setModelmodetype(value); + msg.setLanguage(value); break; - case 3: - var value = new common_pb.TextChatCompletePrompt; - reader.readMessage(value,common_pb.TextChatCompletePrompt.deserializeBinaryFromReader); - msg.setChatcompleteprompt(value); + case 17: + var value = new common_pb.Organization; + reader.readMessage(value,common_pb.Organization.deserializeBinaryFromReader); + msg.setOrganization(value); break; - case 4: - var value = new common_pb.TextCompletePrompt; - reader.readMessage(value,common_pb.TextCompletePrompt.deserializeBinaryFromReader); - msg.setCompleteprompt(value); + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProvidermodelid(value); + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); + case 20: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); break; - case 7: - var value = new common_pb.ProviderModelParameter; - reader.readMessage(value,common_pb.ProviderModelParameter.deserializeBinaryFromReader); - msg.addEndpointprovidermodelparameters(value); + case 21: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); break; - case 9: - var value = new common_pb.TextToImagePrompt; - reader.readMessage(value,common_pb.TextToImagePrompt.deserializeBinaryFromReader); - msg.setTexttoimageprompt(value); + case 22: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); break; - case 10: - var value = new common_pb.TextToSpeechPrompt; - reader.readMessage(value,common_pb.TextToSpeechPrompt.deserializeBinaryFromReader); - msg.setTexttospeechprompt(value); + case 23: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); break; - case 12: - var value = new common_pb.SpeechToTextPrompt; - reader.readMessage(value,common_pb.SpeechToTextPrompt.deserializeBinaryFromReader); - msg.setSpeechtotextprompt(value); + case 24: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + case 25: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setUpdateduser(value); break; default: reader.skipField(); @@ -3176,9 +3162,9 @@ proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.serializeBinary = function() { +proto.endpoint_api.Endpoint.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter(this, writer); + proto.endpoint_api.Endpoint.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3186,196 +3172,355 @@ proto.endpoint_api.EndpointProviderModelAttribute.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.EndpointProviderModelAttribute} message + * @param {!proto.endpoint_api.Endpoint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.Endpoint.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getModeltype(); - if (f.length > 0) { - writer.writeString( + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getModelmodetype(); + f = message.getStatus(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getChatcompleteprompt(); - if (f != null) { - writer.writeMessage( + f = message.getVisibility(); + if (f.length > 0) { + writer.writeString( 3, - f, - common_pb.TextChatCompletePrompt.serializeBinaryToWriter + f ); } - f = message.getCompleteprompt(); - if (f != null) { - writer.writeMessage( + f = message.getSource(); + if (f.length > 0) { + writer.writeString( 4, - f, - common_pb.TextCompletePrompt.serializeBinaryToWriter + f ); } - f = message.getProvidermodelid(); + f = message.getSourceidentifier(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 5, f ); } - f = message.getProviderid(); + f = message.getProjectid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 6, + 7, f ); } - f = message.getEndpointprovidermodelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - common_pb.ProviderModelParameter.serializeBinaryToWriter + f = message.getOrganizationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 8, + f + ); + } + f = message.getEndpointprovidermodelid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 9, + f ); } - f = message.getTexttoimageprompt(); + f = message.getEndpointprovidermodel(); if (f != null) { writer.writeMessage( - 9, + 10, f, - common_pb.TextToImagePrompt.serializeBinaryToWriter + proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter ); } - f = message.getTexttospeechprompt(); + f = message.getEndpointanalytics(); if (f != null) { writer.writeMessage( - 10, + 11, f, - common_pb.TextToSpeechPrompt.serializeBinaryToWriter + proto.endpoint_api.AggregatedEndpointAnalytics.serializeBinaryToWriter ); } - f = message.getSpeechtotextprompt(); + f = message.getEndpointretry(); if (f != null) { writer.writeMessage( 12, f, - common_pb.SpeechToTextPrompt.serializeBinaryToWriter + proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter + ); + } + f = message.getEndpointcaching(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter + ); + } + f = message.getEndpointtag(); + if (f != null) { + writer.writeMessage( + 14, + f, + common_pb.Tag.serializeBinaryToWriter + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getOrganization(); + if (f != null) { + writer.writeMessage( + 17, + f, + common_pb.Organization.serializeBinaryToWriter + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 18, + f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( - 11, + 19, + f + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 20, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 21, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 22, + f + ); + } + f = message.getCreateduser(); + if (f != null) { + writer.writeMessage( + 23, + f, + common_pb.User.serializeBinaryToWriter + ); + } + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 24, f ); } + f = message.getUpdateduser(); + if (f != null) { + writer.writeMessage( + 25, + f, + common_pb.User.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {string} + */ +proto.endpoint_api.Endpoint.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional string status = 2; + * @return {string} + */ +proto.endpoint_api.Endpoint.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string visibility = 3; + * @return {string} + */ +proto.endpoint_api.Endpoint.prototype.getVisibility = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setVisibility = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string modelType = 1; + * optional string source = 4; * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getModeltype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.endpoint_api.Endpoint.prototype.getSource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setModeltype = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.endpoint_api.Endpoint.prototype.setSource = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string modelModeType = 2; + * optional uint64 sourceIdentifier = 5; * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getModelmodetype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.endpoint_api.Endpoint.prototype.getSourceidentifier = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setModelmodetype = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.endpoint_api.Endpoint.prototype.setSourceidentifier = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); }; /** - * optional TextChatCompletePrompt chatCompletePrompt = 3; - * @return {?proto.TextChatCompletePrompt} + * optional uint64 projectId = 7; + * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getChatcompleteprompt = function() { - return /** @type{?proto.TextChatCompletePrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextChatCompletePrompt, 3)); +proto.endpoint_api.Endpoint.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); }; /** - * @param {?proto.TextChatCompletePrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this -*/ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setChatcompleteprompt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 7, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * optional uint64 organizationId = 8; + * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearChatcompleteprompt = function() { - return this.setChatcompleteprompt(undefined); +proto.endpoint_api.Endpoint.prototype.getOrganizationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.hasChatcompleteprompt = function() { - return jspb.Message.getField(this, 3) != null; +proto.endpoint_api.Endpoint.prototype.setOrganizationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 8, value); }; /** - * optional TextCompletePrompt completePrompt = 4; - * @return {?proto.TextCompletePrompt} + * optional uint64 endpointProviderModelId = 9; + * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getCompleteprompt = function() { - return /** @type{?proto.TextCompletePrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextCompletePrompt, 4)); +proto.endpoint_api.Endpoint.prototype.getEndpointprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); }; /** - * @param {?proto.TextCompletePrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setEndpointprovidermodelid = function(value) { + return jspb.Message.setProto3StringIntField(this, 9, value); +}; + + +/** + * optional EndpointProviderModel endpointProviderModel = 10; + * @return {?proto.endpoint_api.EndpointProviderModel} + */ +proto.endpoint_api.Endpoint.prototype.getEndpointprovidermodel = function() { + return /** @type{?proto.endpoint_api.EndpointProviderModel} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModel, 10)); +}; + + +/** + * @param {?proto.endpoint_api.EndpointProviderModel|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setCompleteprompt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.endpoint_api.Endpoint.prototype.setEndpointprovidermodel = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearCompleteprompt = function() { - return this.setCompleteprompt(undefined); +proto.endpoint_api.Endpoint.prototype.clearEndpointprovidermodel = function() { + return this.setEndpointprovidermodel(undefined); }; @@ -3383,110 +3528,110 @@ proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearCompleteprompt * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.hasCompleteprompt = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.Endpoint.prototype.hasEndpointprovidermodel = function() { + return jspb.Message.getField(this, 10) != null; }; /** - * optional uint64 providerModelId = 5; - * @return {string} + * optional AggregatedEndpointAnalytics endpointAnalytics = 11; + * @return {?proto.endpoint_api.AggregatedEndpointAnalytics} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getProvidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.endpoint_api.Endpoint.prototype.getEndpointanalytics = function() { + return /** @type{?proto.endpoint_api.AggregatedEndpointAnalytics} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.AggregatedEndpointAnalytics, 11)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this - */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setProvidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); + * @param {?proto.endpoint_api.AggregatedEndpointAnalytics|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this +*/ +proto.endpoint_api.Endpoint.prototype.setEndpointanalytics = function(value) { + return jspb.Message.setWrapperField(this, 11, value); }; /** - * optional uint64 providerId = 6; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getProviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +proto.endpoint_api.Endpoint.prototype.clearEndpointanalytics = function() { + return this.setEndpointanalytics(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setProviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); +proto.endpoint_api.Endpoint.prototype.hasEndpointanalytics = function() { + return jspb.Message.getField(this, 11) != null; }; /** - * repeated ProviderModelParameter endpointProviderModelParameters = 7; - * @return {!Array} + * optional EndpointRetryConfiguration endpointRetry = 12; + * @return {?proto.endpoint_api.EndpointRetryConfiguration} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getEndpointprovidermodelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.ProviderModelParameter, 7)); +proto.endpoint_api.Endpoint.prototype.getEndpointretry = function() { + return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 12)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setEndpointprovidermodelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); +proto.endpoint_api.Endpoint.prototype.setEndpointretry = function(value) { + return jspb.Message.setWrapperField(this, 12, value); }; /** - * @param {!proto.ProviderModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.ProviderModelParameter} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.addEndpointprovidermodelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.ProviderModelParameter, opt_index); +proto.endpoint_api.Endpoint.prototype.clearEndpointretry = function() { + return this.setEndpointretry(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearEndpointprovidermodelparametersList = function() { - return this.setEndpointprovidermodelparametersList([]); +proto.endpoint_api.Endpoint.prototype.hasEndpointretry = function() { + return jspb.Message.getField(this, 12) != null; }; /** - * optional TextToImagePrompt textToImagePrompt = 9; - * @return {?proto.TextToImagePrompt} + * optional EndpointCacheConfiguration endpointCaching = 13; + * @return {?proto.endpoint_api.EndpointCacheConfiguration} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getTexttoimageprompt = function() { - return /** @type{?proto.TextToImagePrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextToImagePrompt, 9)); +proto.endpoint_api.Endpoint.prototype.getEndpointcaching = function() { + return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 13)); }; /** - * @param {?proto.TextToImagePrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setTexttoimageprompt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.endpoint_api.Endpoint.prototype.setEndpointcaching = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearTexttoimageprompt = function() { - return this.setTexttoimageprompt(undefined); +proto.endpoint_api.Endpoint.prototype.clearEndpointcaching = function() { + return this.setEndpointcaching(undefined); }; @@ -3494,36 +3639,36 @@ proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearTexttoimageprom * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.hasTexttoimageprompt = function() { - return jspb.Message.getField(this, 9) != null; +proto.endpoint_api.Endpoint.prototype.hasEndpointcaching = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * optional TextToSpeechPrompt textToSpeechPrompt = 10; - * @return {?proto.TextToSpeechPrompt} + * optional Tag endpointTag = 14; + * @return {?proto.Tag} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getTexttospeechprompt = function() { - return /** @type{?proto.TextToSpeechPrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.TextToSpeechPrompt, 10)); +proto.endpoint_api.Endpoint.prototype.getEndpointtag = function() { + return /** @type{?proto.Tag} */ ( + jspb.Message.getWrapperField(this, common_pb.Tag, 14)); }; /** - * @param {?proto.TextToSpeechPrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @param {?proto.Tag|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setTexttospeechprompt = function(value) { - return jspb.Message.setWrapperField(this, 10, value); +proto.endpoint_api.Endpoint.prototype.setEndpointtag = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearTexttospeechprompt = function() { - return this.setTexttospeechprompt(undefined); +proto.endpoint_api.Endpoint.prototype.clearEndpointtag = function() { + return this.setEndpointtag(undefined); }; @@ -3531,36 +3676,54 @@ proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearTexttospeechpro * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.hasTexttospeechprompt = function() { - return jspb.Message.getField(this, 10) != null; +proto.endpoint_api.Endpoint.prototype.hasEndpointtag = function() { + return jspb.Message.getField(this, 14) != null; }; /** - * optional SpeechToTextPrompt speechToTextPrompt = 12; - * @return {?proto.SpeechToTextPrompt} + * optional string language = 16; + * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getSpeechtotextprompt = function() { - return /** @type{?proto.SpeechToTextPrompt} */ ( - jspb.Message.getWrapperField(this, common_pb.SpeechToTextPrompt, 12)); +proto.endpoint_api.Endpoint.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** - * @param {?proto.SpeechToTextPrompt|undefined} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional Organization organization = 17; + * @return {?proto.Organization} + */ +proto.endpoint_api.Endpoint.prototype.getOrganization = function() { + return /** @type{?proto.Organization} */ ( + jspb.Message.getWrapperField(this, common_pb.Organization, 17)); +}; + + +/** + * @param {?proto.Organization|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setSpeechtotextprompt = function(value) { - return jspb.Message.setWrapperField(this, 12, value); +proto.endpoint_api.Endpoint.prototype.setOrganization = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearSpeechtotextprompt = function() { - return this.setSpeechtotextprompt(undefined); +proto.endpoint_api.Endpoint.prototype.clearOrganization = function() { + return this.setOrganization(undefined); }; @@ -3568,347 +3731,232 @@ proto.endpoint_api.EndpointProviderModelAttribute.prototype.clearSpeechtotextpro * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.hasSpeechtotextprompt = function() { - return jspb.Message.getField(this, 12) != null; +proto.endpoint_api.Endpoint.prototype.hasOrganization = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * optional string description = 11; + * optional string name = 18; * @return {string} */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +proto.endpoint_api.Endpoint.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointProviderModelAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointProviderModelAttribute.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); +proto.endpoint_api.Endpoint.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); }; +/** + * optional string description = 19; + * @return {string} + */ +proto.endpoint_api.Endpoint.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.endpoint_api.EndpointAttribute.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.EndpointAttribute.toObject(opt_includeInstance, this); + * @param {string} value + * @return {!proto.endpoint_api.Endpoint} returns this + */ +proto.endpoint_api.Endpoint.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.endpoint_api.EndpointAttribute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional google.protobuf.Timestamp createdDate = 20; + * @return {?proto.google.protobuf.Timestamp} */ -proto.endpoint_api.EndpointAttribute.toObject = function(includeInstance, msg) { - var f, obj = { - source: jspb.Message.getFieldWithDefault(msg, 1, ""), - sourceidentifier: jspb.Message.getFieldWithDefault(msg, 2, "0"), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 4, ""), - language: jspb.Message.getFieldWithDefault(msg, 6, ""), - name: jspb.Message.getFieldWithDefault(msg, 7, ""), - description: jspb.Message.getFieldWithDefault(msg, 8, "") - }; +proto.endpoint_api.Endpoint.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 20)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this +*/ +proto.endpoint_api.Endpoint.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 20, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.EndpointAttribute} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointAttribute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.EndpointAttribute; - return proto.endpoint_api.EndpointAttribute.deserializeBinaryFromReader(msg, reader); +proto.endpoint_api.Endpoint.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.endpoint_api.EndpointAttribute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.EndpointAttribute} + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointAttribute.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.setSource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSourceidentifier(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.endpoint_api.Endpoint.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 20) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional google.protobuf.Timestamp updatedDate = 21; + * @return {?proto.google.protobuf.Timestamp} */ -proto.endpoint_api.EndpointAttribute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.EndpointAttribute.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.endpoint_api.Endpoint.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 21)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.EndpointAttribute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.EndpointAttribute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSourceidentifier(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this +*/ +proto.endpoint_api.Endpoint.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 21, value); }; /** - * optional string source = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointAttribute.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.endpoint_api.Endpoint.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointAttribute.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.endpoint_api.Endpoint.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 21) != null; }; /** - * optional uint64 sourceIdentifier = 2; + * optional uint64 createdBy = 22; * @return {string} */ -proto.endpoint_api.EndpointAttribute.prototype.getSourceidentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.endpoint_api.Endpoint.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointAttribute.prototype.setSourceidentifier = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.endpoint_api.Endpoint.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 22, value); }; /** - * optional string type = 3; - * @return {string} + * optional User createdUser = 23; + * @return {?proto.User} */ -proto.endpoint_api.EndpointAttribute.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.endpoint_api.Endpoint.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 23)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this - */ -proto.endpoint_api.EndpointAttribute.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + * @param {?proto.User|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this +*/ +proto.endpoint_api.Endpoint.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 23, value); }; /** - * optional string visibility = 4; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointAttribute.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.endpoint_api.Endpoint.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointAttribute.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.endpoint_api.Endpoint.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 23) != null; }; /** - * optional string language = 6; + * optional uint64 updatedBy = 24; * @return {string} */ -proto.endpoint_api.EndpointAttribute.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.endpoint_api.Endpoint.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointAttribute.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.endpoint_api.Endpoint.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 24, value); }; /** - * optional string name = 7; - * @return {string} + * optional User updatedUser = 25; + * @return {?proto.User} */ -proto.endpoint_api.EndpointAttribute.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.endpoint_api.Endpoint.prototype.getUpdateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 25)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this - */ -proto.endpoint_api.EndpointAttribute.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); + * @param {?proto.User|undefined} value + * @return {!proto.endpoint_api.Endpoint} returns this +*/ +proto.endpoint_api.Endpoint.prototype.setUpdateduser = function(value) { + return jspb.Message.setWrapperField(this, 25, value); }; /** - * optional string description = 8; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.Endpoint} returns this */ -proto.endpoint_api.EndpointAttribute.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.endpoint_api.Endpoint.prototype.clearUpdateduser = function() { + return this.setUpdateduser(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointAttribute} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointAttribute.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.endpoint_api.Endpoint.prototype.hasUpdateduser = function() { + return jspb.Message.getField(this, 25) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.endpoint_api.CreateEndpointRequest.repeatedFields_ = [5]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -3924,8 +3972,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointProviderModelRequest.toObject(opt_includeInstance, this); }; @@ -3934,17 +3982,14 @@ proto.endpoint_api.CreateEndpointRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointProviderModelRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointProviderModelRequest.toObject = function(includeInstance, msg) { var f, obj = { - endpointprovidermodelattribute: (f = msg.getEndpointprovidermodelattribute()) && proto.endpoint_api.EndpointProviderModelAttribute.toObject(includeInstance, f), - endpointattribute: (f = msg.getEndpointattribute()) && proto.endpoint_api.EndpointAttribute.toObject(includeInstance, f), - retryconfiguration: (f = msg.getRetryconfiguration()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f), - cacheconfiguration: (f = msg.getCacheconfiguration()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f), - tagsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + endpointprovidermodelattribute: (f = msg.getEndpointprovidermodelattribute()) && proto.endpoint_api.EndpointProviderModelAttribute.toObject(includeInstance, f) }; if (includeInstance) { @@ -3958,23 +4003,23 @@ proto.endpoint_api.CreateEndpointRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointRequest} + * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} */ -proto.endpoint_api.CreateEndpointRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointRequest; - return proto.endpoint_api.CreateEndpointRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointProviderModelRequest; + return proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointProviderModelRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointRequest} + * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} */ -proto.endpoint_api.CreateEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3982,282 +4027,113 @@ proto.endpoint_api.CreateEndpointRequest.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 2: var value = new proto.endpoint_api.EndpointProviderModelAttribute; reader.readMessage(value,proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader); msg.setEndpointprovidermodelattribute(value); break; - case 2: - var value = new proto.endpoint_api.EndpointAttribute; - reader.readMessage(value,proto.endpoint_api.EndpointAttribute.deserializeBinaryFromReader); - msg.setEndpointattribute(value); - break; - case 3: - var value = new proto.endpoint_api.EndpointRetryConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); - msg.setRetryconfiguration(value); - break; - case 4: - var value = new proto.endpoint_api.EndpointCacheConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); - msg.setCacheconfiguration(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); - break; default: reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.CreateEndpointRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEndpointprovidermodelattribute(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter - ); - } - f = message.getEndpointattribute(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.endpoint_api.EndpointAttribute.serializeBinaryToWriter - ); - } - f = message.getRetryconfiguration(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter - ); - } - f = message.getCacheconfiguration(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter - ); - } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } -}; - - -/** - * optional EndpointProviderModelAttribute endpointProviderModelAttribute = 1; - * @return {?proto.endpoint_api.EndpointProviderModelAttribute} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.getEndpointprovidermodelattribute = function() { - return /** @type{?proto.endpoint_api.EndpointProviderModelAttribute} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModelAttribute, 1)); -}; - - -/** - * @param {?proto.endpoint_api.EndpointProviderModelAttribute|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this -*/ -proto.endpoint_api.CreateEndpointRequest.prototype.setEndpointprovidermodelattribute = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this - */ -proto.endpoint_api.CreateEndpointRequest.prototype.clearEndpointprovidermodelattribute = function() { - return this.setEndpointprovidermodelattribute(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.hasEndpointprovidermodelattribute = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndpointAttribute endpointAttribute = 2; - * @return {?proto.endpoint_api.EndpointAttribute} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.getEndpointattribute = function() { - return /** @type{?proto.endpoint_api.EndpointAttribute} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointAttribute, 2)); -}; - - -/** - * @param {?proto.endpoint_api.EndpointAttribute|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this -*/ -proto.endpoint_api.CreateEndpointRequest.prototype.setEndpointattribute = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this - */ -proto.endpoint_api.CreateEndpointRequest.prototype.clearEndpointattribute = function() { - return this.setEndpointattribute(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.hasEndpointattribute = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional EndpointRetryConfiguration retryConfiguration = 3; - * @return {?proto.endpoint_api.EndpointRetryConfiguration} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.getRetryconfiguration = function() { - return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 3)); -}; - - -/** - * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this -*/ -proto.endpoint_api.CreateEndpointRequest.prototype.setRetryconfiguration = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this - */ -proto.endpoint_api.CreateEndpointRequest.prototype.clearRetryconfiguration = function() { - return this.setRetryconfiguration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.endpoint_api.CreateEndpointRequest.prototype.hasRetryconfiguration = function() { - return jspb.Message.getField(this, 3) != null; + break; + } + } + return msg; }; /** - * optional EndpointCacheConfiguration cacheConfiguration = 4; - * @return {?proto.endpoint_api.EndpointCacheConfiguration} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointRequest.prototype.getCacheconfiguration = function() { - return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 4)); +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.CreateEndpointProviderModelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this -*/ -proto.endpoint_api.CreateEndpointRequest.prototype.setCacheconfiguration = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.CreateEndpointProviderModelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.endpoint_api.CreateEndpointProviderModelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getEndpointprovidermodelattribute(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this + * optional uint64 endpointId = 1; + * @return {string} */ -proto.endpoint_api.CreateEndpointRequest.prototype.clearCacheconfiguration = function() { - return this.setCacheconfiguration(undefined); +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} returns this */ -proto.endpoint_api.CreateEndpointRequest.prototype.hasCacheconfiguration = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * repeated string tags = 5; - * @return {!Array} + * optional EndpointProviderModelAttribute endpointProviderModelAttribute = 2; + * @return {?proto.endpoint_api.EndpointProviderModelAttribute} */ -proto.endpoint_api.CreateEndpointRequest.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.getEndpointprovidermodelattribute = function() { + return /** @type{?proto.endpoint_api.EndpointProviderModelAttribute} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModelAttribute, 2)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this - */ -proto.endpoint_api.CreateEndpointRequest.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 5, value || []); + * @param {?proto.endpoint_api.EndpointProviderModelAttribute|undefined} value + * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} returns this +*/ +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.setEndpointprovidermodelattribute = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} returns this */ -proto.endpoint_api.CreateEndpointRequest.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.clearEndpointprovidermodelattribute = function() { + return this.setEndpointprovidermodelattribute(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.CreateEndpointRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.CreateEndpointRequest.prototype.clearTagsList = function() { - return this.setTagsList([]); +proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.hasEndpointprovidermodelattribute = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -4277,8 +4153,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointProviderModelResponse.toObject(opt_includeInstance, this); }; @@ -4287,15 +4163,15 @@ proto.endpoint_api.CreateEndpointResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointProviderModelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointProviderModelResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.Endpoint.toObject(includeInstance, f), + data: (f = msg.getData()) && proto.endpoint_api.EndpointProviderModel.toObject(includeInstance, f), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; @@ -4310,23 +4186,23 @@ proto.endpoint_api.CreateEndpointResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointResponse} + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} */ -proto.endpoint_api.CreateEndpointResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointResponse; - return proto.endpoint_api.CreateEndpointResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointProviderModelResponse; + return proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointProviderModelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointResponse} + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} */ -proto.endpoint_api.CreateEndpointResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4342,8 +4218,8 @@ proto.endpoint_api.CreateEndpointResponse.deserializeBinaryFromReader = function msg.setSuccess(value); break; case 3: - var value = new proto.endpoint_api.Endpoint; - reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); + var value = new proto.endpoint_api.EndpointProviderModel; + reader.readMessage(value,proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader); msg.setData(value); break; case 4: @@ -4364,9 +4240,9 @@ proto.endpoint_api.CreateEndpointResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointResponse.prototype.serializeBinary = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.CreateEndpointProviderModelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4374,11 +4250,11 @@ proto.endpoint_api.CreateEndpointResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointResponse} message + * @param {!proto.endpoint_api.CreateEndpointProviderModelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.CreateEndpointProviderModelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -4399,7 +4275,7 @@ proto.endpoint_api.CreateEndpointResponse.serializeBinaryToWriter = function(mes writer.writeMessage( 3, f, - proto.endpoint_api.Endpoint.serializeBinaryToWriter + proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter ); } f = message.getError(); @@ -4417,16 +4293,16 @@ proto.endpoint_api.CreateEndpointResponse.serializeBinaryToWriter = function(mes * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.CreateEndpointResponse.prototype.getCode = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.CreateEndpointResponse} returns this + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this */ -proto.endpoint_api.CreateEndpointResponse.prototype.setCode = function(value) { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -4435,44 +4311,44 @@ proto.endpoint_api.CreateEndpointResponse.prototype.setCode = function(value) { * optional bool success = 2; * @return {boolean} */ -proto.endpoint_api.CreateEndpointResponse.prototype.getSuccess = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.endpoint_api.CreateEndpointResponse} returns this + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this */ -proto.endpoint_api.CreateEndpointResponse.prototype.setSuccess = function(value) { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional Endpoint data = 3; - * @return {?proto.endpoint_api.Endpoint} + * optional EndpointProviderModel data = 3; + * @return {?proto.endpoint_api.EndpointProviderModel} */ -proto.endpoint_api.CreateEndpointResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.Endpoint} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.Endpoint, 3)); +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.EndpointProviderModel} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModel, 3)); }; /** - * @param {?proto.endpoint_api.Endpoint|undefined} value - * @return {!proto.endpoint_api.CreateEndpointResponse} returns this + * @param {?proto.endpoint_api.EndpointProviderModel|undefined} value + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this */ -proto.endpoint_api.CreateEndpointResponse.prototype.setData = function(value) { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setData = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointResponse} returns this + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this */ -proto.endpoint_api.CreateEndpointResponse.prototype.clearData = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.clearData = function() { return this.setData(undefined); }; @@ -4481,7 +4357,7 @@ proto.endpoint_api.CreateEndpointResponse.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CreateEndpointResponse.prototype.hasData = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.hasData = function() { return jspb.Message.getField(this, 3) != null; }; @@ -4490,7 +4366,7 @@ proto.endpoint_api.CreateEndpointResponse.prototype.hasData = function() { * optional Error error = 4; * @return {?proto.Error} */ -proto.endpoint_api.CreateEndpointResponse.prototype.getError = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -4498,18 +4374,18 @@ proto.endpoint_api.CreateEndpointResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.CreateEndpointResponse} returns this + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this */ -proto.endpoint_api.CreateEndpointResponse.prototype.setError = function(value) { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointResponse} returns this + * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this */ -proto.endpoint_api.CreateEndpointResponse.prototype.clearError = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -4518,7 +4394,7 @@ proto.endpoint_api.CreateEndpointResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CreateEndpointResponse.prototype.hasError = function() { +proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -4539,8 +4415,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointProviderModelRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.GetEndpointRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetEndpointRequest.toObject(opt_includeInstance, this); }; @@ -4549,14 +4425,14 @@ proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointProviderModelRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetEndpointRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointProviderModelRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetEndpointRequest.toObject = function(includeInstance, msg) { var f, obj = { - endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endpointprovidermodelattribute: (f = msg.getEndpointprovidermodelattribute()) && proto.endpoint_api.EndpointProviderModelAttribute.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + endpointprovidermodelid: jspb.Message.getFieldWithDefault(msg, 4, "0") }; if (includeInstance) { @@ -4570,23 +4446,23 @@ proto.endpoint_api.CreateEndpointProviderModelRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} + * @return {!proto.endpoint_api.GetEndpointRequest} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.GetEndpointRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointProviderModelRequest; - return proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetEndpointRequest; + return proto.endpoint_api.GetEndpointRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointProviderModelRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetEndpointRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} + * @return {!proto.endpoint_api.GetEndpointRequest} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4595,12 +4471,11 @@ proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinaryFromReade switch (field) { case 1: var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); + msg.setId(value); break; - case 2: - var value = new proto.endpoint_api.EndpointProviderModelAttribute; - reader.readMessage(value,proto.endpoint_api.EndpointProviderModelAttribute.deserializeBinaryFromReader); - msg.setEndpointprovidermodelattribute(value); + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointprovidermodelid(value); break; default: reader.skipField(); @@ -4615,9 +4490,9 @@ proto.endpoint_api.CreateEndpointProviderModelRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.serializeBinary = function() { +proto.endpoint_api.GetEndpointRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointProviderModelRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetEndpointRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4625,73 +4500,71 @@ proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointProviderModelRequest} message + * @param {!proto.endpoint_api.GetEndpointRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointProviderModelRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetEndpointRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEndpointid(); + f = message.getId(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 1, f ); } - f = message.getEndpointprovidermodelattribute(); + f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { - writer.writeMessage( - 2, - f, - proto.endpoint_api.EndpointProviderModelAttribute.serializeBinaryToWriter + writer.writeUint64String( + 4, + f ); } }; /** - * optional uint64 endpointId = 1; + * optional uint64 id = 1; * @return {string} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.getEndpointid = function() { +proto.endpoint_api.GetEndpointRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} returns this + * @return {!proto.endpoint_api.GetEndpointRequest} returns this */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.setEndpointid = function(value) { +proto.endpoint_api.GetEndpointRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional EndpointProviderModelAttribute endpointProviderModelAttribute = 2; - * @return {?proto.endpoint_api.EndpointProviderModelAttribute} + * optional uint64 endpointProviderModelId = 4; + * @return {string} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.getEndpointprovidermodelattribute = function() { - return /** @type{?proto.endpoint_api.EndpointProviderModelAttribute} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModelAttribute, 2)); +proto.endpoint_api.GetEndpointRequest.prototype.getEndpointprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; /** - * @param {?proto.endpoint_api.EndpointProviderModelAttribute|undefined} value - * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} returns this -*/ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.setEndpointprovidermodelattribute = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.endpoint_api.GetEndpointRequest} returns this + */ +proto.endpoint_api.GetEndpointRequest.prototype.setEndpointprovidermodelid = function(value) { + return jspb.Message.setField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointProviderModelRequest} returns this + * Clears the field making it undefined. + * @return {!proto.endpoint_api.GetEndpointRequest} returns this */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.clearEndpointprovidermodelattribute = function() { - return this.setEndpointprovidermodelattribute(undefined); +proto.endpoint_api.GetEndpointRequest.prototype.clearEndpointprovidermodelid = function() { + return jspb.Message.setField(this, 4, undefined); }; @@ -4699,8 +4572,8 @@ proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.clearEndpointpro * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CreateEndpointProviderModelRequest.prototype.hasEndpointprovidermodelattribute = function() { - return jspb.Message.getField(this, 2) != null; +proto.endpoint_api.GetEndpointRequest.prototype.hasEndpointprovidermodelid = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -4720,8 +4593,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointProviderModelResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.GetEndpointResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetEndpointResponse.toObject(opt_includeInstance, this); }; @@ -4730,15 +4603,15 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.toObject = func * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointProviderModelResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetEndpointResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointProviderModelResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetEndpointResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.EndpointProviderModel.toObject(includeInstance, f), + data: (f = msg.getData()) && proto.endpoint_api.Endpoint.toObject(includeInstance, f), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; @@ -4753,23 +4626,23 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.toObject = function(inclu /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} + * @return {!proto.endpoint_api.GetEndpointResponse} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.GetEndpointResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointProviderModelResponse; - return proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetEndpointResponse; + return proto.endpoint_api.GetEndpointResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointProviderModelResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetEndpointResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} + * @return {!proto.endpoint_api.GetEndpointResponse} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetEndpointResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4785,8 +4658,8 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinaryFromRead msg.setSuccess(value); break; case 3: - var value = new proto.endpoint_api.EndpointProviderModel; - reader.readMessage(value,proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader); + var value = new proto.endpoint_api.Endpoint; + reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); msg.setData(value); break; case 4: @@ -4807,9 +4680,9 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.serializeBinary = function() { +proto.endpoint_api.GetEndpointResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointProviderModelResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4817,11 +4690,11 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointProviderModelResponse} message + * @param {!proto.endpoint_api.GetEndpointResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointProviderModelResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -4842,7 +4715,7 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.serializeBinaryToWriter = writer.writeMessage( 3, f, - proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter + proto.endpoint_api.Endpoint.serializeBinaryToWriter ); } f = message.getError(); @@ -4860,16 +4733,16 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.serializeBinaryToWriter = * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getCode = function() { +proto.endpoint_api.GetEndpointResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this + * @return {!proto.endpoint_api.GetEndpointResponse} returns this */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setCode = function(value) { +proto.endpoint_api.GetEndpointResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -4878,44 +4751,44 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setCode = funct * optional bool success = 2; * @return {boolean} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getSuccess = function() { +proto.endpoint_api.GetEndpointResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this + * @return {!proto.endpoint_api.GetEndpointResponse} returns this */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setSuccess = function(value) { +proto.endpoint_api.GetEndpointResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional EndpointProviderModel data = 3; - * @return {?proto.endpoint_api.EndpointProviderModel} + * optional Endpoint data = 3; + * @return {?proto.endpoint_api.Endpoint} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.EndpointProviderModel} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointProviderModel, 3)); +proto.endpoint_api.GetEndpointResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.Endpoint} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.Endpoint, 3)); }; /** - * @param {?proto.endpoint_api.EndpointProviderModel|undefined} value - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this + * @param {?proto.endpoint_api.Endpoint|undefined} value + * @return {!proto.endpoint_api.GetEndpointResponse} returns this */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setData = function(value) { +proto.endpoint_api.GetEndpointResponse.prototype.setData = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this + * @return {!proto.endpoint_api.GetEndpointResponse} returns this */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.clearData = function() { +proto.endpoint_api.GetEndpointResponse.prototype.clearData = function() { return this.setData(undefined); }; @@ -4924,7 +4797,7 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.clearData = fun * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.hasData = function() { +proto.endpoint_api.GetEndpointResponse.prototype.hasData = function() { return jspb.Message.getField(this, 3) != null; }; @@ -4933,7 +4806,7 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.hasData = funct * optional Error error = 4; * @return {?proto.Error} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getError = function() { +proto.endpoint_api.GetEndpointResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -4941,18 +4814,18 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.getError = func /** * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this + * @return {!proto.endpoint_api.GetEndpointResponse} returns this */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.setError = function(value) { +proto.endpoint_api.GetEndpointResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointProviderModelResponse} returns this + * @return {!proto.endpoint_api.GetEndpointResponse} returns this */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.clearError = function() { +proto.endpoint_api.GetEndpointResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -4961,12 +4834,19 @@ proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.clearError = fu * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CreateEndpointProviderModelResponse.prototype.hasError = function() { +proto.endpoint_api.GetEndpointResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.endpoint_api.GetAllEndpointRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4982,8 +4862,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetEndpointRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetEndpointRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.GetAllEndpointRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetAllEndpointRequest.toObject(opt_includeInstance, this); }; @@ -4992,14 +4872,15 @@ proto.endpoint_api.GetEndpointRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetEndpointRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetAllEndpointRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetEndpointRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetAllEndpointRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endpointprovidermodelid: jspb.Message.getFieldWithDefault(msg, 4, "0") + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.toObject, includeInstance) }; if (includeInstance) { @@ -5013,23 +4894,23 @@ proto.endpoint_api.GetEndpointRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetEndpointRequest} + * @return {!proto.endpoint_api.GetAllEndpointRequest} */ -proto.endpoint_api.GetEndpointRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.GetAllEndpointRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetEndpointRequest; - return proto.endpoint_api.GetEndpointRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetAllEndpointRequest; + return proto.endpoint_api.GetAllEndpointRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetEndpointRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetAllEndpointRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetEndpointRequest} + * @return {!proto.endpoint_api.GetAllEndpointRequest} */ -proto.endpoint_api.GetEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetAllEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5037,12 +4918,14 @@ proto.endpoint_api.GetEndpointRequest.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointprovidermodelid(value); + case 2: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); break; default: reader.skipField(); @@ -5057,9 +4940,9 @@ proto.endpoint_api.GetEndpointRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetEndpointRequest.prototype.serializeBinary = function() { +proto.endpoint_api.GetAllEndpointRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetEndpointRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetAllEndpointRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5067,84 +4950,114 @@ proto.endpoint_api.GetEndpointRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetEndpointRequest} message + * @param {!proto.endpoint_api.GetAllEndpointRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetEndpointRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetAllEndpointRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( 1, - f + f, + common_pb.Paginate.serializeBinaryToWriter ); } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeUint64String( - 4, - f + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + common_pb.Criteria.serializeBinaryToWriter ); } }; /** - * optional uint64 id = 1; - * @return {string} + * optional Paginate paginate = 1; + * @return {?proto.Paginate} */ -proto.endpoint_api.GetEndpointRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.endpoint_api.GetAllEndpointRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.GetEndpointRequest} returns this + * @param {?proto.Paginate|undefined} value + * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this +*/ +proto.endpoint_api.GetAllEndpointRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this */ -proto.endpoint_api.GetEndpointRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.endpoint_api.GetAllEndpointRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); }; /** - * optional uint64 endpointProviderModelId = 4; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.GetEndpointRequest.prototype.getEndpointprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +proto.endpoint_api.GetAllEndpointRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {string} value - * @return {!proto.endpoint_api.GetEndpointRequest} returns this + * repeated Criteria criterias = 2; + * @return {!Array} */ -proto.endpoint_api.GetEndpointRequest.prototype.setEndpointprovidermodelid = function(value) { - return jspb.Message.setField(this, 4, value); +proto.endpoint_api.GetAllEndpointRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); }; /** - * Clears the field making it undefined. - * @return {!proto.endpoint_api.GetEndpointRequest} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this +*/ +proto.endpoint_api.GetAllEndpointRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} */ -proto.endpoint_api.GetEndpointRequest.prototype.clearEndpointprovidermodelid = function() { - return jspb.Message.setField(this, 4, undefined); +proto.endpoint_api.GetAllEndpointRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this */ -proto.endpoint_api.GetEndpointRequest.prototype.hasEndpointprovidermodelid = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.GetAllEndpointRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.endpoint_api.GetAllEndpointResponse.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5160,8 +5073,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetEndpointResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetEndpointResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.GetAllEndpointResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetAllEndpointResponse.toObject(opt_includeInstance, this); }; @@ -5170,16 +5083,18 @@ proto.endpoint_api.GetEndpointResponse.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetEndpointResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetAllEndpointResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetEndpointResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetAllEndpointResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.Endpoint.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.endpoint_api.Endpoint.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; if (includeInstance) { @@ -5193,23 +5108,23 @@ proto.endpoint_api.GetEndpointResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetEndpointResponse} + * @return {!proto.endpoint_api.GetAllEndpointResponse} */ -proto.endpoint_api.GetEndpointResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.GetAllEndpointResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetEndpointResponse; - return proto.endpoint_api.GetEndpointResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetAllEndpointResponse; + return proto.endpoint_api.GetAllEndpointResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetEndpointResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetAllEndpointResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetEndpointResponse} + * @return {!proto.endpoint_api.GetAllEndpointResponse} */ -proto.endpoint_api.GetEndpointResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetAllEndpointResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5227,13 +5142,18 @@ proto.endpoint_api.GetEndpointResponse.deserializeBinaryFromReader = function(ms case 3: var value = new proto.endpoint_api.Endpoint; reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); - msg.setData(value); + msg.addData(value); break; case 4: var value = new common_pb.Error; reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; default: reader.skipField(); break; @@ -5247,9 +5167,9 @@ proto.endpoint_api.GetEndpointResponse.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetEndpointResponse.prototype.serializeBinary = function() { +proto.endpoint_api.GetAllEndpointResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetAllEndpointResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5257,11 +5177,11 @@ proto.endpoint_api.GetEndpointResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetEndpointResponse} message + * @param {!proto.endpoint_api.GetAllEndpointResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetAllEndpointResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -5277,9 +5197,9 @@ proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter = function(messag f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, f, proto.endpoint_api.Endpoint.serializeBinaryToWriter @@ -5293,6 +5213,14 @@ proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter = function(messag common_pb.Error.serializeBinaryToWriter ); } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } }; @@ -5300,16 +5228,16 @@ proto.endpoint_api.GetEndpointResponse.serializeBinaryToWriter = function(messag * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.GetEndpointResponse.prototype.getCode = function() { +proto.endpoint_api.GetAllEndpointResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.GetEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this */ -proto.endpoint_api.GetEndpointResponse.prototype.setCode = function(value) { +proto.endpoint_api.GetAllEndpointResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -5318,54 +5246,55 @@ proto.endpoint_api.GetEndpointResponse.prototype.setCode = function(value) { * optional bool success = 2; * @return {boolean} */ -proto.endpoint_api.GetEndpointResponse.prototype.getSuccess = function() { +proto.endpoint_api.GetAllEndpointResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.endpoint_api.GetEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this */ -proto.endpoint_api.GetEndpointResponse.prototype.setSuccess = function(value) { +proto.endpoint_api.GetAllEndpointResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional Endpoint data = 3; - * @return {?proto.endpoint_api.Endpoint} + * repeated Endpoint data = 3; + * @return {!Array} */ -proto.endpoint_api.GetEndpointResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.Endpoint} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.Endpoint, 3)); +proto.endpoint_api.GetAllEndpointResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.endpoint_api.Endpoint, 3)); }; /** - * @param {?proto.endpoint_api.Endpoint|undefined} value - * @return {!proto.endpoint_api.GetEndpointResponse} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this */ -proto.endpoint_api.GetEndpointResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.endpoint_api.GetAllEndpointResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetEndpointResponse} returns this + * @param {!proto.endpoint_api.Endpoint=} opt_value + * @param {number=} opt_index + * @return {!proto.endpoint_api.Endpoint} */ -proto.endpoint_api.GetEndpointResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.endpoint_api.GetAllEndpointResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.endpoint_api.Endpoint, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this */ -proto.endpoint_api.GetEndpointResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.endpoint_api.GetAllEndpointResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; @@ -5373,7 +5302,7 @@ proto.endpoint_api.GetEndpointResponse.prototype.hasData = function() { * optional Error error = 4; * @return {?proto.Error} */ -proto.endpoint_api.GetEndpointResponse.prototype.getError = function() { +proto.endpoint_api.GetAllEndpointResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -5381,18 +5310,18 @@ proto.endpoint_api.GetEndpointResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.GetEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this */ -proto.endpoint_api.GetEndpointResponse.prototype.setError = function(value) { +proto.endpoint_api.GetAllEndpointResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this */ -proto.endpoint_api.GetEndpointResponse.prototype.clearError = function() { +proto.endpoint_api.GetAllEndpointResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -5401,18 +5330,55 @@ proto.endpoint_api.GetEndpointResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.GetEndpointResponse.prototype.hasError = function() { +proto.endpoint_api.GetAllEndpointResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.endpoint_api.GetAllEndpointResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this +*/ +proto.endpoint_api.GetAllEndpointResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + */ +proto.endpoint_api.GetAllEndpointResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.endpoint_api.GetAllEndpointResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.endpoint_api.GetAllEndpointRequest.repeatedFields_ = [2]; +proto.endpoint_api.GetAllEndpointProviderModelRequest.repeatedFields_ = [2]; @@ -5429,8 +5395,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetAllEndpointRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetAllEndpointRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetAllEndpointProviderModelRequest.toObject(opt_includeInstance, this); }; @@ -5439,15 +5405,16 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetAllEndpointRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetAllEndpointProviderModelRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.toObject = function(includeInstance, msg) { var f, obj = { paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance) + common_pb.Criteria.toObject, includeInstance), + endpointid: jspb.Message.getFieldWithDefault(msg, 5, "0") }; if (includeInstance) { @@ -5461,23 +5428,23 @@ proto.endpoint_api.GetAllEndpointRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetAllEndpointRequest} + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} */ -proto.endpoint_api.GetAllEndpointRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetAllEndpointRequest; - return proto.endpoint_api.GetAllEndpointRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetAllEndpointProviderModelRequest; + return proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetAllEndpointRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetAllEndpointProviderModelRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetAllEndpointRequest} + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} */ -proto.endpoint_api.GetAllEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5494,6 +5461,10 @@ proto.endpoint_api.GetAllEndpointRequest.deserializeBinaryFromReader = function( reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); msg.addCriterias(value); break; + case 5: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; default: reader.skipField(); break; @@ -5507,9 +5478,9 @@ proto.endpoint_api.GetAllEndpointRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetAllEndpointRequest.prototype.serializeBinary = function() { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetAllEndpointRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetAllEndpointProviderModelRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5517,11 +5488,11 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetAllEndpointRequest} message + * @param {!proto.endpoint_api.GetAllEndpointProviderModelRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPaginate(); if (f != null) { @@ -5539,6 +5510,13 @@ proto.endpoint_api.GetAllEndpointRequest.serializeBinaryToWriter = function(mess common_pb.Criteria.serializeBinaryToWriter ); } + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 5, + f + ); + } }; @@ -5546,7 +5524,7 @@ proto.endpoint_api.GetAllEndpointRequest.serializeBinaryToWriter = function(mess * optional Paginate paginate = 1; * @return {?proto.Paginate} */ -proto.endpoint_api.GetAllEndpointRequest.prototype.getPaginate = function() { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.getPaginate = function() { return /** @type{?proto.Paginate} */ ( jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); }; @@ -5554,18 +5532,18 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.getPaginate = function() { /** * @param {?proto.Paginate|undefined} value - * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this */ -proto.endpoint_api.GetAllEndpointRequest.prototype.setPaginate = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setPaginate = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this */ -proto.endpoint_api.GetAllEndpointRequest.prototype.clearPaginate = function() { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.clearPaginate = function() { return this.setPaginate(undefined); }; @@ -5574,7 +5552,7 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.clearPaginate = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.GetAllEndpointRequest.prototype.hasPaginate = function() { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.hasPaginate = function() { return jspb.Message.getField(this, 1) != null; }; @@ -5583,7 +5561,7 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.hasPaginate = function() { * repeated Criteria criterias = 2; * @return {!Array} */ -proto.endpoint_api.GetAllEndpointRequest.prototype.getCriteriasList = function() { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.getCriteriasList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); }; @@ -5591,9 +5569,9 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.getCriteriasList = function() /** * @param {!Array} value - * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this */ -proto.endpoint_api.GetAllEndpointRequest.prototype.setCriteriasList = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setCriteriasList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -5603,27 +5581,45 @@ proto.endpoint_api.GetAllEndpointRequest.prototype.setCriteriasList = function(v * @param {number=} opt_index * @return {!proto.Criteria} */ -proto.endpoint_api.GetAllEndpointRequest.prototype.addCriterias = function(opt_value, opt_index) { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.addCriterias = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.GetAllEndpointRequest} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this */ -proto.endpoint_api.GetAllEndpointRequest.prototype.clearCriteriasList = function() { +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.clearCriteriasList = function() { return this.setCriteriasList([]); }; +/** + * optional uint64 endpointId = 5; + * @return {string} + */ +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this + */ +proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); +}; + + /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.endpoint_api.GetAllEndpointResponse.repeatedFields_ = [3]; +proto.endpoint_api.GetAllEndpointProviderModelResponse.repeatedFields_ = [3]; @@ -5640,8 +5636,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetAllEndpointResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetAllEndpointProviderModelResponse.toObject(opt_includeInstance, this); }; @@ -5650,16 +5646,16 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetAllEndpointResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetAllEndpointProviderModelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.endpoint_api.Endpoint.toObject, includeInstance), + proto.endpoint_api.EndpointProviderModel.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; @@ -5675,23 +5671,23 @@ proto.endpoint_api.GetAllEndpointResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetAllEndpointResponse} + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} */ -proto.endpoint_api.GetAllEndpointResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetAllEndpointResponse; - return proto.endpoint_api.GetAllEndpointResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetAllEndpointProviderModelResponse; + return proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetAllEndpointResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetAllEndpointProviderModelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetAllEndpointResponse} + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} */ -proto.endpoint_api.GetAllEndpointResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5707,8 +5703,8 @@ proto.endpoint_api.GetAllEndpointResponse.deserializeBinaryFromReader = function msg.setSuccess(value); break; case 3: - var value = new proto.endpoint_api.Endpoint; - reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); + var value = new proto.endpoint_api.EndpointProviderModel; + reader.readMessage(value,proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader); msg.addData(value); break; case 4: @@ -5734,9 +5730,9 @@ proto.endpoint_api.GetAllEndpointResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.serializeBinary = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetAllEndpointResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetAllEndpointProviderModelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5744,11 +5740,11 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetAllEndpointResponse} message + * @param {!proto.endpoint_api.GetAllEndpointProviderModelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -5769,7 +5765,7 @@ proto.endpoint_api.GetAllEndpointResponse.serializeBinaryToWriter = function(mes writer.writeRepeatedMessage( 3, f, - proto.endpoint_api.Endpoint.serializeBinaryToWriter + proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter ); } f = message.getError(); @@ -5795,16 +5791,16 @@ proto.endpoint_api.GetAllEndpointResponse.serializeBinaryToWriter = function(mes * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.getCode = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.setCode = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -5813,54 +5809,54 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.setCode = function(value) { * optional bool success = 2; * @return {boolean} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.getSuccess = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.setSuccess = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated Endpoint data = 3; - * @return {!Array} + * repeated EndpointProviderModel data = 3; + * @return {!Array} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.endpoint_api.Endpoint, 3)); +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.endpoint_api.EndpointProviderModel, 3)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.setDataList = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.endpoint_api.Endpoint=} opt_value + * @param {!proto.endpoint_api.EndpointProviderModel=} opt_value * @param {number=} opt_index - * @return {!proto.endpoint_api.Endpoint} + * @return {!proto.endpoint_api.EndpointProviderModel} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.endpoint_api.Endpoint, opt_index); +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.endpoint_api.EndpointProviderModel, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.clearDataList = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -5869,7 +5865,7 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.clearDataList = function() { * optional Error error = 4; * @return {?proto.Error} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.getError = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -5877,18 +5873,18 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.setError = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.clearError = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -5897,7 +5893,7 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.hasError = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -5906,7 +5902,7 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.hasError = function() { * optional Paginated paginated = 5; * @return {?proto.Paginated} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.getPaginated = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getPaginated = function() { return /** @type{?proto.Paginated} */ ( jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; @@ -5914,18 +5910,18 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.getPaginated = function() { /** * @param {?proto.Paginated|undefined} value - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.setPaginated = function(value) { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setPaginated = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllEndpointResponse} returns this + * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this */ -proto.endpoint_api.GetAllEndpointResponse.prototype.clearPaginated = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.clearPaginated = function() { return this.setPaginated(undefined); }; @@ -5934,18 +5930,171 @@ proto.endpoint_api.GetAllEndpointResponse.prototype.clearPaginated = function() * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.GetAllEndpointResponse.prototype.hasPaginated = function() { +proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.hasPaginated = function() { return jspb.Message.getField(this, 5) != null; }; + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.repeatedFields_ = [2]; +proto.endpoint_api.UpdateEndpointVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.UpdateEndpointVersionRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.endpoint_api.UpdateEndpointVersionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.endpoint_api.UpdateEndpointVersionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + endpointprovidermodelid: 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.endpoint_api.UpdateEndpointVersionRequest} + */ +proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.endpoint_api.UpdateEndpointVersionRequest; + return proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.endpoint_api.UpdateEndpointVersionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} + */ +proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointprovidermodelid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.endpoint_api.UpdateEndpointVersionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.UpdateEndpointVersionRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.UpdateEndpointVersionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.endpoint_api.UpdateEndpointVersionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getEndpointprovidermodelid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 endpointId = 1; + * @return {string} + */ +proto.endpoint_api.UpdateEndpointVersionRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} returns this + */ +proto.endpoint_api.UpdateEndpointVersionRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 endpointProviderModelId = 2; + * @return {string} + */ +proto.endpoint_api.UpdateEndpointVersionRequest.prototype.getEndpointprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} returns this + */ +proto.endpoint_api.UpdateEndpointVersionRequest.prototype.setEndpointprovidermodelid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + @@ -5962,8 +6111,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetAllEndpointProviderModelRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.UpdateEndpointVersionResponse.toObject(opt_includeInstance, this); }; @@ -5972,16 +6121,16 @@ proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetAllEndpointProviderModelRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.UpdateEndpointVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.UpdateEndpointVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { - paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance), - endpointid: jspb.Message.getFieldWithDefault(msg, 5, "0") + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.endpoint_api.Endpoint.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -5995,23 +6144,23 @@ proto.endpoint_api.GetAllEndpointProviderModelRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetAllEndpointProviderModelRequest; - return proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.UpdateEndpointVersionResponse; + return proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetAllEndpointProviderModelRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.UpdateEndpointVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6019,18 +6168,22 @@ proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new common_pb.Paginate; - reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); - msg.setPaginate(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; case 2: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); + case 3: + var value = new proto.endpoint_api.Endpoint; + reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); break; default: reader.skipField(); @@ -6045,9 +6198,9 @@ proto.endpoint_api.GetAllEndpointProviderModelRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.serializeBinary = function() { +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetAllEndpointProviderModelRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.UpdateEndpointVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6055,128 +6208,152 @@ proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetAllEndpointProviderModelRequest} message + * @param {!proto.endpoint_api.UpdateEndpointVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.UpdateEndpointVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPaginate(); - if (f != null) { - writer.writeMessage( + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( 1, - f, - common_pb.Paginate.serializeBinaryToWriter + f ); } - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getSuccess(); + if (f) { + writer.writeBool( 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, f, - common_pb.Criteria.serializeBinaryToWriter + proto.endpoint_api.Endpoint.serializeBinaryToWriter ); } - f = message.getEndpointid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter ); } }; /** - * optional Paginate paginate = 1; - * @return {?proto.Paginate} + * optional int32 code = 1; + * @return {number} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.Paginate|undefined} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this -*/ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this + */ +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this + * optional bool success = 2; + * @return {boolean} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated Criteria criterias = 2; - * @return {!Array} + * optional Endpoint data = 3; + * @return {?proto.endpoint_api.Endpoint} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.Endpoint} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.Endpoint, 3)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this + * @param {?proto.endpoint_api.Endpoint|undefined} value + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional uint64 endpointId = 5; - * @return {string} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelRequest} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this +*/ +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.endpoint_api.UpdateEndpointVersionResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -6186,7 +6363,7 @@ proto.endpoint_api.GetAllEndpointProviderModelRequest.prototype.setEndpointid = * @private {!Array} * @const */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.repeatedFields_ = [3]; +proto.endpoint_api.EndpointRetryConfiguration.repeatedFields_ = [6]; @@ -6203,8 +6380,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetAllEndpointProviderModelResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointRetryConfiguration.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.EndpointRetryConfiguration.toObject(opt_includeInstance, this); }; @@ -6213,18 +6390,19 @@ proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.toObject = func * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetAllEndpointProviderModelResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.EndpointRetryConfiguration} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.EndpointRetryConfiguration.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.endpoint_api.EndpointProviderModel.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) + retrytype: jspb.Message.getFieldWithDefault(msg, 2, ""), + maxattempts: jspb.Message.getFieldWithDefault(msg, 3, "0"), + delayseconds: jspb.Message.getFieldWithDefault(msg, 4, "0"), + exponentialbackoff: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + retryablesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + createdby: jspb.Message.getFieldWithDefault(msg, 8, "0"), + updatedby: jspb.Message.getFieldWithDefault(msg, 9, "0") }; if (includeInstance) { @@ -6238,51 +6416,56 @@ proto.endpoint_api.GetAllEndpointProviderModelResponse.toObject = function(inclu /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} + * @return {!proto.endpoint_api.EndpointRetryConfiguration} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.EndpointRetryConfiguration.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetAllEndpointProviderModelResponse; - return proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.EndpointRetryConfiguration; + return proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetAllEndpointProviderModelResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.EndpointRetryConfiguration} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} + * @return {!proto.endpoint_api.EndpointRetryConfiguration} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRetrytype(value); break; case 3: - var value = new proto.endpoint_api.EndpointProviderModel; - reader.readMessage(value,proto.endpoint_api.EndpointProviderModel.deserializeBinaryFromReader); - msg.addData(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setMaxattempts(value); break; case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setDelayseconds(value); break; case 5: - var value = new common_pb.Paginated; - reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); - msg.setPaginated(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExponentialbackoff(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addRetryables(value); + break; + case 8: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCreatedby(value); + break; + case 9: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); break; default: reader.skipField(); @@ -6297,9 +6480,9 @@ proto.endpoint_api.GetAllEndpointProviderModelResponse.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.serializeBinary = function() { +proto.endpoint_api.EndpointRetryConfiguration.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetAllEndpointProviderModelResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6307,198 +6490,206 @@ proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetAllEndpointProviderModelResponse} message + * @param {!proto.endpoint_api.EndpointRetryConfiguration} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, + f = message.getRetrytype(); + if (f.length > 0) { + writer.writeString( + 2, f ); } - f = message.getSuccess(); + f = message.getMaxattempts(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, + f + ); + } + f = message.getDelayseconds(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getExponentialbackoff(); if (f) { writer.writeBool( - 2, + 5, f ); } - f = message.getDataList(); + f = message.getRetryablesList(); if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.endpoint_api.EndpointProviderModel.serializeBinaryToWriter + writer.writeRepeatedString( + 6, + f ); } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter + f = message.getCreatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 8, + f ); } - f = message.getPaginated(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Paginated.serializeBinaryToWriter + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 9, + f ); } }; /** - * optional int32 code = 1; - * @return {number} + * optional string retryType = 2; + * @return {string} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getRetrytype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this + * @param {string} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.endpoint_api.EndpointRetryConfiguration.prototype.setRetrytype = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional bool success = 2; - * @return {boolean} + * optional uint64 maxAttempts = 3; + * @return {string} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getMaxattempts = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** - * @param {boolean} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this + * @param {string} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.endpoint_api.EndpointRetryConfiguration.prototype.setMaxattempts = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** - * repeated EndpointProviderModel data = 3; - * @return {!Array} + * optional uint64 delaySeconds = 4; + * @return {string} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.endpoint_api.EndpointProviderModel, 3)); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getDelayseconds = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this -*/ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * @param {string} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + */ +proto.endpoint_api.EndpointRetryConfiguration.prototype.setDelayseconds = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); }; /** - * @param {!proto.endpoint_api.EndpointProviderModel=} opt_value - * @param {number=} opt_index - * @return {!proto.endpoint_api.EndpointProviderModel} + * optional bool exponentialBackoff = 5; + * @return {boolean} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.endpoint_api.EndpointProviderModel, opt_index); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getExponentialbackoff = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this + * @param {boolean} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.clearDataList = function() { - return this.setDataList([]); +proto.endpoint_api.EndpointRetryConfiguration.prototype.setExponentialbackoff = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * repeated string retryables = 6; + * @return {!Array} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getRetryablesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this -*/ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + */ +proto.endpoint_api.EndpointRetryConfiguration.prototype.setRetryablesList = function(value) { + return jspb.Message.setField(this, 6, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.endpoint_api.EndpointRetryConfiguration.prototype.addRetryables = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.EndpointRetryConfiguration.prototype.clearRetryablesList = function() { + return this.setRetryablesList([]); }; /** - * optional Paginated paginated = 5; - * @return {?proto.Paginated} + * optional uint64 createdBy = 8; + * @return {string} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.getPaginated = function() { - return /** @type{?proto.Paginated} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); }; /** - * @param {?proto.Paginated|undefined} value - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this -*/ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.setPaginated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * @param {string} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + */ +proto.endpoint_api.EndpointRetryConfiguration.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 8, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllEndpointProviderModelResponse} returns this + * optional uint64 updatedBy = 9; + * @return {string} */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.clearPaginated = function() { - return this.setPaginated(undefined); +proto.endpoint_api.EndpointRetryConfiguration.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this */ -proto.endpoint_api.GetAllEndpointProviderModelResponse.prototype.hasPaginated = function() { - return jspb.Message.getField(this, 5) != null; +proto.endpoint_api.EndpointRetryConfiguration.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -6518,8 +6709,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.UpdateEndpointVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.UpdateEndpointVersionRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointCacheConfiguration.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.EndpointCacheConfiguration.toObject(opt_includeInstance, this); }; @@ -6528,14 +6719,17 @@ proto.endpoint_api.UpdateEndpointVersionRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.UpdateEndpointVersionRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.EndpointCacheConfiguration} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.UpdateEndpointVersionRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.EndpointCacheConfiguration.toObject = function(includeInstance, msg) { var f, obj = { - endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endpointprovidermodelid: jspb.Message.getFieldWithDefault(msg, 2, "0") + cachetype: jspb.Message.getFieldWithDefault(msg, 2, ""), + expiryinterval: jspb.Message.getFieldWithDefault(msg, 3, "0"), + matchthreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + createdby: jspb.Message.getFieldWithDefault(msg, 5, "0"), + updatedby: jspb.Message.getFieldWithDefault(msg, 6, "0") }; if (includeInstance) { @@ -6549,36 +6743,48 @@ proto.endpoint_api.UpdateEndpointVersionRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} + * @return {!proto.endpoint_api.EndpointCacheConfiguration} */ -proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.EndpointCacheConfiguration.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.UpdateEndpointVersionRequest; - return proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.EndpointCacheConfiguration; + return proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.UpdateEndpointVersionRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.EndpointCacheConfiguration} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} + * @return {!proto.endpoint_api.EndpointCacheConfiguration} */ -proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCachetype(value); + break; + case 3: var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); + msg.setExpiryinterval(value); break; - case 2: + case 4: + var value = /** @type {number} */ (reader.readFloat()); + msg.setMatchthreshold(value); + break; + case 5: var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointprovidermodelid(value); + msg.setCreatedby(value); + break; + case 6: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setUpdatedby(value); break; default: reader.skipField(); @@ -6593,9 +6799,9 @@ proto.endpoint_api.UpdateEndpointVersionRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.UpdateEndpointVersionRequest.prototype.serializeBinary = function() { +proto.endpoint_api.EndpointCacheConfiguration.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.UpdateEndpointVersionRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6603,23 +6809,44 @@ proto.endpoint_api.UpdateEndpointVersionRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.UpdateEndpointVersionRequest} message + * @param {!proto.endpoint_api.EndpointCacheConfiguration} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.UpdateEndpointVersionRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEndpointid(); + f = message.getCachetype(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getExpiryinterval(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 1, + 3, f ); } - f = message.getEndpointprovidermodelid(); + f = message.getMatchthreshold(); + if (f !== 0.0) { + writer.writeFloat( + 4, + f + ); + } + f = message.getCreatedby(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 2, + 5, + f + ); + } + f = message.getUpdatedby(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 6, f ); } @@ -6627,38 +6854,92 @@ proto.endpoint_api.UpdateEndpointVersionRequest.serializeBinaryToWriter = functi /** - * optional uint64 endpointId = 1; + * optional string cacheType = 2; * @return {string} */ -proto.endpoint_api.UpdateEndpointVersionRequest.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.endpoint_api.EndpointCacheConfiguration.prototype.getCachetype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} returns this + * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this */ -proto.endpoint_api.UpdateEndpointVersionRequest.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.endpoint_api.EndpointCacheConfiguration.prototype.setCachetype = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint64 endpointProviderModelId = 2; + * optional uint64 expiryInterval = 3; * @return {string} */ -proto.endpoint_api.UpdateEndpointVersionRequest.prototype.getEndpointprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.endpoint_api.EndpointCacheConfiguration.prototype.getExpiryinterval = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.UpdateEndpointVersionRequest} returns this + * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this */ -proto.endpoint_api.UpdateEndpointVersionRequest.prototype.setEndpointprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.endpoint_api.EndpointCacheConfiguration.prototype.setExpiryinterval = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + +/** + * optional float matchThreshold = 4; + * @return {number} + */ +proto.endpoint_api.EndpointCacheConfiguration.prototype.getMatchthreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this + */ +proto.endpoint_api.EndpointCacheConfiguration.prototype.setMatchthreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + +/** + * optional uint64 createdBy = 5; + * @return {string} + */ +proto.endpoint_api.EndpointCacheConfiguration.prototype.getCreatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this + */ +proto.endpoint_api.EndpointCacheConfiguration.prototype.setCreatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); +}; + + +/** + * optional uint64 updatedBy = 6; + * @return {string} + */ +proto.endpoint_api.EndpointCacheConfiguration.prototype.getUpdatedby = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this + */ +proto.endpoint_api.EndpointCacheConfiguration.prototype.setUpdatedby = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -6678,8 +6959,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.UpdateEndpointVersionResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointRetryConfigurationRequest.toObject(opt_includeInstance, this); }; @@ -6688,16 +6969,14 @@ proto.endpoint_api.UpdateEndpointVersionResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.UpdateEndpointVersionResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.UpdateEndpointVersionResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.Endpoint.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + data: (f = msg.getData()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f) }; if (includeInstance) { @@ -6711,23 +6990,23 @@ proto.endpoint_api.UpdateEndpointVersionResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} */ -proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.UpdateEndpointVersionResponse; - return proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointRetryConfigurationRequest; + return proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.UpdateEndpointVersionResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} */ -proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6735,183 +7014,104 @@ proto.endpoint_api.UpdateEndpointVersionResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.endpoint_api.Endpoint; - reader.readMessage(value,proto.endpoint_api.Endpoint.deserializeBinaryFromReader); + var value = new proto.endpoint_api.EndpointRetryConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); msg.setData(value); break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.UpdateEndpointVersionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.UpdateEndpointVersionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.UpdateEndpointVersionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.endpoint_api.Endpoint.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this - */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this - */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional Endpoint data = 3; - * @return {?proto.endpoint_api.Endpoint} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.Endpoint} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.Endpoint, 3)); +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.CreateEndpointRetryConfigurationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.endpoint_api.Endpoint|undefined} value - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this -*/ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this + * optional uint64 endpointId = 1; + * @return {string} */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} returns this */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * optional EndpointRetryConfiguration data = 2; + * @return {?proto.endpoint_api.EndpointRetryConfiguration} */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.getData = function() { + return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 2)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this + * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} returns this */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.UpdateEndpointVersionResponse} returns this + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} returns this */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.clearData = function() { + return this.setData(undefined); }; @@ -6919,19 +7119,12 @@ proto.endpoint_api.UpdateEndpointVersionResponse.prototype.clearError = function * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.UpdateEndpointVersionResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.endpoint_api.EndpointRetryConfiguration.repeatedFields_ = [6]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -6947,8 +7140,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.EndpointRetryConfiguration.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointRetryConfigurationResponse.toObject(opt_includeInstance, this); }; @@ -6957,19 +7150,16 @@ proto.endpoint_api.EndpointRetryConfiguration.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.EndpointRetryConfiguration} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointRetryConfiguration.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.toObject = function(includeInstance, msg) { var f, obj = { - retrytype: jspb.Message.getFieldWithDefault(msg, 2, ""), - maxattempts: jspb.Message.getFieldWithDefault(msg, 3, "0"), - delayseconds: jspb.Message.getFieldWithDefault(msg, 4, "0"), - exponentialbackoff: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - retryablesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, - createdby: jspb.Message.getFieldWithDefault(msg, 8, "0"), - updatedby: jspb.Message.getFieldWithDefault(msg, 9, "0") + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -6983,56 +7173,46 @@ proto.endpoint_api.EndpointRetryConfiguration.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.EndpointRetryConfiguration} + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} */ -proto.endpoint_api.EndpointRetryConfiguration.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.EndpointRetryConfiguration; - return proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointRetryConfigurationResponse; + return proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.EndpointRetryConfiguration} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.EndpointRetryConfiguration} + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} */ -proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRetrytype(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setMaxattempts(value); + var value = new proto.endpoint_api.EndpointRetryConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); + msg.setData(value); break; case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setDelayseconds(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExponentialbackoff(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addRetryables(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 9: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); break; default: reader.skipField(); @@ -7046,217 +7226,163 @@ proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader = func /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} - */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.EndpointRetryConfiguration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRetrytype(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMaxattempts(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getDelayseconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getExponentialbackoff(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getRetryablesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 9, - f - ); - } -}; - - -/** - * optional string retryType = 2; - * @return {string} - */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getRetrytype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this - */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setRetrytype = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 maxAttempts = 3; - * @return {string} - */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getMaxattempts = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); + */ +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.CreateEndpointRetryConfigurationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setMaxattempts = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } }; /** - * optional uint64 delaySeconds = 4; - * @return {string} + * optional int32 code = 1; + * @return {number} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getDelayseconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + * @param {number} value + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setDelayseconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional bool exponentialBackoff = 5; + * optional bool success = 2; * @return {boolean} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getExponentialbackoff = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setExponentialbackoff = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated string retryables = 6; - * @return {!Array} + * optional EndpointRetryConfiguration data = 3; + * @return {?proto.endpoint_api.EndpointRetryConfiguration} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getRetryablesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 3)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this - */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setRetryablesList = function(value) { - return jspb.Message.setField(this, 6, value || []); + * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this +*/ +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.addRetryables = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.clearRetryablesList = function() { - return this.setRetryablesList([]); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional uint64 createdBy = 8; - * @return {string} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this - */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); + * @param {?proto.Error|undefined} value + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this +*/ +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * optional uint64 updatedBy = 9; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.clearError = function() { + return this.setError(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointRetryConfiguration} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointRetryConfiguration.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 9, value); +proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -7276,8 +7402,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.EndpointCacheConfiguration.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointCacheConfigurationRequest.toObject(opt_includeInstance, this); }; @@ -7286,17 +7412,14 @@ proto.endpoint_api.EndpointCacheConfiguration.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.EndpointCacheConfiguration} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointCacheConfiguration.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.toObject = function(includeInstance, msg) { var f, obj = { - cachetype: jspb.Message.getFieldWithDefault(msg, 2, ""), - expiryinterval: jspb.Message.getFieldWithDefault(msg, 3, "0"), - matchthreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - createdby: jspb.Message.getFieldWithDefault(msg, 5, "0"), - updatedby: jspb.Message.getFieldWithDefault(msg, 6, "0") + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + data: (f = msg.getData()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f) }; if (includeInstance) { @@ -7310,48 +7433,37 @@ proto.endpoint_api.EndpointCacheConfiguration.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.EndpointCacheConfiguration} + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} */ -proto.endpoint_api.EndpointCacheConfiguration.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.EndpointCacheConfiguration; - return proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointCacheConfigurationRequest; + return proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.EndpointCacheConfiguration} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.EndpointCacheConfiguration} + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} */ -proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCachetype(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setExpiryinterval(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMatchthreshold(value); - break; - case 5: + case 1: var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); + msg.setEndpointid(value); break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); + case 2: + var value = new proto.endpoint_api.EndpointCacheConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); + msg.setData(value); break; default: reader.skipField(); @@ -7366,9 +7478,9 @@ proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.serializeBinary = function() { +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter(this, writer); + proto.endpoint_api.CreateEndpointCacheConfigurationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7376,137 +7488,82 @@ proto.endpoint_api.EndpointCacheConfiguration.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.EndpointCacheConfiguration} message + * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCachetype(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getExpiryinterval(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getMatchthreshold(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getUpdatedby(); + f = message.getEndpointid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( - 6, + 1, f ); - } -}; - - -/** - * optional string cacheType = 2; - * @return {string} - */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.getCachetype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this - */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.setCachetype = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter + ); + } }; /** - * optional uint64 expiryInterval = 3; + * optional uint64 endpointId = 1; * @return {string} */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.getExpiryinterval = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this - */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.setExpiryinterval = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional float matchThreshold = 4; - * @return {number} - */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.getMatchthreshold = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} returns this */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.setMatchthreshold = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional uint64 createdBy = 5; - * @return {string} + * optional EndpointCacheConfiguration data = 2; + * @return {?proto.endpoint_api.EndpointCacheConfiguration} */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.getData = function() { + return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 2)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this - */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); + * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} returns this +*/ +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional uint64 updatedBy = 6; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} returns this */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.clearData = function() { + return this.setData(undefined); }; /** - * @param {string} value - * @return {!proto.endpoint_api.EndpointCacheConfiguration} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.EndpointCacheConfiguration.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); +proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -7526,8 +7583,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointRetryConfigurationRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointCacheConfigurationResponse.toObject(opt_includeInstance, this); }; @@ -7536,14 +7593,16 @@ proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.toObject = function(includeInstance, msg) { var f, obj = { - endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - data: (f = msg.getData()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f) + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + data: (f = msg.getData()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -7557,23 +7616,23 @@ proto.endpoint_api.CreateEndpointRetryConfigurationRequest.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointRetryConfigurationRequest; - return proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointCacheConfigurationResponse; + return proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7581,14 +7640,23 @@ proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinaryFrom var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; case 2: - var value = new proto.endpoint_api.EndpointRetryConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.endpoint_api.EndpointCacheConfiguration; + reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); msg.setData(value); break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; default: reader.skipField(); break; @@ -7602,9 +7670,9 @@ proto.endpoint_api.CreateEndpointRetryConfigurationRequest.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.serializeBinary = function() { +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointRetryConfigurationRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.CreateEndpointCacheConfigurationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7612,72 +7680,105 @@ proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} message + * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEndpointid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( 1, f ); } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } f = message.getData(); if (f != null) { writer.writeMessage( - 2, + 3, f, - proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter + proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter ); } }; /** - * optional uint64 endpointId = 1; - * @return {string} + * optional int32 code = 1; + * @return {number} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} returns this + * @param {number} value + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional EndpointRetryConfiguration data = 2; - * @return {?proto.endpoint_api.EndpointRetryConfiguration} + * optional bool success = 2; + * @return {boolean} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.getData = function() { - return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 2)); +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} returns this + * @param {boolean} value + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this + */ +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional EndpointCacheConfiguration data = 3; + * @return {?proto.endpoint_api.EndpointCacheConfiguration} + */ +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 3)); +}; + + +/** + * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationRequest} returns this + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.clearData = function() { +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.clearData = function() { return this.setData(undefined); }; @@ -7686,11 +7787,55 @@ proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.clearData = * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CreateEndpointRetryConfigurationRequest.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this +*/ +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this + */ +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.clearError = function() { + return this.setError(undefined); }; +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.endpoint_api.CreateEndpointTagRequest.repeatedFields_ = [2]; @@ -7707,8 +7852,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointRetryConfigurationResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.CreateEndpointTagRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.CreateEndpointTagRequest.toObject(opt_includeInstance, this); }; @@ -7717,16 +7862,14 @@ proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.CreateEndpointTagRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.CreateEndpointTagRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.EndpointRetryConfiguration.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + tagsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -7740,23 +7883,23 @@ proto.endpoint_api.CreateEndpointRetryConfigurationResponse.toObject = function( /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} + * @return {!proto.endpoint_api.CreateEndpointTagRequest} */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.CreateEndpointTagRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointRetryConfigurationResponse; - return proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.CreateEndpointTagRequest; + return proto.endpoint_api.CreateEndpointTagRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.CreateEndpointTagRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} + * @return {!proto.endpoint_api.CreateEndpointTagRequest} */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.CreateEndpointTagRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7764,22 +7907,12 @@ proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinaryFro var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.endpoint_api.EndpointRetryConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointRetryConfiguration.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); break; default: reader.skipField(); @@ -7794,9 +7927,9 @@ proto.endpoint_api.CreateEndpointRetryConfigurationResponse.deserializeBinaryFro * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.serializeBinary = function() { +proto.endpoint_api.CreateEndpointTagRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointRetryConfigurationResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.CreateEndpointTagRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7804,152 +7937,81 @@ proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.serializeB /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} message + * @param {!proto.endpoint_api.CreateEndpointTagRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.CreateEndpointTagRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.endpoint_api.EndpointRetryConfiguration.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this - */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this - */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional EndpointRetryConfiguration data = 3; - * @return {?proto.endpoint_api.EndpointRetryConfiguration} + * optional uint64 endpointId = 1; + * @return {string} */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.EndpointRetryConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointRetryConfiguration, 3)); -}; - - -/** - * @param {?proto.endpoint_api.EndpointRetryConfiguration|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this -*/ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.endpoint_api.CreateEndpointTagRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this + * @param {string} value + * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.endpoint_api.CreateEndpointTagRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * repeated string tags = 2; + * @return {!Array} */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.endpoint_api.CreateEndpointTagRequest.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * @param {!Array} value + * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this -*/ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.endpoint_api.CreateEndpointTagRequest.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointRetryConfigurationResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.endpoint_api.CreateEndpointTagRequest.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this */ -proto.endpoint_api.CreateEndpointRetryConfigurationResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.CreateEndpointTagRequest.prototype.clearTagsList = function() { + return this.setTagsList([]); }; @@ -7969,8 +8031,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointCacheConfigurationRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.ForkEndpointRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.ForkEndpointRequest.toObject(opt_includeInstance, this); }; @@ -7979,14 +8041,14 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.ForkEndpointRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.ForkEndpointRequest.toObject = function(includeInstance, msg) { var f, obj = { endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - data: (f = msg.getData()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f) + endpointproviderid: jspb.Message.getFieldWithDefault(msg, 3, "0") }; if (includeInstance) { @@ -8000,23 +8062,23 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} + * @return {!proto.endpoint_api.ForkEndpointRequest} */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.ForkEndpointRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointCacheConfigurationRequest; - return proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.ForkEndpointRequest; + return proto.endpoint_api.ForkEndpointRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.ForkEndpointRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} + * @return {!proto.endpoint_api.ForkEndpointRequest} */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.ForkEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8027,10 +8089,9 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinaryFrom var value = /** @type {string} */ (reader.readUint64String()); msg.setEndpointid(value); break; - case 2: - var value = new proto.endpoint_api.EndpointCacheConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); - msg.setData(value); + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointproviderid(value); break; default: reader.skipField(); @@ -8045,9 +8106,9 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.serializeBinary = function() { +proto.endpoint_api.ForkEndpointRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointCacheConfigurationRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.ForkEndpointRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8055,11 +8116,11 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} message + * @param {!proto.endpoint_api.ForkEndpointRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.ForkEndpointRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEndpointid(); if (parseInt(f, 10) !== 0) { @@ -8068,12 +8129,11 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.serializeBinaryToWrit f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter + f = message.getEndpointproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, + f ); } }; @@ -8081,56 +8141,37 @@ proto.endpoint_api.CreateEndpointCacheConfigurationRequest.serializeBinaryToWrit /** * optional uint64 endpointId = 1; - * @return {string} - */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} returns this - */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional EndpointCacheConfiguration data = 2; - * @return {?proto.endpoint_api.EndpointCacheConfiguration} + * @return {string} */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.getData = function() { - return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 2)); +proto.endpoint_api.ForkEndpointRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} returns this -*/ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.endpoint_api.ForkEndpointRequest} returns this + */ +proto.endpoint_api.ForkEndpointRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationRequest} returns this + * optional uint64 endpointProviderId = 3; + * @return {string} */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.clearData = function() { - return this.setData(undefined); +proto.endpoint_api.ForkEndpointRequest.prototype.getEndpointproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.ForkEndpointRequest} returns this */ -proto.endpoint_api.CreateEndpointCacheConfigurationRequest.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; +proto.endpoint_api.ForkEndpointRequest.prototype.setEndpointproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -8150,8 +8191,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointCacheConfigurationResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.UpdateEndpointDetailRequest.toObject(opt_includeInstance, this); }; @@ -8160,16 +8201,15 @@ proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.UpdateEndpointDetailRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.UpdateEndpointDetailRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.EndpointCacheConfiguration.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -8183,23 +8223,23 @@ proto.endpoint_api.CreateEndpointCacheConfigurationResponse.toObject = function( /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} + * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.UpdateEndpointDetailRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointCacheConfigurationResponse; - return proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.UpdateEndpointDetailRequest; + return proto.endpoint_api.UpdateEndpointDetailRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.UpdateEndpointDetailRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} + * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.UpdateEndpointDetailRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8207,22 +8247,16 @@ proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinaryFro var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 3: - var value = new proto.endpoint_api.EndpointCacheConfiguration; - reader.readMessage(value,proto.endpoint_api.EndpointCacheConfiguration.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; default: reader.skipField(); @@ -8237,9 +8271,9 @@ proto.endpoint_api.CreateEndpointCacheConfigurationResponse.deserializeBinaryFro * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.serializeBinary = function() { +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointCacheConfigurationResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.UpdateEndpointDetailRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8247,152 +8281,87 @@ proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.serializeB /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} message + * @param {!proto.endpoint_api.UpdateEndpointDetailRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.UpdateEndpointDetailRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( 3, - f, - proto.endpoint_api.EndpointCacheConfiguration.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter + f ); } }; /** - * optional int32 code = 1; - * @return {number} - */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this - */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this - */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional EndpointCacheConfiguration data = 3; - * @return {?proto.endpoint_api.EndpointCacheConfiguration} + * optional uint64 endpointId = 1; + * @return {string} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.EndpointCacheConfiguration} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointCacheConfiguration, 3)); -}; - - -/** - * @param {?proto.endpoint_api.EndpointCacheConfiguration|undefined} value - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this -*/ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this + * @param {string} value + * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} returns this */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional string name = 2; + * @return {string} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * @param {string} value + * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} returns this */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this -*/ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CreateEndpointCacheConfigurationResponse} returns this + * optional string description = 3; + * @return {string} */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} returns this */ -proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.UpdateEndpointDetailRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -8402,7 +8371,7 @@ proto.endpoint_api.CreateEndpointCacheConfigurationResponse.prototype.hasError = * @private {!Array} * @const */ -proto.endpoint_api.CreateEndpointTagRequest.repeatedFields_ = [2]; +proto.endpoint_api.EndpointLog.repeatedFields_ = [30,32,31,33]; @@ -8419,8 +8388,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CreateEndpointTagRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointLog.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.EndpointLog.toObject(opt_includeInstance, this); }; @@ -8429,14 +8398,30 @@ proto.endpoint_api.CreateEndpointTagRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CreateEndpointTagRequest} msg The msg instance to transform. + * @param {!proto.endpoint_api.EndpointLog} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointTagRequest.toObject = function(includeInstance, msg) { +proto.endpoint_api.EndpointLog.toObject = function(includeInstance, msg) { var f, obj = { - endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - tagsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + id: jspb.Message.getFieldWithDefault(msg, 1, "0"), + endpointid: jspb.Message.getFieldWithDefault(msg, 2, "0"), + source: jspb.Message.getFieldWithDefault(msg, 3, ""), + status: jspb.Message.getFieldWithDefault(msg, 15, ""), + projectid: jspb.Message.getFieldWithDefault(msg, 16, "0"), + organizationid: jspb.Message.getFieldWithDefault(msg, 17, "0"), + endpointprovidermodelid: jspb.Message.getFieldWithDefault(msg, 19, "0"), + timetaken: jspb.Message.getFieldWithDefault(msg, 25, "0"), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + metricsList: jspb.Message.toObjectList(msg.getMetricsList(), + common_pb.Metric.toObject, includeInstance), + metadataList: jspb.Message.toObjectList(msg.getMetadataList(), + common_pb.Metadata.toObject, includeInstance), + argumentsList: jspb.Message.toObjectList(msg.getArgumentsList(), + common_pb.Argument.toObject, includeInstance), + optionsList: jspb.Message.toObjectList(msg.getOptionsList(), + common_pb.Metadata.toObject, includeInstance) }; if (includeInstance) { @@ -8450,36 +8435,90 @@ proto.endpoint_api.CreateEndpointTagRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CreateEndpointTagRequest} + * @return {!proto.endpoint_api.EndpointLog} */ -proto.endpoint_api.CreateEndpointTagRequest.deserializeBinary = function(bytes) { +proto.endpoint_api.EndpointLog.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CreateEndpointTagRequest; - return proto.endpoint_api.CreateEndpointTagRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.EndpointLog; + return proto.endpoint_api.EndpointLog.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CreateEndpointTagRequest} msg The message object to deserialize into. + * @param {!proto.endpoint_api.EndpointLog} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CreateEndpointTagRequest} + * @return {!proto.endpoint_api.EndpointLog} */ -proto.endpoint_api.CreateEndpointTagRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.EndpointLog.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setSource(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 16: var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); + msg.setProjectid(value); break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); + case 17: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setOrganizationid(value); + break; + case 19: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointprovidermodelid(value); + break; + case 25: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setTimetaken(value); + break; + case 26: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 27: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + case 30: + var value = new common_pb.Metric; + reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); + msg.addMetrics(value); + break; + case 32: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addMetadata(value); + break; + case 31: + var value = new common_pb.Argument; + reader.readMessage(value,common_pb.Argument.deserializeBinaryFromReader); + msg.addArguments(value); + break; + case 33: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addOptions(value); break; default: reader.skipField(); @@ -8494,9 +8533,9 @@ proto.endpoint_api.CreateEndpointTagRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.serializeBinary = function() { +proto.endpoint_api.EndpointLog.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CreateEndpointTagRequest.serializeBinaryToWriter(this, writer); + proto.endpoint_api.EndpointLog.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8504,452 +8543,486 @@ proto.endpoint_api.CreateEndpointTagRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CreateEndpointTagRequest} message + * @param {!proto.endpoint_api.EndpointLog} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CreateEndpointTagRequest.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.EndpointLog.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEndpointid(); + f = message.getId(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 1, f ); } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 2, f ); } + f = message.getSource(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getProjectid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 16, + f + ); + } + f = message.getOrganizationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 17, + f + ); + } + f = message.getEndpointprovidermodelid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 19, + f + ); + } + f = message.getTimetaken(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 25, + f + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 26, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 27, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 30, + f, + common_pb.Metric.serializeBinaryToWriter + ); + } + f = message.getMetadataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 32, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getArgumentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 31, + f, + common_pb.Argument.serializeBinaryToWriter + ); + } + f = message.getOptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 33, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } }; /** - * optional uint64 endpointId = 1; + * optional uint64 id = 1; * @return {string} */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.getEndpointid = function() { +proto.endpoint_api.EndpointLog.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.setEndpointid = function(value) { +proto.endpoint_api.EndpointLog.prototype.setId = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * repeated string tags = 2; - * @return {!Array} + * optional uint64 endpointId = 2; + * @return {string} */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.endpoint_api.EndpointLog.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this + * @param {string} value + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.endpoint_api.EndpointLog.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional string source = 3; + * @return {string} + */ +proto.endpoint_api.EndpointLog.prototype.getSource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.endpoint_api.EndpointLog.prototype.setSource = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.CreateEndpointTagRequest} returns this + * optional string status = 15; + * @return {string} */ -proto.endpoint_api.CreateEndpointTagRequest.prototype.clearTagsList = function() { - return this.setTagsList([]); +proto.endpoint_api.EndpointLog.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; +/** + * @param {string} value + * @return {!proto.endpoint_api.EndpointLog} returns this + */ +proto.endpoint_api.EndpointLog.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + +/** + * optional uint64 projectId = 16; + * @return {string} + */ +proto.endpoint_api.EndpointLog.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "0")); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.ForkEndpointRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.ForkEndpointRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointLog.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringIntField(this, 16, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.endpoint_api.ForkEndpointRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint64 organizationId = 17; + * @return {string} */ -proto.endpoint_api.ForkEndpointRequest.toObject = function(includeInstance, msg) { - var f, obj = { - endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endpointproviderid: jspb.Message.getFieldWithDefault(msg, 3, "0") - }; +proto.endpoint_api.EndpointLog.prototype.getOrganizationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "0")); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {string} value + * @return {!proto.endpoint_api.EndpointLog} returns this + */ +proto.endpoint_api.EndpointLog.prototype.setOrganizationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 17, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.ForkEndpointRequest} + * optional uint64 endpointProviderModelId = 19; + * @return {string} */ -proto.endpoint_api.ForkEndpointRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.ForkEndpointRequest; - return proto.endpoint_api.ForkEndpointRequest.deserializeBinaryFromReader(msg, reader); +proto.endpoint_api.EndpointLog.prototype.getEndpointprovidermodelid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "0")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.endpoint_api.ForkEndpointRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.ForkEndpointRequest} + * @param {string} value + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.ForkEndpointRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointproviderid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.endpoint_api.EndpointLog.prototype.setEndpointprovidermodelid = function(value) { + return jspb.Message.setProto3StringIntField(this, 19, value); +}; + + +/** + * optional uint64 timeTaken = 25; + * @return {string} + */ +proto.endpoint_api.EndpointLog.prototype.getTimetaken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.endpoint_api.EndpointLog} returns this + */ +proto.endpoint_api.EndpointLog.prototype.setTimetaken = function(value) { + return jspb.Message.setProto3StringIntField(this, 25, value); +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 26; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.endpoint_api.EndpointLog.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 26)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.endpoint_api.ForkEndpointRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.ForkEndpointRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.EndpointLog} returns this +*/ +proto.endpoint_api.EndpointLog.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 26, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.ForkEndpointRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.ForkEndpointRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEndpointid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getEndpointproviderid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } +proto.endpoint_api.EndpointLog.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); }; /** - * optional uint64 endpointId = 1; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.ForkEndpointRequest.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.endpoint_api.EndpointLog.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 26) != null; }; /** - * @param {string} value - * @return {!proto.endpoint_api.ForkEndpointRequest} returns this + * optional google.protobuf.Timestamp updatedDate = 27; + * @return {?proto.google.protobuf.Timestamp} */ -proto.endpoint_api.ForkEndpointRequest.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.endpoint_api.EndpointLog.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 27)); }; /** - * optional uint64 endpointProviderId = 3; - * @return {string} - */ -proto.endpoint_api.ForkEndpointRequest.prototype.getEndpointproviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.endpoint_api.EndpointLog} returns this +*/ +proto.endpoint_api.EndpointLog.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 27, value); }; /** - * @param {string} value - * @return {!proto.endpoint_api.ForkEndpointRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.ForkEndpointRequest.prototype.setEndpointproviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); +proto.endpoint_api.EndpointLog.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); }; +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.endpoint_api.EndpointLog.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 27) != null; +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * repeated Metric metrics = 30; + * @return {!Array} */ -proto.endpoint_api.GetAllDeploymentRequest.repeatedFields_ = [2]; +proto.endpoint_api.EndpointLog.prototype.getMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 30)); +}; +/** + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointLog} returns this +*/ +proto.endpoint_api.EndpointLog.prototype.setMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 30, value); +}; + -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {!proto.Metric=} opt_value + * @param {number=} opt_index + * @return {!proto.Metric} */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetAllDeploymentRequest.toObject(opt_includeInstance, this); +proto.endpoint_api.EndpointLog.prototype.addMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 30, opt_value, proto.Metric, opt_index); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetAllDeploymentRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.GetAllDeploymentRequest.toObject = function(includeInstance, msg) { - var f, obj = { - paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.endpoint_api.EndpointLog.prototype.clearMetricsList = function() { + return this.setMetricsList([]); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetAllDeploymentRequest} + * repeated Metadata metadata = 32; + * @return {!Array} */ -proto.endpoint_api.GetAllDeploymentRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetAllDeploymentRequest; - return proto.endpoint_api.GetAllDeploymentRequest.deserializeBinaryFromReader(msg, reader); +proto.endpoint_api.EndpointLog.prototype.getMetadataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 32)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.endpoint_api.GetAllDeploymentRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetAllDeploymentRequest} - */ -proto.endpoint_api.GetAllDeploymentRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Paginate; - reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); - msg.setPaginate(value); - break; - case 2: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointLog} returns this +*/ +proto.endpoint_api.EndpointLog.prototype.setMetadataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 32, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetAllDeploymentRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.endpoint_api.EndpointLog.prototype.addMetadata = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 32, opt_value, proto.Metadata, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetAllDeploymentRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.GetAllDeploymentRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaginate(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Paginate.serializeBinaryToWriter - ); - } - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - common_pb.Criteria.serializeBinaryToWriter - ); - } +proto.endpoint_api.EndpointLog.prototype.clearMetadataList = function() { + return this.setMetadataList([]); }; /** - * optional Paginate paginate = 1; - * @return {?proto.Paginate} + * repeated Argument arguments = 31; + * @return {!Array} */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +proto.endpoint_api.EndpointLog.prototype.getArgumentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Argument, 31)); }; /** - * @param {?proto.Paginate|undefined} value - * @return {!proto.endpoint_api.GetAllDeploymentRequest} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.endpoint_api.EndpointLog.prototype.setArgumentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 31, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllDeploymentRequest} returns this + * @param {!proto.Argument=} opt_value + * @param {number=} opt_index + * @return {!proto.Argument} */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); +proto.endpoint_api.EndpointLog.prototype.addArguments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.Argument, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; +proto.endpoint_api.EndpointLog.prototype.clearArgumentsList = function() { + return this.setArgumentsList([]); }; /** - * repeated Criteria criterias = 2; - * @return {!Array} + * repeated Metadata options = 33; + * @return {!Array} */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +proto.endpoint_api.EndpointLog.prototype.getOptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 33)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.GetAllDeploymentRequest} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.endpoint_api.EndpointLog.prototype.setOptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 33, value); }; /** - * @param {!proto.Criteria=} opt_value + * @param {!proto.Metadata=} opt_value * @param {number=} opt_index - * @return {!proto.Criteria} + * @return {!proto.Metadata} */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); +proto.endpoint_api.EndpointLog.prototype.addOptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 33, opt_value, proto.Metadata, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.GetAllDeploymentRequest} returns this + * @return {!proto.endpoint_api.EndpointLog} returns this */ -proto.endpoint_api.GetAllDeploymentRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); +proto.endpoint_api.EndpointLog.prototype.clearOptionsList = function() { + return this.setOptionsList([]); }; @@ -8959,7 +9032,7 @@ proto.endpoint_api.GetAllDeploymentRequest.prototype.clearCriteriasList = functi * @private {!Array} * @const */ -proto.endpoint_api.SearchableDeployment.repeatedFields_ = [14]; +proto.endpoint_api.GetAllEndpointLogRequest.repeatedFields_ = [2]; @@ -8976,8 +9049,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.SearchableDeployment.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.SearchableDeployment.toObject(opt_includeInstance, this); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetAllEndpointLogRequest.toObject(opt_includeInstance, this); }; @@ -8986,29 +9059,16 @@ proto.endpoint_api.SearchableDeployment.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.SearchableDeployment} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetAllEndpointLogRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.SearchableDeployment.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetAllEndpointLogRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - status: jspb.Message.getFieldWithDefault(msg, 2, ""), - visibility: jspb.Message.getFieldWithDefault(msg, 3, ""), - type: jspb.Message.getFieldWithDefault(msg, 4, ""), - projectid: jspb.Message.getFieldWithDefault(msg, 7, ""), - organizationid: jspb.Message.getFieldWithDefault(msg, 8, ""), - tagList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f, - language: jspb.Message.getFieldWithDefault(msg, 16, ""), - organization: (f = msg.getOrganization()) && common_pb.Organization.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 18, ""), - description: jspb.Message.getFieldWithDefault(msg, 19, ""), - createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - providermodelid: jspb.Message.getFieldWithDefault(msg, 22, ""), - providerid: jspb.Message.getFieldWithDefault(msg, 23, ""), - appappearance: (f = msg.getAppappearance()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - webappearance: (f = msg.getWebappearance()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.toObject, includeInstance), + endpointid: jspb.Message.getFieldWithDefault(msg, 3, "0") }; if (includeInstance) { @@ -9022,23 +9082,23 @@ proto.endpoint_api.SearchableDeployment.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.SearchableDeployment} + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} */ -proto.endpoint_api.SearchableDeployment.deserializeBinary = function(bytes) { +proto.endpoint_api.GetAllEndpointLogRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.SearchableDeployment; - return proto.endpoint_api.SearchableDeployment.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetAllEndpointLogRequest; + return proto.endpoint_api.GetAllEndpointLogRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.SearchableDeployment} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetAllEndpointLogRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.SearchableDeployment} + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} */ -proto.endpoint_api.SearchableDeployment.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetAllEndpointLogRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9046,77 +9106,18 @@ proto.endpoint_api.SearchableDeployment.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setOrganizationid(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.addTag(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 17: - var value = new common_pb.Organization; - reader.readMessage(value,common_pb.Organization.deserializeBinaryFromReader); - msg.setOrganization(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 20: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreateddate(value); - break; - case 21: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdateddate(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setProvidermodelid(value); - break; - case 23: - var value = /** @type {string} */ (reader.readString()); - msg.setProviderid(value); - break; - case 24: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setAppappearance(value); + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); break; - case 25: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setWebappearance(value); + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); break; default: reader.skipField(); @@ -9131,9 +9132,9 @@ proto.endpoint_api.SearchableDeployment.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.SearchableDeployment.prototype.serializeBinary = function() { +proto.endpoint_api.GetAllEndpointLogRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.SearchableDeployment.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetAllEndpointLogRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9141,400 +9142,404 @@ proto.endpoint_api.SearchableDeployment.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.SearchableDeployment} message + * @param {!proto.endpoint_api.GetAllEndpointLogRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.SearchableDeployment.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetAllEndpointLogRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getProjectid(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getOrganizationid(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getTagList(); - if (f.length > 0) { - writer.writeRepeatedString( - 14, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getOrganization(); + f = message.getPaginate(); if (f != null) { writer.writeMessage( - 17, + 1, f, - common_pb.Organization.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 18, - f + common_pb.Paginate.serializeBinaryToWriter ); } - f = message.getDescription(); + f = message.getCriteriasList(); if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 20, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 21, + writer.writeRepeatedMessage( + 2, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getProvidermodelid(); - if (f.length > 0) { - writer.writeString( - 22, - f + common_pb.Criteria.serializeBinaryToWriter ); } - f = message.getProviderid(); - if (f.length > 0) { - writer.writeString( - 23, + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, f ); } - f = message.getAppappearance(); - if (f != null) { - writer.writeMessage( - 24, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getWebappearance(); - if (f != null) { - writer.writeMessage( - 25, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } }; /** - * optional string id = 1; - * @return {string} + * optional Paginate paginate = 1; + * @return {?proto.Paginate} */ -proto.endpoint_api.SearchableDeployment.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @param {?proto.Paginate|undefined} value + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} returns this +*/ +proto.endpoint_api.GetAllEndpointLogRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); }; /** - * optional string status = 2; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.SearchableDeployment.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * repeated Criteria criterias = 2; + * @return {!Array} */ -proto.endpoint_api.SearchableDeployment.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); }; /** - * optional string visibility = 3; - * @return {string} + * @param {!Array} value + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} returns this +*/ +proto.endpoint_api.GetAllEndpointLogRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} */ -proto.endpoint_api.SearchableDeployment.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; /** - * optional string type = 4; + * optional uint64 endpointId = 3; * @return {string} */ -proto.endpoint_api.SearchableDeployment.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @return {!proto.endpoint_api.GetAllEndpointLogRequest} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.endpoint_api.GetAllEndpointLogRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); }; + /** - * optional string projectId = 7; - * @return {string} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.endpoint_api.SearchableDeployment.prototype.getProjectid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.endpoint_api.GetAllEndpointLogResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.endpoint_api.GetAllEndpointLogResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetAllEndpointLogResponse.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.endpoint_api.GetAllEndpointLogResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.SearchableDeployment.prototype.setProjectid = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.endpoint_api.GetAllEndpointLogResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.endpoint_api.EndpointLog.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string organizationId = 8; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} */ -proto.endpoint_api.SearchableDeployment.prototype.getOrganizationid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.endpoint_api.GetAllEndpointLogResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.endpoint_api.GetAllEndpointLogResponse; + return proto.endpoint_api.GetAllEndpointLogResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.endpoint_api.GetAllEndpointLogResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} */ -proto.endpoint_api.SearchableDeployment.prototype.setOrganizationid = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.endpoint_api.GetAllEndpointLogResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.endpoint_api.EndpointLog; + reader.readMessage(value,proto.endpoint_api.EndpointLog.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * repeated string tag = 14; - * @return {!Array} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.SearchableDeployment.prototype.getTagList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.GetAllEndpointLogResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.GetAllEndpointLogResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.SearchableDeployment.prototype.setTagList = function(value) { - return jspb.Message.setField(this, 14, value || []); +proto.endpoint_api.GetAllEndpointLogResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.endpoint_api.EndpointLog.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * optional int32 code = 1; + * @return {number} */ -proto.endpoint_api.SearchableDeployment.prototype.addTag = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 14, value, opt_index); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @param {number} value + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.clearTagList = function() { - return this.setTagList([]); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional string language = 16; - * @return {string} + * optional bool success = 2; + * @return {boolean} */ -proto.endpoint_api.SearchableDeployment.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @param {boolean} value + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional Organization organization = 17; - * @return {?proto.Organization} + * repeated EndpointLog data = 3; + * @return {!Array} */ -proto.endpoint_api.SearchableDeployment.prototype.getOrganization = function() { - return /** @type{?proto.Organization} */ ( - jspb.Message.getWrapperField(this, common_pb.Organization, 17)); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.endpoint_api.EndpointLog, 3)); }; /** - * @param {?proto.Organization|undefined} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @param {!Array} value + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setOrganization = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.SearchableDeployment} returns this - */ -proto.endpoint_api.SearchableDeployment.prototype.clearOrganization = function() { - return this.setOrganization(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.endpoint_api.SearchableDeployment.prototype.hasOrganization = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional string name = 18; - * @return {string} - */ -proto.endpoint_api.SearchableDeployment.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this - */ -proto.endpoint_api.SearchableDeployment.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * optional string description = 19; - * @return {string} + * @param {!proto.endpoint_api.EndpointLog=} opt_value + * @param {number=} opt_index + * @return {!proto.endpoint_api.EndpointLog} */ -proto.endpoint_api.SearchableDeployment.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.endpoint_api.EndpointLog, opt_index); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; /** - * optional google.protobuf.Timestamp createdDate = 20; - * @return {?proto.google.protobuf.Timestamp} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.endpoint_api.SearchableDeployment.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 20)); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 20, value); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.clearError = function() { + return this.setError(undefined); }; @@ -9542,36 +9547,36 @@ proto.endpoint_api.SearchableDeployment.prototype.clearCreateddate = function() * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.SearchableDeployment.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 20) != null; +proto.endpoint_api.GetAllEndpointLogResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional google.protobuf.Timestamp updatedDate = 21; - * @return {?proto.google.protobuf.Timestamp} + * optional Paginated paginated = 5; + * @return {?proto.Paginated} */ -proto.endpoint_api.SearchableDeployment.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 21)); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @param {?proto.Paginated|undefined} value + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 21, value); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * @return {!proto.endpoint_api.GetAllEndpointLogResponse} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); +proto.endpoint_api.GetAllEndpointLogResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); }; @@ -9579,129 +9584,172 @@ proto.endpoint_api.SearchableDeployment.prototype.clearUpdateddate = function() * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.SearchableDeployment.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 21) != null; +proto.endpoint_api.GetAllEndpointLogResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; }; -/** - * optional string providerModelId = 22; - * @return {string} - */ -proto.endpoint_api.SearchableDeployment.prototype.getProvidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - -/** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this - */ -proto.endpoint_api.SearchableDeployment.prototype.setProvidermodelid = function(value) { - return jspb.Message.setProto3StringField(this, 22, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string providerId = 23; - * @return {string} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.endpoint_api.SearchableDeployment.prototype.getProviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); +proto.endpoint_api.GetEndpointLogRequest.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetEndpointLogRequest.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.endpoint_api.GetEndpointLogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.SearchableDeployment.prototype.setProviderid = function(value) { - return jspb.Message.setProto3StringField(this, 23, value); +proto.endpoint_api.GetEndpointLogRequest.toObject = function(includeInstance, msg) { + var f, obj = { + endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + id: jspb.Message.getFieldWithDefault(msg, 2, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional google.protobuf.Struct appAppearance = 24; - * @return {?proto.google.protobuf.Struct} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.endpoint_api.GetEndpointLogRequest} */ -proto.endpoint_api.SearchableDeployment.prototype.getAppappearance = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24)); +proto.endpoint_api.GetEndpointLogRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.endpoint_api.GetEndpointLogRequest; + return proto.endpoint_api.GetEndpointLogRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this -*/ -proto.endpoint_api.SearchableDeployment.prototype.setAppappearance = function(value) { - return jspb.Message.setWrapperField(this, 24, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.endpoint_api.GetEndpointLogRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.endpoint_api.GetEndpointLogRequest} + */ +proto.endpoint_api.GetEndpointLogRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setEndpointid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.endpoint_api.SearchableDeployment.prototype.clearAppappearance = function() { - return this.setAppappearance(undefined); +proto.endpoint_api.GetEndpointLogRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.endpoint_api.GetEndpointLogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.endpoint_api.GetEndpointLogRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.SearchableDeployment.prototype.hasAppappearance = function() { - return jspb.Message.getField(this, 24) != null; +proto.endpoint_api.GetEndpointLogRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEndpointid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } }; /** - * optional google.protobuf.Struct webAppearance = 25; - * @return {?proto.google.protobuf.Struct} + * optional uint64 endpointId = 1; + * @return {string} */ -proto.endpoint_api.SearchableDeployment.prototype.getWebappearance = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 25)); +proto.endpoint_api.GetEndpointLogRequest.prototype.getEndpointid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.endpoint_api.SearchableDeployment} returns this -*/ -proto.endpoint_api.SearchableDeployment.prototype.setWebappearance = function(value) { - return jspb.Message.setWrapperField(this, 25, value); + * @param {string} value + * @return {!proto.endpoint_api.GetEndpointLogRequest} returns this + */ +proto.endpoint_api.GetEndpointLogRequest.prototype.setEndpointid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.SearchableDeployment} returns this + * optional uint64 id = 2; + * @return {string} */ -proto.endpoint_api.SearchableDeployment.prototype.clearWebappearance = function() { - return this.setWebappearance(undefined); +proto.endpoint_api.GetEndpointLogRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.endpoint_api.GetEndpointLogRequest} returns this */ -proto.endpoint_api.SearchableDeployment.prototype.hasWebappearance = function() { - return jspb.Message.getField(this, 25) != null; +proto.endpoint_api.GetEndpointLogRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.endpoint_api.GetAllDeploymentResponse.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -9717,8 +9765,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.GetAllDeploymentResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.GetEndpointLogResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.GetEndpointLogResponse.toObject(opt_includeInstance, this); }; @@ -9727,18 +9775,16 @@ proto.endpoint_api.GetAllDeploymentResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.GetAllDeploymentResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.GetEndpointLogResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllDeploymentResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.GetEndpointLogResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.endpoint_api.SearchableDeployment.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) + data: (f = msg.getData()) && proto.endpoint_api.EndpointLog.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -9752,23 +9798,23 @@ proto.endpoint_api.GetAllDeploymentResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.GetAllDeploymentResponse} + * @return {!proto.endpoint_api.GetEndpointLogResponse} */ -proto.endpoint_api.GetAllDeploymentResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.GetEndpointLogResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.GetAllDeploymentResponse; - return proto.endpoint_api.GetAllDeploymentResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.GetEndpointLogResponse; + return proto.endpoint_api.GetEndpointLogResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.GetAllDeploymentResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.GetEndpointLogResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.GetAllDeploymentResponse} + * @return {!proto.endpoint_api.GetEndpointLogResponse} */ -proto.endpoint_api.GetAllDeploymentResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.GetEndpointLogResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9784,20 +9830,15 @@ proto.endpoint_api.GetAllDeploymentResponse.deserializeBinaryFromReader = functi msg.setSuccess(value); break; case 3: - var value = new proto.endpoint_api.SearchableDeployment; - reader.readMessage(value,proto.endpoint_api.SearchableDeployment.deserializeBinaryFromReader); - msg.addData(value); + var value = new proto.endpoint_api.EndpointLog; + reader.readMessage(value,proto.endpoint_api.EndpointLog.deserializeBinaryFromReader); + msg.setData(value); break; case 4: var value = new common_pb.Error; reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; - case 5: - var value = new common_pb.Paginated; - reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); - msg.setPaginated(value); - break; default: reader.skipField(); break; @@ -9811,9 +9852,9 @@ proto.endpoint_api.GetAllDeploymentResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.serializeBinary = function() { +proto.endpoint_api.GetEndpointLogResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.GetAllDeploymentResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.GetEndpointLogResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9821,11 +9862,11 @@ proto.endpoint_api.GetAllDeploymentResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.GetAllDeploymentResponse} message + * @param {!proto.endpoint_api.GetEndpointLogResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.GetAllDeploymentResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.GetEndpointLogResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -9841,12 +9882,12 @@ proto.endpoint_api.GetAllDeploymentResponse.serializeBinaryToWriter = function(m f ); } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getData(); + if (f != null) { + writer.writeMessage( 3, f, - proto.endpoint_api.SearchableDeployment.serializeBinaryToWriter + proto.endpoint_api.EndpointLog.serializeBinaryToWriter ); } f = message.getError(); @@ -9857,14 +9898,6 @@ proto.endpoint_api.GetAllDeploymentResponse.serializeBinaryToWriter = function(m common_pb.Error.serializeBinaryToWriter ); } - f = message.getPaginated(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Paginated.serializeBinaryToWriter - ); - } }; @@ -9872,16 +9905,16 @@ proto.endpoint_api.GetAllDeploymentResponse.serializeBinaryToWriter = function(m * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.getCode = function() { +proto.endpoint_api.GetEndpointLogResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this + * @return {!proto.endpoint_api.GetEndpointLogResponse} returns this */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.setCode = function(value) { +proto.endpoint_api.GetEndpointLogResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -9890,55 +9923,54 @@ proto.endpoint_api.GetAllDeploymentResponse.prototype.setCode = function(value) * optional bool success = 2; * @return {boolean} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.getSuccess = function() { +proto.endpoint_api.GetEndpointLogResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this + * @return {!proto.endpoint_api.GetEndpointLogResponse} returns this */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.setSuccess = function(value) { +proto.endpoint_api.GetEndpointLogResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated SearchableDeployment data = 3; - * @return {!Array} + * optional EndpointLog data = 3; + * @return {?proto.endpoint_api.EndpointLog} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.endpoint_api.SearchableDeployment, 3)); +proto.endpoint_api.GetEndpointLogResponse.prototype.getData = function() { + return /** @type{?proto.endpoint_api.EndpointLog} */ ( + jspb.Message.getWrapperField(this, proto.endpoint_api.EndpointLog, 3)); }; /** - * @param {!Array} value - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this + * @param {?proto.endpoint_api.EndpointLog|undefined} value + * @return {!proto.endpoint_api.GetEndpointLogResponse} returns this */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.endpoint_api.GetEndpointLogResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {!proto.endpoint_api.SearchableDeployment=} opt_value - * @param {number=} opt_index - * @return {!proto.endpoint_api.SearchableDeployment} + * Clears the message field making it undefined. + * @return {!proto.endpoint_api.GetEndpointLogResponse} returns this */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.endpoint_api.SearchableDeployment, opt_index); +proto.endpoint_api.GetEndpointLogResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.clearDataList = function() { - return this.setDataList([]); +proto.endpoint_api.GetEndpointLogResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -9946,7 +9978,7 @@ proto.endpoint_api.GetAllDeploymentResponse.prototype.clearDataList = function() * optional Error error = 4; * @return {?proto.Error} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.getError = function() { +proto.endpoint_api.GetEndpointLogResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -9954,18 +9986,18 @@ proto.endpoint_api.GetAllDeploymentResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this + * @return {!proto.endpoint_api.GetEndpointLogResponse} returns this */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.setError = function(value) { +proto.endpoint_api.GetEndpointLogResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this + * @return {!proto.endpoint_api.GetEndpointLogResponse} returns this */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.clearError = function() { +proto.endpoint_api.GetEndpointLogResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -9974,236 +10006,9 @@ proto.endpoint_api.GetAllDeploymentResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.hasError = function() { +proto.endpoint_api.GetEndpointLogResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; -/** - * optional Paginated paginated = 5; - * @return {?proto.Paginated} - */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.getPaginated = function() { - return /** @type{?proto.Paginated} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); -}; - - -/** - * @param {?proto.Paginated|undefined} value - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this -*/ -proto.endpoint_api.GetAllDeploymentResponse.prototype.setPaginated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.GetAllDeploymentResponse} returns this - */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.clearPaginated = function() { - return this.setPaginated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.endpoint_api.GetAllDeploymentResponse.prototype.hasPaginated = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.UpdateEndpointDetailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.endpoint_api.UpdateEndpointDetailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.UpdateEndpointDetailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - endpointid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: 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.endpoint_api.UpdateEndpointDetailRequest} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.UpdateEndpointDetailRequest; - return proto.endpoint_api.UpdateEndpointDetailRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.endpoint_api.UpdateEndpointDetailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.UpdateEndpointDetailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.UpdateEndpointDetailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.UpdateEndpointDetailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEndpointid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint64 endpointId = 1; - * @return {string} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} returns this - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} returns this - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.UpdateEndpointDetailRequest} returns this - */ -proto.endpoint_api.UpdateEndpointDetailRequest.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - goog.object.extend(exports, proto.endpoint_api); diff --git a/src/clients/protos/google/protobuf/any.ts b/src/clients/protos/google/protobuf/any.ts deleted file mode 100644 index 3eef82d..0000000 --- a/src/clients/protos/google/protobuf/any.ts +++ /dev/null @@ -1,259 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.5 -// protoc v5.29.3 -// source: google/protobuf/any.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "google.protobuf"; - -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. As of May 2023, there are no widely used type server - * implementations and no plans to implement one. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Uint8Array; -} - -function createBaseAny(): Any { - return { typeUrl: "", value: new Uint8Array(0) }; -} - -export const Any: MessageFns = { - encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.typeUrl !== "") { - writer.uint32(10).string(message.typeUrl); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Any { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAny(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.typeUrl = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = reader.bytes(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Any { - return { - typeUrl: isSet(object.typeUrl) ? globalThis.String(object.typeUrl) : "", - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0), - }; - }, - - toJSON(message: Any): unknown { - const obj: any = {}; - if (message.typeUrl !== "") { - obj.typeUrl = message.typeUrl; - } - if (message.value.length !== 0) { - obj.value = base64FromBytes(message.value); - } - return obj; - }, - - create, I>>(base?: I): Any { - return Any.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Any { - const message = createBaseAny(); - message.typeUrl = object.typeUrl ?? ""; - message.value = object.value ?? new Uint8Array(0); - return message; - }, -}; - -function bytesFromBase64(b64: string): Uint8Array { - if ((globalThis as any).Buffer) { - return Uint8Array.from(globalThis.Buffer.from(b64, "base64")); - } else { - const bin = globalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} - -function base64FromBytes(arr: Uint8Array): string { - if ((globalThis as any).Buffer) { - return globalThis.Buffer.from(arr).toString("base64"); - } else { - const bin: string[] = []; - arr.forEach((byte) => { - bin.push(globalThis.String.fromCharCode(byte)); - }); - return globalThis.btoa(bin.join("")); - } -} - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/src/clients/protos/google/protobuf/struct.ts b/src/clients/protos/google/protobuf/struct.ts deleted file mode 100644 index 878b8c5..0000000 --- a/src/clients/protos/google/protobuf/struct.ts +++ /dev/null @@ -1,588 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.5 -// protoc v5.29.3 -// source: google/protobuf/struct.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "google.protobuf"; - -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - */ -export enum NullValue { - /** NULL_VALUE - Null value. */ - NULL_VALUE = 0, - UNRECOGNIZED = -1, -} - -export function nullValueFromJSON(object: any): NullValue { - switch (object) { - case 0: - case "NULL_VALUE": - return NullValue.NULL_VALUE; - case -1: - case "UNRECOGNIZED": - default: - return NullValue.UNRECOGNIZED; - } -} - -export function nullValueToJSON(object: NullValue): string { - switch (object) { - case NullValue.NULL_VALUE: - return "NULL_VALUE"; - case NullValue.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - */ -export interface Struct { - /** Unordered map of dynamically typed values. */ - fields: { [key: string]: any | undefined }; -} - -export interface Struct_FieldsEntry { - key: string; - value: any | undefined; -} - -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - */ -export interface Value { - /** Represents a null value. */ - nullValue?: - | NullValue - | undefined; - /** Represents a double value. */ - numberValue?: - | number - | undefined; - /** Represents a string value. */ - stringValue?: - | string - | undefined; - /** Represents a boolean value. */ - boolValue?: - | boolean - | undefined; - /** Represents a structured value. */ - structValue?: - | { [key: string]: any } - | undefined; - /** Represents a repeated `Value`. */ - listValue?: Array | undefined; -} - -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - */ -export interface ListValue { - /** Repeated field of dynamically typed values. */ - values: any[]; -} - -function createBaseStruct(): Struct { - return { fields: {} }; -} - -export const Struct: MessageFns & StructWrapperFns = { - encode(message: Struct, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.fields).forEach(([key, value]) => { - if (value !== undefined) { - Struct_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - } - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Struct { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStruct(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = Struct_FieldsEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.fields[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Struct { - return { - fields: isObject(object.fields) - ? Object.entries(object.fields).reduce<{ [key: string]: any | undefined }>((acc, [key, value]) => { - acc[key] = value as any | undefined; - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: Struct): unknown { - const obj: any = {}; - if (message.fields) { - const entries = Object.entries(message.fields); - if (entries.length > 0) { - obj.fields = {}; - entries.forEach(([k, v]) => { - obj.fields[k] = v; - }); - } - } - return obj; - }, - - create, I>>(base?: I): Struct { - return Struct.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Struct { - const message = createBaseStruct(); - message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: any | undefined }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[key] = value; - } - return acc; - }, - {}, - ); - return message; - }, - - wrap(object: { [key: string]: any } | undefined): Struct { - const struct = createBaseStruct(); - - if (object !== undefined) { - for (const key of Object.keys(object)) { - struct.fields[key] = object[key]; - } - } - return struct; - }, - - unwrap(message: Struct): { [key: string]: any } { - const object: { [key: string]: any } = {}; - if (message.fields) { - for (const key of Object.keys(message.fields)) { - object[key] = message.fields[key]; - } - } - return object; - }, -}; - -function createBaseStruct_FieldsEntry(): Struct_FieldsEntry { - return { key: "", value: undefined }; -} - -export const Struct_FieldsEntry: MessageFns = { - encode(message: Struct_FieldsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== undefined) { - Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Struct_FieldsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStruct_FieldsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.key = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = Value.unwrap(Value.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Struct_FieldsEntry { - return { - key: isSet(object.key) ? globalThis.String(object.key) : "", - value: isSet(object?.value) ? object.value : undefined, - }; - }, - - toJSON(message: Struct_FieldsEntry): unknown { - const obj: any = {}; - if (message.key !== "") { - obj.key = message.key; - } - if (message.value !== undefined) { - obj.value = message.value; - } - return obj; - }, - - create, I>>(base?: I): Struct_FieldsEntry { - return Struct_FieldsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Struct_FieldsEntry { - const message = createBaseStruct_FieldsEntry(); - message.key = object.key ?? ""; - message.value = object.value ?? undefined; - return message; - }, -}; - -function createBaseValue(): Value { - return { - nullValue: undefined, - numberValue: undefined, - stringValue: undefined, - boolValue: undefined, - structValue: undefined, - listValue: undefined, - }; -} - -export const Value: MessageFns & AnyValueWrapperFns = { - encode(message: Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.nullValue !== undefined) { - writer.uint32(8).int32(message.nullValue); - } - if (message.numberValue !== undefined) { - writer.uint32(17).double(message.numberValue); - } - if (message.stringValue !== undefined) { - writer.uint32(26).string(message.stringValue); - } - if (message.boolValue !== undefined) { - writer.uint32(32).bool(message.boolValue); - } - if (message.structValue !== undefined) { - Struct.encode(Struct.wrap(message.structValue), writer.uint32(42).fork()).join(); - } - if (message.listValue !== undefined) { - ListValue.encode(ListValue.wrap(message.listValue), writer.uint32(50).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Value { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValue(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.nullValue = reader.int32() as any; - continue; - } - case 2: { - if (tag !== 17) { - break; - } - - message.numberValue = reader.double(); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.stringValue = reader.string(); - continue; - } - case 4: { - if (tag !== 32) { - break; - } - - message.boolValue = reader.bool(); - continue; - } - case 5: { - if (tag !== 42) { - break; - } - - message.structValue = Struct.unwrap(Struct.decode(reader, reader.uint32())); - continue; - } - case 6: { - if (tag !== 50) { - break; - } - - message.listValue = ListValue.unwrap(ListValue.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Value { - return { - nullValue: isSet(object.nullValue) ? nullValueFromJSON(object.nullValue) : undefined, - numberValue: isSet(object.numberValue) ? globalThis.Number(object.numberValue) : undefined, - stringValue: isSet(object.stringValue) ? globalThis.String(object.stringValue) : undefined, - boolValue: isSet(object.boolValue) ? globalThis.Boolean(object.boolValue) : undefined, - structValue: isObject(object.structValue) ? object.structValue : undefined, - listValue: globalThis.Array.isArray(object.listValue) ? [...object.listValue] : undefined, - }; - }, - - toJSON(message: Value): unknown { - const obj: any = {}; - if (message.nullValue !== undefined) { - obj.nullValue = nullValueToJSON(message.nullValue); - } - if (message.numberValue !== undefined) { - obj.numberValue = message.numberValue; - } - if (message.stringValue !== undefined) { - obj.stringValue = message.stringValue; - } - if (message.boolValue !== undefined) { - obj.boolValue = message.boolValue; - } - if (message.structValue !== undefined) { - obj.structValue = message.structValue; - } - if (message.listValue !== undefined) { - obj.listValue = message.listValue; - } - return obj; - }, - - create, I>>(base?: I): Value { - return Value.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Value { - const message = createBaseValue(); - message.nullValue = object.nullValue ?? undefined; - message.numberValue = object.numberValue ?? undefined; - message.stringValue = object.stringValue ?? undefined; - message.boolValue = object.boolValue ?? undefined; - message.structValue = object.structValue ?? undefined; - message.listValue = object.listValue ?? undefined; - return message; - }, - - wrap(value: any): Value { - const result = createBaseValue(); - if (value === null) { - result.nullValue = NullValue.NULL_VALUE; - } else if (typeof value === "boolean") { - result.boolValue = value; - } else if (typeof value === "number") { - result.numberValue = value; - } else if (typeof value === "string") { - result.stringValue = value; - } else if (globalThis.Array.isArray(value)) { - result.listValue = value; - } else if (typeof value === "object") { - result.structValue = value; - } else if (typeof value !== "undefined") { - throw new globalThis.Error("Unsupported any value type: " + typeof value); - } - return result; - }, - - unwrap(message: any): string | number | boolean | Object | null | Array | undefined { - if (message.stringValue !== undefined) { - return message.stringValue; - } else if (message?.numberValue !== undefined) { - return message.numberValue; - } else if (message?.boolValue !== undefined) { - return message.boolValue; - } else if (message?.structValue !== undefined) { - return message.structValue as any; - } else if (message?.listValue !== undefined) { - return message.listValue; - } else if (message?.nullValue !== undefined) { - return null; - } - return undefined; - }, -}; - -function createBaseListValue(): ListValue { - return { values: [] }; -} - -export const ListValue: MessageFns & ListValueWrapperFns = { - encode(message: ListValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.values) { - Value.encode(Value.wrap(v!), writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ListValue { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListValue(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.values.push(Value.unwrap(Value.decode(reader, reader.uint32()))); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ListValue { - return { values: globalThis.Array.isArray(object?.values) ? [...object.values] : [] }; - }, - - toJSON(message: ListValue): unknown { - const obj: any = {}; - if (message.values?.length) { - obj.values = message.values; - } - return obj; - }, - - create, I>>(base?: I): ListValue { - return ListValue.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ListValue { - const message = createBaseListValue(); - message.values = object.values?.map((e) => e) || []; - return message; - }, - - wrap(array: Array | undefined): ListValue { - const result = createBaseListValue(); - result.values = array ?? []; - return result; - }, - - unwrap(message: ListValue): Array { - if (message?.hasOwnProperty("values") && globalThis.Array.isArray(message.values)) { - return message.values; - } else { - return message as any; - } - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} - -export interface StructWrapperFns { - wrap(object: { [key: string]: any } | undefined): Struct; - unwrap(message: Struct): { [key: string]: any }; -} - -export interface AnyValueWrapperFns { - wrap(value: any): Value; - unwrap(message: any): string | number | boolean | Object | null | Array | undefined; -} - -export interface ListValueWrapperFns { - wrap(array: Array | undefined): ListValue; - unwrap(message: ListValue): Array; -} diff --git a/src/clients/protos/google/protobuf/timestamp.ts b/src/clients/protos/google/protobuf/timestamp.ts deleted file mode 100644 index ad6d82b..0000000 --- a/src/clients/protos/google/protobuf/timestamp.ts +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.5 -// protoc v5.29.3 -// source: google/protobuf/timestamp.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "google.protobuf"; - -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: number; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} - -function createBaseTimestamp(): Timestamp { - return { seconds: 0, nanos: 0 }; -} - -export const Timestamp: MessageFns = { - encode(message: Timestamp, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.seconds !== 0) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Timestamp { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTimestamp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.seconds = longToNumber(reader.int64()); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.nanos = reader.int32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Timestamp { - return { - seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0, - nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0, - }; - }, - - toJSON(message: Timestamp): unknown { - const obj: any = {}; - if (message.seconds !== 0) { - obj.seconds = Math.round(message.seconds); - } - if (message.nanos !== 0) { - obj.nanos = Math.round(message.nanos); - } - return obj; - }, - - create, I>>(base?: I): Timestamp { - return Timestamp.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Timestamp { - const message = createBaseTimestamp(); - message.seconds = object.seconds ?? 0; - message.nanos = object.nanos ?? 0; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function longToNumber(int64: { toString(): string }): number { - const num = globalThis.Number(int64.toString()); - if (num > globalThis.Number.MAX_SAFE_INTEGER) { - throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); - } - if (num < globalThis.Number.MIN_SAFE_INTEGER) { - throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER"); - } - return num; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/src/clients/protos/integration-api_grpc_pb.d.ts b/src/clients/protos/integration-api_grpc_pb.d.ts index ac2360c..f4cea3f 100644 --- a/src/clients/protos/integration-api_grpc_pb.d.ts +++ b/src/clients/protos/integration-api_grpc_pb.d.ts @@ -9,7 +9,6 @@ import * as grpc from "grpc"; interface IBedrockServiceService extends grpc.ServiceDefinition { embedding: grpc.MethodDefinition; chat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -18,7 +17,6 @@ export const BedrockServiceService: IBedrockServiceService; export interface IBedrockServiceServer extends grpc.UntypedServiceImplementation { embedding: grpc.handleUnaryCall; chat: grpc.handleUnaryCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -30,9 +28,6 @@ export class BedrockServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -42,11 +37,7 @@ interface IOpenAiServiceService extends grpc.ServiceDefinition; chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; - generateTextToImage: grpc.MethodDefinition; - generateTextToSpeech: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; - generateSpeechToText: grpc.MethodDefinition; getModeration: grpc.MethodDefinition; } @@ -56,11 +47,7 @@ export interface IOpenAiServiceServer extends grpc.UntypedServiceImplementation embedding: grpc.handleUnaryCall; chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; - generateTextToImage: grpc.handleUnaryCall; - generateTextToSpeech: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; - generateSpeechToText: grpc.handleUnaryCall; getModeration: grpc.handleUnaryCall; } @@ -74,21 +61,9 @@ export class OpenAiServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getModeration(argument: integration_api_pb.GetModerationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getModeration(argument: integration_api_pb.GetModerationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getModeration(argument: integration_api_pb.GetModerationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -98,11 +73,7 @@ interface IAzureServiceService extends grpc.ServiceDefinition; chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; - generateTextToImage: grpc.MethodDefinition; - generateTextToSpeech: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; - generateSpeechToText: grpc.MethodDefinition; getModeration: grpc.MethodDefinition; } @@ -112,11 +83,7 @@ export interface IAzureServiceServer extends grpc.UntypedServiceImplementation { embedding: grpc.handleUnaryCall; chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; - generateTextToImage: grpc.handleUnaryCall; - generateTextToSpeech: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; - generateSpeechToText: grpc.handleUnaryCall; getModeration: grpc.handleUnaryCall; } @@ -130,21 +97,9 @@ export class AzureServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getModeration(argument: integration_api_pb.GetModerationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getModeration(argument: integration_api_pb.GetModerationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getModeration(argument: integration_api_pb.GetModerationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -154,7 +109,6 @@ interface IGoogleServiceService extends grpc.ServiceDefinition; chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -164,7 +118,6 @@ export interface IGoogleServiceServer extends grpc.UntypedServiceImplementation embedding: grpc.handleUnaryCall; chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -178,9 +131,6 @@ export class GoogleServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -189,7 +139,6 @@ export class GoogleServiceClient extends grpc.Client { interface IReplicateServiceService extends grpc.ServiceDefinition { chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -198,7 +147,6 @@ export const ReplicateServiceService: IReplicateServiceService; export interface IReplicateServiceServer extends grpc.UntypedServiceImplementation { chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -209,9 +157,6 @@ export class ReplicateServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -220,7 +165,6 @@ export class ReplicateServiceClient extends grpc.Client { interface IAnthropicServiceService extends grpc.ServiceDefinition { chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -229,7 +173,6 @@ export const AnthropicServiceService: IAnthropicServiceService; export interface IAnthropicServiceServer extends grpc.UntypedServiceImplementation { chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -240,9 +183,6 @@ export class AnthropicServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -253,7 +193,6 @@ interface ICohereServiceService extends grpc.ServiceDefinition; chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -264,7 +203,6 @@ export interface ICohereServiceServer extends grpc.UntypedServiceImplementation reranking: grpc.handleUnaryCall; chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -281,9 +219,6 @@ export class CohereServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -291,7 +226,6 @@ export class CohereServiceClient extends grpc.Client { interface IHuggingfaceServiceService extends grpc.ServiceDefinition { chat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -299,7 +233,6 @@ export const HuggingfaceServiceService: IHuggingfaceServiceService; export interface IHuggingfaceServiceServer extends grpc.UntypedServiceImplementation { chat: grpc.handleUnaryCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -308,9 +241,6 @@ export class HuggingfaceServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -319,7 +249,6 @@ export class HuggingfaceServiceClient extends grpc.Client { interface IMistralServiceService extends grpc.ServiceDefinition { chat: grpc.MethodDefinition; streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -328,7 +257,6 @@ export const MistralServiceService: IMistralServiceService; export interface IMistralServiceServer extends grpc.UntypedServiceImplementation { chat: grpc.handleUnaryCall; streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } @@ -339,39 +267,29 @@ export class MistralServiceClient extends grpc.Client { chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } interface IStabilityAiServiceService extends grpc.ServiceDefinition { - generateTextToImage: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } export const StabilityAiServiceService: IStabilityAiServiceService; export interface IStabilityAiServiceServer extends grpc.UntypedServiceImplementation { - generateTextToImage: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } export class StabilityAiServiceClient extends grpc.Client { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } interface ITogetherAiServiceService extends grpc.ServiceDefinition { - generateTextToImage: grpc.MethodDefinition; - generate: grpc.MethodDefinition; chat: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } @@ -379,20 +297,12 @@ interface ITogetherAiServiceService extends grpc.ServiceDefinition; - generate: grpc.handleUnaryCall; chat: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } export class TogetherAiServiceClient extends grpc.Client { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -402,22 +312,17 @@ export class TogetherAiServiceClient extends grpc.Client { } interface IDeepInfraServiceService extends grpc.ServiceDefinition { - generateTextToImage: grpc.MethodDefinition; verifyCredential: grpc.MethodDefinition; } export const DeepInfraServiceService: IDeepInfraServiceService; export interface IDeepInfraServiceServer extends grpc.UntypedServiceImplementation { - generateTextToImage: grpc.handleUnaryCall; verifyCredential: grpc.handleUnaryCall; } export class DeepInfraServiceClient extends grpc.Client { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -449,94 +354,3 @@ export class VoyageAiServiceClient extends grpc.Client { verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } - -interface IDeepgramServiceService extends grpc.ServiceDefinition { - generateSpeechToText: grpc.MethodDefinition; - generateTextToSpeech: grpc.MethodDefinition; - verifyCredential: grpc.MethodDefinition; - liveSpeechToText: grpc.MethodDefinition; -} - -export const DeepgramServiceService: IDeepgramServiceService; - -export interface IDeepgramServiceServer extends grpc.UntypedServiceImplementation { - generateSpeechToText: grpc.handleUnaryCall; - generateTextToSpeech: grpc.handleUnaryCall; - verifyCredential: grpc.handleUnaryCall; - liveSpeechToText: grpc.handleBidiStreamingCall; -} - -export class DeepgramServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateSpeechToText(argument: integration_api_pb.GenerateSpeechToTextRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - liveSpeechToText(metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientDuplexStream; - liveSpeechToText(metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientDuplexStream; -} - -interface IRapidaServiceService extends grpc.ServiceDefinition { - embedding: grpc.MethodDefinition; - chat: grpc.MethodDefinition; - streamChat: grpc.MethodDefinition; - generate: grpc.MethodDefinition; - generateTextToImage: grpc.MethodDefinition; - generateTextToSpeech: grpc.MethodDefinition; - verifyCredential: grpc.MethodDefinition; - getModeration: grpc.MethodDefinition; - reranking: grpc.MethodDefinition; - liveSpeechToText: grpc.MethodDefinition; -} - -export const RapidaServiceService: IRapidaServiceService; - -export interface IRapidaServiceServer extends grpc.UntypedServiceImplementation { - embedding: grpc.handleUnaryCall; - chat: grpc.handleUnaryCall; - streamChat: grpc.handleServerStreamingCall; - generate: grpc.handleUnaryCall; - generateTextToImage: grpc.handleUnaryCall; - generateTextToSpeech: grpc.handleUnaryCall; - verifyCredential: grpc.handleUnaryCall; - getModeration: grpc.handleUnaryCall; - reranking: grpc.handleUnaryCall; - liveSpeechToText: grpc.handleBidiStreamingCall; -} - -export class RapidaServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - embedding(argument: integration_api_pb.EmbeddingRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - embedding(argument: integration_api_pb.EmbeddingRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - embedding(argument: integration_api_pb.EmbeddingRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - chat(argument: integration_api_pb.ChatRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - chat(argument: integration_api_pb.ChatRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - chat(argument: integration_api_pb.ChatRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - streamChat(argument: integration_api_pb.ChatRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - streamChat(argument: integration_api_pb.ChatRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - generate(argument: integration_api_pb.GenerateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generate(argument: integration_api_pb.GenerateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToImage(argument: integration_api_pb.GenerateTextToImageRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateTextToSpeech(argument: integration_api_pb.GenerateTextToSpeechRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - verifyCredential(argument: integration_api_pb.VerifyCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getModeration(argument: integration_api_pb.GetModerationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getModeration(argument: integration_api_pb.GetModerationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getModeration(argument: integration_api_pb.GetModerationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - reranking(argument: integration_api_pb.RerankingRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - reranking(argument: integration_api_pb.RerankingRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - reranking(argument: integration_api_pb.RerankingRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - liveSpeechToText(metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientDuplexStream; - liveSpeechToText(metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientDuplexStream; -} diff --git a/src/clients/protos/integration-api_grpc_pb.js b/src/clients/protos/integration-api_grpc_pb.js index cc75d4e..f7f39a2 100644 --- a/src/clients/protos/integration-api_grpc_pb.js +++ b/src/clients/protos/integration-api_grpc_pb.js @@ -51,94 +51,6 @@ function deserialize_integration_api_EmbeddingResponse(buffer_arg) { return integration$api_pb.EmbeddingResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_integration_api_GenerateRequest(arg) { - if (!(arg instanceof integration$api_pb.GenerateRequest)) { - throw new Error('Expected argument of type integration_api.GenerateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateRequest(buffer_arg) { - return integration$api_pb.GenerateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateResponse(arg) { - if (!(arg instanceof integration$api_pb.GenerateResponse)) { - throw new Error('Expected argument of type integration_api.GenerateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateResponse(buffer_arg) { - return integration$api_pb.GenerateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateSpeechToTextRequest(arg) { - if (!(arg instanceof integration$api_pb.GenerateSpeechToTextRequest)) { - throw new Error('Expected argument of type integration_api.GenerateSpeechToTextRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateSpeechToTextRequest(buffer_arg) { - return integration$api_pb.GenerateSpeechToTextRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateSpeechToTextResponse(arg) { - if (!(arg instanceof integration$api_pb.GenerateSpeechToTextResponse)) { - throw new Error('Expected argument of type integration_api.GenerateSpeechToTextResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateSpeechToTextResponse(buffer_arg) { - return integration$api_pb.GenerateSpeechToTextResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateTextToImageRequest(arg) { - if (!(arg instanceof integration$api_pb.GenerateTextToImageRequest)) { - throw new Error('Expected argument of type integration_api.GenerateTextToImageRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateTextToImageRequest(buffer_arg) { - return integration$api_pb.GenerateTextToImageRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateTextToImageResponse(arg) { - if (!(arg instanceof integration$api_pb.GenerateTextToImageResponse)) { - throw new Error('Expected argument of type integration_api.GenerateTextToImageResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateTextToImageResponse(buffer_arg) { - return integration$api_pb.GenerateTextToImageResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateTextToSpeechRequest(arg) { - if (!(arg instanceof integration$api_pb.GenerateTextToSpeechRequest)) { - throw new Error('Expected argument of type integration_api.GenerateTextToSpeechRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateTextToSpeechRequest(buffer_arg) { - return integration$api_pb.GenerateTextToSpeechRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_integration_api_GenerateTextToSpeechResponse(arg) { - if (!(arg instanceof integration$api_pb.GenerateTextToSpeechResponse)) { - throw new Error('Expected argument of type integration_api.GenerateTextToSpeechResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_integration_api_GenerateTextToSpeechResponse(buffer_arg) { - return integration$api_pb.GenerateTextToSpeechResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_integration_api_GetModerationRequest(arg) { if (!(arg instanceof integration$api_pb.GetModerationRequest)) { throw new Error('Expected argument of type integration_api.GetModerationRequest'); @@ -229,17 +141,6 @@ var BedrockServiceService = exports.BedrockServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.BedrockService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.BedrockService/VerifyCredential', requestStream: false, @@ -288,39 +189,6 @@ var OpenAiServiceService = exports.OpenAiServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.OpenAiService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, - generateTextToImage: { - path: '/integration_api.OpenAiService/GenerateTextToImage', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToImageRequest, - responseType: integration$api_pb.GenerateTextToImageResponse, - requestSerialize: serialize_integration_api_GenerateTextToImageRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToImageRequest, - responseSerialize: serialize_integration_api_GenerateTextToImageResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToImageResponse, - }, - generateTextToSpeech: { - path: '/integration_api.OpenAiService/GenerateTextToSpeech', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToSpeechRequest, - responseType: integration$api_pb.GenerateTextToSpeechResponse, - requestSerialize: serialize_integration_api_GenerateTextToSpeechRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToSpeechRequest, - responseSerialize: serialize_integration_api_GenerateTextToSpeechResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToSpeechResponse, - }, verifyCredential: { path: '/integration_api.OpenAiService/VerifyCredential', requestStream: false, @@ -332,17 +200,6 @@ var OpenAiServiceService = exports.OpenAiServiceService = { responseSerialize: serialize_integration_api_VerifyCredentialResponse, responseDeserialize: deserialize_integration_api_VerifyCredentialResponse, }, - generateSpeechToText: { - path: '/integration_api.OpenAiService/GenerateSpeechToText', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateSpeechToTextRequest, - responseType: integration$api_pb.GenerateSpeechToTextResponse, - requestSerialize: serialize_integration_api_GenerateSpeechToTextRequest, - requestDeserialize: deserialize_integration_api_GenerateSpeechToTextRequest, - responseSerialize: serialize_integration_api_GenerateSpeechToTextResponse, - responseDeserialize: deserialize_integration_api_GenerateSpeechToTextResponse, - }, getModeration: { path: '/integration_api.OpenAiService/GetModeration', requestStream: false, @@ -391,39 +248,6 @@ var AzureServiceService = exports.AzureServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.AzureService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, - generateTextToImage: { - path: '/integration_api.AzureService/GenerateTextToImage', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToImageRequest, - responseType: integration$api_pb.GenerateTextToImageResponse, - requestSerialize: serialize_integration_api_GenerateTextToImageRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToImageRequest, - responseSerialize: serialize_integration_api_GenerateTextToImageResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToImageResponse, - }, - generateTextToSpeech: { - path: '/integration_api.AzureService/GenerateTextToSpeech', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToSpeechRequest, - responseType: integration$api_pb.GenerateTextToSpeechResponse, - requestSerialize: serialize_integration_api_GenerateTextToSpeechRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToSpeechRequest, - responseSerialize: serialize_integration_api_GenerateTextToSpeechResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToSpeechResponse, - }, verifyCredential: { path: '/integration_api.AzureService/VerifyCredential', requestStream: false, @@ -435,17 +259,6 @@ var AzureServiceService = exports.AzureServiceService = { responseSerialize: serialize_integration_api_VerifyCredentialResponse, responseDeserialize: deserialize_integration_api_VerifyCredentialResponse, }, - generateSpeechToText: { - path: '/integration_api.AzureService/GenerateSpeechToText', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateSpeechToTextRequest, - responseType: integration$api_pb.GenerateSpeechToTextResponse, - requestSerialize: serialize_integration_api_GenerateSpeechToTextRequest, - requestDeserialize: deserialize_integration_api_GenerateSpeechToTextRequest, - responseSerialize: serialize_integration_api_GenerateSpeechToTextResponse, - responseDeserialize: deserialize_integration_api_GenerateSpeechToTextResponse, - }, getModeration: { path: '/integration_api.AzureService/GetModeration', requestStream: false, @@ -494,17 +307,6 @@ var GoogleServiceService = exports.GoogleServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.GoogleService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.GoogleService/VerifyCredential', requestStream: false, @@ -542,17 +344,6 @@ var ReplicateServiceService = exports.ReplicateServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.ReplicateService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.ReplicateService/VerifyCredential', requestStream: false, @@ -590,17 +381,6 @@ var AnthropicServiceService = exports.AnthropicServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.AnthropicService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.AnthropicService/VerifyCredential', requestStream: false, @@ -660,17 +440,6 @@ var CohereServiceService = exports.CohereServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.CohereService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.CohereService/VerifyCredential', requestStream: false, @@ -697,17 +466,6 @@ var HuggingfaceServiceService = exports.HuggingfaceServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.HuggingfaceService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.HuggingfaceService/VerifyCredential', requestStream: false, @@ -745,17 +503,6 @@ var MistralServiceService = exports.MistralServiceService = { responseSerialize: serialize_integration_api_ChatResponse, responseDeserialize: deserialize_integration_api_ChatResponse, }, - generate: { - path: '/integration_api.MistralService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, verifyCredential: { path: '/integration_api.MistralService/VerifyCredential', requestStream: false, @@ -771,17 +518,6 @@ var MistralServiceService = exports.MistralServiceService = { exports.MistralServiceClient = grpc.makeGenericClientConstructor(MistralServiceService, 'MistralService'); var StabilityAiServiceService = exports.StabilityAiServiceService = { - generateTextToImage: { - path: '/integration_api.StabilityAiService/GenerateTextToImage', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToImageRequest, - responseType: integration$api_pb.GenerateTextToImageResponse, - requestSerialize: serialize_integration_api_GenerateTextToImageRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToImageRequest, - responseSerialize: serialize_integration_api_GenerateTextToImageResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToImageResponse, - }, verifyCredential: { path: '/integration_api.StabilityAiService/VerifyCredential', requestStream: false, @@ -797,28 +533,6 @@ var StabilityAiServiceService = exports.StabilityAiServiceService = { exports.StabilityAiServiceClient = grpc.makeGenericClientConstructor(StabilityAiServiceService, 'StabilityAiService'); var TogetherAiServiceService = exports.TogetherAiServiceService = { - generateTextToImage: { - path: '/integration_api.TogetherAiService/GenerateTextToImage', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToImageRequest, - responseType: integration$api_pb.GenerateTextToImageResponse, - requestSerialize: serialize_integration_api_GenerateTextToImageRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToImageRequest, - responseSerialize: serialize_integration_api_GenerateTextToImageResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToImageResponse, - }, - generate: { - path: '/integration_api.TogetherAiService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, chat: { path: '/integration_api.TogetherAiService/Chat', requestStream: false, @@ -845,17 +559,6 @@ var TogetherAiServiceService = exports.TogetherAiServiceService = { exports.TogetherAiServiceClient = grpc.makeGenericClientConstructor(TogetherAiServiceService, 'TogetherAiService'); var DeepInfraServiceService = exports.DeepInfraServiceService = { - generateTextToImage: { - path: '/integration_api.DeepInfraService/GenerateTextToImage', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToImageRequest, - responseType: integration$api_pb.GenerateTextToImageResponse, - requestSerialize: serialize_integration_api_GenerateTextToImageRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToImageRequest, - responseSerialize: serialize_integration_api_GenerateTextToImageResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToImageResponse, - }, verifyCredential: { path: '/integration_api.DeepInfraService/VerifyCredential', requestStream: false, @@ -907,165 +610,3 @@ var VoyageAiServiceService = exports.VoyageAiServiceService = { }; exports.VoyageAiServiceClient = grpc.makeGenericClientConstructor(VoyageAiServiceService, 'VoyageAiService'); -var DeepgramServiceService = exports.DeepgramServiceService = { - generateSpeechToText: { - path: '/integration_api.DeepgramService/GenerateSpeechToText', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateSpeechToTextRequest, - responseType: integration$api_pb.GenerateSpeechToTextResponse, - requestSerialize: serialize_integration_api_GenerateSpeechToTextRequest, - requestDeserialize: deserialize_integration_api_GenerateSpeechToTextRequest, - responseSerialize: serialize_integration_api_GenerateSpeechToTextResponse, - responseDeserialize: deserialize_integration_api_GenerateSpeechToTextResponse, - }, - generateTextToSpeech: { - path: '/integration_api.DeepgramService/GenerateTextToSpeech', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToSpeechRequest, - responseType: integration$api_pb.GenerateTextToSpeechResponse, - requestSerialize: serialize_integration_api_GenerateTextToSpeechRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToSpeechRequest, - responseSerialize: serialize_integration_api_GenerateTextToSpeechResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToSpeechResponse, - }, - verifyCredential: { - path: '/integration_api.DeepgramService/VerifyCredential', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.VerifyCredentialRequest, - responseType: integration$api_pb.VerifyCredentialResponse, - requestSerialize: serialize_integration_api_VerifyCredentialRequest, - requestDeserialize: deserialize_integration_api_VerifyCredentialRequest, - responseSerialize: serialize_integration_api_VerifyCredentialResponse, - responseDeserialize: deserialize_integration_api_VerifyCredentialResponse, - }, - liveSpeechToText: { - path: '/integration_api.DeepgramService/LiveSpeechToText', - requestStream: true, - responseStream: true, - requestType: integration$api_pb.GenerateSpeechToTextRequest, - responseType: integration$api_pb.GenerateSpeechToTextResponse, - requestSerialize: serialize_integration_api_GenerateSpeechToTextRequest, - requestDeserialize: deserialize_integration_api_GenerateSpeechToTextRequest, - responseSerialize: serialize_integration_api_GenerateSpeechToTextResponse, - responseDeserialize: deserialize_integration_api_GenerateSpeechToTextResponse, - }, -}; - -exports.DeepgramServiceClient = grpc.makeGenericClientConstructor(DeepgramServiceService, 'DeepgramService'); -var RapidaServiceService = exports.RapidaServiceService = { - embedding: { - path: '/integration_api.RapidaService/Embedding', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.EmbeddingRequest, - responseType: integration$api_pb.EmbeddingResponse, - requestSerialize: serialize_integration_api_EmbeddingRequest, - requestDeserialize: deserialize_integration_api_EmbeddingRequest, - responseSerialize: serialize_integration_api_EmbeddingResponse, - responseDeserialize: deserialize_integration_api_EmbeddingResponse, - }, - chat: { - path: '/integration_api.RapidaService/Chat', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.ChatRequest, - responseType: integration$api_pb.ChatResponse, - requestSerialize: serialize_integration_api_ChatRequest, - requestDeserialize: deserialize_integration_api_ChatRequest, - responseSerialize: serialize_integration_api_ChatResponse, - responseDeserialize: deserialize_integration_api_ChatResponse, - }, - streamChat: { - path: '/integration_api.RapidaService/StreamChat', - requestStream: false, - responseStream: true, - requestType: integration$api_pb.ChatRequest, - responseType: integration$api_pb.ChatResponse, - requestSerialize: serialize_integration_api_ChatRequest, - requestDeserialize: deserialize_integration_api_ChatRequest, - responseSerialize: serialize_integration_api_ChatResponse, - responseDeserialize: deserialize_integration_api_ChatResponse, - }, - generate: { - path: '/integration_api.RapidaService/Generate', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateRequest, - responseType: integration$api_pb.GenerateResponse, - requestSerialize: serialize_integration_api_GenerateRequest, - requestDeserialize: deserialize_integration_api_GenerateRequest, - responseSerialize: serialize_integration_api_GenerateResponse, - responseDeserialize: deserialize_integration_api_GenerateResponse, - }, - generateTextToImage: { - path: '/integration_api.RapidaService/GenerateTextToImage', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToImageRequest, - responseType: integration$api_pb.GenerateTextToImageResponse, - requestSerialize: serialize_integration_api_GenerateTextToImageRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToImageRequest, - responseSerialize: serialize_integration_api_GenerateTextToImageResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToImageResponse, - }, - generateTextToSpeech: { - path: '/integration_api.RapidaService/GenerateTextToSpeech', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GenerateTextToSpeechRequest, - responseType: integration$api_pb.GenerateTextToSpeechResponse, - requestSerialize: serialize_integration_api_GenerateTextToSpeechRequest, - requestDeserialize: deserialize_integration_api_GenerateTextToSpeechRequest, - responseSerialize: serialize_integration_api_GenerateTextToSpeechResponse, - responseDeserialize: deserialize_integration_api_GenerateTextToSpeechResponse, - }, - verifyCredential: { - path: '/integration_api.RapidaService/VerifyCredential', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.VerifyCredentialRequest, - responseType: integration$api_pb.VerifyCredentialResponse, - requestSerialize: serialize_integration_api_VerifyCredentialRequest, - requestDeserialize: deserialize_integration_api_VerifyCredentialRequest, - responseSerialize: serialize_integration_api_VerifyCredentialResponse, - responseDeserialize: deserialize_integration_api_VerifyCredentialResponse, - }, - getModeration: { - path: '/integration_api.RapidaService/GetModeration', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.GetModerationRequest, - responseType: integration$api_pb.GetModerationResponse, - requestSerialize: serialize_integration_api_GetModerationRequest, - requestDeserialize: deserialize_integration_api_GetModerationRequest, - responseSerialize: serialize_integration_api_GetModerationResponse, - responseDeserialize: deserialize_integration_api_GetModerationResponse, - }, - reranking: { - path: '/integration_api.RapidaService/Reranking', - requestStream: false, - responseStream: false, - requestType: integration$api_pb.RerankingRequest, - responseType: integration$api_pb.RerankingResponse, - requestSerialize: serialize_integration_api_RerankingRequest, - requestDeserialize: deserialize_integration_api_RerankingRequest, - responseSerialize: serialize_integration_api_RerankingResponse, - responseDeserialize: deserialize_integration_api_RerankingResponse, - }, - liveSpeechToText: { - path: '/integration_api.RapidaService/LiveSpeechToText', - requestStream: true, - responseStream: true, - requestType: integration$api_pb.GenerateSpeechToTextRequest, - responseType: integration$api_pb.GenerateSpeechToTextResponse, - requestSerialize: serialize_integration_api_GenerateSpeechToTextRequest, - requestDeserialize: deserialize_integration_api_GenerateSpeechToTextRequest, - responseSerialize: serialize_integration_api_GenerateSpeechToTextResponse, - responseDeserialize: deserialize_integration_api_GenerateSpeechToTextResponse, - }, -}; - -exports.RapidaServiceClient = grpc.makeGenericClientConstructor(RapidaServiceService, 'RapidaService'); diff --git a/src/clients/protos/integration-api_pb.d.ts b/src/clients/protos/integration-api_pb.d.ts index efbc4cb..d55f1eb 100644 --- a/src/clients/protos/integration-api_pb.d.ts +++ b/src/clients/protos/integration-api_pb.d.ts @@ -153,40 +153,6 @@ export namespace FunctionParameterProperty { } } -export class ModelParameter extends jspb.Message { - getKey(): string; - setKey(value: string): void; - - hasValue(): boolean; - clearValue(): void; - getValue(): google_protobuf_any_pb.Any | undefined; - setValue(value?: google_protobuf_any_pb.Any): void; - - getType(): string; - setType(value: string): void; - - getPlace(): string; - setPlace(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ModelParameter.AsObject; - static toObject(includeInstance: boolean, msg: ModelParameter): ModelParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ModelParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ModelParameter; - static deserializeBinaryFromReader(message: ModelParameter, reader: jspb.BinaryReader): ModelParameter; -} - -export namespace ModelParameter { - export type AsObject = { - key: string, - value?: google_protobuf_any_pb.Any.AsObject, - type: string, - place: string, - } -} - export class Embedding extends jspb.Message { getIndex(): number; setIndex(value: number): void; @@ -223,19 +189,10 @@ export class EmbeddingRequest extends jspb.Message { getCredential(): Credential | undefined; setCredential(value?: Credential): void; - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - getContentMap(): jspb.Map; clearContentMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - + getModelparametersMap(): jspb.Map; + clearModelparametersMap(): void; getAdditionaldataMap(): jspb.Map; clearAdditionaldataMap(): void; serializeBinary(): Uint8Array; @@ -251,10 +208,8 @@ export class EmbeddingRequest extends jspb.Message { export namespace EmbeddingRequest { export type AsObject = { credential?: Credential.AsObject, - model: string, - version: string, contentMap: Array<[number, string]>, - modelparametersList: Array, + modelparametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, additionaldataMap: Array<[string, string]>, } } @@ -341,22 +296,13 @@ export class RerankingRequest extends jspb.Message { getCredential(): Credential | undefined; setCredential(value?: Credential): void; - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - getQuery(): string; setQuery(value: string): void; getContentMap(): jspb.Map; clearContentMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - + getModelparametersMap(): jspb.Map; + clearModelparametersMap(): void; getAdditionaldataMap(): jspb.Map; clearAdditionaldataMap(): void; serializeBinary(): Uint8Array; @@ -372,11 +318,9 @@ export class RerankingRequest extends jspb.Message { export namespace RerankingRequest { export type AsObject = { credential?: Credential.AsObject, - model: string, - version: string, query: string, contentMap: Array<[number, common_pb.Content.AsObject]>, - modelparametersList: Array, + modelparametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, additionaldataMap: Array<[string, string]>, } } @@ -427,57 +371,6 @@ export namespace RerankingResponse { } } -export class ChatRequest extends jspb.Message { - hasCredential(): boolean; - clearCredential(): void; - getCredential(): Credential | undefined; - setCredential(value?: Credential): void; - - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - - clearConversationsList(): void; - getConversationsList(): Array; - setConversationsList(value: Array): void; - addConversations(value?: common_pb.Message, index?: number): common_pb.Message; - - getAdditionaldataMap(): jspb.Map; - clearAdditionaldataMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - - clearTooldefinitionsList(): void; - getTooldefinitionsList(): Array; - setTooldefinitionsList(value: Array): void; - addTooldefinitions(value?: ToolDefinition, index?: number): ToolDefinition; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChatRequest.AsObject; - static toObject(includeInstance: boolean, msg: ChatRequest): ChatRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChatRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChatRequest; - static deserializeBinaryFromReader(message: ChatRequest, reader: jspb.BinaryReader): ChatRequest; -} - -export namespace ChatRequest { - export type AsObject = { - credential?: Credential.AsObject, - model: string, - version: string, - conversationsList: Array, - additionaldataMap: Array<[string, string]>, - modelparametersList: Array, - tooldefinitionsList: Array, - } -} - export class ChatResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -528,377 +421,43 @@ export namespace ChatResponse { } } -export class GenerateRequest extends jspb.Message { - hasCredential(): boolean; - clearCredential(): void; - getCredential(): Credential | undefined; - setCredential(value?: Credential): void; - - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - - getPrompt(): string; - setPrompt(value: string): void; - - getAdditionaldataMap(): jspb.Map; - clearAdditionaldataMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - - hasSystemprompt(): boolean; - clearSystemprompt(): void; - getSystemprompt(): string; - setSystemprompt(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateRequest): GenerateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateRequest; - static deserializeBinaryFromReader(message: GenerateRequest, reader: jspb.BinaryReader): GenerateRequest; -} - -export namespace GenerateRequest { - export type AsObject = { - credential?: Credential.AsObject, - model: string, - version: string, - prompt: string, - additionaldataMap: Array<[string, string]>, - modelparametersList: Array, - systemprompt: string, - } -} - -export class GenerateResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - getRequestid(): number; - setRequestid(value: number): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: common_pb.Content, index?: number): common_pb.Content; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value?: common_pb.Metric, index?: number): common_pb.Metric; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateResponse): GenerateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateResponse; - static deserializeBinaryFromReader(message: GenerateResponse, reader: jspb.BinaryReader): GenerateResponse; -} - -export namespace GenerateResponse { - export type AsObject = { - code: number, - success: boolean, - requestid: number, - dataList: Array, - error?: common_pb.Error.AsObject, - metricsList: Array, - } -} - -export class GenerateTextToImageRequest extends jspb.Message { - hasCredential(): boolean; - clearCredential(): void; - getCredential(): Credential | undefined; - setCredential(value?: Credential): void; - - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - - getPrompt(): string; - setPrompt(value: string): void; - - getAdditionaldataMap(): jspb.Map; - clearAdditionaldataMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateTextToImageRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateTextToImageRequest): GenerateTextToImageRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateTextToImageRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateTextToImageRequest; - static deserializeBinaryFromReader(message: GenerateTextToImageRequest, reader: jspb.BinaryReader): GenerateTextToImageRequest; -} - -export namespace GenerateTextToImageRequest { - export type AsObject = { - credential?: Credential.AsObject, - model: string, - version: string, - prompt: string, - additionaldataMap: Array<[string, string]>, - modelparametersList: Array, - } -} - -export class GenerateTextToImageResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - getRequestid(): number; - setRequestid(value: number): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: common_pb.Content, index?: number): common_pb.Content; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value?: common_pb.Metric, index?: number): common_pb.Metric; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateTextToImageResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateTextToImageResponse): GenerateTextToImageResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateTextToImageResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateTextToImageResponse; - static deserializeBinaryFromReader(message: GenerateTextToImageResponse, reader: jspb.BinaryReader): GenerateTextToImageResponse; -} - -export namespace GenerateTextToImageResponse { - export type AsObject = { - code: number, - success: boolean, - requestid: number, - dataList: Array, - error?: common_pb.Error.AsObject, - metricsList: Array, - } -} - -export class GenerateTextToSpeechRequest extends jspb.Message { - hasCredential(): boolean; - clearCredential(): void; - getCredential(): Credential | undefined; - setCredential(value?: Credential): void; - - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - - getPrompt(): string; - setPrompt(value: string): void; - - getAdditionaldataMap(): jspb.Map; - clearAdditionaldataMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateTextToSpeechRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateTextToSpeechRequest): GenerateTextToSpeechRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateTextToSpeechRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateTextToSpeechRequest; - static deserializeBinaryFromReader(message: GenerateTextToSpeechRequest, reader: jspb.BinaryReader): GenerateTextToSpeechRequest; -} - -export namespace GenerateTextToSpeechRequest { - export type AsObject = { - credential?: Credential.AsObject, - model: string, - version: string, - prompt: string, - additionaldataMap: Array<[string, string]>, - modelparametersList: Array, - } -} - -export class GenerateTextToSpeechResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - getRequestid(): number; - setRequestid(value: number): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: common_pb.Content, index?: number): common_pb.Content; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value?: common_pb.Metric, index?: number): common_pb.Metric; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateTextToSpeechResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateTextToSpeechResponse): GenerateTextToSpeechResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateTextToSpeechResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateTextToSpeechResponse; - static deserializeBinaryFromReader(message: GenerateTextToSpeechResponse, reader: jspb.BinaryReader): GenerateTextToSpeechResponse; -} - -export namespace GenerateTextToSpeechResponse { - export type AsObject = { - code: number, - success: boolean, - requestid: number, - dataList: Array, - error?: common_pb.Error.AsObject, - metricsList: Array, - } -} - -export class GenerateSpeechToTextRequest extends jspb.Message { +export class ChatRequest extends jspb.Message { hasCredential(): boolean; clearCredential(): void; getCredential(): Credential | undefined; setCredential(value?: Credential): void; - getModel(): string; - setModel(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - - getPrompt(): string; - setPrompt(value: string): void; - - hasSpeech(): boolean; - clearSpeech(): void; - getSpeech(): common_pb.Content | undefined; - setSpeech(value?: common_pb.Content): void; + clearConversationsList(): void; + getConversationsList(): Array; + setConversationsList(value: Array): void; + addConversations(value?: common_pb.Message, index?: number): common_pb.Message; getAdditionaldataMap(): jspb.Map; clearAdditionaldataMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; + getModelparametersMap(): jspb.Map; + clearModelparametersMap(): void; + clearTooldefinitionsList(): void; + getTooldefinitionsList(): Array; + setTooldefinitionsList(value: Array): void; + addTooldefinitions(value?: ToolDefinition, index?: number): ToolDefinition; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateSpeechToTextRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateSpeechToTextRequest): GenerateSpeechToTextRequest.AsObject; + toObject(includeInstance?: boolean): ChatRequest.AsObject; + static toObject(includeInstance: boolean, msg: ChatRequest): ChatRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateSpeechToTextRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateSpeechToTextRequest; - static deserializeBinaryFromReader(message: GenerateSpeechToTextRequest, reader: jspb.BinaryReader): GenerateSpeechToTextRequest; + static serializeBinaryToWriter(message: ChatRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChatRequest; + static deserializeBinaryFromReader(message: ChatRequest, reader: jspb.BinaryReader): ChatRequest; } -export namespace GenerateSpeechToTextRequest { +export namespace ChatRequest { export type AsObject = { credential?: Credential.AsObject, - model: string, - version: string, - prompt: string, - speech?: common_pb.Content.AsObject, + conversationsList: Array, additionaldataMap: Array<[string, string]>, - modelparametersList: Array, - } -} - -export class GenerateSpeechToTextResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - getRequestid(): number; - setRequestid(value: number): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: common_pb.Content, index?: number): common_pb.Content; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value?: common_pb.Metric, index?: number): common_pb.Metric; - - hasMeta(): boolean; - clearMeta(): void; - getMeta(): google_protobuf_struct_pb.Struct | undefined; - setMeta(value?: google_protobuf_struct_pb.Struct): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateSpeechToTextResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateSpeechToTextResponse): GenerateSpeechToTextResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateSpeechToTextResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateSpeechToTextResponse; - static deserializeBinaryFromReader(message: GenerateSpeechToTextResponse, reader: jspb.BinaryReader): GenerateSpeechToTextResponse; -} - -export namespace GenerateSpeechToTextResponse { - export type AsObject = { - code: number, - success: boolean, - requestid: number, - dataList: Array, - error?: common_pb.Error.AsObject, - metricsList: Array, - meta?: google_protobuf_struct_pb.Struct.AsObject, + modelparametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, + tooldefinitionsList: Array, } } @@ -1005,11 +564,8 @@ export class GetModerationRequest extends jspb.Message { getAdditionaldataMap(): jspb.Map; clearAdditionaldataMap(): void; - clearModelparametersList(): void; - getModelparametersList(): Array; - setModelparametersList(value: Array): void; - addModelparameters(value?: ModelParameter, index?: number): ModelParameter; - + getModelparametersMap(): jspb.Map; + clearModelparametersMap(): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetModerationRequest.AsObject; static toObject(includeInstance: boolean, msg: GetModerationRequest): GetModerationRequest.AsObject; @@ -1027,7 +583,7 @@ export namespace GetModerationRequest { version: string, content?: common_pb.Content.AsObject, additionaldataMap: Array<[string, string]>, - modelparametersList: Array, + modelparametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, } } diff --git a/src/clients/protos/integration-api_pb.js b/src/clients/protos/integration-api_pb.js index bf7c3a4..7ac35fe 100644 --- a/src/clients/protos/integration-api_pb.js +++ b/src/clients/protos/integration-api_pb.js @@ -36,17 +36,8 @@ goog.exportSymbol('proto.integration_api.EmbeddingResponse', null, global); goog.exportSymbol('proto.integration_api.FunctionDefinition', null, global); goog.exportSymbol('proto.integration_api.FunctionParameter', null, global); goog.exportSymbol('proto.integration_api.FunctionParameterProperty', null, global); -goog.exportSymbol('proto.integration_api.GenerateRequest', null, global); -goog.exportSymbol('proto.integration_api.GenerateResponse', null, global); -goog.exportSymbol('proto.integration_api.GenerateSpeechToTextRequest', null, global); -goog.exportSymbol('proto.integration_api.GenerateSpeechToTextResponse', null, global); -goog.exportSymbol('proto.integration_api.GenerateTextToImageRequest', null, global); -goog.exportSymbol('proto.integration_api.GenerateTextToImageResponse', null, global); -goog.exportSymbol('proto.integration_api.GenerateTextToSpeechRequest', null, global); -goog.exportSymbol('proto.integration_api.GenerateTextToSpeechResponse', null, global); goog.exportSymbol('proto.integration_api.GetModerationRequest', null, global); goog.exportSymbol('proto.integration_api.GetModerationResponse', null, global); -goog.exportSymbol('proto.integration_api.ModelParameter', null, global); goog.exportSymbol('proto.integration_api.Moderation', null, global); goog.exportSymbol('proto.integration_api.Reranking', null, global); goog.exportSymbol('proto.integration_api.RerankingRequest', null, global); @@ -159,27 +150,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.integration_api.FunctionParameterProperty.displayName = 'proto.integration_api.FunctionParameterProperty'; } -/** - * 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.integration_api.ModelParameter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration_api.ModelParameter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.ModelParameter.displayName = 'proto.integration_api.ModelParameter'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -212,7 +182,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.integration_api.EmbeddingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.EmbeddingRequest.repeatedFields_, null); + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.integration_api.EmbeddingRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -275,7 +245,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.integration_api.RerankingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.RerankingRequest.repeatedFields_, null); + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.integration_api.RerankingRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -306,27 +276,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.integration_api.RerankingResponse.displayName = 'proto.integration_api.RerankingResponse'; } -/** - * 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.integration_api.ChatRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.ChatRequest.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.ChatRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.ChatRequest.displayName = 'proto.integration_api.ChatRequest'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -358,163 +307,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.integration_api.GenerateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateRequest.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateRequest.displayName = 'proto.integration_api.GenerateRequest'; -} -/** - * 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.integration_api.GenerateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateResponse.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateResponse.displayName = 'proto.integration_api.GenerateResponse'; -} -/** - * 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.integration_api.GenerateTextToImageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateTextToImageRequest.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateTextToImageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateTextToImageRequest.displayName = 'proto.integration_api.GenerateTextToImageRequest'; -} -/** - * 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.integration_api.GenerateTextToImageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateTextToImageResponse.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateTextToImageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateTextToImageResponse.displayName = 'proto.integration_api.GenerateTextToImageResponse'; -} -/** - * 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.integration_api.GenerateTextToSpeechRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateTextToSpeechRequest.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateTextToSpeechRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateTextToSpeechRequest.displayName = 'proto.integration_api.GenerateTextToSpeechRequest'; -} -/** - * 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.integration_api.GenerateTextToSpeechResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateTextToSpeechResponse.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateTextToSpeechResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateTextToSpeechResponse.displayName = 'proto.integration_api.GenerateTextToSpeechResponse'; -} -/** - * 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.integration_api.GenerateSpeechToTextRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateSpeechToTextRequest.repeatedFields_, null); -}; -goog.inherits(proto.integration_api.GenerateSpeechToTextRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration_api.GenerateSpeechToTextRequest.displayName = 'proto.integration_api.GenerateSpeechToTextRequest'; -} -/** - * 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.integration_api.GenerateSpeechToTextResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GenerateSpeechToTextResponse.repeatedFields_, null); +proto.integration_api.ChatRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.ChatRequest.repeatedFields_, null); }; -goog.inherits(proto.integration_api.GenerateSpeechToTextResponse, jspb.Message); +goog.inherits(proto.integration_api.ChatRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.integration_api.GenerateSpeechToTextResponse.displayName = 'proto.integration_api.GenerateSpeechToTextResponse'; + proto.integration_api.ChatRequest.displayName = 'proto.integration_api.ChatRequest'; } /** * Generated by JsPbCodeGenerator. @@ -590,7 +392,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.integration_api.GetModerationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration_api.GetModerationRequest.repeatedFields_, null); + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.integration_api.GetModerationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -1681,6 +1483,13 @@ proto.integration_api.FunctionParameterProperty.prototype.hasItems = function() +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.integration_api.Embedding.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -1696,8 +1505,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.ModelParameter.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.ModelParameter.toObject(opt_includeInstance, this); +proto.integration_api.Embedding.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.Embedding.toObject(opt_includeInstance, this); }; @@ -1706,16 +1515,15 @@ proto.integration_api.ModelParameter.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.ModelParameter} msg The msg instance to transform. + * @param {!proto.integration_api.Embedding} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.ModelParameter.toObject = function(includeInstance, msg) { +proto.integration_api.Embedding.toObject = function(includeInstance, msg) { var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: (f = msg.getValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - place: jspb.Message.getFieldWithDefault(msg, 4, "") + index: jspb.Message.getFieldWithDefault(msg, 1, 0), + embeddingList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, + base64: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -1729,23 +1537,23 @@ proto.integration_api.ModelParameter.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.ModelParameter} + * @return {!proto.integration_api.Embedding} */ -proto.integration_api.ModelParameter.deserializeBinary = function(bytes) { +proto.integration_api.Embedding.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.ModelParameter; - return proto.integration_api.ModelParameter.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.Embedding; + return proto.integration_api.Embedding.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.ModelParameter} msg The message object to deserialize into. + * @param {!proto.integration_api.Embedding} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.ModelParameter} + * @return {!proto.integration_api.Embedding} */ -proto.integration_api.ModelParameter.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.Embedding.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1753,21 +1561,18 @@ proto.integration_api.ModelParameter.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setIndex(value); break; case 2: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.setValue(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]); + for (var i = 0; i < values.length; i++) { + msg.addEmbedding(values[i]); + } break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPlace(value); + msg.setBase64(value); break; default: reader.skipField(); @@ -1782,9 +1587,9 @@ proto.integration_api.ModelParameter.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.ModelParameter.prototype.serializeBinary = function() { +proto.integration_api.Embedding.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.ModelParameter.serializeBinaryToWriter(this, writer); + proto.integration_api.Embedding.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1792,38 +1597,30 @@ proto.integration_api.ModelParameter.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.ModelParameter} message + * @param {!proto.integration_api.Embedding} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.ModelParameter.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.Embedding.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( + f = message.getIndex(); + if (f !== 0) { + writer.writeInt32( 1, f ); } - f = message.getValue(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } - f = message.getType(); + f = message.getEmbeddingList(); if (f.length > 0) { - writer.writeString( - 3, + writer.writePackedDouble( + 2, f ); } - f = message.getPlace(); + f = message.getBase64(); if (f.length > 0) { writer.writeString( - 4, + 3, f ); } @@ -1831,3473 +1628,79 @@ proto.integration_api.ModelParameter.serializeBinaryToWriter = function(message, /** - * optional string key = 1; - * @return {string} + * optional int32 index = 1; + * @return {number} */ -proto.integration_api.ModelParameter.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.integration_api.Embedding.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.integration_api.ModelParameter} returns this + * @param {number} value + * @return {!proto.integration_api.Embedding} returns this */ -proto.integration_api.ModelParameter.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.integration_api.Embedding.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional google.protobuf.Any value = 2; - * @return {?proto.google.protobuf.Any} + * repeated double embedding = 2; + * @return {!Array} */ -proto.integration_api.ModelParameter.prototype.getValue = function() { - return /** @type{?proto.google.protobuf.Any} */ ( - jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); +proto.integration_api.Embedding.prototype.getEmbeddingList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); }; /** - * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.integration_api.ModelParameter} returns this -*/ -proto.integration_api.ModelParameter.prototype.setValue = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.integration_api.Embedding} returns this + */ +proto.integration_api.Embedding.prototype.setEmbeddingList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.integration_api.ModelParameter} returns this + * @param {number} value + * @param {number=} opt_index + * @return {!proto.integration_api.Embedding} returns this */ -proto.integration_api.ModelParameter.prototype.clearValue = function() { - return this.setValue(undefined); +proto.integration_api.Embedding.prototype.addEmbedding = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.integration_api.Embedding} returns this */ -proto.integration_api.ModelParameter.prototype.hasValue = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.integration_api.ModelParameter.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.ModelParameter} returns this - */ -proto.integration_api.ModelParameter.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string place = 4; - * @return {string} - */ -proto.integration_api.ModelParameter.prototype.getPlace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.ModelParameter} returns this - */ -proto.integration_api.ModelParameter.prototype.setPlace = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.Embedding.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.Embedding.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.Embedding.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.Embedding} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.Embedding.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, 0), - embeddingList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, - base64: 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.integration_api.Embedding} - */ -proto.integration_api.Embedding.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.Embedding; - return proto.integration_api.Embedding.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.Embedding} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.Embedding} - */ -proto.integration_api.Embedding.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setIndex(value); - break; - case 2: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addEmbedding(values[i]); - } - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBase64(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.Embedding.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.Embedding.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.Embedding} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.Embedding.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getEmbeddingList(); - if (f.length > 0) { - writer.writePackedFloat( - 2, - f - ); - } - f = message.getBase64(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional int32 index = 1; - * @return {number} - */ -proto.integration_api.Embedding.prototype.getIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.Embedding} returns this - */ -proto.integration_api.Embedding.prototype.setIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated float embedding = 2; - * @return {!Array} - */ -proto.integration_api.Embedding.prototype.getEmbeddingList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.Embedding} returns this - */ -proto.integration_api.Embedding.prototype.setEmbeddingList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.integration_api.Embedding} returns this - */ -proto.integration_api.Embedding.prototype.addEmbedding = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.Embedding} returns this - */ -proto.integration_api.Embedding.prototype.clearEmbeddingList = function() { - return this.setEmbeddingList([]); -}; - - -/** - * optional string base64 = 3; - * @return {string} - */ -proto.integration_api.Embedding.prototype.getBase64 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.Embedding} returns this - */ -proto.integration_api.Embedding.prototype.setBase64 = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.EmbeddingRequest.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.EmbeddingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.EmbeddingRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.EmbeddingRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.EmbeddingRequest.toObject = function(includeInstance, msg) { - var f, obj = { - credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - contentMap: (f = msg.getContentMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.EmbeddingRequest} - */ -proto.integration_api.EmbeddingRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.EmbeddingRequest; - return proto.integration_api.EmbeddingRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.EmbeddingRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.EmbeddingRequest} - */ -proto.integration_api.EmbeddingRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.integration_api.Credential; - reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); - msg.setCredential(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 4: - var value = msg.getContentMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readString, null, 0, ""); - }); - break; - case 5: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); - break; - case 6: - var value = msg.getAdditionaldataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.EmbeddingRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.EmbeddingRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.EmbeddingRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.EmbeddingRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.integration_api.Credential.serializeBinaryToWriter - ); - } - f = message.getModel(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getContentMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeString); - } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); - } - f = message.getAdditionaldataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional Credential credential = 1; - * @return {?proto.integration_api.Credential} - */ -proto.integration_api.EmbeddingRequest.prototype.getCredential = function() { - return /** @type{?proto.integration_api.Credential} */ ( - jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); -}; - - -/** - * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.EmbeddingRequest} returns this -*/ -proto.integration_api.EmbeddingRequest.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.EmbeddingRequest} returns this - */ -proto.integration_api.EmbeddingRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.EmbeddingRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string model = 2; - * @return {string} - */ -proto.integration_api.EmbeddingRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.EmbeddingRequest} returns this - */ -proto.integration_api.EmbeddingRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version = 3; - * @return {string} - */ -proto.integration_api.EmbeddingRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.EmbeddingRequest} returns this - */ -proto.integration_api.EmbeddingRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * map content = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration_api.EmbeddingRequest.prototype.getContentMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.EmbeddingRequest} returns this - */ -proto.integration_api.EmbeddingRequest.prototype.clearContentMap = function() { - this.getContentMap().clear(); - return this;}; - - -/** - * repeated ModelParameter modelParameters = 5; - * @return {!Array} - */ -proto.integration_api.EmbeddingRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.EmbeddingRequest} returns this -*/ -proto.integration_api.EmbeddingRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} - */ -proto.integration_api.EmbeddingRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.integration_api.ModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.EmbeddingRequest} returns this - */ -proto.integration_api.EmbeddingRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; - - -/** - * map additionalData = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration_api.EmbeddingRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.EmbeddingRequest} returns this - */ -proto.integration_api.EmbeddingRequest.prototype.clearAdditionaldataMap = function() { - this.getAdditionaldataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.EmbeddingResponse.repeatedFields_ = [4,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.EmbeddingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.EmbeddingResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.EmbeddingResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.EmbeddingResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.integration_api.Embedding.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - common_pb.Metric.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.integration_api.EmbeddingResponse} - */ -proto.integration_api.EmbeddingResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.EmbeddingResponse; - return proto.integration_api.EmbeddingResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.EmbeddingResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.EmbeddingResponse} - */ -proto.integration_api.EmbeddingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestid(value); - break; - case 4: - var value = new proto.integration_api.Embedding; - reader.readMessage(value,proto.integration_api.Embedding.deserializeBinaryFromReader); - msg.addData(value); - break; - case 5: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 6: - var value = new common_pb.Metric; - reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.EmbeddingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.EmbeddingResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.EmbeddingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.EmbeddingResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getRequestid(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.integration_api.Embedding.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.integration_api.EmbeddingResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.EmbeddingResponse} returns this - */ -proto.integration_api.EmbeddingResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.integration_api.EmbeddingResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration_api.EmbeddingResponse} returns this - */ -proto.integration_api.EmbeddingResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 requestId = 3; - * @return {number} - */ -proto.integration_api.EmbeddingResponse.prototype.getRequestid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.EmbeddingResponse} returns this - */ -proto.integration_api.EmbeddingResponse.prototype.setRequestid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated Embedding data = 4; - * @return {!Array} - */ -proto.integration_api.EmbeddingResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.Embedding, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.EmbeddingResponse} returns this -*/ -proto.integration_api.EmbeddingResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.integration_api.Embedding=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.Embedding} - */ -proto.integration_api.EmbeddingResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.integration_api.Embedding, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.EmbeddingResponse} returns this - */ -proto.integration_api.EmbeddingResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - -/** - * optional Error error = 5; - * @return {?proto.Error} - */ -proto.integration_api.EmbeddingResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 5)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.EmbeddingResponse} returns this -*/ -proto.integration_api.EmbeddingResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.EmbeddingResponse} returns this - */ -proto.integration_api.EmbeddingResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.EmbeddingResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated Metric metrics = 6; - * @return {!Array} - */ -proto.integration_api.EmbeddingResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.EmbeddingResponse} returns this -*/ -proto.integration_api.EmbeddingResponse.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.Metric=} opt_value - * @param {number=} opt_index - * @return {!proto.Metric} - */ -proto.integration_api.EmbeddingResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.EmbeddingResponse} returns this - */ -proto.integration_api.EmbeddingResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.Reranking.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.Reranking.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.Reranking} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.Reranking.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, 0), - content: (f = msg.getContent()) && common_pb.Content.toObject(includeInstance, f), - relevancescore: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.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.integration_api.Reranking} - */ -proto.integration_api.Reranking.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.Reranking; - return proto.integration_api.Reranking.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.Reranking} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.Reranking} - */ -proto.integration_api.Reranking.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setIndex(value); - break; - case 2: - var value = new common_pb.Content; - reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); - msg.setContent(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setRelevancescore(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.Reranking.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.Reranking.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.Reranking} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.Reranking.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getContent(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.Content.serializeBinaryToWriter - ); - } - f = message.getRelevancescore(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } -}; - - -/** - * optional int32 index = 1; - * @return {number} - */ -proto.integration_api.Reranking.prototype.getIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.Reranking} returns this - */ -proto.integration_api.Reranking.prototype.setIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional Content content = 2; - * @return {?proto.Content} - */ -proto.integration_api.Reranking.prototype.getContent = function() { - return /** @type{?proto.Content} */ ( - jspb.Message.getWrapperField(this, common_pb.Content, 2)); -}; - - -/** - * @param {?proto.Content|undefined} value - * @return {!proto.integration_api.Reranking} returns this -*/ -proto.integration_api.Reranking.prototype.setContent = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.Reranking} returns this - */ -proto.integration_api.Reranking.prototype.clearContent = function() { - return this.setContent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.Reranking.prototype.hasContent = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional double RelevanceScore = 3; - * @return {number} - */ -proto.integration_api.Reranking.prototype.getRelevancescore = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.Reranking} returns this - */ -proto.integration_api.Reranking.prototype.setRelevancescore = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.RerankingRequest.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.RerankingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.RerankingRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.RerankingRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.RerankingRequest.toObject = function(includeInstance, msg) { - var f, obj = { - credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - query: jspb.Message.getFieldWithDefault(msg, 4, ""), - contentMap: (f = msg.getContentMap()) ? f.toObject(includeInstance, proto.Content.toObject) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.RerankingRequest} - */ -proto.integration_api.RerankingRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.RerankingRequest; - return proto.integration_api.RerankingRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.RerankingRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.RerankingRequest} - */ -proto.integration_api.RerankingRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.integration_api.Credential; - reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); - msg.setCredential(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 5: - var value = msg.getContentMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.Content.deserializeBinaryFromReader, 0, new proto.Content()); - }); - break; - case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); - break; - case 7: - var value = msg.getAdditionaldataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.RerankingRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.RerankingRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.RerankingRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.RerankingRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.integration_api.Credential.serializeBinaryToWriter - ); - } - f = message.getModel(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getContentMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.Content.serializeBinaryToWriter); - } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); - } - f = message.getAdditionaldataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional Credential credential = 1; - * @return {?proto.integration_api.Credential} - */ -proto.integration_api.RerankingRequest.prototype.getCredential = function() { - return /** @type{?proto.integration_api.Credential} */ ( - jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); -}; - - -/** - * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.RerankingRequest} returns this -*/ -proto.integration_api.RerankingRequest.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.RerankingRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string model = 2; - * @return {string} - */ -proto.integration_api.RerankingRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version = 3; - * @return {string} - */ -proto.integration_api.RerankingRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string query = 4; - * @return {string} - */ -proto.integration_api.RerankingRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map content = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration_api.RerankingRequest.prototype.getContentMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - proto.Content)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.clearContentMap = function() { - this.getContentMap().clear(); - return this;}; - - -/** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} - */ -proto.integration_api.RerankingRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.RerankingRequest} returns this -*/ -proto.integration_api.RerankingRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} - */ -proto.integration_api.RerankingRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; - - -/** - * map additionalData = 7; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration_api.RerankingRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 7, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.RerankingRequest} returns this - */ -proto.integration_api.RerankingRequest.prototype.clearAdditionaldataMap = function() { - this.getAdditionaldataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.RerankingResponse.repeatedFields_ = [4,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.RerankingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.RerankingResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.RerankingResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.RerankingResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.integration_api.Reranking.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - common_pb.Metric.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.integration_api.RerankingResponse} - */ -proto.integration_api.RerankingResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.RerankingResponse; - return proto.integration_api.RerankingResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.RerankingResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.RerankingResponse} - */ -proto.integration_api.RerankingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestid(value); - break; - case 4: - var value = new proto.integration_api.Reranking; - reader.readMessage(value,proto.integration_api.Reranking.deserializeBinaryFromReader); - msg.addData(value); - break; - case 5: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 6: - var value = new common_pb.Metric; - reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.RerankingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.RerankingResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.RerankingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.RerankingResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getRequestid(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.integration_api.Reranking.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.integration_api.RerankingResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.RerankingResponse} returns this - */ -proto.integration_api.RerankingResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.integration_api.RerankingResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration_api.RerankingResponse} returns this - */ -proto.integration_api.RerankingResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 requestId = 3; - * @return {number} - */ -proto.integration_api.RerankingResponse.prototype.getRequestid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.RerankingResponse} returns this - */ -proto.integration_api.RerankingResponse.prototype.setRequestid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated Reranking data = 4; - * @return {!Array} - */ -proto.integration_api.RerankingResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.Reranking, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.RerankingResponse} returns this -*/ -proto.integration_api.RerankingResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.integration_api.Reranking=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.Reranking} - */ -proto.integration_api.RerankingResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.integration_api.Reranking, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.RerankingResponse} returns this - */ -proto.integration_api.RerankingResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - -/** - * optional Error error = 5; - * @return {?proto.Error} - */ -proto.integration_api.RerankingResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 5)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.RerankingResponse} returns this -*/ -proto.integration_api.RerankingResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.RerankingResponse} returns this - */ -proto.integration_api.RerankingResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.RerankingResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated Metric metrics = 6; - * @return {!Array} - */ -proto.integration_api.RerankingResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.RerankingResponse} returns this -*/ -proto.integration_api.RerankingResponse.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.Metric=} opt_value - * @param {number=} opt_index - * @return {!proto.Metric} - */ -proto.integration_api.RerankingResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.RerankingResponse} returns this - */ -proto.integration_api.RerankingResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.ChatRequest.repeatedFields_ = [4,6,7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.ChatRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.ChatRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.ChatRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.ChatRequest.toObject = function(includeInstance, msg) { - var f, obj = { - credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - conversationsList: jspb.Message.toObjectList(msg.getConversationsList(), - common_pb.Message.toObject, includeInstance), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance), - tooldefinitionsList: jspb.Message.toObjectList(msg.getTooldefinitionsList(), - proto.integration_api.ToolDefinition.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.integration_api.ChatRequest} - */ -proto.integration_api.ChatRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.ChatRequest; - return proto.integration_api.ChatRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.ChatRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.ChatRequest} - */ -proto.integration_api.ChatRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.integration_api.Credential; - reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); - msg.setCredential(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 4: - var value = new common_pb.Message; - reader.readMessage(value,common_pb.Message.deserializeBinaryFromReader); - msg.addConversations(value); - break; - case 5: - var value = msg.getAdditionaldataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); - break; - case 7: - var value = new proto.integration_api.ToolDefinition; - reader.readMessage(value,proto.integration_api.ToolDefinition.deserializeBinaryFromReader); - msg.addTooldefinitions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.ChatRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.ChatRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.ChatRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.ChatRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.integration_api.Credential.serializeBinaryToWriter - ); - } - f = message.getModel(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getConversationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - common_pb.Message.serializeBinaryToWriter - ); - } - f = message.getAdditionaldataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); - } - f = message.getTooldefinitionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.integration_api.ToolDefinition.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Credential credential = 1; - * @return {?proto.integration_api.Credential} - */ -proto.integration_api.ChatRequest.prototype.getCredential = function() { - return /** @type{?proto.integration_api.Credential} */ ( - jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); -}; - - -/** - * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.ChatRequest} returns this -*/ -proto.integration_api.ChatRequest.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.ChatRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string model = 2; - * @return {string} - */ -proto.integration_api.ChatRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version = 3; - * @return {string} - */ -proto.integration_api.ChatRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated Message conversations = 4; - * @return {!Array} - */ -proto.integration_api.ChatRequest.prototype.getConversationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Message, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.ChatRequest} returns this -*/ -proto.integration_api.ChatRequest.prototype.setConversationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.Message=} opt_value - * @param {number=} opt_index - * @return {!proto.Message} - */ -proto.integration_api.ChatRequest.prototype.addConversations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Message, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.clearConversationsList = function() { - return this.setConversationsList([]); -}; - - -/** - * map additionalData = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration_api.ChatRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.clearAdditionaldataMap = function() { - this.getAdditionaldataMap().clear(); - return this;}; - - -/** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} - */ -proto.integration_api.ChatRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.ChatRequest} returns this -*/ -proto.integration_api.ChatRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} - */ -proto.integration_api.ChatRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; - - -/** - * repeated ToolDefinition toolDefinitions = 7; - * @return {!Array} - */ -proto.integration_api.ChatRequest.prototype.getTooldefinitionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ToolDefinition, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.ChatRequest} returns this -*/ -proto.integration_api.ChatRequest.prototype.setTooldefinitionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.integration_api.ToolDefinition=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ToolDefinition} - */ -proto.integration_api.ChatRequest.prototype.addTooldefinitions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.integration_api.ToolDefinition, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.ChatRequest} returns this - */ -proto.integration_api.ChatRequest.prototype.clearTooldefinitionsList = function() { - return this.setTooldefinitionsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.ChatResponse.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.ChatResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.ChatResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.ChatResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.ChatResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), - data: (f = msg.getData()) && common_pb.Message.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - common_pb.Metric.toObject, includeInstance), - finishreason: 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.integration_api.ChatResponse} - */ -proto.integration_api.ChatResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.ChatResponse; - return proto.integration_api.ChatResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.ChatResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.ChatResponse} - */ -proto.integration_api.ChatResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestid(value); - break; - case 4: - var value = new common_pb.Message; - reader.readMessage(value,common_pb.Message.deserializeBinaryFromReader); - msg.setData(value); - break; - case 6: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 7: - var value = new common_pb.Metric; - reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); - msg.addMetrics(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setFinishreason(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.ChatResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.ChatResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.ChatResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.ChatResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getRequestid(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Message.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getFinishreason(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.integration_api.ChatResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.integration_api.ChatResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 requestId = 3; - * @return {number} - */ -proto.integration_api.ChatResponse.prototype.getRequestid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.setRequestid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional Message data = 4; - * @return {?proto.Message} - */ -proto.integration_api.ChatResponse.prototype.getData = function() { - return /** @type{?proto.Message} */ ( - jspb.Message.getWrapperField(this, common_pb.Message, 4)); -}; - - -/** - * @param {?proto.Message|undefined} value - * @return {!proto.integration_api.ChatResponse} returns this -*/ -proto.integration_api.ChatResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.ChatResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Error error = 6; - * @return {?proto.Error} - */ -proto.integration_api.ChatResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 6)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.ChatResponse} returns this -*/ -proto.integration_api.ChatResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.ChatResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * repeated Metric metrics = 7; - * @return {!Array} - */ -proto.integration_api.ChatResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.ChatResponse} returns this -*/ -proto.integration_api.ChatResponse.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.Metric=} opt_value - * @param {number=} opt_index - * @return {!proto.Metric} - */ -proto.integration_api.ChatResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metric, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * optional string finishReason = 8; - * @return {string} - */ -proto.integration_api.ChatResponse.prototype.getFinishreason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.ChatResponse} returns this - */ -proto.integration_api.ChatResponse.prototype.setFinishreason = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.GenerateRequest.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.GenerateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.GenerateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - prompt: jspb.Message.getFieldWithDefault(msg, 4, ""), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance), - systemprompt: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateRequest} - */ -proto.integration_api.GenerateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateRequest; - return proto.integration_api.GenerateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.GenerateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateRequest} - */ -proto.integration_api.GenerateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.integration_api.Credential; - reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); - msg.setCredential(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPrompt(value); - break; - case 5: - var value = msg.getAdditionaldataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setSystemprompt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.GenerateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.GenerateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.integration_api.Credential.serializeBinaryToWriter - ); - } - f = message.getModel(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPrompt(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAdditionaldataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional Credential credential = 1; - * @return {?proto.integration_api.Credential} - */ -proto.integration_api.GenerateRequest.prototype.getCredential = function() { - return /** @type{?proto.integration_api.Credential} */ ( - jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); -}; - - -/** - * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.GenerateRequest} returns this -*/ -proto.integration_api.GenerateRequest.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.GenerateRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string model = 2; - * @return {string} - */ -proto.integration_api.GenerateRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version = 3; - * @return {string} - */ -proto.integration_api.GenerateRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string prompt = 4; - * @return {string} - */ -proto.integration_api.GenerateRequest.prototype.getPrompt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.setPrompt = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map additionalData = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration_api.GenerateRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.clearAdditionaldataMap = function() { - this.getAdditionaldataMap().clear(); - return this;}; - - -/** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} - */ -proto.integration_api.GenerateRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.GenerateRequest} returns this -*/ -proto.integration_api.GenerateRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} - */ -proto.integration_api.GenerateRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; - - -/** - * optional string systemPrompt = 7; - * @return {string} - */ -proto.integration_api.GenerateRequest.prototype.getSystemprompt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.setSystemprompt = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.integration_api.GenerateRequest} returns this - */ -proto.integration_api.GenerateRequest.prototype.clearSystemprompt = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.GenerateRequest.prototype.hasSystemprompt = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.GenerateResponse.repeatedFields_ = [4,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration_api.GenerateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.GenerateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), - dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.Content.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - common_pb.Metric.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.integration_api.GenerateResponse} - */ -proto.integration_api.GenerateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateResponse; - return proto.integration_api.GenerateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration_api.GenerateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateResponse} - */ -proto.integration_api.GenerateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestid(value); - break; - case 4: - var value = new common_pb.Content; - reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); - msg.addData(value); - break; - case 5: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 6: - var value = new common_pb.Metric; - reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration_api.GenerateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration_api.GenerateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getRequestid(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - common_pb.Content.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.integration_api.GenerateResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.GenerateResponse} returns this - */ -proto.integration_api.GenerateResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.integration_api.GenerateResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration_api.GenerateResponse} returns this - */ -proto.integration_api.GenerateResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 requestId = 3; - * @return {number} - */ -proto.integration_api.GenerateResponse.prototype.getRequestid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.GenerateResponse} returns this - */ -proto.integration_api.GenerateResponse.prototype.setRequestid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated Content data = 4; - * @return {!Array} - */ -proto.integration_api.GenerateResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Content, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.GenerateResponse} returns this -*/ -proto.integration_api.GenerateResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.Content=} opt_value - * @param {number=} opt_index - * @return {!proto.Content} - */ -proto.integration_api.GenerateResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Content, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateResponse} returns this - */ -proto.integration_api.GenerateResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - -/** - * optional Error error = 5; - * @return {?proto.Error} - */ -proto.integration_api.GenerateResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 5)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.GenerateResponse} returns this -*/ -proto.integration_api.GenerateResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateResponse} returns this - */ -proto.integration_api.GenerateResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration_api.GenerateResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated Metric metrics = 6; - * @return {!Array} - */ -proto.integration_api.GenerateResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.GenerateResponse} returns this -*/ -proto.integration_api.GenerateResponse.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); +proto.integration_api.Embedding.prototype.clearEmbeddingList = function() { + return this.setEmbeddingList([]); }; /** - * @param {!proto.Metric=} opt_value - * @param {number=} opt_index - * @return {!proto.Metric} + * optional string base64 = 3; + * @return {string} */ -proto.integration_api.GenerateResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); +proto.integration_api.Embedding.prototype.getBase64 = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateResponse} returns this + * @param {string} value + * @return {!proto.integration_api.Embedding} returns this */ -proto.integration_api.GenerateResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); +proto.integration_api.Embedding.prototype.setBase64 = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.GenerateTextToImageRequest.repeatedFields_ = [6]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5313,8 +1716,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.GenerateTextToImageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateTextToImageRequest.toObject(opt_includeInstance, this); +proto.integration_api.EmbeddingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.EmbeddingRequest.toObject(opt_includeInstance, this); }; @@ -5323,19 +1726,16 @@ proto.integration_api.GenerateTextToImageRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateTextToImageRequest} msg The msg instance to transform. + * @param {!proto.integration_api.EmbeddingRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToImageRequest.toObject = function(includeInstance, msg) { +proto.integration_api.EmbeddingRequest.toObject = function(includeInstance, msg) { var f, obj = { credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - prompt: jspb.Message.getFieldWithDefault(msg, 4, ""), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance) + contentMap: (f = msg.getContentMap()) ? f.toObject(includeInstance, undefined) : [], + modelparametersMap: (f = msg.getModelparametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], + additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -5349,23 +1749,23 @@ proto.integration_api.GenerateTextToImageRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateTextToImageRequest} + * @return {!proto.integration_api.EmbeddingRequest} */ -proto.integration_api.GenerateTextToImageRequest.deserializeBinary = function(bytes) { +proto.integration_api.EmbeddingRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateTextToImageRequest; - return proto.integration_api.GenerateTextToImageRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.EmbeddingRequest; + return proto.integration_api.EmbeddingRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.GenerateTextToImageRequest} msg The message object to deserialize into. + * @param {!proto.integration_api.EmbeddingRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateTextToImageRequest} + * @return {!proto.integration_api.EmbeddingRequest} */ -proto.integration_api.GenerateTextToImageRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.EmbeddingRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5377,28 +1777,23 @@ proto.integration_api.GenerateTextToImageRequest.deserializeBinaryFromReader = f reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); msg.setCredential(value); break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPrompt(value); + var value = msg.getContentMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readString, null, 0, ""); + }); break; case 5: - var value = msg.getAdditionaldataMap(); + var value = msg.getModelparametersMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); }); break; case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); + var value = msg.getAdditionaldataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; default: reader.skipField(); @@ -5413,9 +1808,9 @@ proto.integration_api.GenerateTextToImageRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.GenerateTextToImageRequest.prototype.serializeBinary = function() { +proto.integration_api.EmbeddingRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateTextToImageRequest.serializeBinaryToWriter(this, writer); + proto.integration_api.EmbeddingRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5423,11 +1818,11 @@ proto.integration_api.GenerateTextToImageRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateTextToImageRequest} message + * @param {!proto.integration_api.EmbeddingRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToImageRequest.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.EmbeddingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCredential(); if (f != null) { @@ -5437,38 +1832,17 @@ proto.integration_api.GenerateTextToImageRequest.serializeBinaryToWriter = funct proto.integration_api.Credential.serializeBinaryToWriter ); } - f = message.getModel(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); + f = message.getContentMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeString); } - f = message.getPrompt(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); + f = message.getModelparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); } f = message.getAdditionaldataMap(true); if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; @@ -5477,7 +1851,7 @@ proto.integration_api.GenerateTextToImageRequest.serializeBinaryToWriter = funct * optional Credential credential = 1; * @return {?proto.integration_api.Credential} */ -proto.integration_api.GenerateTextToImageRequest.prototype.getCredential = function() { +proto.integration_api.EmbeddingRequest.prototype.getCredential = function() { return /** @type{?proto.integration_api.Credential} */ ( jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); }; @@ -5485,18 +1859,18 @@ proto.integration_api.GenerateTextToImageRequest.prototype.getCredential = funct /** * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this + * @return {!proto.integration_api.EmbeddingRequest} returns this */ -proto.integration_api.GenerateTextToImageRequest.prototype.setCredential = function(value) { +proto.integration_api.EmbeddingRequest.prototype.setCredential = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this + * @return {!proto.integration_api.EmbeddingRequest} returns this */ -proto.integration_api.GenerateTextToImageRequest.prototype.clearCredential = function() { +proto.integration_api.EmbeddingRequest.prototype.clearCredential = function() { return this.setCredential(undefined); }; @@ -5505,132 +1879,84 @@ proto.integration_api.GenerateTextToImageRequest.prototype.clearCredential = fun * Returns whether this field is set. * @return {boolean} */ -proto.integration_api.GenerateTextToImageRequest.prototype.hasCredential = function() { +proto.integration_api.EmbeddingRequest.prototype.hasCredential = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model = 2; - * @return {string} - */ -proto.integration_api.GenerateTextToImageRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this - */ -proto.integration_api.GenerateTextToImageRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version = 3; - * @return {string} + * map content = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GenerateTextToImageRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.integration_api.EmbeddingRequest.prototype.getContentMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + null)); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.integration_api.EmbeddingRequest} returns this */ -proto.integration_api.GenerateTextToImageRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; +proto.integration_api.EmbeddingRequest.prototype.clearContentMap = function() { + this.getContentMap().clear(); + return this;}; /** - * optional string prompt = 4; - * @return {string} + * map modelParameters = 5; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GenerateTextToImageRequest.prototype.getPrompt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.integration_api.EmbeddingRequest.prototype.getModelparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 5, opt_noLazyCreate, + proto.google.protobuf.Any)); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.integration_api.EmbeddingRequest} returns this */ -proto.integration_api.GenerateTextToImageRequest.prototype.setPrompt = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; +proto.integration_api.EmbeddingRequest.prototype.clearModelparametersMap = function() { + this.getModelparametersMap().clear(); + return this;}; /** - * map additionalData = 5; + * map additionalData = 6; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.integration_api.GenerateTextToImageRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { +proto.integration_api.EmbeddingRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, + jspb.Message.getMapField(this, 6, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this + * @return {!proto.integration_api.EmbeddingRequest} returns this */ -proto.integration_api.GenerateTextToImageRequest.prototype.clearAdditionaldataMap = function() { +proto.integration_api.EmbeddingRequest.prototype.clearAdditionaldataMap = function() { this.getAdditionaldataMap().clear(); return this;}; -/** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} - */ -proto.integration_api.GenerateTextToImageRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this -*/ -proto.integration_api.GenerateTextToImageRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} - */ -proto.integration_api.GenerateTextToImageRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateTextToImageRequest} returns this - */ -proto.integration_api.GenerateTextToImageRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.integration_api.GenerateTextToImageResponse.repeatedFields_ = [4,6]; +proto.integration_api.EmbeddingResponse.repeatedFields_ = [4,6]; @@ -5647,8 +1973,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.GenerateTextToImageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateTextToImageResponse.toObject(opt_includeInstance, this); +proto.integration_api.EmbeddingResponse.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.EmbeddingResponse.toObject(opt_includeInstance, this); }; @@ -5657,17 +1983,17 @@ proto.integration_api.GenerateTextToImageResponse.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateTextToImageResponse} msg The msg instance to transform. + * @param {!proto.integration_api.EmbeddingResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToImageResponse.toObject = function(includeInstance, msg) { +proto.integration_api.EmbeddingResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.Content.toObject, includeInstance), + proto.integration_api.Embedding.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), metricsList: jspb.Message.toObjectList(msg.getMetricsList(), common_pb.Metric.toObject, includeInstance) @@ -5684,23 +2010,23 @@ proto.integration_api.GenerateTextToImageResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateTextToImageResponse} + * @return {!proto.integration_api.EmbeddingResponse} */ -proto.integration_api.GenerateTextToImageResponse.deserializeBinary = function(bytes) { +proto.integration_api.EmbeddingResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateTextToImageResponse; - return proto.integration_api.GenerateTextToImageResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.EmbeddingResponse; + return proto.integration_api.EmbeddingResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.GenerateTextToImageResponse} msg The message object to deserialize into. + * @param {!proto.integration_api.EmbeddingResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateTextToImageResponse} + * @return {!proto.integration_api.EmbeddingResponse} */ -proto.integration_api.GenerateTextToImageResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.EmbeddingResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5720,8 +2046,8 @@ proto.integration_api.GenerateTextToImageResponse.deserializeBinaryFromReader = msg.setRequestid(value); break; case 4: - var value = new common_pb.Content; - reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); + var value = new proto.integration_api.Embedding; + reader.readMessage(value,proto.integration_api.Embedding.deserializeBinaryFromReader); msg.addData(value); break; case 5: @@ -5747,9 +2073,9 @@ proto.integration_api.GenerateTextToImageResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.GenerateTextToImageResponse.prototype.serializeBinary = function() { +proto.integration_api.EmbeddingResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateTextToImageResponse.serializeBinaryToWriter(this, writer); + proto.integration_api.EmbeddingResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5757,11 +2083,11 @@ proto.integration_api.GenerateTextToImageResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateTextToImageResponse} message + * @param {!proto.integration_api.EmbeddingResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToImageResponse.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.EmbeddingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -5789,7 +2115,7 @@ proto.integration_api.GenerateTextToImageResponse.serializeBinaryToWriter = func writer.writeRepeatedMessage( 4, f, - common_pb.Content.serializeBinaryToWriter + proto.integration_api.Embedding.serializeBinaryToWriter ); } f = message.getError(); @@ -5815,16 +2141,16 @@ proto.integration_api.GenerateTextToImageResponse.serializeBinaryToWriter = func * optional int32 code = 1; * @return {number} */ -proto.integration_api.GenerateTextToImageResponse.prototype.getCode = function() { +proto.integration_api.EmbeddingResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.setCode = function(value) { +proto.integration_api.EmbeddingResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -5833,16 +2159,16 @@ proto.integration_api.GenerateTextToImageResponse.prototype.setCode = function(v * optional bool success = 2; * @return {boolean} */ -proto.integration_api.GenerateTextToImageResponse.prototype.getSuccess = function() { +proto.integration_api.EmbeddingResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.setSuccess = function(value) { +proto.integration_api.EmbeddingResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -5851,54 +2177,54 @@ proto.integration_api.GenerateTextToImageResponse.prototype.setSuccess = functio * optional uint64 requestId = 3; * @return {number} */ -proto.integration_api.GenerateTextToImageResponse.prototype.getRequestid = function() { +proto.integration_api.EmbeddingResponse.prototype.getRequestid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.setRequestid = function(value) { +proto.integration_api.EmbeddingResponse.prototype.setRequestid = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** - * repeated Content data = 4; - * @return {!Array} + * repeated Embedding data = 4; + * @return {!Array} */ -proto.integration_api.GenerateTextToImageResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Content, 4)); +proto.integration_api.EmbeddingResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.integration_api.Embedding, 4)); }; /** - * @param {!Array} value - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @param {!Array} value + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.setDataList = function(value) { +proto.integration_api.EmbeddingResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.Content=} opt_value + * @param {!proto.integration_api.Embedding=} opt_value * @param {number=} opt_index - * @return {!proto.Content} + * @return {!proto.integration_api.Embedding} */ -proto.integration_api.GenerateTextToImageResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Content, opt_index); +proto.integration_api.EmbeddingResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.integration_api.Embedding, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.clearDataList = function() { +proto.integration_api.EmbeddingResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -5907,7 +2233,7 @@ proto.integration_api.GenerateTextToImageResponse.prototype.clearDataList = func * optional Error error = 5; * @return {?proto.Error} */ -proto.integration_api.GenerateTextToImageResponse.prototype.getError = function() { +proto.integration_api.EmbeddingResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 5)); }; @@ -5915,18 +2241,18 @@ proto.integration_api.GenerateTextToImageResponse.prototype.getError = function( /** * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.setError = function(value) { +proto.integration_api.EmbeddingResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.clearError = function() { +proto.integration_api.EmbeddingResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -5935,7 +2261,7 @@ proto.integration_api.GenerateTextToImageResponse.prototype.clearError = functio * Returns whether this field is set. * @return {boolean} */ -proto.integration_api.GenerateTextToImageResponse.prototype.hasError = function() { +proto.integration_api.EmbeddingResponse.prototype.hasError = function() { return jspb.Message.getField(this, 5) != null; }; @@ -5944,7 +2270,7 @@ proto.integration_api.GenerateTextToImageResponse.prototype.hasError = function( * repeated Metric metrics = 6; * @return {!Array} */ -proto.integration_api.GenerateTextToImageResponse.prototype.getMetricsList = function() { +proto.integration_api.EmbeddingResponse.prototype.getMetricsList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); }; @@ -5952,40 +2278,244 @@ proto.integration_api.GenerateTextToImageResponse.prototype.getMetricsList = fun /** * @param {!Array} value - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @return {!proto.integration_api.EmbeddingResponse} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.setMetricsList = function(value) { +proto.integration_api.EmbeddingResponse.prototype.setMetricsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * @param {!proto.Metric=} opt_value - * @param {number=} opt_index - * @return {!proto.Metric} + * @param {!proto.Metric=} opt_value + * @param {number=} opt_index + * @return {!proto.Metric} + */ +proto.integration_api.EmbeddingResponse.prototype.addMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.integration_api.EmbeddingResponse} returns this + */ +proto.integration_api.EmbeddingResponse.prototype.clearMetricsList = function() { + return this.setMetricsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.integration_api.Reranking.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.Reranking.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.integration_api.Reranking} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.integration_api.Reranking.toObject = function(includeInstance, msg) { + var f, obj = { + index: jspb.Message.getFieldWithDefault(msg, 1, 0), + content: (f = msg.getContent()) && common_pb.Content.toObject(includeInstance, f), + relevancescore: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.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.integration_api.Reranking} + */ +proto.integration_api.Reranking.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.integration_api.Reranking; + return proto.integration_api.Reranking.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.integration_api.Reranking} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.integration_api.Reranking} + */ +proto.integration_api.Reranking.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIndex(value); + break; + case 2: + var value = new common_pb.Content; + reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); + msg.setContent(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setRelevancescore(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.integration_api.Reranking.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.integration_api.Reranking.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.integration_api.Reranking} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.integration_api.Reranking.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIndex(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getContent(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_pb.Content.serializeBinaryToWriter + ); + } + f = message.getRelevancescore(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } +}; + + +/** + * optional int32 index = 1; + * @return {number} + */ +proto.integration_api.Reranking.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.integration_api.Reranking} returns this + */ +proto.integration_api.Reranking.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional Content content = 2; + * @return {?proto.Content} + */ +proto.integration_api.Reranking.prototype.getContent = function() { + return /** @type{?proto.Content} */ ( + jspb.Message.getWrapperField(this, common_pb.Content, 2)); +}; + + +/** + * @param {?proto.Content|undefined} value + * @return {!proto.integration_api.Reranking} returns this +*/ +proto.integration_api.Reranking.prototype.setContent = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.integration_api.Reranking} returns this + */ +proto.integration_api.Reranking.prototype.clearContent = function() { + return this.setContent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.integration_api.Reranking.prototype.hasContent = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional double RelevanceScore = 3; + * @return {number} */ -proto.integration_api.GenerateTextToImageResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); +proto.integration_api.Reranking.prototype.getRelevancescore = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateTextToImageResponse} returns this + * @param {number} value + * @return {!proto.integration_api.Reranking} returns this */ -proto.integration_api.GenerateTextToImageResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); +proto.integration_api.Reranking.prototype.setRelevancescore = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.GenerateTextToSpeechRequest.repeatedFields_ = [6]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -6001,8 +2531,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateTextToSpeechRequest.toObject(opt_includeInstance, this); +proto.integration_api.RerankingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.RerankingRequest.toObject(opt_includeInstance, this); }; @@ -6011,19 +2541,17 @@ proto.integration_api.GenerateTextToSpeechRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateTextToSpeechRequest} msg The msg instance to transform. + * @param {!proto.integration_api.RerankingRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToSpeechRequest.toObject = function(includeInstance, msg) { +proto.integration_api.RerankingRequest.toObject = function(includeInstance, msg) { var f, obj = { credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - prompt: jspb.Message.getFieldWithDefault(msg, 4, ""), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance) + query: jspb.Message.getFieldWithDefault(msg, 4, ""), + contentMap: (f = msg.getContentMap()) ? f.toObject(includeInstance, proto.Content.toObject) : [], + modelparametersMap: (f = msg.getModelparametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], + additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -6037,23 +2565,23 @@ proto.integration_api.GenerateTextToSpeechRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateTextToSpeechRequest} + * @return {!proto.integration_api.RerankingRequest} */ -proto.integration_api.GenerateTextToSpeechRequest.deserializeBinary = function(bytes) { +proto.integration_api.RerankingRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateTextToSpeechRequest; - return proto.integration_api.GenerateTextToSpeechRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.RerankingRequest; + return proto.integration_api.RerankingRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.GenerateTextToSpeechRequest} msg The message object to deserialize into. + * @param {!proto.integration_api.RerankingRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateTextToSpeechRequest} + * @return {!proto.integration_api.RerankingRequest} */ -proto.integration_api.GenerateTextToSpeechRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.RerankingRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6065,28 +2593,27 @@ proto.integration_api.GenerateTextToSpeechRequest.deserializeBinaryFromReader = reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); msg.setCredential(value); break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setPrompt(value); + msg.setQuery(value); break; case 5: - var value = msg.getAdditionaldataMap(); + var value = msg.getContentMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.Content.deserializeBinaryFromReader, 0, new proto.Content()); }); break; case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); + var value = msg.getModelparametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); + }); + break; + case 7: + var value = msg.getAdditionaldataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; default: reader.skipField(); @@ -6101,9 +2628,9 @@ proto.integration_api.GenerateTextToSpeechRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.serializeBinary = function() { +proto.integration_api.RerankingRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateTextToSpeechRequest.serializeBinaryToWriter(this, writer); + proto.integration_api.RerankingRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6111,11 +2638,11 @@ proto.integration_api.GenerateTextToSpeechRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateTextToSpeechRequest} message + * @param {!proto.integration_api.RerankingRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToSpeechRequest.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.RerankingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCredential(); if (f != null) { @@ -6125,38 +2652,24 @@ proto.integration_api.GenerateTextToSpeechRequest.serializeBinaryToWriter = func proto.integration_api.Credential.serializeBinaryToWriter ); } - f = message.getModel(); + f = message.getQuery(); if (f.length > 0) { writer.writeString( - 2, + 4, f ); } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); + f = message.getContentMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.Content.serializeBinaryToWriter); } - f = message.getPrompt(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); + f = message.getModelparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); } f = message.getAdditionaldataMap(true); if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; @@ -6165,7 +2678,7 @@ proto.integration_api.GenerateTextToSpeechRequest.serializeBinaryToWriter = func * optional Credential credential = 1; * @return {?proto.integration_api.Credential} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.getCredential = function() { +proto.integration_api.RerankingRequest.prototype.getCredential = function() { return /** @type{?proto.integration_api.Credential} */ ( jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); }; @@ -6173,18 +2686,18 @@ proto.integration_api.GenerateTextToSpeechRequest.prototype.getCredential = func /** * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this + * @return {!proto.integration_api.RerankingRequest} returns this */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.setCredential = function(value) { +proto.integration_api.RerankingRequest.prototype.setCredential = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this + * @return {!proto.integration_api.RerankingRequest} returns this */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.clearCredential = function() { +proto.integration_api.RerankingRequest.prototype.clearCredential = function() { return this.setCredential(undefined); }; @@ -6193,132 +2706,102 @@ proto.integration_api.GenerateTextToSpeechRequest.prototype.clearCredential = fu * Returns whether this field is set. * @return {boolean} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.hasCredential = function() { +proto.integration_api.RerankingRequest.prototype.hasCredential = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model = 2; + * optional string query = 4; * @return {string} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.integration_api.RerankingRequest.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this + * @return {!proto.integration_api.RerankingRequest} returns this */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.integration_api.RerankingRequest.prototype.setQuery = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string version = 3; - * @return {string} + * map content = 5; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.integration_api.RerankingRequest.prototype.getContentMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 5, opt_noLazyCreate, + proto.Content)); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.integration_api.RerankingRequest} returns this */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; +proto.integration_api.RerankingRequest.prototype.clearContentMap = function() { + this.getContentMap().clear(); + return this;}; /** - * optional string prompt = 4; - * @return {string} + * map modelParameters = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.getPrompt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.integration_api.RerankingRequest.prototype.getModelparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + proto.google.protobuf.Any)); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.integration_api.RerankingRequest} returns this */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.setPrompt = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; +proto.integration_api.RerankingRequest.prototype.clearModelparametersMap = function() { + this.getModelparametersMap().clear(); + return this;}; /** - * map additionalData = 5; + * map additionalData = 7; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { +proto.integration_api.RerankingRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, + jspb.Message.getMapField(this, 7, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this + * @return {!proto.integration_api.RerankingRequest} returns this */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.clearAdditionaldataMap = function() { +proto.integration_api.RerankingRequest.prototype.clearAdditionaldataMap = function() { this.getAdditionaldataMap().clear(); return this;}; -/** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} - */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this -*/ -proto.integration_api.GenerateTextToSpeechRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} - */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateTextToSpeechRequest} returns this - */ -proto.integration_api.GenerateTextToSpeechRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.integration_api.GenerateTextToSpeechResponse.repeatedFields_ = [4,6]; +proto.integration_api.RerankingResponse.repeatedFields_ = [4,6]; @@ -6335,8 +2818,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateTextToSpeechResponse.toObject(opt_includeInstance, this); +proto.integration_api.RerankingResponse.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.RerankingResponse.toObject(opt_includeInstance, this); }; @@ -6345,17 +2828,17 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateTextToSpeechResponse} msg The msg instance to transform. + * @param {!proto.integration_api.RerankingResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToSpeechResponse.toObject = function(includeInstance, msg) { +proto.integration_api.RerankingResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.Content.toObject, includeInstance), + proto.integration_api.Reranking.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), metricsList: jspb.Message.toObjectList(msg.getMetricsList(), common_pb.Metric.toObject, includeInstance) @@ -6372,23 +2855,23 @@ proto.integration_api.GenerateTextToSpeechResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateTextToSpeechResponse} + * @return {!proto.integration_api.RerankingResponse} */ -proto.integration_api.GenerateTextToSpeechResponse.deserializeBinary = function(bytes) { +proto.integration_api.RerankingResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateTextToSpeechResponse; - return proto.integration_api.GenerateTextToSpeechResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.RerankingResponse; + return proto.integration_api.RerankingResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.GenerateTextToSpeechResponse} msg The message object to deserialize into. + * @param {!proto.integration_api.RerankingResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateTextToSpeechResponse} + * @return {!proto.integration_api.RerankingResponse} */ -proto.integration_api.GenerateTextToSpeechResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.RerankingResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6408,8 +2891,8 @@ proto.integration_api.GenerateTextToSpeechResponse.deserializeBinaryFromReader = msg.setRequestid(value); break; case 4: - var value = new common_pb.Content; - reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); + var value = new proto.integration_api.Reranking; + reader.readMessage(value,proto.integration_api.Reranking.deserializeBinaryFromReader); msg.addData(value); break; case 5: @@ -6435,9 +2918,9 @@ proto.integration_api.GenerateTextToSpeechResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.serializeBinary = function() { +proto.integration_api.RerankingResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateTextToSpeechResponse.serializeBinaryToWriter(this, writer); + proto.integration_api.RerankingResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6445,11 +2928,11 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateTextToSpeechResponse} message + * @param {!proto.integration_api.RerankingResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateTextToSpeechResponse.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.RerankingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -6477,7 +2960,7 @@ proto.integration_api.GenerateTextToSpeechResponse.serializeBinaryToWriter = fun writer.writeRepeatedMessage( 4, f, - common_pb.Content.serializeBinaryToWriter + proto.integration_api.Reranking.serializeBinaryToWriter ); } f = message.getError(); @@ -6503,16 +2986,16 @@ proto.integration_api.GenerateTextToSpeechResponse.serializeBinaryToWriter = fun * optional int32 code = 1; * @return {number} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.getCode = function() { +proto.integration_api.RerankingResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.setCode = function(value) { +proto.integration_api.RerankingResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -6521,16 +3004,16 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.setCode = function( * optional bool success = 2; * @return {boolean} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.getSuccess = function() { +proto.integration_api.RerankingResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.setSuccess = function(value) { +proto.integration_api.RerankingResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -6539,54 +3022,54 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.setSuccess = functi * optional uint64 requestId = 3; * @return {number} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.getRequestid = function() { +proto.integration_api.RerankingResponse.prototype.getRequestid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.setRequestid = function(value) { +proto.integration_api.RerankingResponse.prototype.setRequestid = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** - * repeated Content data = 4; - * @return {!Array} + * repeated Reranking data = 4; + * @return {!Array} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Content, 4)); +proto.integration_api.RerankingResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.integration_api.Reranking, 4)); }; /** - * @param {!Array} value - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @param {!Array} value + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.setDataList = function(value) { +proto.integration_api.RerankingResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.Content=} opt_value + * @param {!proto.integration_api.Reranking=} opt_value * @param {number=} opt_index - * @return {!proto.Content} + * @return {!proto.integration_api.Reranking} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Content, opt_index); +proto.integration_api.RerankingResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.integration_api.Reranking, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.clearDataList = function() { +proto.integration_api.RerankingResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -6595,7 +3078,7 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.clearDataList = fun * optional Error error = 5; * @return {?proto.Error} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.getError = function() { +proto.integration_api.RerankingResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 5)); }; @@ -6603,18 +3086,18 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.getError = function /** * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.setError = function(value) { +proto.integration_api.RerankingResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.clearError = function() { +proto.integration_api.RerankingResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -6623,7 +3106,7 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.clearError = functi * Returns whether this field is set. * @return {boolean} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.hasError = function() { +proto.integration_api.RerankingResponse.prototype.hasError = function() { return jspb.Message.getField(this, 5) != null; }; @@ -6632,7 +3115,7 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.hasError = function * repeated Metric metrics = 6; * @return {!Array} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.getMetricsList = function() { +proto.integration_api.RerankingResponse.prototype.getMetricsList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); }; @@ -6640,9 +3123,9 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.getMetricsList = fu /** * @param {!Array} value - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.setMetricsList = function(value) { +proto.integration_api.RerankingResponse.prototype.setMetricsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -6652,16 +3135,16 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.setMetricsList = fu * @param {number=} opt_index * @return {!proto.Metric} */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.addMetrics = function(opt_value, opt_index) { +proto.integration_api.RerankingResponse.prototype.addMetrics = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateTextToSpeechResponse} returns this + * @return {!proto.integration_api.RerankingResponse} returns this */ -proto.integration_api.GenerateTextToSpeechResponse.prototype.clearMetricsList = function() { +proto.integration_api.RerankingResponse.prototype.clearMetricsList = function() { return this.setMetricsList([]); }; @@ -6672,7 +3155,7 @@ proto.integration_api.GenerateTextToSpeechResponse.prototype.clearMetricsList = * @private {!Array} * @const */ -proto.integration_api.GenerateSpeechToTextRequest.repeatedFields_ = [6]; +proto.integration_api.ChatResponse.repeatedFields_ = [7]; @@ -6689,8 +3172,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateSpeechToTextRequest.toObject(opt_includeInstance, this); +proto.integration_api.ChatResponse.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.ChatResponse.toObject(opt_includeInstance, this); }; @@ -6699,20 +3182,20 @@ proto.integration_api.GenerateSpeechToTextRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateSpeechToTextRequest} msg The msg instance to transform. + * @param {!proto.integration_api.ChatResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateSpeechToTextRequest.toObject = function(includeInstance, msg) { +proto.integration_api.ChatResponse.toObject = function(includeInstance, msg) { var f, obj = { - credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - prompt: jspb.Message.getFieldWithDefault(msg, 4, ""), - speech: (f = msg.getSpeech()) && common_pb.Content.toObject(includeInstance, f), - additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance) + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), + data: (f = msg.getData()) && common_pb.Message.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + metricsList: jspb.Message.toObjectList(msg.getMetricsList(), + common_pb.Metric.toObject, includeInstance), + finishreason: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { @@ -6726,23 +3209,23 @@ proto.integration_api.GenerateSpeechToTextRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateSpeechToTextRequest} + * @return {!proto.integration_api.ChatResponse} */ -proto.integration_api.GenerateSpeechToTextRequest.deserializeBinary = function(bytes) { +proto.integration_api.ChatResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateSpeechToTextRequest; - return proto.integration_api.GenerateSpeechToTextRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.ChatResponse; + return proto.integration_api.ChatResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.GenerateSpeechToTextRequest} msg The message object to deserialize into. + * @param {!proto.integration_api.ChatResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateSpeechToTextRequest} + * @return {!proto.integration_api.ChatResponse} */ -proto.integration_api.GenerateSpeechToTextRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.ChatResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6750,37 +3233,35 @@ proto.integration_api.GenerateSpeechToTextRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.integration_api.Credential; - reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); - msg.setCredential(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setRequestid(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPrompt(value); + var value = new common_pb.Message; + reader.readMessage(value,common_pb.Message.deserializeBinaryFromReader); + msg.setData(value); break; - case 7: - var value = new common_pb.Content; - reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); - msg.setSpeech(value); + case 6: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); break; - case 5: - var value = msg.getAdditionaldataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + case 7: + var value = new common_pb.Metric; + reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); + msg.addMetrics(value); break; - case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setFinishreason(value); break; default: reader.skipField(); @@ -6795,9 +3276,9 @@ proto.integration_api.GenerateSpeechToTextRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.serializeBinary = function() { +proto.integration_api.ChatResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateSpeechToTextRequest.serializeBinaryToWriter(this, writer); + proto.integration_api.ChatResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6805,180 +3286,183 @@ proto.integration_api.GenerateSpeechToTextRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateSpeechToTextRequest} message + * @param {!proto.integration_api.ChatResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateSpeechToTextRequest.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.ChatResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCredential(); - if (f != null) { - writer.writeMessage( + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( 1, - f, - proto.integration_api.Credential.serializeBinaryToWriter + f ); } - f = message.getModel(); - if (f.length > 0) { - writer.writeString( + f = message.getSuccess(); + if (f) { + writer.writeBool( 2, f ); } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( + f = message.getRequestid(); + if (f !== 0) { + writer.writeUint64( 3, f ); } - f = message.getPrompt(); - if (f.length > 0) { - writer.writeString( + f = message.getData(); + if (f != null) { + writer.writeMessage( 4, - f + f, + common_pb.Message.serializeBinaryToWriter ); } - f = message.getSpeech(); + f = message.getError(); if (f != null) { writer.writeMessage( - 7, + 6, f, - common_pb.Content.serializeBinaryToWriter + common_pb.Error.serializeBinaryToWriter ); } - f = message.getAdditionaldataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getModelparametersList(); + f = message.getMetricsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 6, + 7, f, - proto.integration_api.ModelParameter.serializeBinaryToWriter + common_pb.Metric.serializeBinaryToWriter + ); + } + f = message.getFinishreason(); + if (f.length > 0) { + writer.writeString( + 8, + f ); } }; /** - * optional Credential credential = 1; - * @return {?proto.integration_api.Credential} + * optional int32 code = 1; + * @return {number} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getCredential = function() { - return /** @type{?proto.integration_api.Credential} */ ( - jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); +proto.integration_api.ChatResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.integration_api.Credential|undefined} value - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this -*/ -proto.integration_api.GenerateSpeechToTextRequest.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.integration_api.ChatResponse} returns this + */ +proto.integration_api.ChatResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this + * optional bool success = 2; + * @return {boolean} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); +proto.integration_api.ChatResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.integration_api.ChatResponse} returns this */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 1) != null; +proto.integration_api.ChatResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional string model = 2; - * @return {string} + * optional uint64 requestId = 3; + * @return {number} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.integration_api.ChatResponse.prototype.getRequestid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this + * @param {number} value + * @return {!proto.integration_api.ChatResponse} returns this */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.setModel = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.integration_api.ChatResponse.prototype.setRequestid = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional string version = 3; - * @return {string} + * optional Message data = 4; + * @return {?proto.Message} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.integration_api.ChatResponse.prototype.getData = function() { + return /** @type{?proto.Message} */ ( + jspb.Message.getWrapperField(this, common_pb.Message, 4)); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this - */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + * @param {?proto.Message|undefined} value + * @return {!proto.integration_api.ChatResponse} returns this +*/ +proto.integration_api.ChatResponse.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * optional string prompt = 4; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.integration_api.ChatResponse} returns this */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getPrompt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.integration_api.ChatResponse.prototype.clearData = function() { + return this.setData(undefined); }; /** - * @param {string} value - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.setPrompt = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.integration_api.ChatResponse.prototype.hasData = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional Content speech = 7; - * @return {?proto.Content} + * optional Error error = 6; + * @return {?proto.Error} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getSpeech = function() { - return /** @type{?proto.Content} */ ( - jspb.Message.getWrapperField(this, common_pb.Content, 7)); +proto.integration_api.ChatResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 6)); }; /** - * @param {?proto.Content|undefined} value - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.integration_api.ChatResponse} returns this */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.setSpeech = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.integration_api.ChatResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this + * @return {!proto.integration_api.ChatResponse} returns this */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.clearSpeech = function() { - return this.setSpeech(undefined); +proto.integration_api.ChatResponse.prototype.clearError = function() { + return this.setError(undefined); }; @@ -6986,68 +3470,64 @@ proto.integration_api.GenerateSpeechToTextRequest.prototype.clearSpeech = functi * Returns whether this field is set. * @return {boolean} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.hasSpeech = function() { - return jspb.Message.getField(this, 7) != null; +proto.integration_api.ChatResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * map additionalData = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * repeated Metric metrics = 7; + * @return {!Array} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); +proto.integration_api.ChatResponse.prototype.getMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 7)); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this - */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.clearAdditionaldataMap = function() { - this.getAdditionaldataMap().clear(); - return this;}; + * @param {!Array} value + * @return {!proto.integration_api.ChatResponse} returns this +*/ +proto.integration_api.ChatResponse.prototype.setMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; /** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} + * @param {!proto.Metric=} opt_value + * @param {number=} opt_index + * @return {!proto.Metric} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); +proto.integration_api.ChatResponse.prototype.addMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metric, opt_index); }; /** - * @param {!Array} value - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this -*/ -proto.integration_api.GenerateSpeechToTextRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); + * Clears the list making it empty but non-null. + * @return {!proto.integration_api.ChatResponse} returns this + */ +proto.integration_api.ChatResponse.prototype.clearMetricsList = function() { + return this.setMetricsList([]); }; /** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} + * optional string finishReason = 8; + * @return {string} */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); +proto.integration_api.ChatResponse.prototype.getFinishreason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateSpeechToTextRequest} returns this + * @param {string} value + * @return {!proto.integration_api.ChatResponse} returns this */ -proto.integration_api.GenerateSpeechToTextRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); +proto.integration_api.ChatResponse.prototype.setFinishreason = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -7057,7 +3537,7 @@ proto.integration_api.GenerateSpeechToTextRequest.prototype.clearModelparameters * @private {!Array} * @const */ -proto.integration_api.GenerateSpeechToTextResponse.repeatedFields_ = [4,6]; +proto.integration_api.ChatRequest.repeatedFields_ = [4,7]; @@ -7074,8 +3554,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.toObject = function(opt_includeInstance) { - return proto.integration_api.GenerateSpeechToTextResponse.toObject(opt_includeInstance, this); +proto.integration_api.ChatRequest.prototype.toObject = function(opt_includeInstance) { + return proto.integration_api.ChatRequest.toObject(opt_includeInstance, this); }; @@ -7084,21 +3564,19 @@ proto.integration_api.GenerateSpeechToTextResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.integration_api.GenerateSpeechToTextResponse} msg The msg instance to transform. + * @param {!proto.integration_api.ChatRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateSpeechToTextResponse.toObject = function(includeInstance, msg) { +proto.integration_api.ChatRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - requestid: jspb.Message.getFieldWithDefault(msg, 3, 0), - dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.Content.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - common_pb.Metric.toObject, includeInstance), - meta: (f = msg.getMeta()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + credential: (f = msg.getCredential()) && proto.integration_api.Credential.toObject(includeInstance, f), + conversationsList: jspb.Message.toObjectList(msg.getConversationsList(), + common_pb.Message.toObject, includeInstance), + additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], + modelparametersMap: (f = msg.getModelparametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], + tooldefinitionsList: jspb.Message.toObjectList(msg.getTooldefinitionsList(), + proto.integration_api.ToolDefinition.toObject, includeInstance) }; if (includeInstance) { @@ -7112,23 +3590,23 @@ proto.integration_api.GenerateSpeechToTextResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration_api.GenerateSpeechToTextResponse} + * @return {!proto.integration_api.ChatRequest} */ -proto.integration_api.GenerateSpeechToTextResponse.deserializeBinary = function(bytes) { +proto.integration_api.ChatRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration_api.GenerateSpeechToTextResponse; - return proto.integration_api.GenerateSpeechToTextResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.integration_api.ChatRequest; + return proto.integration_api.ChatRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.integration_api.GenerateSpeechToTextResponse} msg The message object to deserialize into. + * @param {!proto.integration_api.ChatRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration_api.GenerateSpeechToTextResponse} + * @return {!proto.integration_api.ChatRequest} */ -proto.integration_api.GenerateSpeechToTextResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.integration_api.ChatRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7136,36 +3614,31 @@ proto.integration_api.GenerateSpeechToTextResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestid(value); - break; - case 4: - var value = new common_pb.Content; - reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); - msg.addData(value); + var value = new proto.integration_api.Credential; + reader.readMessage(value,proto.integration_api.Credential.deserializeBinaryFromReader); + msg.setCredential(value); + break; + case 4: + var value = new common_pb.Message; + reader.readMessage(value,common_pb.Message.deserializeBinaryFromReader); + msg.addConversations(value); break; case 5: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = msg.getAdditionaldataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; case 6: - var value = new common_pb.Metric; - reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); - msg.addMetrics(value); + var value = msg.getModelparametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); + }); break; case 7: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMeta(value); + var value = new proto.integration_api.ToolDefinition; + reader.readMessage(value,proto.integration_api.ToolDefinition.deserializeBinaryFromReader); + msg.addTooldefinitions(value); break; default: reader.skipField(); @@ -7180,9 +3653,9 @@ proto.integration_api.GenerateSpeechToTextResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.serializeBinary = function() { +proto.integration_api.ChatRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.integration_api.GenerateSpeechToTextResponse.serializeBinaryToWriter(this, writer); + proto.integration_api.ChatRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7190,269 +3663,201 @@ proto.integration_api.GenerateSpeechToTextResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.integration_api.GenerateSpeechToTextResponse} message + * @param {!proto.integration_api.ChatRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.integration_api.GenerateSpeechToTextResponse.serializeBinaryToWriter = function(message, writer) { +proto.integration_api.ChatRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getCredential(); + if (f != null) { + writer.writeMessage( 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getRequestid(); - if (f !== 0) { - writer.writeUint64( - 3, - f + f, + proto.integration_api.Credential.serializeBinaryToWriter ); } - f = message.getDataList(); + f = message.getConversationsList(); if (f.length > 0) { writer.writeRepeatedMessage( 4, f, - common_pb.Content.serializeBinaryToWriter + common_pb.Message.serializeBinaryToWriter ); } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Error.serializeBinaryToWriter - ); + f = message.getAdditionaldataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } - f = message.getMetricsList(); + f = message.getModelparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); + } + f = message.getTooldefinitionsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 6, - f, - common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getMeta(); - if (f != null) { - writer.writeMessage( 7, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + proto.integration_api.ToolDefinition.serializeBinaryToWriter ); } }; /** - * optional int32 code = 1; - * @return {number} - */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this - */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} + * optional Credential credential = 1; + * @return {?proto.integration_api.Credential} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.integration_api.ChatRequest.prototype.getCredential = function() { + return /** @type{?proto.integration_api.Credential} */ ( + jspb.Message.getWrapperField(this, proto.integration_api.Credential, 1)); }; /** - * @param {boolean} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this - */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); + * @param {?proto.integration_api.Credential|undefined} value + * @return {!proto.integration_api.ChatRequest} returns this +*/ +proto.integration_api.ChatRequest.prototype.setCredential = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional uint64 requestId = 3; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.integration_api.ChatRequest} returns this */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getRequestid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.integration_api.ChatRequest.prototype.clearCredential = function() { + return this.setCredential(undefined); }; /** - * @param {number} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setRequestid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.integration_api.ChatRequest.prototype.hasCredential = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * repeated Content data = 4; - * @return {!Array} + * repeated Message conversations = 4; + * @return {!Array} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Content, 4)); +proto.integration_api.ChatRequest.prototype.getConversationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Message, 4)); }; /** - * @param {!Array} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this + * @param {!Array} value + * @return {!proto.integration_api.ChatRequest} returns this */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setDataList = function(value) { +proto.integration_api.ChatRequest.prototype.setConversationsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.Content=} opt_value + * @param {!proto.Message=} opt_value * @param {number=} opt_index - * @return {!proto.Content} + * @return {!proto.Message} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Content, opt_index); +proto.integration_api.ChatRequest.prototype.addConversations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Message, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this + * @return {!proto.integration_api.ChatRequest} returns this */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.clearDataList = function() { - return this.setDataList([]); +proto.integration_api.ChatRequest.prototype.clearConversationsList = function() { + return this.setConversationsList([]); }; /** - * optional Error error = 5; - * @return {?proto.Error} + * map additionalData = 5; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 5)); +proto.integration_api.ChatRequest.prototype.getAdditionaldataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 5, opt_noLazyCreate, + null)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this -*/ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; + * Clears values from the map. The map will be non-null. + * @return {!proto.integration_api.ChatRequest} returns this + */ +proto.integration_api.ChatRequest.prototype.clearAdditionaldataMap = function() { + this.getAdditionaldataMap().clear(); + return this;}; /** - * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this + * map modelParameters = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.integration_api.ChatRequest.prototype.getModelparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + proto.google.protobuf.Any)); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears values from the map. The map will be non-null. + * @return {!proto.integration_api.ChatRequest} returns this */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 5) != null; -}; +proto.integration_api.ChatRequest.prototype.clearModelparametersMap = function() { + this.getModelparametersMap().clear(); + return this;}; /** - * repeated Metric metrics = 6; - * @return {!Array} + * repeated ToolDefinition toolDefinitions = 7; + * @return {!Array} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); +proto.integration_api.ChatRequest.prototype.getTooldefinitionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ToolDefinition, 7)); }; /** - * @param {!Array} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this + * @param {!Array} value + * @return {!proto.integration_api.ChatRequest} returns this */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); +proto.integration_api.ChatRequest.prototype.setTooldefinitionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * @param {!proto.Metric=} opt_value + * @param {!proto.integration_api.ToolDefinition=} opt_value * @param {number=} opt_index - * @return {!proto.Metric} + * @return {!proto.integration_api.ToolDefinition} */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); +proto.integration_api.ChatRequest.prototype.addTooldefinitions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.integration_api.ToolDefinition, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this - */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * optional google.protobuf.Struct meta = 7; - * @return {?proto.google.protobuf.Struct} - */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.getMeta = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this -*/ -proto.integration_api.GenerateSpeechToTextResponse.prototype.setMeta = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration_api.GenerateSpeechToTextResponse} returns this - */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.clearMeta = function() { - return this.setMeta(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * @return {!proto.integration_api.ChatRequest} returns this */ -proto.integration_api.GenerateSpeechToTextResponse.prototype.hasMeta = function() { - return jspb.Message.getField(this, 7) != null; +proto.integration_api.ChatRequest.prototype.clearTooldefinitionsList = function() { + return this.setTooldefinitionsList([]); }; @@ -8036,13 +4441,6 @@ proto.integration_api.Moderation.prototype.setValue = function(value) { -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration_api.GetModerationRequest.repeatedFields_ = [6]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -8079,8 +4477,7 @@ proto.integration_api.GetModerationRequest.toObject = function(includeInstance, version: jspb.Message.getFieldWithDefault(msg, 3, ""), content: (f = msg.getContent()) && common_pb.Content.toObject(includeInstance, f), additionaldataMap: (f = msg.getAdditionaldataMap()) ? f.toObject(includeInstance, undefined) : [], - modelparametersList: jspb.Message.toObjectList(msg.getModelparametersList(), - proto.integration_api.ModelParameter.toObject, includeInstance) + modelparametersMap: (f = msg.getModelparametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [] }; if (includeInstance) { @@ -8142,9 +4539,10 @@ proto.integration_api.GetModerationRequest.deserializeBinaryFromReader = functio }); break; case 6: - var value = new proto.integration_api.ModelParameter; - reader.readMessage(value,proto.integration_api.ModelParameter.deserializeBinaryFromReader); - msg.addModelparameters(value); + var value = msg.getModelparametersMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); + }); break; default: reader.skipField(); @@ -8209,13 +4607,9 @@ proto.integration_api.GetModerationRequest.serializeBinaryToWriter = function(me if (f && f.getLength() > 0) { f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } - f = message.getModelparametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.integration_api.ModelParameter.serializeBinaryToWriter - ); + f = message.getModelparametersMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); } }; @@ -8353,41 +4747,25 @@ proto.integration_api.GetModerationRequest.prototype.clearAdditionaldataMap = fu /** - * repeated ModelParameter modelParameters = 6; - * @return {!Array} - */ -proto.integration_api.GetModerationRequest.prototype.getModelparametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.integration_api.ModelParameter, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration_api.GetModerationRequest} returns this -*/ -proto.integration_api.GetModerationRequest.prototype.setModelparametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.integration_api.ModelParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.integration_api.ModelParameter} + * map modelParameters = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.integration_api.GetModerationRequest.prototype.addModelparameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.integration_api.ModelParameter, opt_index); +proto.integration_api.GetModerationRequest.prototype.getModelparametersMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + proto.google.protobuf.Any)); }; /** - * Clears the list making it empty but non-null. + * Clears values from the map. The map will be non-null. * @return {!proto.integration_api.GetModerationRequest} returns this */ -proto.integration_api.GetModerationRequest.prototype.clearModelparametersList = function() { - return this.setModelparametersList([]); -}; +proto.integration_api.GetModerationRequest.prototype.clearModelparametersMap = function() { + this.getModelparametersMap().clear(); + return this;}; diff --git a/src/clients/protos/invoker-api_pb.d.ts b/src/clients/protos/invoker-api_pb.d.ts index 394c2f1..d2c7b2e 100644 --- a/src/clients/protos/invoker-api_pb.d.ts +++ b/src/clients/protos/invoker-api_pb.d.ts @@ -6,34 +6,6 @@ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/stru import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; import * as common_pb from "./common_pb"; -export class InvokerError extends jspb.Message { - getErrorcode(): string; - setErrorcode(value: string): void; - - getErrormessage(): string; - setErrormessage(value: string): void; - - getHumanmessage(): string; - setHumanmessage(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokerError.AsObject; - static toObject(includeInstance: boolean, msg: InvokerError): InvokerError.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokerError, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokerError; - static deserializeBinaryFromReader(message: InvokerError, reader: jspb.BinaryReader): InvokerError; -} - -export namespace InvokerError { - export type AsObject = { - errorcode: string, - errormessage: string, - humanmessage: string, - } -} - export class EndpointDefinition extends jspb.Message { getEndpointid(): string; setEndpointid(value: string): void; @@ -64,21 +36,12 @@ export class InvokeRequest extends jspb.Message { getEndpoint(): EndpointDefinition | undefined; setEndpoint(value?: EndpointDefinition): void; - getArgsv1Map(): jspb.Map; - clearArgsv1Map(): void; - getMetadatav1Map(): jspb.Map; - clearMetadatav1Map(): void; - getOptionsv1Map(): jspb.Map; - clearOptionsv1Map(): void; getArgsMap(): jspb.Map; clearArgsMap(): void; getMetadataMap(): jspb.Map; clearMetadataMap(): void; getOptionsMap(): jspb.Map; clearOptionsMap(): void; - getSource(): common_pb.SourceMap[keyof common_pb.SourceMap]; - setSource(value: common_pb.SourceMap[keyof common_pb.SourceMap]): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InvokeRequest.AsObject; static toObject(includeInstance: boolean, msg: InvokeRequest): InvokeRequest.AsObject; @@ -92,35 +55,34 @@ export class InvokeRequest extends jspb.Message { export namespace InvokeRequest { export type AsObject = { endpoint?: EndpointDefinition.AsObject, - argsv1Map: Array<[string, string]>, - metadatav1Map: Array<[string, string]>, - optionsv1Map: Array<[string, string]>, argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, metadataMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, optionsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - source: common_pb.SourceMap[keyof common_pb.SourceMap], } } -export class CallerResponse extends jspb.Message { - getRequestid(): number; - setRequestid(value: number): void; - - getResponse(): string; - setResponse(value: string): void; +export class InvokeResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; - getTimetaken(): number; - setTimetaken(value: number): void; + getSuccess(): boolean; + setSuccess(value: boolean): void; - clearResponsesList(): void; - getResponsesList(): Array; - setResponsesList(value: Array): void; - addResponses(value?: common_pb.Content, index?: number): common_pb.Content; + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: common_pb.Content, index?: number): common_pb.Content; hasError(): boolean; clearError(): void; - getError(): InvokerError | undefined; - setError(value?: InvokerError): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + getRequestid(): number; + setRequestid(value: number): void; + + getTimetaken(): number; + setTimetaken(value: number): void; clearMetricsList(): void; getMetricsList(): Array; @@ -132,45 +94,6 @@ export class CallerResponse extends jspb.Message { getMeta(): google_protobuf_struct_pb.Struct | undefined; setMeta(value?: google_protobuf_struct_pb.Struct): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CallerResponse.AsObject; - static toObject(includeInstance: boolean, msg: CallerResponse): CallerResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CallerResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CallerResponse; - static deserializeBinaryFromReader(message: CallerResponse, reader: jspb.BinaryReader): CallerResponse; -} - -export namespace CallerResponse { - export type AsObject = { - requestid: number, - response: string, - timetaken: number, - responsesList: Array, - error?: InvokerError.AsObject, - metricsList: Array, - meta?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class InvokeResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): CallerResponse | undefined; - setData(value?: CallerResponse): void; - - hasError(): boolean; - clearError(): void; - getError(): InvokerError | undefined; - setError(value?: InvokerError): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InvokeResponse.AsObject; static toObject(includeInstance: boolean, msg: InvokeResponse): InvokeResponse.AsObject; @@ -185,8 +108,12 @@ export namespace InvokeResponse { export type AsObject = { code: number, success: boolean, - data?: CallerResponse.AsObject, - error?: InvokerError.AsObject, + dataList: Array, + error?: common_pb.Error.AsObject, + requestid: number, + timetaken: number, + metricsList: Array, + meta?: google_protobuf_struct_pb.Struct.AsObject, } } @@ -225,8 +152,8 @@ export class UpdateResponse extends jspb.Message { hasError(): boolean; clearError(): void; - getError(): InvokerError | undefined; - setError(value?: InvokerError): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UpdateResponse.AsObject; @@ -242,7 +169,7 @@ export namespace UpdateResponse { export type AsObject = { code: number, success: boolean, - error?: InvokerError.AsObject, + error?: common_pb.Error.AsObject, } } @@ -280,8 +207,8 @@ export class ProbeResponse extends jspb.Message { hasError(): boolean; clearError(): void; - getError(): InvokerError | undefined; - setError(value?: InvokerError): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProbeResponse.AsObject; @@ -298,7 +225,7 @@ export namespace ProbeResponse { code: number, success: boolean, data?: google_protobuf_struct_pb.Struct.AsObject, - error?: InvokerError.AsObject, + error?: common_pb.Error.AsObject, } } diff --git a/src/clients/protos/invoker-api_pb.js b/src/clients/protos/invoker-api_pb.js index e7c6fa5..a19feaa 100644 --- a/src/clients/protos/invoker-api_pb.js +++ b/src/clients/protos/invoker-api_pb.js @@ -27,36 +27,13 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js' goog.object.extend(proto, google_protobuf_any_pb); var common_pb = require('./common_pb.js'); goog.object.extend(proto, common_pb); -goog.exportSymbol('proto.endpoint_api.CallerResponse', null, global); goog.exportSymbol('proto.endpoint_api.EndpointDefinition', null, global); goog.exportSymbol('proto.endpoint_api.InvokeRequest', null, global); goog.exportSymbol('proto.endpoint_api.InvokeResponse', null, global); -goog.exportSymbol('proto.endpoint_api.InvokerError', null, global); goog.exportSymbol('proto.endpoint_api.ProbeRequest', null, global); goog.exportSymbol('proto.endpoint_api.ProbeResponse', null, global); goog.exportSymbol('proto.endpoint_api.UpdateRequest', null, global); goog.exportSymbol('proto.endpoint_api.UpdateResponse', 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.endpoint_api.InvokerError = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.endpoint_api.InvokerError, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.endpoint_api.InvokerError.displayName = 'proto.endpoint_api.InvokerError'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -99,27 +76,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.endpoint_api.InvokeRequest.displayName = 'proto.endpoint_api.InvokeRequest'; } -/** - * 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.endpoint_api.CallerResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.CallerResponse.repeatedFields_, null); -}; -goog.inherits(proto.endpoint_api.CallerResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.endpoint_api.CallerResponse.displayName = 'proto.endpoint_api.CallerResponse'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -131,7 +87,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.endpoint_api.InvokeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.endpoint_api.InvokeResponse.repeatedFields_, null); }; goog.inherits(proto.endpoint_api.InvokeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -228,196 +184,6 @@ if (goog.DEBUG && !COMPILED) { -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.endpoint_api.InvokerError.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.InvokerError.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.endpoint_api.InvokerError} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.InvokerError.toObject = function(includeInstance, msg) { - var f, obj = { - errorcode: jspb.Message.getFieldWithDefault(msg, 1, "0"), - errormessage: jspb.Message.getFieldWithDefault(msg, 2, ""), - humanmessage: 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.endpoint_api.InvokerError} - */ -proto.endpoint_api.InvokerError.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.InvokerError; - return proto.endpoint_api.InvokerError.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.endpoint_api.InvokerError} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.InvokerError} - */ -proto.endpoint_api.InvokerError.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setErrorcode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setErrormessage(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHumanmessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.endpoint_api.InvokerError.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.InvokerError.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.InvokerError} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.InvokerError.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getErrorcode(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getErrormessage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getHumanmessage(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint64 errorCode = 1; - * @return {string} - */ -proto.endpoint_api.InvokerError.prototype.getErrorcode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.InvokerError} returns this - */ -proto.endpoint_api.InvokerError.prototype.setErrorcode = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string errorMessage = 2; - * @return {string} - */ -proto.endpoint_api.InvokerError.prototype.getErrormessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.InvokerError} returns this - */ -proto.endpoint_api.InvokerError.prototype.setErrormessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string humanMessage = 3; - * @return {string} - */ -proto.endpoint_api.InvokerError.prototype.getHumanmessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.InvokerError} returns this - */ -proto.endpoint_api.InvokerError.prototype.setHumanmessage = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -608,13 +374,9 @@ proto.endpoint_api.InvokeRequest.prototype.toObject = function(opt_includeInstan proto.endpoint_api.InvokeRequest.toObject = function(includeInstance, msg) { var f, obj = { endpoint: (f = msg.getEndpoint()) && proto.endpoint_api.EndpointDefinition.toObject(includeInstance, f), - argsv1Map: (f = msg.getArgsv1Map()) ? f.toObject(includeInstance, undefined) : [], - metadatav1Map: (f = msg.getMetadatav1Map()) ? f.toObject(includeInstance, undefined) : [], - optionsv1Map: (f = msg.getOptionsv1Map()) ? f.toObject(includeInstance, undefined) : [], argsMap: (f = msg.getArgsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - optionsMap: (f = msg.getOptionsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - source: jspb.Message.getFieldWithDefault(msg, 21, 0) + optionsMap: (f = msg.getOptionsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [] }; if (includeInstance) { @@ -656,24 +418,6 @@ proto.endpoint_api.InvokeRequest.deserializeBinaryFromReader = function(msg, rea reader.readMessage(value,proto.endpoint_api.EndpointDefinition.deserializeBinaryFromReader); msg.setEndpoint(value); break; - case 2: - var value = msg.getArgsv1Map(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = msg.getMetadatav1Map(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 4: - var value = msg.getOptionsv1Map(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; case 5: var value = msg.getArgsMap(); reader.readMessage(value, function(message, reader) { @@ -692,10 +436,6 @@ proto.endpoint_api.InvokeRequest.deserializeBinaryFromReader = function(msg, rea jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); }); break; - case 21: - var value = /** @type {!proto.Source} */ (reader.readEnum()); - msg.setSource(value); - break; default: reader.skipField(); break; @@ -733,18 +473,6 @@ proto.endpoint_api.InvokeRequest.serializeBinaryToWriter = function(message, wri proto.endpoint_api.EndpointDefinition.serializeBinaryToWriter ); } - f = message.getArgsv1Map(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMetadatav1Map(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getOptionsv1Map(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } f = message.getArgsMap(true); if (f && f.getLength() > 0) { f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); @@ -757,13 +485,6 @@ proto.endpoint_api.InvokeRequest.serializeBinaryToWriter = function(message, wri if (f && f.getLength() > 0) { f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); } - f = message.getSource(); - if (f !== 0.0) { - writer.writeEnum( - 21, - f - ); - } }; @@ -804,72 +525,6 @@ proto.endpoint_api.InvokeRequest.prototype.hasEndpoint = function() { }; -/** - * map argsV1 = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.endpoint_api.InvokeRequest.prototype.getArgsv1Map = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.endpoint_api.InvokeRequest} returns this - */ -proto.endpoint_api.InvokeRequest.prototype.clearArgsv1Map = function() { - this.getArgsv1Map().clear(); - return this;}; - - -/** - * map metadataV1 = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.endpoint_api.InvokeRequest.prototype.getMetadatav1Map = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.endpoint_api.InvokeRequest} returns this - */ -proto.endpoint_api.InvokeRequest.prototype.clearMetadatav1Map = function() { - this.getMetadatav1Map().clear(); - return this;}; - - -/** - * map optionsV1 = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.endpoint_api.InvokeRequest.prototype.getOptionsv1Map = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.endpoint_api.InvokeRequest} returns this - */ -proto.endpoint_api.InvokeRequest.prototype.clearOptionsv1Map = function() { - this.getOptionsv1Map().clear(); - return this;}; - - /** * map args = 5; * @param {boolean=} opt_noLazyCreate Do not create the map if @@ -936,31 +591,13 @@ proto.endpoint_api.InvokeRequest.prototype.clearOptionsMap = function() { return this;}; -/** - * optional Source source = 21; - * @return {!proto.Source} - */ -proto.endpoint_api.InvokeRequest.prototype.getSource = function() { - return /** @type {!proto.Source} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {!proto.Source} value - * @return {!proto.endpoint_api.InvokeRequest} returns this - */ -proto.endpoint_api.InvokeRequest.prototype.setSource = function(value) { - return jspb.Message.setProto3EnumField(this, 21, value); -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.endpoint_api.CallerResponse.repeatedFields_ = [4,6]; +proto.endpoint_api.InvokeResponse.repeatedFields_ = [3,7]; @@ -977,8 +614,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.endpoint_api.CallerResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.CallerResponse.toObject(opt_includeInstance, this); +proto.endpoint_api.InvokeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.endpoint_api.InvokeResponse.toObject(opt_includeInstance, this); }; @@ -987,18 +624,19 @@ proto.endpoint_api.CallerResponse.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.endpoint_api.CallerResponse} msg The msg instance to transform. + * @param {!proto.endpoint_api.InvokeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CallerResponse.toObject = function(includeInstance, msg) { +proto.endpoint_api.InvokeResponse.toObject = function(includeInstance, msg) { var f, obj = { - requestid: jspb.Message.getFieldWithDefault(msg, 1, 0), - response: jspb.Message.getFieldWithDefault(msg, 2, ""), - timetaken: jspb.Message.getFieldWithDefault(msg, 3, 0), - responsesList: jspb.Message.toObjectList(msg.getResponsesList(), + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), common_pb.Content.toObject, includeInstance), - error: (f = msg.getError()) && proto.endpoint_api.InvokerError.toObject(includeInstance, f), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + requestid: jspb.Message.getFieldWithDefault(msg, 5, 0), + timetaken: jspb.Message.getFieldWithDefault(msg, 6, 0), metricsList: jspb.Message.toObjectList(msg.getMetricsList(), common_pb.Metric.toObject, includeInstance), meta: (f = msg.getMeta()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) @@ -1015,23 +653,23 @@ proto.endpoint_api.CallerResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.endpoint_api.CallerResponse} + * @return {!proto.endpoint_api.InvokeResponse} */ -proto.endpoint_api.CallerResponse.deserializeBinary = function(bytes) { +proto.endpoint_api.InvokeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.CallerResponse; - return proto.endpoint_api.CallerResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.endpoint_api.InvokeResponse; + return proto.endpoint_api.InvokeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.endpoint_api.CallerResponse} msg The message object to deserialize into. + * @param {!proto.endpoint_api.InvokeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.CallerResponse} + * @return {!proto.endpoint_api.InvokeResponse} */ -proto.endpoint_api.CallerResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.endpoint_api.InvokeResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1039,33 +677,37 @@ proto.endpoint_api.CallerResponse.deserializeBinaryFromReader = function(msg, re var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestid(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setResponse(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTimetaken(value); - break; - case 4: var value = new common_pb.Content; reader.readMessage(value,common_pb.Content.deserializeBinaryFromReader); - msg.addResponses(value); + msg.addData(value); break; - case 5: - var value = new proto.endpoint_api.InvokerError; - reader.readMessage(value,proto.endpoint_api.InvokerError.deserializeBinaryFromReader); + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRequestid(value); + break; case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimetaken(value); + break; + case 7: var value = new common_pb.Metric; reader.readMessage(value,common_pb.Metric.deserializeBinaryFromReader); msg.addMetrics(value); break; - case 7: + case 8: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setMeta(value); @@ -1083,9 +725,9 @@ proto.endpoint_api.CallerResponse.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.endpoint_api.CallerResponse.prototype.serializeBinary = function() { +proto.endpoint_api.InvokeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.endpoint_api.CallerResponse.serializeBinaryToWriter(this, writer); + proto.endpoint_api.InvokeResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1093,37 +735,30 @@ proto.endpoint_api.CallerResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.CallerResponse} message + * @param {!proto.endpoint_api.InvokeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.endpoint_api.CallerResponse.serializeBinaryToWriter = function(message, writer) { +proto.endpoint_api.InvokeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRequestid(); + f = message.getCode(); if (f !== 0) { - writer.writeUint64( + writer.writeInt32( 1, f ); } - f = message.getResponse(); - if (f.length > 0) { - writer.writeString( + f = message.getSuccess(); + if (f) { + writer.writeBool( 2, f ); } - f = message.getTimetaken(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResponsesList(); + f = message.getDataList(); if (f.length > 0) { writer.writeRepeatedMessage( - 4, + 3, f, common_pb.Content.serializeBinaryToWriter ); @@ -1131,15 +766,29 @@ proto.endpoint_api.CallerResponse.serializeBinaryToWriter = function(message, wr f = message.getError(); if (f != null) { writer.writeMessage( - 5, + 4, f, - proto.endpoint_api.InvokerError.serializeBinaryToWriter + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getRequestid(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getTimetaken(); + if (f !== 0) { + writer.writeUint64( + 6, + f ); } f = message.getMetricsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 6, + 7, f, common_pb.Metric.serializeBinaryToWriter ); @@ -1147,7 +796,7 @@ proto.endpoint_api.CallerResponse.serializeBinaryToWriter = function(message, wr f = message.getMeta(); if (f != null) { writer.writeMessage( - 7, + 8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); @@ -1156,75 +805,57 @@ proto.endpoint_api.CallerResponse.serializeBinaryToWriter = function(message, wr /** - * optional uint64 requestId = 1; + * optional int32 code = 1; * @return {number} */ -proto.endpoint_api.CallerResponse.prototype.getRequestid = function() { +proto.endpoint_api.InvokeResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.endpoint_api.CallerResponse} returns this + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.CallerResponse.prototype.setRequestid = function(value) { +proto.endpoint_api.InvokeResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional string response = 2; - * @return {string} - */ -proto.endpoint_api.CallerResponse.prototype.getResponse = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.endpoint_api.CallerResponse} returns this - */ -proto.endpoint_api.CallerResponse.prototype.setResponse = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 timeTaken = 3; - * @return {number} + * optional bool success = 2; + * @return {boolean} */ -proto.endpoint_api.CallerResponse.prototype.getTimetaken = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.endpoint_api.InvokeResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * @param {number} value - * @return {!proto.endpoint_api.CallerResponse} returns this + * @param {boolean} value + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.CallerResponse.prototype.setTimetaken = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.endpoint_api.InvokeResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated Content responses = 4; + * repeated Content data = 3; * @return {!Array} */ -proto.endpoint_api.CallerResponse.prototype.getResponsesList = function() { +proto.endpoint_api.InvokeResponse.prototype.getDataList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Content, 4)); + jspb.Message.getRepeatedWrapperField(this, common_pb.Content, 3)); }; /** * @param {!Array} value - * @return {!proto.endpoint_api.CallerResponse} returns this + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.CallerResponse.prototype.setResponsesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); +proto.endpoint_api.InvokeResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -1233,44 +864,44 @@ proto.endpoint_api.CallerResponse.prototype.setResponsesList = function(value) { * @param {number=} opt_index * @return {!proto.Content} */ -proto.endpoint_api.CallerResponse.prototype.addResponses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.Content, opt_index); +proto.endpoint_api.InvokeResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Content, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.CallerResponse} returns this + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.CallerResponse.prototype.clearResponsesList = function() { - return this.setResponsesList([]); +proto.endpoint_api.InvokeResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; /** - * optional InvokerError error = 5; - * @return {?proto.endpoint_api.InvokerError} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.endpoint_api.CallerResponse.prototype.getError = function() { - return /** @type{?proto.endpoint_api.InvokerError} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.InvokerError, 5)); +proto.endpoint_api.InvokeResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {?proto.endpoint_api.InvokerError|undefined} value - * @return {!proto.endpoint_api.CallerResponse} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.CallerResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.endpoint_api.InvokeResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CallerResponse} returns this + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.CallerResponse.prototype.clearError = function() { +proto.endpoint_api.InvokeResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -1279,244 +910,17 @@ proto.endpoint_api.CallerResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.CallerResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated Metric metrics = 6; - * @return {!Array} - */ -proto.endpoint_api.CallerResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.endpoint_api.CallerResponse} returns this -*/ -proto.endpoint_api.CallerResponse.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.Metric=} opt_value - * @param {number=} opt_index - * @return {!proto.Metric} - */ -proto.endpoint_api.CallerResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Metric, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.endpoint_api.CallerResponse} returns this - */ -proto.endpoint_api.CallerResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * optional google.protobuf.Struct meta = 7; - * @return {?proto.google.protobuf.Struct} - */ -proto.endpoint_api.CallerResponse.prototype.getMeta = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.endpoint_api.CallerResponse} returns this -*/ -proto.endpoint_api.CallerResponse.prototype.setMeta = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.CallerResponse} returns this - */ -proto.endpoint_api.CallerResponse.prototype.clearMeta = function() { - return this.setMeta(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.endpoint_api.CallerResponse.prototype.hasMeta = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.endpoint_api.InvokeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.endpoint_api.InvokeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.endpoint_api.InvokeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.InvokeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.endpoint_api.CallerResponse.toObject(includeInstance, f), - error: (f = msg.getError()) && proto.endpoint_api.InvokerError.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.endpoint_api.InvokeResponse} - */ -proto.endpoint_api.InvokeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.endpoint_api.InvokeResponse; - return proto.endpoint_api.InvokeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.endpoint_api.InvokeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.endpoint_api.InvokeResponse} - */ -proto.endpoint_api.InvokeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.endpoint_api.CallerResponse; - reader.readMessage(value,proto.endpoint_api.CallerResponse.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new proto.endpoint_api.InvokerError; - reader.readMessage(value,proto.endpoint_api.InvokerError.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.endpoint_api.InvokeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.endpoint_api.InvokeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.endpoint_api.InvokeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.endpoint_api.InvokeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.endpoint_api.CallerResponse.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.endpoint_api.InvokerError.serializeBinaryToWriter - ); - } +proto.endpoint_api.InvokeResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional int32 code = 1; + * optional uint64 requestId = 5; * @return {number} */ -proto.endpoint_api.InvokeResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.endpoint_api.InvokeResponse.prototype.getRequestid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; @@ -1524,82 +928,83 @@ proto.endpoint_api.InvokeResponse.prototype.getCode = function() { * @param {number} value * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.InvokeResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.endpoint_api.InvokeResponse.prototype.setRequestid = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); }; /** - * optional bool success = 2; - * @return {boolean} + * optional uint64 timeTaken = 6; + * @return {number} */ -proto.endpoint_api.InvokeResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.endpoint_api.InvokeResponse.prototype.getTimetaken = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {boolean} value + * @param {number} value * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.InvokeResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.endpoint_api.InvokeResponse.prototype.setTimetaken = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; /** - * optional CallerResponse data = 3; - * @return {?proto.endpoint_api.CallerResponse} + * repeated Metric metrics = 7; + * @return {!Array} */ -proto.endpoint_api.InvokeResponse.prototype.getData = function() { - return /** @type{?proto.endpoint_api.CallerResponse} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.CallerResponse, 3)); +proto.endpoint_api.InvokeResponse.prototype.getMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metric, 7)); }; /** - * @param {?proto.endpoint_api.CallerResponse|undefined} value + * @param {!Array} value * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.InvokeResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.endpoint_api.InvokeResponse.prototype.setMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.endpoint_api.InvokeResponse} returns this + * @param {!proto.Metric=} opt_value + * @param {number=} opt_index + * @return {!proto.Metric} */ -proto.endpoint_api.InvokeResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.endpoint_api.InvokeResponse.prototype.addMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Metric, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.InvokeResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.endpoint_api.InvokeResponse.prototype.clearMetricsList = function() { + return this.setMetricsList([]); }; /** - * optional InvokerError error = 4; - * @return {?proto.endpoint_api.InvokerError} + * optional google.protobuf.Struct meta = 8; + * @return {?proto.google.protobuf.Struct} */ -proto.endpoint_api.InvokeResponse.prototype.getError = function() { - return /** @type{?proto.endpoint_api.InvokerError} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.InvokerError, 4)); +proto.endpoint_api.InvokeResponse.prototype.getMeta = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8)); }; /** - * @param {?proto.endpoint_api.InvokerError|undefined} value + * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.InvokeResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.endpoint_api.InvokeResponse.prototype.setMeta = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; @@ -1607,8 +1012,8 @@ proto.endpoint_api.InvokeResponse.prototype.setError = function(value) { * Clears the message field making it undefined. * @return {!proto.endpoint_api.InvokeResponse} returns this */ -proto.endpoint_api.InvokeResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.endpoint_api.InvokeResponse.prototype.clearMeta = function() { + return this.setMeta(undefined); }; @@ -1616,8 +1021,8 @@ proto.endpoint_api.InvokeResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.endpoint_api.InvokeResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.endpoint_api.InvokeResponse.prototype.hasMeta = function() { + return jspb.Message.getField(this, 8) != null; }; @@ -1836,7 +1241,7 @@ proto.endpoint_api.UpdateResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - error: (f = msg.getError()) && proto.endpoint_api.InvokerError.toObject(includeInstance, f) + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -1882,8 +1287,8 @@ proto.endpoint_api.UpdateResponse.deserializeBinaryFromReader = function(msg, re msg.setSuccess(value); break; case 3: - var value = new proto.endpoint_api.InvokerError; - reader.readMessage(value,proto.endpoint_api.InvokerError.deserializeBinaryFromReader); + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; default: @@ -1934,7 +1339,7 @@ proto.endpoint_api.UpdateResponse.serializeBinaryToWriter = function(message, wr writer.writeMessage( 3, f, - proto.endpoint_api.InvokerError.serializeBinaryToWriter + common_pb.Error.serializeBinaryToWriter ); } }; @@ -1977,17 +1382,17 @@ proto.endpoint_api.UpdateResponse.prototype.setSuccess = function(value) { /** - * optional InvokerError error = 3; - * @return {?proto.endpoint_api.InvokerError} + * optional Error error = 3; + * @return {?proto.Error} */ proto.endpoint_api.UpdateResponse.prototype.getError = function() { - return /** @type{?proto.endpoint_api.InvokerError} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.InvokerError, 3)); + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 3)); }; /** - * @param {?proto.endpoint_api.InvokerError|undefined} value + * @param {?proto.Error|undefined} value * @return {!proto.endpoint_api.UpdateResponse} returns this */ proto.endpoint_api.UpdateResponse.prototype.setError = function(value) { @@ -2178,7 +1583,7 @@ proto.endpoint_api.ProbeResponse.toObject = function(includeInstance, msg) { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - error: (f = msg.getError()) && proto.endpoint_api.InvokerError.toObject(includeInstance, f) + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; if (includeInstance) { @@ -2229,8 +1634,8 @@ proto.endpoint_api.ProbeResponse.deserializeBinaryFromReader = function(msg, rea msg.setData(value); break; case 4: - var value = new proto.endpoint_api.InvokerError; - reader.readMessage(value,proto.endpoint_api.InvokerError.deserializeBinaryFromReader); + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; default: @@ -2289,7 +1694,7 @@ proto.endpoint_api.ProbeResponse.serializeBinaryToWriter = function(message, wri writer.writeMessage( 4, f, - proto.endpoint_api.InvokerError.serializeBinaryToWriter + common_pb.Error.serializeBinaryToWriter ); } }; @@ -2369,17 +1774,17 @@ proto.endpoint_api.ProbeResponse.prototype.hasData = function() { /** - * optional InvokerError error = 4; - * @return {?proto.endpoint_api.InvokerError} + * optional Error error = 4; + * @return {?proto.Error} */ proto.endpoint_api.ProbeResponse.prototype.getError = function() { - return /** @type{?proto.endpoint_api.InvokerError} */ ( - jspb.Message.getWrapperField(this, proto.endpoint_api.InvokerError, 4)); + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {?proto.endpoint_api.InvokerError|undefined} value + * @param {?proto.Error|undefined} value * @return {!proto.endpoint_api.ProbeResponse} returns this */ proto.endpoint_api.ProbeResponse.prototype.setError = function(value) { diff --git a/src/clients/protos/knowledge-api_pb.d.ts b/src/clients/protos/knowledge-api_pb.d.ts index 4b34226..1762052 100644 --- a/src/clients/protos/knowledge-api_pb.d.ts +++ b/src/clients/protos/knowledge-api_pb.d.ts @@ -13,9 +13,6 @@ export class CreateKnowledgeRequest extends jspb.Message { getDescription(): string; setDescription(value: string): void; - getEmbeddingprovidermodelid(): string; - setEmbeddingprovidermodelid(value: string): void; - clearTagsList(): void; getTagsList(): Array; setTagsList(value: Array): void; @@ -24,8 +21,16 @@ export class CreateKnowledgeRequest extends jspb.Message { getVisibility(): string; setVisibility(value: string): void; - getEmbeddingproviderid(): string; - setEmbeddingproviderid(value: string): void; + getEmbeddingmodelproviderid(): string; + setEmbeddingmodelproviderid(value: string): void; + + getEmbeddingmodelprovidername(): string; + setEmbeddingmodelprovidername(value: string): void; + + clearKnowledgeembeddingmodeloptionsList(): void; + getKnowledgeembeddingmodeloptionsList(): Array; + setKnowledgeembeddingmodeloptionsList(value: Array): void; + addKnowledgeembeddingmodeloptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreateKnowledgeRequest.AsObject; @@ -41,10 +46,11 @@ export namespace CreateKnowledgeRequest { export type AsObject = { name: string, description: string, - embeddingprovidermodelid: string, tagsList: Array, visibility: string, - embeddingproviderid: string, + embeddingmodelproviderid: string, + embeddingmodelprovidername: string, + knowledgeembeddingmodeloptionsList: Array, } } diff --git a/src/clients/protos/knowledge-api_pb.js b/src/clients/protos/knowledge-api_pb.js index 99f84cc..af291dc 100644 --- a/src/clients/protos/knowledge-api_pb.js +++ b/src/clients/protos/knowledge-api_pb.js @@ -475,7 +475,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.knowledge_api.CreateKnowledgeRequest.repeatedFields_ = [4]; +proto.knowledge_api.CreateKnowledgeRequest.repeatedFields_ = [4,8]; @@ -510,10 +510,12 @@ proto.knowledge_api.CreateKnowledgeRequest.toObject = function(includeInstance, var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), description: jspb.Message.getFieldWithDefault(msg, 2, ""), - embeddingprovidermodelid: jspb.Message.getFieldWithDefault(msg, 3, "0"), tagsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, visibility: jspb.Message.getFieldWithDefault(msg, 5, ""), - embeddingproviderid: jspb.Message.getFieldWithDefault(msg, 6, "0") + embeddingmodelproviderid: jspb.Message.getFieldWithDefault(msg, 6, "0"), + embeddingmodelprovidername: jspb.Message.getFieldWithDefault(msg, 7, ""), + knowledgeembeddingmodeloptionsList: jspb.Message.toObjectList(msg.getKnowledgeembeddingmodeloptionsList(), + common_pb.Metadata.toObject, includeInstance) }; if (includeInstance) { @@ -558,10 +560,6 @@ proto.knowledge_api.CreateKnowledgeRequest.deserializeBinaryFromReader = functio var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEmbeddingprovidermodelid(value); - break; case 4: var value = /** @type {string} */ (reader.readString()); msg.addTags(value); @@ -572,7 +570,16 @@ proto.knowledge_api.CreateKnowledgeRequest.deserializeBinaryFromReader = functio break; case 6: var value = /** @type {string} */ (reader.readUint64String()); - msg.setEmbeddingproviderid(value); + msg.setEmbeddingmodelproviderid(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setEmbeddingmodelprovidername(value); + break; + case 8: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addKnowledgeembeddingmodeloptions(value); break; default: reader.skipField(); @@ -617,13 +624,6 @@ proto.knowledge_api.CreateKnowledgeRequest.serializeBinaryToWriter = function(me f ); } - f = message.getEmbeddingprovidermodelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } f = message.getTagsList(); if (f.length > 0) { writer.writeRepeatedString( @@ -638,13 +638,28 @@ proto.knowledge_api.CreateKnowledgeRequest.serializeBinaryToWriter = function(me f ); } - f = message.getEmbeddingproviderid(); + f = message.getEmbeddingmodelproviderid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 6, f ); } + f = message.getEmbeddingmodelprovidername(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getKnowledgeembeddingmodeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } }; @@ -684,24 +699,6 @@ proto.knowledge_api.CreateKnowledgeRequest.prototype.setDescription = function(v }; -/** - * optional uint64 embeddingProviderModelId = 3; - * @return {string} - */ -proto.knowledge_api.CreateKnowledgeRequest.prototype.getEmbeddingprovidermodelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.knowledge_api.CreateKnowledgeRequest} returns this - */ -proto.knowledge_api.CreateKnowledgeRequest.prototype.setEmbeddingprovidermodelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - /** * repeated string tags = 4; * @return {!Array} @@ -758,10 +755,10 @@ proto.knowledge_api.CreateKnowledgeRequest.prototype.setVisibility = function(va /** - * optional uint64 embeddingProviderId = 6; + * optional uint64 embeddingModelProviderId = 6; * @return {string} */ -proto.knowledge_api.CreateKnowledgeRequest.prototype.getEmbeddingproviderid = function() { +proto.knowledge_api.CreateKnowledgeRequest.prototype.getEmbeddingmodelproviderid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; @@ -770,11 +767,67 @@ proto.knowledge_api.CreateKnowledgeRequest.prototype.getEmbeddingproviderid = fu * @param {string} value * @return {!proto.knowledge_api.CreateKnowledgeRequest} returns this */ -proto.knowledge_api.CreateKnowledgeRequest.prototype.setEmbeddingproviderid = function(value) { +proto.knowledge_api.CreateKnowledgeRequest.prototype.setEmbeddingmodelproviderid = function(value) { return jspb.Message.setProto3StringIntField(this, 6, value); }; +/** + * optional string embeddingModelProviderName = 7; + * @return {string} + */ +proto.knowledge_api.CreateKnowledgeRequest.prototype.getEmbeddingmodelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.knowledge_api.CreateKnowledgeRequest} returns this + */ +proto.knowledge_api.CreateKnowledgeRequest.prototype.setEmbeddingmodelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * repeated Metadata knowledgeEmbeddingModelOptions = 8; + * @return {!Array} + */ +proto.knowledge_api.CreateKnowledgeRequest.prototype.getKnowledgeembeddingmodeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.knowledge_api.CreateKnowledgeRequest} returns this +*/ +proto.knowledge_api.CreateKnowledgeRequest.prototype.setKnowledgeembeddingmodeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.knowledge_api.CreateKnowledgeRequest.prototype.addKnowledgeembeddingmodeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.knowledge_api.CreateKnowledgeRequest} returns this + */ +proto.knowledge_api.CreateKnowledgeRequest.prototype.clearKnowledgeembeddingmodeloptionsList = function() { + return this.setKnowledgeembeddingmodeloptionsList([]); +}; + + diff --git a/src/clients/protos/marketplace-api_grpc_pb.d.ts b/src/clients/protos/marketplace-api_grpc_pb.d.ts new file mode 100644 index 0000000..751efd3 --- /dev/null +++ b/src/clients/protos/marketplace-api_grpc_pb.d.ts @@ -0,0 +1,24 @@ +// GENERATED CODE -- DO NOT EDIT! + +// package: marketplace_api +// file: marketplace-api.proto + +import * as marketplace_api_pb from "./marketplace-api_pb"; +import * as grpc from "grpc"; + +interface IMarketplaceServiceService extends grpc.ServiceDefinition { + getAllDeployment: grpc.MethodDefinition; +} + +export const MarketplaceServiceService: IMarketplaceServiceService; + +export interface IMarketplaceServiceServer extends grpc.UntypedServiceImplementation { + getAllDeployment: grpc.handleUnaryCall; +} + +export class MarketplaceServiceClient extends grpc.Client { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + getAllDeployment(argument: marketplace_api_pb.GetAllDeploymentRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllDeployment(argument: marketplace_api_pb.GetAllDeploymentRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getAllDeployment(argument: marketplace_api_pb.GetAllDeploymentRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; +} diff --git a/src/clients/protos/marketplace-api_grpc_pb.js b/src/clients/protos/marketplace-api_grpc_pb.js new file mode 100644 index 0000000..3e91877 --- /dev/null +++ b/src/clients/protos/marketplace-api_grpc_pb.js @@ -0,0 +1,47 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var marketplace$api_pb = require('./marketplace-api_pb.js'); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +var common_pb = require('./common_pb.js'); + +function serialize_marketplace_api_GetAllDeploymentRequest(arg) { + if (!(arg instanceof marketplace$api_pb.GetAllDeploymentRequest)) { + throw new Error('Expected argument of type marketplace_api.GetAllDeploymentRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_marketplace_api_GetAllDeploymentRequest(buffer_arg) { + return marketplace$api_pb.GetAllDeploymentRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_marketplace_api_GetAllDeploymentResponse(arg) { + if (!(arg instanceof marketplace$api_pb.GetAllDeploymentResponse)) { + throw new Error('Expected argument of type marketplace_api.GetAllDeploymentResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_marketplace_api_GetAllDeploymentResponse(buffer_arg) { + return marketplace$api_pb.GetAllDeploymentResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var MarketplaceServiceService = exports.MarketplaceServiceService = { + getAllDeployment: { + path: '/marketplace_api.MarketplaceService/GetAllDeployment', + requestStream: false, + responseStream: false, + requestType: marketplace$api_pb.GetAllDeploymentRequest, + responseType: marketplace$api_pb.GetAllDeploymentResponse, + requestSerialize: serialize_marketplace_api_GetAllDeploymentRequest, + requestDeserialize: deserialize_marketplace_api_GetAllDeploymentRequest, + responseSerialize: serialize_marketplace_api_GetAllDeploymentResponse, + responseDeserialize: deserialize_marketplace_api_GetAllDeploymentResponse, + }, +}; + +exports.MarketplaceServiceClient = grpc.makeGenericClientConstructor(MarketplaceServiceService, 'MarketplaceService'); diff --git a/src/clients/protos/marketplace-api_pb.d.ts b/src/clients/protos/marketplace-api_pb.d.ts new file mode 100644 index 0000000..ebca6b8 --- /dev/null +++ b/src/clients/protos/marketplace-api_pb.d.ts @@ -0,0 +1,180 @@ +// package: marketplace_api +// file: marketplace-api.proto + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +import * as common_pb from "./common_pb"; + +export class GetAllDeploymentRequest extends jspb.Message { + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; + + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllDeploymentRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllDeploymentRequest): GetAllDeploymentRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllDeploymentRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllDeploymentRequest; + static deserializeBinaryFromReader(message: GetAllDeploymentRequest, reader: jspb.BinaryReader): GetAllDeploymentRequest; +} + +export namespace GetAllDeploymentRequest { + export type AsObject = { + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, + } +} + +export class SearchableDeployment extends jspb.Message { + getId(): string; + setId(value: string): void; + + getStatus(): string; + setStatus(value: string): void; + + getVisibility(): string; + setVisibility(value: string): void; + + getType(): string; + setType(value: string): void; + + getProjectid(): string; + setProjectid(value: string): void; + + getOrganizationid(): string; + setOrganizationid(value: string): void; + + clearTagList(): void; + getTagList(): Array; + setTagList(value: Array): void; + addTag(value: string, index?: number): string; + + getLanguage(): string; + setLanguage(value: string): void; + + hasOrganization(): boolean; + clearOrganization(): void; + getOrganization(): common_pb.Organization | undefined; + setOrganization(value?: common_pb.Organization): void; + + getName(): string; + setName(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + hasCreateddate(): boolean; + clearCreateddate(): void; + getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasUpdateddate(): boolean; + clearUpdateddate(): void; + getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasAppappearance(): boolean; + clearAppappearance(): void; + getAppappearance(): google_protobuf_struct_pb.Struct | undefined; + setAppappearance(value?: google_protobuf_struct_pb.Struct): void; + + hasWebappearance(): boolean; + clearWebappearance(): void; + getWebappearance(): google_protobuf_struct_pb.Struct | undefined; + setWebappearance(value?: google_protobuf_struct_pb.Struct): void; + + getModelproviderid(): string; + setModelproviderid(value: string): void; + + getModelprovidername(): string; + setModelprovidername(value: string): void; + + clearModeloptionsList(): void; + getModeloptionsList(): Array; + setModeloptionsList(value: Array): void; + addModeloptions(value?: common_pb.Metadata, index?: number): common_pb.Metadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SearchableDeployment.AsObject; + static toObject(includeInstance: boolean, msg: SearchableDeployment): SearchableDeployment.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SearchableDeployment, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SearchableDeployment; + static deserializeBinaryFromReader(message: SearchableDeployment, reader: jspb.BinaryReader): SearchableDeployment; +} + +export namespace SearchableDeployment { + export type AsObject = { + id: string, + status: string, + visibility: string, + type: string, + projectid: string, + organizationid: string, + tagList: Array, + language: string, + organization?: common_pb.Organization.AsObject, + name: string, + description: string, + createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + appappearance?: google_protobuf_struct_pb.Struct.AsObject, + webappearance?: google_protobuf_struct_pb.Struct.AsObject, + modelproviderid: string, + modelprovidername: string, + modeloptionsList: Array, + } +} + +export class GetAllDeploymentResponse extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getSuccess(): boolean; + setSuccess(value: boolean): void; + + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: SearchableDeployment, index?: number): SearchableDeployment; + + hasError(): boolean; + clearError(): void; + getError(): common_pb.Error | undefined; + setError(value?: common_pb.Error): void; + + hasPaginated(): boolean; + clearPaginated(): void; + getPaginated(): common_pb.Paginated | undefined; + setPaginated(value?: common_pb.Paginated): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAllDeploymentResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetAllDeploymentResponse): GetAllDeploymentResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAllDeploymentResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllDeploymentResponse; + static deserializeBinaryFromReader(message: GetAllDeploymentResponse, reader: jspb.BinaryReader): GetAllDeploymentResponse; +} + +export namespace GetAllDeploymentResponse { + export type AsObject = { + code: number, + success: boolean, + dataList: Array, + error?: common_pb.Error.AsObject, + paginated?: common_pb.Paginated.AsObject, + } +} + diff --git a/src/clients/protos/marketplace-api_pb.js b/src/clients/protos/marketplace-api_pb.js new file mode 100644 index 0000000..daaf134 --- /dev/null +++ b/src/clients/protos/marketplace-api_pb.js @@ -0,0 +1,1423 @@ +// source: marketplace-api.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @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! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +var common_pb = require('./common_pb.js'); +goog.object.extend(proto, common_pb); +goog.exportSymbol('proto.marketplace_api.GetAllDeploymentRequest', null, global); +goog.exportSymbol('proto.marketplace_api.GetAllDeploymentResponse', null, global); +goog.exportSymbol('proto.marketplace_api.SearchableDeployment', 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.marketplace_api.GetAllDeploymentRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.marketplace_api.GetAllDeploymentRequest.repeatedFields_, null); +}; +goog.inherits(proto.marketplace_api.GetAllDeploymentRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.marketplace_api.GetAllDeploymentRequest.displayName = 'proto.marketplace_api.GetAllDeploymentRequest'; +} +/** + * 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.marketplace_api.SearchableDeployment = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.marketplace_api.SearchableDeployment.repeatedFields_, null); +}; +goog.inherits(proto.marketplace_api.SearchableDeployment, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.marketplace_api.SearchableDeployment.displayName = 'proto.marketplace_api.SearchableDeployment'; +} +/** + * 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.marketplace_api.GetAllDeploymentResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.marketplace_api.GetAllDeploymentResponse.repeatedFields_, null); +}; +goog.inherits(proto.marketplace_api.GetAllDeploymentResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.marketplace_api.GetAllDeploymentResponse.displayName = 'proto.marketplace_api.GetAllDeploymentResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.marketplace_api.GetAllDeploymentRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.toObject = function(opt_includeInstance) { + return proto.marketplace_api.GetAllDeploymentRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.marketplace_api.GetAllDeploymentRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.marketplace_api.GetAllDeploymentRequest.toObject = function(includeInstance, msg) { + var f, obj = { + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.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.marketplace_api.GetAllDeploymentRequest} + */ +proto.marketplace_api.GetAllDeploymentRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.marketplace_api.GetAllDeploymentRequest; + return proto.marketplace_api.GetAllDeploymentRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.marketplace_api.GetAllDeploymentRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.marketplace_api.GetAllDeploymentRequest} + */ +proto.marketplace_api.GetAllDeploymentRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); + break; + case 2: + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.marketplace_api.GetAllDeploymentRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.marketplace_api.GetAllDeploymentRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.marketplace_api.GetAllDeploymentRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPaginate(); + if (f != null) { + writer.writeMessage( + 1, + f, + common_pb.Paginate.serializeBinaryToWriter + ); + } + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + common_pb.Criteria.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Paginate paginate = 1; + * @return {?proto.Paginate} + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +}; + + +/** + * @param {?proto.Paginate|undefined} value + * @return {!proto.marketplace_api.GetAllDeploymentRequest} returns this +*/ +proto.marketplace_api.GetAllDeploymentRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.GetAllDeploymentRequest} returns this + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Criteria criterias = 2; + * @return {!Array} + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.marketplace_api.GetAllDeploymentRequest} returns this +*/ +proto.marketplace_api.GetAllDeploymentRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.marketplace_api.GetAllDeploymentRequest} returns this + */ +proto.marketplace_api.GetAllDeploymentRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.marketplace_api.SearchableDeployment.repeatedFields_ = [14,12]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.marketplace_api.SearchableDeployment.prototype.toObject = function(opt_includeInstance) { + return proto.marketplace_api.SearchableDeployment.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.marketplace_api.SearchableDeployment} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.marketplace_api.SearchableDeployment.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: jspb.Message.getFieldWithDefault(msg, 2, ""), + visibility: jspb.Message.getFieldWithDefault(msg, 3, ""), + type: jspb.Message.getFieldWithDefault(msg, 4, ""), + projectid: jspb.Message.getFieldWithDefault(msg, 7, ""), + organizationid: jspb.Message.getFieldWithDefault(msg, 8, ""), + tagList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f, + language: jspb.Message.getFieldWithDefault(msg, 16, ""), + organization: (f = msg.getOrganization()) && common_pb.Organization.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 18, ""), + description: jspb.Message.getFieldWithDefault(msg, 19, ""), + createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + appappearance: (f = msg.getAppappearance()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + webappearance: (f = msg.getWebappearance()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + modelproviderid: jspb.Message.getFieldWithDefault(msg, 26, "0"), + modelprovidername: jspb.Message.getFieldWithDefault(msg, 27, ""), + modeloptionsList: jspb.Message.toObjectList(msg.getModeloptionsList(), + common_pb.Metadata.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.marketplace_api.SearchableDeployment} + */ +proto.marketplace_api.SearchableDeployment.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.marketplace_api.SearchableDeployment; + return proto.marketplace_api.SearchableDeployment.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.marketplace_api.SearchableDeployment} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.marketplace_api.SearchableDeployment} + */ +proto.marketplace_api.SearchableDeployment.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.setStatus(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVisibility(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setProjectid(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setOrganizationid(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.addTag(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 17: + var value = new common_pb.Organization; + reader.readMessage(value,common_pb.Organization.deserializeBinaryFromReader); + msg.setOrganization(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 20: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreateddate(value); + break; + case 21: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdateddate(value); + break; + case 24: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setAppappearance(value); + break; + case 25: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setWebappearance(value); + break; + case 26: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setModelproviderid(value); + break; + case 27: + var value = /** @type {string} */ (reader.readString()); + msg.setModelprovidername(value); + break; + case 12: + var value = new common_pb.Metadata; + reader.readMessage(value,common_pb.Metadata.deserializeBinaryFromReader); + msg.addModeloptions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.marketplace_api.SearchableDeployment.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.marketplace_api.SearchableDeployment.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.marketplace_api.SearchableDeployment} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.marketplace_api.SearchableDeployment.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVisibility(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getProjectid(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getOrganizationid(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getTagList(); + if (f.length > 0) { + writer.writeRepeatedString( + 14, + f + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getOrganization(); + if (f != null) { + writer.writeMessage( + 17, + f, + common_pb.Organization.serializeBinaryToWriter + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 19, + f + ); + } + f = message.getCreateddate(); + if (f != null) { + writer.writeMessage( + 20, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdateddate(); + if (f != null) { + writer.writeMessage( + 21, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAppappearance(); + if (f != null) { + writer.writeMessage( + 24, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getWebappearance(); + if (f != null) { + writer.writeMessage( + 25, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getModelproviderid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 26, + f + ); + } + f = message.getModelprovidername(); + if (f.length > 0) { + writer.writeString( + 27, + f + ); + } + f = message.getModeloptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + common_pb.Metadata.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string status = 2; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string visibility = 3; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getVisibility = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setVisibility = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string type = 4; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string projectId = 7; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getProjectid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setProjectid = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string organizationId = 8; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getOrganizationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setOrganizationid = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * repeated string tag = 14; + * @return {!Array} + */ +proto.marketplace_api.SearchableDeployment.prototype.getTagList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setTagList = function(value) { + return jspb.Message.setField(this, 14, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.addTag = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearTagList = function() { + return this.setTagList([]); +}; + + +/** + * optional string language = 16; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional Organization organization = 17; + * @return {?proto.Organization} + */ +proto.marketplace_api.SearchableDeployment.prototype.getOrganization = function() { + return /** @type{?proto.Organization} */ ( + jspb.Message.getWrapperField(this, common_pb.Organization, 17)); +}; + + +/** + * @param {?proto.Organization|undefined} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this +*/ +proto.marketplace_api.SearchableDeployment.prototype.setOrganization = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearOrganization = function() { + return this.setOrganization(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.SearchableDeployment.prototype.hasOrganization = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional string name = 18; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); +}; + + +/** + * optional string description = 19; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); +}; + + +/** + * optional google.protobuf.Timestamp createdDate = 20; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.marketplace_api.SearchableDeployment.prototype.getCreateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 20)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this +*/ +proto.marketplace_api.SearchableDeployment.prototype.setCreateddate = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearCreateddate = function() { + return this.setCreateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.SearchableDeployment.prototype.hasCreateddate = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional google.protobuf.Timestamp updatedDate = 21; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.marketplace_api.SearchableDeployment.prototype.getUpdateddate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 21)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this +*/ +proto.marketplace_api.SearchableDeployment.prototype.setUpdateddate = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearUpdateddate = function() { + return this.setUpdateddate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.SearchableDeployment.prototype.hasUpdateddate = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional google.protobuf.Struct appAppearance = 24; + * @return {?proto.google.protobuf.Struct} + */ +proto.marketplace_api.SearchableDeployment.prototype.getAppappearance = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this +*/ +proto.marketplace_api.SearchableDeployment.prototype.setAppappearance = function(value) { + return jspb.Message.setWrapperField(this, 24, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearAppappearance = function() { + return this.setAppappearance(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.SearchableDeployment.prototype.hasAppappearance = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional google.protobuf.Struct webAppearance = 25; + * @return {?proto.google.protobuf.Struct} + */ +proto.marketplace_api.SearchableDeployment.prototype.getWebappearance = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 25)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this +*/ +proto.marketplace_api.SearchableDeployment.prototype.setWebappearance = function(value) { + return jspb.Message.setWrapperField(this, 25, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearWebappearance = function() { + return this.setWebappearance(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.SearchableDeployment.prototype.hasWebappearance = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional uint64 modelProviderId = 26; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getModelproviderid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setModelproviderid = function(value) { + return jspb.Message.setProto3StringIntField(this, 26, value); +}; + + +/** + * optional string modelProviderName = 27; + * @return {string} + */ +proto.marketplace_api.SearchableDeployment.prototype.getModelprovidername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, "")); +}; + + +/** + * @param {string} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.setModelprovidername = function(value) { + return jspb.Message.setProto3StringField(this, 27, value); +}; + + +/** + * repeated Metadata modelOptions = 12; + * @return {!Array} + */ +proto.marketplace_api.SearchableDeployment.prototype.getModeloptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Metadata, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.marketplace_api.SearchableDeployment} returns this +*/ +proto.marketplace_api.SearchableDeployment.prototype.setModeloptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.Metadata} + */ +proto.marketplace_api.SearchableDeployment.prototype.addModeloptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.marketplace_api.SearchableDeployment} returns this + */ +proto.marketplace_api.SearchableDeployment.prototype.clearModeloptionsList = function() { + return this.setModeloptionsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.marketplace_api.GetAllDeploymentResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.toObject = function(opt_includeInstance) { + return proto.marketplace_api.GetAllDeploymentResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.marketplace_api.GetAllDeploymentResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.marketplace_api.GetAllDeploymentResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.marketplace_api.SearchableDeployment.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.marketplace_api.GetAllDeploymentResponse} + */ +proto.marketplace_api.GetAllDeploymentResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.marketplace_api.GetAllDeploymentResponse; + return proto.marketplace_api.GetAllDeploymentResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.marketplace_api.GetAllDeploymentResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.marketplace_api.GetAllDeploymentResponse} + */ +proto.marketplace_api.GetAllDeploymentResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 3: + var value = new proto.marketplace_api.SearchableDeployment; + reader.readMessage(value,proto.marketplace_api.SearchableDeployment.deserializeBinaryFromReader); + msg.addData(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.marketplace_api.GetAllDeploymentResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.marketplace_api.GetAllDeploymentResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.marketplace_api.GetAllDeploymentResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.marketplace_api.SearchableDeployment.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated SearchableDeployment data = 3; + * @return {!Array} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.marketplace_api.SearchableDeployment, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this +*/ +proto.marketplace_api.GetAllDeploymentResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.marketplace_api.SearchableDeployment=} opt_value + * @param {number=} opt_index + * @return {!proto.marketplace_api.SearchableDeployment} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.marketplace_api.SearchableDeployment, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this +*/ +proto.marketplace_api.GetAllDeploymentResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Paginated paginated = 5; + * @return {?proto.Paginated} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); +}; + + +/** + * @param {?proto.Paginated|undefined} value + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this +*/ +proto.marketplace_api.GetAllDeploymentResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.marketplace_api.GetAllDeploymentResponse} returns this + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.marketplace_api.GetAllDeploymentResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +goog.object.extend(exports, proto.marketplace_api); diff --git a/src/clients/protos/provider-api_grpc_pb.d.ts b/src/clients/protos/provider-api_grpc_pb.d.ts index b796f46..e4e2a92 100644 --- a/src/clients/protos/provider-api_grpc_pb.d.ts +++ b/src/clients/protos/provider-api_grpc_pb.d.ts @@ -9,8 +9,6 @@ import * as grpc from "grpc"; interface IProviderServiceService extends grpc.ServiceDefinition { getAllToolProvider: grpc.MethodDefinition; getAllModelProvider: grpc.MethodDefinition; - getModel: grpc.MethodDefinition; - getAllModel: grpc.MethodDefinition; } export const ProviderServiceService: IProviderServiceService; @@ -18,8 +16,6 @@ export const ProviderServiceService: IProviderServiceService; export interface IProviderServiceServer extends grpc.UntypedServiceImplementation { getAllToolProvider: grpc.handleUnaryCall; getAllModelProvider: grpc.handleUnaryCall; - getModel: grpc.handleUnaryCall; - getAllModel: grpc.handleUnaryCall; } export class ProviderServiceClient extends grpc.Client { @@ -30,10 +26,4 @@ export class ProviderServiceClient extends grpc.Client { getAllModelProvider(argument: provider_api_pb.GetAllModelProviderRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllModelProvider(argument: provider_api_pb.GetAllModelProviderRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllModelProvider(argument: provider_api_pb.GetAllModelProviderRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getModel(argument: provider_api_pb.GetModelRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getModel(argument: provider_api_pb.GetModelRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getModel(argument: provider_api_pb.GetModelRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllModel(argument: provider_api_pb.GetAllModelRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllModel(argument: provider_api_pb.GetAllModelRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllModel(argument: provider_api_pb.GetAllModelRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } diff --git a/src/clients/protos/provider-api_grpc_pb.js b/src/clients/protos/provider-api_grpc_pb.js index 507e17c..02facc2 100644 --- a/src/clients/protos/provider-api_grpc_pb.js +++ b/src/clients/protos/provider-api_grpc_pb.js @@ -27,28 +27,6 @@ function deserialize_provider_api_GetAllModelProviderResponse(buffer_arg) { return provider$api_pb.GetAllModelProviderResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_provider_api_GetAllModelRequest(arg) { - if (!(arg instanceof provider$api_pb.GetAllModelRequest)) { - throw new Error('Expected argument of type provider_api.GetAllModelRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_provider_api_GetAllModelRequest(buffer_arg) { - return provider$api_pb.GetAllModelRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_provider_api_GetAllModelResponse(arg) { - if (!(arg instanceof provider$api_pb.GetAllModelResponse)) { - throw new Error('Expected argument of type provider_api.GetAllModelResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_provider_api_GetAllModelResponse(buffer_arg) { - return provider$api_pb.GetAllModelResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_provider_api_GetAllToolProviderRequest(arg) { if (!(arg instanceof provider$api_pb.GetAllToolProviderRequest)) { throw new Error('Expected argument of type provider_api.GetAllToolProviderRequest'); @@ -71,28 +49,6 @@ function deserialize_provider_api_GetAllToolProviderResponse(buffer_arg) { return provider$api_pb.GetAllToolProviderResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_provider_api_GetModelRequest(arg) { - if (!(arg instanceof provider$api_pb.GetModelRequest)) { - throw new Error('Expected argument of type provider_api.GetModelRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_provider_api_GetModelRequest(buffer_arg) { - return provider$api_pb.GetModelRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_provider_api_GetModelResponse(arg) { - if (!(arg instanceof provider$api_pb.GetModelResponse)) { - throw new Error('Expected argument of type provider_api.GetModelResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_provider_api_GetModelResponse(buffer_arg) { - return provider$api_pb.GetModelResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - var ProviderServiceService = exports.ProviderServiceService = { getAllToolProvider: { @@ -117,28 +73,6 @@ var ProviderServiceService = exports.ProviderServiceService = { responseSerialize: serialize_provider_api_GetAllModelProviderResponse, responseDeserialize: deserialize_provider_api_GetAllModelProviderResponse, }, - getModel: { - path: '/provider_api.ProviderService/GetModel', - requestStream: false, - responseStream: false, - requestType: provider$api_pb.GetModelRequest, - responseType: provider$api_pb.GetModelResponse, - requestSerialize: serialize_provider_api_GetModelRequest, - requestDeserialize: deserialize_provider_api_GetModelRequest, - responseSerialize: serialize_provider_api_GetModelResponse, - responseDeserialize: deserialize_provider_api_GetModelResponse, - }, - getAllModel: { - path: '/provider_api.ProviderService/GetAllModel', - requestStream: false, - responseStream: false, - requestType: provider$api_pb.GetAllModelRequest, - responseType: provider$api_pb.GetAllModelResponse, - requestSerialize: serialize_provider_api_GetAllModelRequest, - requestDeserialize: deserialize_provider_api_GetAllModelRequest, - responseSerialize: serialize_provider_api_GetAllModelResponse, - responseDeserialize: deserialize_provider_api_GetAllModelResponse, - }, }; exports.ProviderServiceClient = grpc.makeGenericClientConstructor(ProviderServiceService, 'ProviderService'); diff --git a/src/clients/protos/provider-api_pb.d.ts b/src/clients/protos/provider-api_pb.d.ts index 9ccba4a..9812bb1 100644 --- a/src/clients/protos/provider-api_pb.d.ts +++ b/src/clients/protos/provider-api_pb.d.ts @@ -4,108 +4,6 @@ import * as jspb from "google-protobuf"; import * as common_pb from "./common_pb"; -export class GetAllModelRequest extends jspb.Message { - clearCriteriasList(): void; - getCriteriasList(): Array; - setCriteriasList(value: Array): void; - addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllModelRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllModelRequest): GetAllModelRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllModelRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllModelRequest; - static deserializeBinaryFromReader(message: GetAllModelRequest, reader: jspb.BinaryReader): GetAllModelRequest; -} - -export namespace GetAllModelRequest { - export type AsObject = { - criteriasList: Array, - } -} - -export class GetAllModelResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: common_pb.ProviderModel, index?: number): common_pb.ProviderModel; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllModelResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllModelResponse): GetAllModelResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllModelResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllModelResponse; - static deserializeBinaryFromReader(message: GetAllModelResponse, reader: jspb.BinaryReader): GetAllModelResponse; -} - -export namespace GetAllModelResponse { - export type AsObject = { - code: number, - success: boolean, - dataList: Array, - } -} - -export class GetModelRequest extends jspb.Message { - getModelid(): string; - setModelid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetModelRequest): GetModelRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelRequest; - static deserializeBinaryFromReader(message: GetModelRequest, reader: jspb.BinaryReader): GetModelRequest; -} - -export namespace GetModelRequest { - export type AsObject = { - modelid: string, - } -} - -export class GetModelResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): common_pb.ProviderModel | undefined; - setData(value?: common_pb.ProviderModel): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetModelResponse): GetModelResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelResponse; - static deserializeBinaryFromReader(message: GetModelResponse, reader: jspb.BinaryReader): GetModelResponse; -} - -export namespace GetModelResponse { - export type AsObject = { - code: number, - success: boolean, - data?: common_pb.ProviderModel.AsObject, - } -} - export class GetAllModelProviderRequest extends jspb.Message { hasPaginate(): boolean; clearPaginate(): void; diff --git a/src/clients/protos/provider-api_pb.js b/src/clients/protos/provider-api_pb.js index 134cb9e..c8db34f 100644 --- a/src/clients/protos/provider-api_pb.js +++ b/src/clients/protos/provider-api_pb.js @@ -25,97 +25,9 @@ var common_pb = require('./common_pb.js'); goog.object.extend(proto, common_pb); goog.exportSymbol('proto.provider_api.GetAllModelProviderRequest', null, global); goog.exportSymbol('proto.provider_api.GetAllModelProviderResponse', null, global); -goog.exportSymbol('proto.provider_api.GetAllModelRequest', null, global); -goog.exportSymbol('proto.provider_api.GetAllModelResponse', null, global); goog.exportSymbol('proto.provider_api.GetAllToolProviderRequest', null, global); goog.exportSymbol('proto.provider_api.GetAllToolProviderResponse', null, global); -goog.exportSymbol('proto.provider_api.GetModelRequest', null, global); -goog.exportSymbol('proto.provider_api.GetModelResponse', null, global); goog.exportSymbol('proto.provider_api.ToolProvider', 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.provider_api.GetAllModelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.provider_api.GetAllModelRequest.repeatedFields_, null); -}; -goog.inherits(proto.provider_api.GetAllModelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.provider_api.GetAllModelRequest.displayName = 'proto.provider_api.GetAllModelRequest'; -} -/** - * 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.provider_api.GetAllModelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.provider_api.GetAllModelResponse.repeatedFields_, null); -}; -goog.inherits(proto.provider_api.GetAllModelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.provider_api.GetAllModelResponse.displayName = 'proto.provider_api.GetAllModelResponse'; -} -/** - * 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.provider_api.GetModelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.provider_api.GetModelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.provider_api.GetModelRequest.displayName = 'proto.provider_api.GetModelRequest'; -} -/** - * 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.provider_api.GetModelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.provider_api.GetModelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.provider_api.GetModelResponse.displayName = 'proto.provider_api.GetModelResponse'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -222,727 +134,6 @@ if (goog.DEBUG && !COMPILED) { proto.provider_api.GetAllToolProviderResponse.displayName = 'proto.provider_api.GetAllToolProviderResponse'; } -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.provider_api.GetAllModelRequest.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.provider_api.GetAllModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.provider_api.GetAllModelRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.provider_api.GetAllModelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetAllModelRequest.toObject = function(includeInstance, msg) { - var f, obj = { - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.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.provider_api.GetAllModelRequest} - */ -proto.provider_api.GetAllModelRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.provider_api.GetAllModelRequest; - return proto.provider_api.GetAllModelRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.provider_api.GetAllModelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.provider_api.GetAllModelRequest} - */ -proto.provider_api.GetAllModelRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.provider_api.GetAllModelRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.provider_api.GetAllModelRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.provider_api.GetAllModelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetAllModelRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - common_pb.Criteria.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Criteria criterias = 1; - * @return {!Array} - */ -proto.provider_api.GetAllModelRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.provider_api.GetAllModelRequest} returns this -*/ -proto.provider_api.GetAllModelRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} - */ -proto.provider_api.GetAllModelRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Criteria, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.provider_api.GetAllModelRequest} returns this - */ -proto.provider_api.GetAllModelRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.provider_api.GetAllModelResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.provider_api.GetAllModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.provider_api.GetAllModelResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.provider_api.GetAllModelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetAllModelResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - common_pb.ProviderModel.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.provider_api.GetAllModelResponse} - */ -proto.provider_api.GetAllModelResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.provider_api.GetAllModelResponse; - return proto.provider_api.GetAllModelResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.provider_api.GetAllModelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.provider_api.GetAllModelResponse} - */ -proto.provider_api.GetAllModelResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new common_pb.ProviderModel; - reader.readMessage(value,common_pb.ProviderModel.deserializeBinaryFromReader); - msg.addData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.provider_api.GetAllModelResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.provider_api.GetAllModelResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.provider_api.GetAllModelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetAllModelResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - common_pb.ProviderModel.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.provider_api.GetAllModelResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.provider_api.GetAllModelResponse} returns this - */ -proto.provider_api.GetAllModelResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.provider_api.GetAllModelResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.provider_api.GetAllModelResponse} returns this - */ -proto.provider_api.GetAllModelResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated ProviderModel data = 3; - * @return {!Array} - */ -proto.provider_api.GetAllModelResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.ProviderModel, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.provider_api.GetAllModelResponse} returns this -*/ -proto.provider_api.GetAllModelResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.ProviderModel=} opt_value - * @param {number=} opt_index - * @return {!proto.ProviderModel} - */ -proto.provider_api.GetAllModelResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ProviderModel, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.provider_api.GetAllModelResponse} returns this - */ -proto.provider_api.GetAllModelResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.provider_api.GetModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.provider_api.GetModelRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.provider_api.GetModelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetModelRequest.toObject = function(includeInstance, msg) { - var f, obj = { - modelid: jspb.Message.getFieldWithDefault(msg, 1, "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.provider_api.GetModelRequest} - */ -proto.provider_api.GetModelRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.provider_api.GetModelRequest; - return proto.provider_api.GetModelRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.provider_api.GetModelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.provider_api.GetModelRequest} - */ -proto.provider_api.GetModelRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setModelid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.provider_api.GetModelRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.provider_api.GetModelRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.provider_api.GetModelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetModelRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getModelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } -}; - - -/** - * optional uint64 modelId = 1; - * @return {string} - */ -proto.provider_api.GetModelRequest.prototype.getModelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.provider_api.GetModelRequest} returns this - */ -proto.provider_api.GetModelRequest.prototype.setModelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.provider_api.GetModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.provider_api.GetModelResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.provider_api.GetModelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetModelResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && common_pb.ProviderModel.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.provider_api.GetModelResponse} - */ -proto.provider_api.GetModelResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.provider_api.GetModelResponse; - return proto.provider_api.GetModelResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.provider_api.GetModelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.provider_api.GetModelResponse} - */ -proto.provider_api.GetModelResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new common_pb.ProviderModel; - reader.readMessage(value,common_pb.ProviderModel.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.provider_api.GetModelResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.provider_api.GetModelResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.provider_api.GetModelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.provider_api.GetModelResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.ProviderModel.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.provider_api.GetModelResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.provider_api.GetModelResponse} returns this - */ -proto.provider_api.GetModelResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.provider_api.GetModelResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.provider_api.GetModelResponse} returns this - */ -proto.provider_api.GetModelResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional ProviderModel data = 3; - * @return {?proto.ProviderModel} - */ -proto.provider_api.GetModelResponse.prototype.getData = function() { - return /** @type{?proto.ProviderModel} */ ( - jspb.Message.getWrapperField(this, common_pb.ProviderModel, 3)); -}; - - -/** - * @param {?proto.ProviderModel|undefined} value - * @return {!proto.provider_api.GetModelResponse} returns this -*/ -proto.provider_api.GetModelResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.provider_api.GetModelResponse} returns this - */ -proto.provider_api.GetModelResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.provider_api.GetModelResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - /** * List of repeated fields within this message type. * @private {!Array} diff --git a/src/clients/protos/talk-api_grpc_pb.d.ts b/src/clients/protos/talk-api_grpc_pb.d.ts index 2a11b03..43f863e 100644 --- a/src/clients/protos/talk-api_grpc_pb.d.ts +++ b/src/clients/protos/talk-api_grpc_pb.d.ts @@ -8,33 +8,29 @@ import * as common_pb from "./common_pb"; import * as grpc from "grpc"; interface ITalkServiceService extends grpc.ServiceDefinition { - assistantMessaging: grpc.MethodDefinition; assistantTalk: grpc.MethodDefinition; getAllAssistantConversation: grpc.MethodDefinition; getAllConversationMessage: grpc.MethodDefinition; createMessageMetric: grpc.MethodDefinition; createConversationMetric: grpc.MethodDefinition; - initiateAssistantTalk: grpc.MethodDefinition; - initiateBulkAssistantTalk: grpc.MethodDefinition; + createPhoneCall: grpc.MethodDefinition; + createBulkPhoneCall: grpc.MethodDefinition; } export const TalkServiceService: ITalkServiceService; export interface ITalkServiceServer extends grpc.UntypedServiceImplementation { - assistantMessaging: grpc.handleServerStreamingCall; assistantTalk: grpc.handleBidiStreamingCall; getAllAssistantConversation: grpc.handleUnaryCall; getAllConversationMessage: grpc.handleUnaryCall; createMessageMetric: grpc.handleUnaryCall; createConversationMetric: grpc.handleUnaryCall; - initiateAssistantTalk: grpc.handleUnaryCall; - initiateBulkAssistantTalk: grpc.handleUnaryCall; + createPhoneCall: grpc.handleUnaryCall; + createBulkPhoneCall: grpc.handleUnaryCall; } export class TalkServiceClient extends grpc.Client { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - assistantMessaging(argument: talk_api_pb.AssistantMessagingRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - assistantMessaging(argument: talk_api_pb.AssistantMessagingRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; assistantTalk(metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientDuplexStream; assistantTalk(metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientDuplexStream; getAllAssistantConversation(argument: common_pb.GetAllAssistantConversationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; @@ -49,10 +45,10 @@ export class TalkServiceClient extends grpc.Client { createConversationMetric(argument: talk_api_pb.CreateConversationMetricRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; createConversationMetric(argument: talk_api_pb.CreateConversationMetricRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; createConversationMetric(argument: talk_api_pb.CreateConversationMetricRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - initiateAssistantTalk(argument: talk_api_pb.InitiateAssistantTalkRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - initiateAssistantTalk(argument: talk_api_pb.InitiateAssistantTalkRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - initiateAssistantTalk(argument: talk_api_pb.InitiateAssistantTalkRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - initiateBulkAssistantTalk(argument: talk_api_pb.InitiateBulkAssistantTalkRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - initiateBulkAssistantTalk(argument: talk_api_pb.InitiateBulkAssistantTalkRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - initiateBulkAssistantTalk(argument: talk_api_pb.InitiateBulkAssistantTalkRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createPhoneCall(argument: talk_api_pb.CreatePhoneCallRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createPhoneCall(argument: talk_api_pb.CreatePhoneCallRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createPhoneCall(argument: talk_api_pb.CreatePhoneCallRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createBulkPhoneCall(argument: talk_api_pb.CreateBulkPhoneCallRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createBulkPhoneCall(argument: talk_api_pb.CreateBulkPhoneCallRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createBulkPhoneCall(argument: talk_api_pb.CreateBulkPhoneCallRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } diff --git a/src/clients/protos/talk-api_grpc_pb.js b/src/clients/protos/talk-api_grpc_pb.js index c480986..143d1a7 100644 --- a/src/clients/protos/talk-api_grpc_pb.js +++ b/src/clients/protos/talk-api_grpc_pb.js @@ -4,6 +4,7 @@ var grpc = require('@grpc/grpc-js'); var talk$api_pb = require('./talk-api_pb.js'); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); var common_pb = require('./common_pb.js'); function serialize_GetAllAssistantConversationRequest(arg) { @@ -72,6 +73,28 @@ function deserialize_talk_api_AssistantMessagingResponse(buffer_arg) { return talk$api_pb.AssistantMessagingResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_talk_api_CreateBulkPhoneCallRequest(arg) { + if (!(arg instanceof talk$api_pb.CreateBulkPhoneCallRequest)) { + throw new Error('Expected argument of type talk_api.CreateBulkPhoneCallRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_talk_api_CreateBulkPhoneCallRequest(buffer_arg) { + return talk$api_pb.CreateBulkPhoneCallRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_talk_api_CreateBulkPhoneCallResponse(arg) { + if (!(arg instanceof talk$api_pb.CreateBulkPhoneCallResponse)) { + throw new Error('Expected argument of type talk_api.CreateBulkPhoneCallResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_talk_api_CreateBulkPhoneCallResponse(buffer_arg) { + return talk$api_pb.CreateBulkPhoneCallResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_talk_api_CreateConversationMetricRequest(arg) { if (!(arg instanceof talk$api_pb.CreateConversationMetricRequest)) { throw new Error('Expected argument of type talk_api.CreateConversationMetricRequest'); @@ -116,63 +139,30 @@ function deserialize_talk_api_CreateMessageMetricResponse(buffer_arg) { return talk$api_pb.CreateMessageMetricResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_talk_api_InitiateAssistantTalkRequest(arg) { - if (!(arg instanceof talk$api_pb.InitiateAssistantTalkRequest)) { - throw new Error('Expected argument of type talk_api.InitiateAssistantTalkRequest'); +function serialize_talk_api_CreatePhoneCallRequest(arg) { + if (!(arg instanceof talk$api_pb.CreatePhoneCallRequest)) { + throw new Error('Expected argument of type talk_api.CreatePhoneCallRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_talk_api_InitiateAssistantTalkRequest(buffer_arg) { - return talk$api_pb.InitiateAssistantTalkRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_talk_api_CreatePhoneCallRequest(buffer_arg) { + return talk$api_pb.CreatePhoneCallRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_talk_api_InitiateAssistantTalkResponse(arg) { - if (!(arg instanceof talk$api_pb.InitiateAssistantTalkResponse)) { - throw new Error('Expected argument of type talk_api.InitiateAssistantTalkResponse'); +function serialize_talk_api_CreatePhoneCallResponse(arg) { + if (!(arg instanceof talk$api_pb.CreatePhoneCallResponse)) { + throw new Error('Expected argument of type talk_api.CreatePhoneCallResponse'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_talk_api_InitiateAssistantTalkResponse(buffer_arg) { - return talk$api_pb.InitiateAssistantTalkResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_talk_api_InitiateBulkAssistantTalkRequest(arg) { - if (!(arg instanceof talk$api_pb.InitiateBulkAssistantTalkRequest)) { - throw new Error('Expected argument of type talk_api.InitiateBulkAssistantTalkRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_talk_api_InitiateBulkAssistantTalkRequest(buffer_arg) { - return talk$api_pb.InitiateBulkAssistantTalkRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_talk_api_InitiateBulkAssistantTalkResponse(arg) { - if (!(arg instanceof talk$api_pb.InitiateBulkAssistantTalkResponse)) { - throw new Error('Expected argument of type talk_api.InitiateBulkAssistantTalkResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_talk_api_InitiateBulkAssistantTalkResponse(buffer_arg) { - return talk$api_pb.InitiateBulkAssistantTalkResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_talk_api_CreatePhoneCallResponse(buffer_arg) { + return talk$api_pb.CreatePhoneCallResponse.deserializeBinary(new Uint8Array(buffer_arg)); } var TalkServiceService = exports.TalkServiceService = { - assistantMessaging: { - path: '/talk_api.TalkService/AssistantMessaging', - requestStream: false, - responseStream: true, - requestType: talk$api_pb.AssistantMessagingRequest, - responseType: talk$api_pb.AssistantMessagingResponse, - requestSerialize: serialize_talk_api_AssistantMessagingRequest, - requestDeserialize: deserialize_talk_api_AssistantMessagingRequest, - responseSerialize: serialize_talk_api_AssistantMessagingResponse, - responseDeserialize: deserialize_talk_api_AssistantMessagingResponse, - }, assistantTalk: { path: '/talk_api.TalkService/AssistantTalk', requestStream: true, @@ -228,27 +218,28 @@ var TalkServiceService = exports.TalkServiceService = { responseSerialize: serialize_talk_api_CreateConversationMetricResponse, responseDeserialize: deserialize_talk_api_CreateConversationMetricResponse, }, - initiateAssistantTalk: { - path: '/talk_api.TalkService/InitiateAssistantTalk', + // +createPhoneCall: { + path: '/talk_api.TalkService/CreatePhoneCall', requestStream: false, responseStream: false, - requestType: talk$api_pb.InitiateAssistantTalkRequest, - responseType: talk$api_pb.InitiateAssistantTalkResponse, - requestSerialize: serialize_talk_api_InitiateAssistantTalkRequest, - requestDeserialize: deserialize_talk_api_InitiateAssistantTalkRequest, - responseSerialize: serialize_talk_api_InitiateAssistantTalkResponse, - responseDeserialize: deserialize_talk_api_InitiateAssistantTalkResponse, + requestType: talk$api_pb.CreatePhoneCallRequest, + responseType: talk$api_pb.CreatePhoneCallResponse, + requestSerialize: serialize_talk_api_CreatePhoneCallRequest, + requestDeserialize: deserialize_talk_api_CreatePhoneCallRequest, + responseSerialize: serialize_talk_api_CreatePhoneCallResponse, + responseDeserialize: deserialize_talk_api_CreatePhoneCallResponse, }, - initiateBulkAssistantTalk: { - path: '/talk_api.TalkService/InitiateBulkAssistantTalk', + createBulkPhoneCall: { + path: '/talk_api.TalkService/CreateBulkPhoneCall', requestStream: false, responseStream: false, - requestType: talk$api_pb.InitiateBulkAssistantTalkRequest, - responseType: talk$api_pb.InitiateBulkAssistantTalkResponse, - requestSerialize: serialize_talk_api_InitiateBulkAssistantTalkRequest, - requestDeserialize: deserialize_talk_api_InitiateBulkAssistantTalkRequest, - responseSerialize: serialize_talk_api_InitiateBulkAssistantTalkResponse, - responseDeserialize: deserialize_talk_api_InitiateBulkAssistantTalkResponse, + requestType: talk$api_pb.CreateBulkPhoneCallRequest, + responseType: talk$api_pb.CreateBulkPhoneCallResponse, + requestSerialize: serialize_talk_api_CreateBulkPhoneCallRequest, + requestDeserialize: deserialize_talk_api_CreateBulkPhoneCallRequest, + responseSerialize: serialize_talk_api_CreateBulkPhoneCallResponse, + responseDeserialize: deserialize_talk_api_CreateBulkPhoneCallResponse, }, }; diff --git a/src/clients/protos/talk-api_pb.d.ts b/src/clients/protos/talk-api_pb.d.ts index b1d201e..fefddca 100644 --- a/src/clients/protos/talk-api_pb.d.ts +++ b/src/clients/protos/talk-api_pb.d.ts @@ -3,6 +3,7 @@ import * as jspb from "google-protobuf"; import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as common_pb from "./common_pb"; export class AssistantDefinition extends jspb.Message { @@ -76,6 +77,148 @@ export namespace AssistantMessagingRequest { } } +export class AssistantConversationConfiguration extends jspb.Message { + getAssistantconversationid(): string; + setAssistantconversationid(value: string): void; + + hasAssistant(): boolean; + clearAssistant(): void; + getAssistant(): AssistantDefinition | undefined; + setAssistant(value?: AssistantDefinition): void; + + hasTime(): boolean; + clearTime(): void; + getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantConversationConfiguration.AsObject; + static toObject(includeInstance: boolean, msg: AssistantConversationConfiguration): AssistantConversationConfiguration.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantConversationConfiguration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantConversationConfiguration; + static deserializeBinaryFromReader(message: AssistantConversationConfiguration, reader: jspb.BinaryReader): AssistantConversationConfiguration; +} + +export namespace AssistantConversationConfiguration { + export type AsObject = { + assistantconversationid: string, + assistant?: AssistantDefinition.AsObject, + time?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class AssistantConversationInterruption extends jspb.Message { + getId(): string; + setId(value: string): void; + + getType(): AssistantConversationInterruption.InterruptionTypeMap[keyof AssistantConversationInterruption.InterruptionTypeMap]; + setType(value: AssistantConversationInterruption.InterruptionTypeMap[keyof AssistantConversationInterruption.InterruptionTypeMap]): void; + + hasTime(): boolean; + clearTime(): void; + getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantConversationInterruption.AsObject; + static toObject(includeInstance: boolean, msg: AssistantConversationInterruption): AssistantConversationInterruption.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantConversationInterruption, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantConversationInterruption; + static deserializeBinaryFromReader(message: AssistantConversationInterruption, reader: jspb.BinaryReader): AssistantConversationInterruption; +} + +export namespace AssistantConversationInterruption { + export type AsObject = { + id: string, + type: AssistantConversationInterruption.InterruptionTypeMap[keyof AssistantConversationInterruption.InterruptionTypeMap], + time?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } + + export interface InterruptionTypeMap { + INTERRUPTION_TYPE_UNSPECIFIED: 0; + INTERRUPTION_TYPE_VAD: 1; + INTERRUPTION_TYPE_WORD: 2; + } + + export const InterruptionType: InterruptionTypeMap; +} + +export class AssistantConversationUserMessage extends jspb.Message { + hasMessage(): boolean; + clearMessage(): void; + getMessage(): common_pb.Message | undefined; + setMessage(value?: common_pb.Message): void; + + getId(): string; + setId(value: string): void; + + getCompleted(): boolean; + setCompleted(value: boolean): void; + + hasTime(): boolean; + clearTime(): void; + getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantConversationUserMessage.AsObject; + static toObject(includeInstance: boolean, msg: AssistantConversationUserMessage): AssistantConversationUserMessage.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantConversationUserMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantConversationUserMessage; + static deserializeBinaryFromReader(message: AssistantConversationUserMessage, reader: jspb.BinaryReader): AssistantConversationUserMessage; +} + +export namespace AssistantConversationUserMessage { + export type AsObject = { + message?: common_pb.Message.AsObject, + id: string, + completed: boolean, + time?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class AssistantConversationAssistantMessage extends jspb.Message { + hasMessage(): boolean; + clearMessage(): void; + getMessage(): common_pb.Message | undefined; + setMessage(value?: common_pb.Message): void; + + getId(): string; + setId(value: string): void; + + getCompleted(): boolean; + setCompleted(value: boolean): void; + + hasTime(): boolean; + clearTime(): void; + getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssistantConversationAssistantMessage.AsObject; + static toObject(includeInstance: boolean, msg: AssistantConversationAssistantMessage): AssistantConversationAssistantMessage.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssistantConversationAssistantMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssistantConversationAssistantMessage; + static deserializeBinaryFromReader(message: AssistantConversationAssistantMessage, reader: jspb.BinaryReader): AssistantConversationAssistantMessage; +} + +export namespace AssistantConversationAssistantMessage { + export type AsObject = { + message?: common_pb.Message.AsObject, + id: string, + completed: boolean, + time?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + export class AssistantMessagingResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -88,16 +231,31 @@ export class AssistantMessagingResponse extends jspb.Message { getError(): common_pb.Error | undefined; setError(value?: common_pb.Error): void; + hasConfiguration(): boolean; + clearConfiguration(): void; + getConfiguration(): AssistantConversationConfiguration | undefined; + setConfiguration(value?: AssistantConversationConfiguration): void; + + hasInterruption(): boolean; + clearInterruption(): void; + getInterruption(): AssistantConversationInterruption | undefined; + setInterruption(value?: AssistantConversationInterruption): void; + + hasUser(): boolean; + clearUser(): void; + getUser(): AssistantConversationUserMessage | undefined; + setUser(value?: AssistantConversationUserMessage): void; + + hasAssistant(): boolean; + clearAssistant(): void; + getAssistant(): AssistantConversationAssistantMessage | undefined; + setAssistant(value?: AssistantConversationAssistantMessage): void; + hasMessage(): boolean; clearMessage(): void; getMessage(): common_pb.AssistantConversationMessage | undefined; setMessage(value?: common_pb.AssistantConversationMessage): void; - hasEvent(): boolean; - clearEvent(): void; - getEvent(): common_pb.Event | undefined; - setEvent(value?: common_pb.Event): void; - getDataCase(): AssistantMessagingResponse.DataCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AssistantMessagingResponse.AsObject; @@ -114,14 +272,20 @@ export namespace AssistantMessagingResponse { code: number, success: boolean, error?: common_pb.Error.AsObject, + configuration?: AssistantConversationConfiguration.AsObject, + interruption?: AssistantConversationInterruption.AsObject, + user?: AssistantConversationUserMessage.AsObject, + assistant?: AssistantConversationAssistantMessage.AsObject, message?: common_pb.AssistantConversationMessage.AsObject, - event?: common_pb.Event.AsObject, } export enum DataCase { DATA_NOT_SET = 0, - MESSAGE = 3, - EVENT = 5, + CONFIGURATION = 9, + INTERRUPTION = 10, + USER = 11, + ASSISTANT = 12, + MESSAGE = 13, } } @@ -261,67 +425,46 @@ export namespace CreateConversationMetricResponse { } } -export class InitiateAssistantTalkParameter extends jspb.Message { - getItemsMap(): jspb.Map; - clearItemsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitiateAssistantTalkParameter.AsObject; - static toObject(includeInstance: boolean, msg: InitiateAssistantTalkParameter): InitiateAssistantTalkParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InitiateAssistantTalkParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitiateAssistantTalkParameter; - static deserializeBinaryFromReader(message: InitiateAssistantTalkParameter, reader: jspb.BinaryReader): InitiateAssistantTalkParameter; -} - -export namespace InitiateAssistantTalkParameter { - export type AsObject = { - itemsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - } -} - -export class InitiateAssistantTalkRequest extends jspb.Message { +export class CreatePhoneCallRequest extends jspb.Message { hasAssistant(): boolean; clearAssistant(): void; getAssistant(): AssistantDefinition | undefined; setAssistant(value?: AssistantDefinition): void; - getSource(): common_pb.SourceMap[keyof common_pb.SourceMap]; - setSource(value: common_pb.SourceMap[keyof common_pb.SourceMap]): void; - getMetadataMap(): jspb.Map; clearMetadataMap(): void; getArgsMap(): jspb.Map; clearArgsMap(): void; getOptionsMap(): jspb.Map; clearOptionsMap(): void; - hasParams(): boolean; - clearParams(): void; - getParams(): InitiateAssistantTalkParameter | undefined; - setParams(value?: InitiateAssistantTalkParameter): void; + getFromnumber(): string; + setFromnumber(value: string): void; + + getTonumber(): string; + setTonumber(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitiateAssistantTalkRequest.AsObject; - static toObject(includeInstance: boolean, msg: InitiateAssistantTalkRequest): InitiateAssistantTalkRequest.AsObject; + toObject(includeInstance?: boolean): CreatePhoneCallRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreatePhoneCallRequest): CreatePhoneCallRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InitiateAssistantTalkRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitiateAssistantTalkRequest; - static deserializeBinaryFromReader(message: InitiateAssistantTalkRequest, reader: jspb.BinaryReader): InitiateAssistantTalkRequest; + static serializeBinaryToWriter(message: CreatePhoneCallRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreatePhoneCallRequest; + static deserializeBinaryFromReader(message: CreatePhoneCallRequest, reader: jspb.BinaryReader): CreatePhoneCallRequest; } -export namespace InitiateAssistantTalkRequest { +export namespace CreatePhoneCallRequest { export type AsObject = { assistant?: AssistantDefinition.AsObject, - source: common_pb.SourceMap[keyof common_pb.SourceMap], metadataMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, optionsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - params?: InitiateAssistantTalkParameter.AsObject, + fromnumber: string, + tonumber: string, } } -export class InitiateAssistantTalkResponse extends jspb.Message { +export class CreatePhoneCallResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -330,8 +473,8 @@ export class InitiateAssistantTalkResponse extends jspb.Message { hasData(): boolean; clearData(): void; - getData(): InitiateAssistantTalkParameter | undefined; - setData(value?: InitiateAssistantTalkParameter): void; + getData(): common_pb.AssistantConversation | undefined; + setData(value?: common_pb.AssistantConversation): void; hasError(): boolean; clearError(): void; @@ -339,66 +482,47 @@ export class InitiateAssistantTalkResponse extends jspb.Message { setError(value?: common_pb.Error): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitiateAssistantTalkResponse.AsObject; - static toObject(includeInstance: boolean, msg: InitiateAssistantTalkResponse): InitiateAssistantTalkResponse.AsObject; + toObject(includeInstance?: boolean): CreatePhoneCallResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreatePhoneCallResponse): CreatePhoneCallResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InitiateAssistantTalkResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitiateAssistantTalkResponse; - static deserializeBinaryFromReader(message: InitiateAssistantTalkResponse, reader: jspb.BinaryReader): InitiateAssistantTalkResponse; + static serializeBinaryToWriter(message: CreatePhoneCallResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreatePhoneCallResponse; + static deserializeBinaryFromReader(message: CreatePhoneCallResponse, reader: jspb.BinaryReader): CreatePhoneCallResponse; } -export namespace InitiateAssistantTalkResponse { +export namespace CreatePhoneCallResponse { export type AsObject = { code: number, success: boolean, - data?: InitiateAssistantTalkParameter.AsObject, + data?: common_pb.AssistantConversation.AsObject, error?: common_pb.Error.AsObject, } } -export class InitiateBulkAssistantTalkRequest extends jspb.Message { - hasAssistant(): boolean; - clearAssistant(): void; - getAssistant(): AssistantDefinition | undefined; - setAssistant(value?: AssistantDefinition): void; - - getSource(): common_pb.SourceMap[keyof common_pb.SourceMap]; - setSource(value: common_pb.SourceMap[keyof common_pb.SourceMap]): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getArgsMap(): jspb.Map; - clearArgsMap(): void; - getOptionsMap(): jspb.Map; - clearOptionsMap(): void; - clearParamsList(): void; - getParamsList(): Array; - setParamsList(value: Array): void; - addParams(value?: InitiateAssistantTalkParameter, index?: number): InitiateAssistantTalkParameter; +export class CreateBulkPhoneCallRequest extends jspb.Message { + clearPhonecallsList(): void; + getPhonecallsList(): Array; + setPhonecallsList(value: Array): void; + addPhonecalls(value?: CreatePhoneCallRequest, index?: number): CreatePhoneCallRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitiateBulkAssistantTalkRequest.AsObject; - static toObject(includeInstance: boolean, msg: InitiateBulkAssistantTalkRequest): InitiateBulkAssistantTalkRequest.AsObject; + toObject(includeInstance?: boolean): CreateBulkPhoneCallRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateBulkPhoneCallRequest): CreateBulkPhoneCallRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InitiateBulkAssistantTalkRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitiateBulkAssistantTalkRequest; - static deserializeBinaryFromReader(message: InitiateBulkAssistantTalkRequest, reader: jspb.BinaryReader): InitiateBulkAssistantTalkRequest; + static serializeBinaryToWriter(message: CreateBulkPhoneCallRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateBulkPhoneCallRequest; + static deserializeBinaryFromReader(message: CreateBulkPhoneCallRequest, reader: jspb.BinaryReader): CreateBulkPhoneCallRequest; } -export namespace InitiateBulkAssistantTalkRequest { +export namespace CreateBulkPhoneCallRequest { export type AsObject = { - assistant?: AssistantDefinition.AsObject, - source: common_pb.SourceMap[keyof common_pb.SourceMap], - metadataMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - optionsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - paramsList: Array, + phonecallsList: Array, } } -export class InitiateBulkAssistantTalkResponse extends jspb.Message { +export class CreateBulkPhoneCallResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -406,9 +530,9 @@ export class InitiateBulkAssistantTalkResponse extends jspb.Message { setSuccess(value: boolean): void; clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: InitiateAssistantTalkParameter, index?: number): InitiateAssistantTalkParameter; + getDataList(): Array; + setDataList(value: Array): void; + addData(value?: common_pb.AssistantConversation, index?: number): common_pb.AssistantConversation; hasError(): boolean; clearError(): void; @@ -416,20 +540,20 @@ export class InitiateBulkAssistantTalkResponse extends jspb.Message { setError(value?: common_pb.Error): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitiateBulkAssistantTalkResponse.AsObject; - static toObject(includeInstance: boolean, msg: InitiateBulkAssistantTalkResponse): InitiateBulkAssistantTalkResponse.AsObject; + toObject(includeInstance?: boolean): CreateBulkPhoneCallResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateBulkPhoneCallResponse): CreateBulkPhoneCallResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InitiateBulkAssistantTalkResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitiateBulkAssistantTalkResponse; - static deserializeBinaryFromReader(message: InitiateBulkAssistantTalkResponse, reader: jspb.BinaryReader): InitiateBulkAssistantTalkResponse; + static serializeBinaryToWriter(message: CreateBulkPhoneCallResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateBulkPhoneCallResponse; + static deserializeBinaryFromReader(message: CreateBulkPhoneCallResponse, reader: jspb.BinaryReader): CreateBulkPhoneCallResponse; } -export namespace InitiateBulkAssistantTalkResponse { +export namespace CreateBulkPhoneCallResponse { export type AsObject = { code: number, success: boolean, - dataList: Array, + dataList: Array, error?: common_pb.Error.AsObject, } } diff --git a/src/clients/protos/talk-api_pb.js b/src/clients/protos/talk-api_pb.js index 2a51a74..09fc9c5 100644 --- a/src/clients/protos/talk-api_pb.js +++ b/src/clients/protos/talk-api_pb.js @@ -23,21 +23,27 @@ var global = (function() { var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); var common_pb = require('./common_pb.js'); goog.object.extend(proto, common_pb); +goog.exportSymbol('proto.talk_api.AssistantConversationAssistantMessage', null, global); +goog.exportSymbol('proto.talk_api.AssistantConversationConfiguration', null, global); +goog.exportSymbol('proto.talk_api.AssistantConversationInterruption', null, global); +goog.exportSymbol('proto.talk_api.AssistantConversationInterruption.InterruptionType', null, global); +goog.exportSymbol('proto.talk_api.AssistantConversationUserMessage', null, global); goog.exportSymbol('proto.talk_api.AssistantDefinition', null, global); goog.exportSymbol('proto.talk_api.AssistantMessagingRequest', null, global); goog.exportSymbol('proto.talk_api.AssistantMessagingResponse', null, global); goog.exportSymbol('proto.talk_api.AssistantMessagingResponse.DataCase', null, global); +goog.exportSymbol('proto.talk_api.CreateBulkPhoneCallRequest', null, global); +goog.exportSymbol('proto.talk_api.CreateBulkPhoneCallResponse', null, global); goog.exportSymbol('proto.talk_api.CreateConversationMetricRequest', null, global); goog.exportSymbol('proto.talk_api.CreateConversationMetricResponse', null, global); goog.exportSymbol('proto.talk_api.CreateMessageMetricRequest', null, global); goog.exportSymbol('proto.talk_api.CreateMessageMetricResponse', null, global); -goog.exportSymbol('proto.talk_api.InitiateAssistantTalkParameter', null, global); -goog.exportSymbol('proto.talk_api.InitiateAssistantTalkRequest', null, global); -goog.exportSymbol('proto.talk_api.InitiateAssistantTalkResponse', null, global); -goog.exportSymbol('proto.talk_api.InitiateBulkAssistantTalkRequest', null, global); -goog.exportSymbol('proto.talk_api.InitiateBulkAssistantTalkResponse', null, global); +goog.exportSymbol('proto.talk_api.CreatePhoneCallRequest', null, global); +goog.exportSymbol('proto.talk_api.CreatePhoneCallResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -80,6 +86,90 @@ if (goog.DEBUG && !COMPILED) { */ proto.talk_api.AssistantMessagingRequest.displayName = 'proto.talk_api.AssistantMessagingRequest'; } +/** + * 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.talk_api.AssistantConversationConfiguration = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.talk_api.AssistantConversationConfiguration, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.talk_api.AssistantConversationConfiguration.displayName = 'proto.talk_api.AssistantConversationConfiguration'; +} +/** + * 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.talk_api.AssistantConversationInterruption = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.talk_api.AssistantConversationInterruption, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.talk_api.AssistantConversationInterruption.displayName = 'proto.talk_api.AssistantConversationInterruption'; +} +/** + * 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.talk_api.AssistantConversationUserMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.talk_api.AssistantConversationUserMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.talk_api.AssistantConversationUserMessage.displayName = 'proto.talk_api.AssistantConversationUserMessage'; +} +/** + * 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.talk_api.AssistantConversationAssistantMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.talk_api.AssistantConversationAssistantMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.talk_api.AssistantConversationAssistantMessage.displayName = 'proto.talk_api.AssistantConversationAssistantMessage'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -195,37 +285,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.talk_api.InitiateAssistantTalkParameter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.talk_api.InitiateAssistantTalkParameter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.talk_api.InitiateAssistantTalkParameter.displayName = 'proto.talk_api.InitiateAssistantTalkParameter'; -} -/** - * 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.talk_api.InitiateAssistantTalkRequest = function(opt_data) { +proto.talk_api.CreatePhoneCallRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.talk_api.InitiateAssistantTalkRequest, jspb.Message); +goog.inherits(proto.talk_api.CreatePhoneCallRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.talk_api.InitiateAssistantTalkRequest.displayName = 'proto.talk_api.InitiateAssistantTalkRequest'; + proto.talk_api.CreatePhoneCallRequest.displayName = 'proto.talk_api.CreatePhoneCallRequest'; } /** * Generated by JsPbCodeGenerator. @@ -237,16 +306,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.talk_api.InitiateAssistantTalkResponse = function(opt_data) { +proto.talk_api.CreatePhoneCallResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.talk_api.InitiateAssistantTalkResponse, jspb.Message); +goog.inherits(proto.talk_api.CreatePhoneCallResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.talk_api.InitiateAssistantTalkResponse.displayName = 'proto.talk_api.InitiateAssistantTalkResponse'; + proto.talk_api.CreatePhoneCallResponse.displayName = 'proto.talk_api.CreatePhoneCallResponse'; } /** * Generated by JsPbCodeGenerator. @@ -258,16 +327,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.talk_api.InitiateBulkAssistantTalkRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.talk_api.InitiateBulkAssistantTalkRequest.repeatedFields_, null); +proto.talk_api.CreateBulkPhoneCallRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.talk_api.CreateBulkPhoneCallRequest.repeatedFields_, null); }; -goog.inherits(proto.talk_api.InitiateBulkAssistantTalkRequest, jspb.Message); +goog.inherits(proto.talk_api.CreateBulkPhoneCallRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.talk_api.InitiateBulkAssistantTalkRequest.displayName = 'proto.talk_api.InitiateBulkAssistantTalkRequest'; + proto.talk_api.CreateBulkPhoneCallRequest.displayName = 'proto.talk_api.CreateBulkPhoneCallRequest'; } /** * Generated by JsPbCodeGenerator. @@ -279,16 +348,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.talk_api.InitiateBulkAssistantTalkResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.talk_api.InitiateBulkAssistantTalkResponse.repeatedFields_, null); +proto.talk_api.CreateBulkPhoneCallResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.talk_api.CreateBulkPhoneCallResponse.repeatedFields_, null); }; -goog.inherits(proto.talk_api.InitiateBulkAssistantTalkResponse, jspb.Message); +goog.inherits(proto.talk_api.CreateBulkPhoneCallResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.talk_api.InitiateBulkAssistantTalkResponse.displayName = 'proto.talk_api.InitiateBulkAssistantTalkResponse'; + proto.talk_api.CreateBulkPhoneCallResponse.displayName = 'proto.talk_api.CreateBulkPhoneCallResponse'; } @@ -830,32 +899,6 @@ proto.talk_api.AssistantMessagingRequest.prototype.clearOptionsMap = function() -/** - * 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.talk_api.AssistantMessagingResponse.oneofGroups_ = [[3,5]]; - -/** - * @enum {number} - */ -proto.talk_api.AssistantMessagingResponse.DataCase = { - DATA_NOT_SET: 0, - MESSAGE: 3, - EVENT: 5 -}; - -/** - * @return {proto.talk_api.AssistantMessagingResponse.DataCase} - */ -proto.talk_api.AssistantMessagingResponse.prototype.getDataCase = function() { - return /** @type {proto.talk_api.AssistantMessagingResponse.DataCase} */(jspb.Message.computeOneofCase(this, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0])); -}; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -871,8 +914,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.talk_api.AssistantMessagingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.talk_api.AssistantMessagingResponse.toObject(opt_includeInstance, this); +proto.talk_api.AssistantConversationConfiguration.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.AssistantConversationConfiguration.toObject(opt_includeInstance, this); }; @@ -881,17 +924,15 @@ proto.talk_api.AssistantMessagingResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.talk_api.AssistantMessagingResponse} msg The msg instance to transform. + * @param {!proto.talk_api.AssistantConversationConfiguration} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.AssistantMessagingResponse.toObject = function(includeInstance, msg) { +proto.talk_api.AssistantConversationConfiguration.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - message: (f = msg.getMessage()) && common_pb.AssistantConversationMessage.toObject(includeInstance, f), - event: (f = msg.getEvent()) && common_pb.Event.toObject(includeInstance, f) + assistantconversationid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + assistant: (f = msg.getAssistant()) && proto.talk_api.AssistantDefinition.toObject(includeInstance, f), + time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -905,23 +946,23 @@ proto.talk_api.AssistantMessagingResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.talk_api.AssistantMessagingResponse} + * @return {!proto.talk_api.AssistantConversationConfiguration} */ -proto.talk_api.AssistantMessagingResponse.deserializeBinary = function(bytes) { +proto.talk_api.AssistantConversationConfiguration.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.talk_api.AssistantMessagingResponse; - return proto.talk_api.AssistantMessagingResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.talk_api.AssistantConversationConfiguration; + return proto.talk_api.AssistantConversationConfiguration.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.talk_api.AssistantMessagingResponse} msg The message object to deserialize into. + * @param {!proto.talk_api.AssistantConversationConfiguration} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.talk_api.AssistantMessagingResponse} + * @return {!proto.talk_api.AssistantConversationConfiguration} */ -proto.talk_api.AssistantMessagingResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.talk_api.AssistantConversationConfiguration.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -929,27 +970,18 @@ proto.talk_api.AssistantMessagingResponse.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setAssistantconversationid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = new proto.talk_api.AssistantDefinition; + reader.readMessage(value,proto.talk_api.AssistantDefinition.deserializeBinaryFromReader); + msg.setAssistant(value); break; case 3: - var value = new common_pb.AssistantConversationMessage; - reader.readMessage(value,common_pb.AssistantConversationMessage.deserializeBinaryFromReader); - msg.setMessage(value); - break; - case 5: - var value = new common_pb.Event; - reader.readMessage(value,common_pb.Event.deserializeBinaryFromReader); - msg.setEvent(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTime(value); break; default: reader.skipField(); @@ -964,9 +996,9 @@ proto.talk_api.AssistantMessagingResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.talk_api.AssistantMessagingResponse.prototype.serializeBinary = function() { +proto.talk_api.AssistantConversationConfiguration.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.talk_api.AssistantMessagingResponse.serializeBinaryToWriter(this, writer); + proto.talk_api.AssistantConversationConfiguration.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -974,114 +1006,81 @@ proto.talk_api.AssistantMessagingResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.talk_api.AssistantMessagingResponse} message + * @param {!proto.talk_api.AssistantConversationConfiguration} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.AssistantMessagingResponse.serializeBinaryToWriter = function(message, writer) { +proto.talk_api.AssistantConversationConfiguration.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getAssistantconversationid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getError(); + f = message.getAssistant(); if (f != null) { writer.writeMessage( - 4, + 2, f, - common_pb.Error.serializeBinaryToWriter + proto.talk_api.AssistantDefinition.serializeBinaryToWriter ); } - f = message.getMessage(); + f = message.getTime(); if (f != null) { writer.writeMessage( 3, f, - common_pb.AssistantConversationMessage.serializeBinaryToWriter - ); - } - f = message.getEvent(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Event.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** - * optional int32 code = 1; - * @return {number} - */ -proto.talk_api.AssistantMessagingResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.talk_api.AssistantMessagingResponse} returns this - */ -proto.talk_api.AssistantMessagingResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} + * optional uint64 assistantConversationId = 1; + * @return {string} */ -proto.talk_api.AssistantMessagingResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.talk_api.AssistantConversationConfiguration.prototype.getAssistantconversationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {boolean} value - * @return {!proto.talk_api.AssistantMessagingResponse} returns this + * @param {string} value + * @return {!proto.talk_api.AssistantConversationConfiguration} returns this */ -proto.talk_api.AssistantMessagingResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.talk_api.AssistantConversationConfiguration.prototype.setAssistantconversationid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional Error error = 4; - * @return {?proto.Error} + * optional AssistantDefinition assistant = 2; + * @return {?proto.talk_api.AssistantDefinition} */ -proto.talk_api.AssistantMessagingResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.talk_api.AssistantConversationConfiguration.prototype.getAssistant = function() { + return /** @type{?proto.talk_api.AssistantDefinition} */ ( + jspb.Message.getWrapperField(this, proto.talk_api.AssistantDefinition, 2)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.talk_api.AssistantMessagingResponse} returns this + * @param {?proto.talk_api.AssistantDefinition|undefined} value + * @return {!proto.talk_api.AssistantConversationConfiguration} returns this */ -proto.talk_api.AssistantMessagingResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.talk_api.AssistantConversationConfiguration.prototype.setAssistant = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.talk_api.AssistantMessagingResponse} returns this + * @return {!proto.talk_api.AssistantConversationConfiguration} returns this */ -proto.talk_api.AssistantMessagingResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.talk_api.AssistantConversationConfiguration.prototype.clearAssistant = function() { + return this.setAssistant(undefined); }; @@ -1089,36 +1088,36 @@ proto.talk_api.AssistantMessagingResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.AssistantMessagingResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.talk_api.AssistantConversationConfiguration.prototype.hasAssistant = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional AssistantConversationMessage message = 3; - * @return {?proto.AssistantConversationMessage} + * optional google.protobuf.Timestamp time = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.talk_api.AssistantMessagingResponse.prototype.getMessage = function() { - return /** @type{?proto.AssistantConversationMessage} */ ( - jspb.Message.getWrapperField(this, common_pb.AssistantConversationMessage, 3)); +proto.talk_api.AssistantConversationConfiguration.prototype.getTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * @param {?proto.AssistantConversationMessage|undefined} value - * @return {!proto.talk_api.AssistantMessagingResponse} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.talk_api.AssistantConversationConfiguration} returns this */ -proto.talk_api.AssistantMessagingResponse.prototype.setMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); +proto.talk_api.AssistantConversationConfiguration.prototype.setTime = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.talk_api.AssistantMessagingResponse} returns this + * @return {!proto.talk_api.AssistantConversationConfiguration} returns this */ -proto.talk_api.AssistantMessagingResponse.prototype.clearMessage = function() { - return this.setMessage(undefined); +proto.talk_api.AssistantConversationConfiguration.prototype.clearTime = function() { + return this.setTime(undefined); }; @@ -1126,27 +1125,1229 @@ proto.talk_api.AssistantMessagingResponse.prototype.clearMessage = function() { * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.AssistantMessagingResponse.prototype.hasMessage = function() { +proto.talk_api.AssistantConversationConfiguration.prototype.hasTime = function() { return jspb.Message.getField(this, 3) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional Event event = 5; - * @return {?proto.Event} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.talk_api.AssistantMessagingResponse.prototype.getEvent = function() { - return /** @type{?proto.Event} */ ( - jspb.Message.getWrapperField(this, common_pb.Event, 5)); +proto.talk_api.AssistantConversationInterruption.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.AssistantConversationInterruption.toObject(opt_includeInstance, this); }; /** - * @param {?proto.Event|undefined} value - * @return {!proto.talk_api.AssistantMessagingResponse} returns this -*/ -proto.talk_api.AssistantMessagingResponse.prototype.setEvent = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.talk_api.AssistantConversationInterruption} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantConversationInterruption.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, 0), + time: (f = msg.getTime()) && 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.talk_api.AssistantConversationInterruption} + */ +proto.talk_api.AssistantConversationInterruption.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.talk_api.AssistantConversationInterruption; + return proto.talk_api.AssistantConversationInterruption.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.talk_api.AssistantConversationInterruption} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.talk_api.AssistantConversationInterruption} + */ +proto.talk_api.AssistantConversationInterruption.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.talk_api.AssistantConversationInterruption.InterruptionType} */ (reader.readEnum()); + msg.setType(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.talk_api.AssistantConversationInterruption.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.talk_api.AssistantConversationInterruption.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.talk_api.AssistantConversationInterruption} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantConversationInterruption.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 + ); + } + f = message.getTime(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.talk_api.AssistantConversationInterruption.InterruptionType = { + INTERRUPTION_TYPE_UNSPECIFIED: 0, + INTERRUPTION_TYPE_VAD: 1, + INTERRUPTION_TYPE_WORD: 2 +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.talk_api.AssistantConversationInterruption.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.talk_api.AssistantConversationInterruption} returns this + */ +proto.talk_api.AssistantConversationInterruption.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional InterruptionType type = 2; + * @return {!proto.talk_api.AssistantConversationInterruption.InterruptionType} + */ +proto.talk_api.AssistantConversationInterruption.prototype.getType = function() { + return /** @type {!proto.talk_api.AssistantConversationInterruption.InterruptionType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.talk_api.AssistantConversationInterruption.InterruptionType} value + * @return {!proto.talk_api.AssistantConversationInterruption} returns this + */ +proto.talk_api.AssistantConversationInterruption.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional google.protobuf.Timestamp time = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.talk_api.AssistantConversationInterruption.prototype.getTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.talk_api.AssistantConversationInterruption} returns this +*/ +proto.talk_api.AssistantConversationInterruption.prototype.setTime = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantConversationInterruption} returns this + */ +proto.talk_api.AssistantConversationInterruption.prototype.clearTime = function() { + return this.setTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantConversationInterruption.prototype.hasTime = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.AssistantConversationUserMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.talk_api.AssistantConversationUserMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantConversationUserMessage.toObject = function(includeInstance, msg) { + var f, obj = { + message: (f = msg.getMessage()) && common_pb.Message.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + completed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + time: (f = msg.getTime()) && 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.talk_api.AssistantConversationUserMessage} + */ +proto.talk_api.AssistantConversationUserMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.talk_api.AssistantConversationUserMessage; + return proto.talk_api.AssistantConversationUserMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.talk_api.AssistantConversationUserMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.talk_api.AssistantConversationUserMessage} + */ +proto.talk_api.AssistantConversationUserMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new common_pb.Message; + reader.readMessage(value,common_pb.Message.deserializeBinaryFromReader); + msg.setMessage(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCompleted(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.talk_api.AssistantConversationUserMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.talk_api.AssistantConversationUserMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantConversationUserMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage(); + if (f != null) { + writer.writeMessage( + 1, + f, + common_pb.Message.serializeBinaryToWriter + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCompleted(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getTime(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Message message = 1; + * @return {?proto.Message} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.getMessage = function() { + return /** @type{?proto.Message} */ ( + jspb.Message.getWrapperField(this, common_pb.Message, 1)); +}; + + +/** + * @param {?proto.Message|undefined} value + * @return {!proto.talk_api.AssistantConversationUserMessage} returns this +*/ +proto.talk_api.AssistantConversationUserMessage.prototype.setMessage = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantConversationUserMessage} returns this + */ +proto.talk_api.AssistantConversationUserMessage.prototype.clearMessage = function() { + return this.setMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.hasMessage = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string id = 2; + * @return {string} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.talk_api.AssistantConversationUserMessage} returns this + */ +proto.talk_api.AssistantConversationUserMessage.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool completed = 3; + * @return {boolean} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.getCompleted = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.talk_api.AssistantConversationUserMessage} returns this + */ +proto.talk_api.AssistantConversationUserMessage.prototype.setCompleted = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional google.protobuf.Timestamp time = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.getTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.talk_api.AssistantConversationUserMessage} returns this +*/ +proto.talk_api.AssistantConversationUserMessage.prototype.setTime = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantConversationUserMessage} returns this + */ +proto.talk_api.AssistantConversationUserMessage.prototype.clearTime = function() { + return this.setTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantConversationUserMessage.prototype.hasTime = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.AssistantConversationAssistantMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.talk_api.AssistantConversationAssistantMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantConversationAssistantMessage.toObject = function(includeInstance, msg) { + var f, obj = { + message: (f = msg.getMessage()) && common_pb.Message.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + completed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + time: (f = msg.getTime()) && 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.talk_api.AssistantConversationAssistantMessage} + */ +proto.talk_api.AssistantConversationAssistantMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.talk_api.AssistantConversationAssistantMessage; + return proto.talk_api.AssistantConversationAssistantMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.talk_api.AssistantConversationAssistantMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.talk_api.AssistantConversationAssistantMessage} + */ +proto.talk_api.AssistantConversationAssistantMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new common_pb.Message; + reader.readMessage(value,common_pb.Message.deserializeBinaryFromReader); + msg.setMessage(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCompleted(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.talk_api.AssistantConversationAssistantMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.talk_api.AssistantConversationAssistantMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantConversationAssistantMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage(); + if (f != null) { + writer.writeMessage( + 1, + f, + common_pb.Message.serializeBinaryToWriter + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCompleted(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getTime(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Message message = 1; + * @return {?proto.Message} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.getMessage = function() { + return /** @type{?proto.Message} */ ( + jspb.Message.getWrapperField(this, common_pb.Message, 1)); +}; + + +/** + * @param {?proto.Message|undefined} value + * @return {!proto.talk_api.AssistantConversationAssistantMessage} returns this +*/ +proto.talk_api.AssistantConversationAssistantMessage.prototype.setMessage = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantConversationAssistantMessage} returns this + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.clearMessage = function() { + return this.setMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.hasMessage = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string id = 2; + * @return {string} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.talk_api.AssistantConversationAssistantMessage} returns this + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool completed = 3; + * @return {boolean} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.getCompleted = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.talk_api.AssistantConversationAssistantMessage} returns this + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.setCompleted = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional google.protobuf.Timestamp time = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.getTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.talk_api.AssistantConversationAssistantMessage} returns this +*/ +proto.talk_api.AssistantConversationAssistantMessage.prototype.setTime = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantConversationAssistantMessage} returns this + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.clearTime = function() { + return this.setTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantConversationAssistantMessage.prototype.hasTime = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * 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.talk_api.AssistantMessagingResponse.oneofGroups_ = [[9,10,11,12,13]]; + +/** + * @enum {number} + */ +proto.talk_api.AssistantMessagingResponse.DataCase = { + DATA_NOT_SET: 0, + CONFIGURATION: 9, + INTERRUPTION: 10, + USER: 11, + ASSISTANT: 12, + MESSAGE: 13 +}; + +/** + * @return {proto.talk_api.AssistantMessagingResponse.DataCase} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getDataCase = function() { + return /** @type {proto.talk_api.AssistantMessagingResponse.DataCase} */(jspb.Message.computeOneofCase(this, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.talk_api.AssistantMessagingResponse.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.AssistantMessagingResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.talk_api.AssistantMessagingResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantMessagingResponse.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + configuration: (f = msg.getConfiguration()) && proto.talk_api.AssistantConversationConfiguration.toObject(includeInstance, f), + interruption: (f = msg.getInterruption()) && proto.talk_api.AssistantConversationInterruption.toObject(includeInstance, f), + user: (f = msg.getUser()) && proto.talk_api.AssistantConversationUserMessage.toObject(includeInstance, f), + assistant: (f = msg.getAssistant()) && proto.talk_api.AssistantConversationAssistantMessage.toObject(includeInstance, f), + message: (f = msg.getMessage()) && common_pb.AssistantConversationMessage.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.talk_api.AssistantMessagingResponse} + */ +proto.talk_api.AssistantMessagingResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.talk_api.AssistantMessagingResponse; + return proto.talk_api.AssistantMessagingResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.talk_api.AssistantMessagingResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.talk_api.AssistantMessagingResponse} + */ +proto.talk_api.AssistantMessagingResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 4: + var value = new common_pb.Error; + reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 9: + var value = new proto.talk_api.AssistantConversationConfiguration; + reader.readMessage(value,proto.talk_api.AssistantConversationConfiguration.deserializeBinaryFromReader); + msg.setConfiguration(value); + break; + case 10: + var value = new proto.talk_api.AssistantConversationInterruption; + reader.readMessage(value,proto.talk_api.AssistantConversationInterruption.deserializeBinaryFromReader); + msg.setInterruption(value); + break; + case 11: + var value = new proto.talk_api.AssistantConversationUserMessage; + reader.readMessage(value,proto.talk_api.AssistantConversationUserMessage.deserializeBinaryFromReader); + msg.setUser(value); + break; + case 12: + var value = new proto.talk_api.AssistantConversationAssistantMessage; + reader.readMessage(value,proto.talk_api.AssistantConversationAssistantMessage.deserializeBinaryFromReader); + msg.setAssistant(value); + break; + case 13: + var value = new common_pb.AssistantConversationMessage; + reader.readMessage(value,common_pb.AssistantConversationMessage.deserializeBinaryFromReader); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.talk_api.AssistantMessagingResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.talk_api.AssistantMessagingResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.talk_api.AssistantMessagingResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.talk_api.AssistantMessagingResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSuccess(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 4, + f, + common_pb.Error.serializeBinaryToWriter + ); + } + f = message.getConfiguration(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.talk_api.AssistantConversationConfiguration.serializeBinaryToWriter + ); + } + f = message.getInterruption(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.talk_api.AssistantConversationInterruption.serializeBinaryToWriter + ); + } + f = message.getUser(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.talk_api.AssistantConversationUserMessage.serializeBinaryToWriter + ); + } + f = message.getAssistant(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.talk_api.AssistantConversationAssistantMessage.serializeBinaryToWriter + ); + } + f = message.getMessage(); + if (f != null) { + writer.writeMessage( + 13, + f, + common_pb.AssistantConversationMessage.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool success = 2; + * @return {boolean} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional Error error = 4; + * @return {?proto.Error} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); +}; + + +/** + * @param {?proto.Error|undefined} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this +*/ +proto.talk_api.AssistantMessagingResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantMessagingResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional AssistantConversationConfiguration configuration = 9; + * @return {?proto.talk_api.AssistantConversationConfiguration} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getConfiguration = function() { + return /** @type{?proto.talk_api.AssistantConversationConfiguration} */ ( + jspb.Message.getWrapperField(this, proto.talk_api.AssistantConversationConfiguration, 9)); +}; + + +/** + * @param {?proto.talk_api.AssistantConversationConfiguration|undefined} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this +*/ +proto.talk_api.AssistantMessagingResponse.prototype.setConfiguration = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.clearConfiguration = function() { + return this.setConfiguration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantMessagingResponse.prototype.hasConfiguration = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional AssistantConversationInterruption interruption = 10; + * @return {?proto.talk_api.AssistantConversationInterruption} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getInterruption = function() { + return /** @type{?proto.talk_api.AssistantConversationInterruption} */ ( + jspb.Message.getWrapperField(this, proto.talk_api.AssistantConversationInterruption, 10)); +}; + + +/** + * @param {?proto.talk_api.AssistantConversationInterruption|undefined} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this +*/ +proto.talk_api.AssistantMessagingResponse.prototype.setInterruption = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.clearInterruption = function() { + return this.setInterruption(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantMessagingResponse.prototype.hasInterruption = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional AssistantConversationUserMessage user = 11; + * @return {?proto.talk_api.AssistantConversationUserMessage} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getUser = function() { + return /** @type{?proto.talk_api.AssistantConversationUserMessage} */ ( + jspb.Message.getWrapperField(this, proto.talk_api.AssistantConversationUserMessage, 11)); +}; + + +/** + * @param {?proto.talk_api.AssistantConversationUserMessage|undefined} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this +*/ +proto.talk_api.AssistantMessagingResponse.prototype.setUser = function(value) { + return jspb.Message.setOneofWrapperField(this, 11, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.clearUser = function() { + return this.setUser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantMessagingResponse.prototype.hasUser = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional AssistantConversationAssistantMessage assistant = 12; + * @return {?proto.talk_api.AssistantConversationAssistantMessage} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getAssistant = function() { + return /** @type{?proto.talk_api.AssistantConversationAssistantMessage} */ ( + jspb.Message.getWrapperField(this, proto.talk_api.AssistantConversationAssistantMessage, 12)); +}; + + +/** + * @param {?proto.talk_api.AssistantConversationAssistantMessage|undefined} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this +*/ +proto.talk_api.AssistantMessagingResponse.prototype.setAssistant = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.AssistantMessagingResponse} returns this + */ +proto.talk_api.AssistantMessagingResponse.prototype.clearAssistant = function() { + return this.setAssistant(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.talk_api.AssistantMessagingResponse.prototype.hasAssistant = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional AssistantConversationMessage message = 13; + * @return {?proto.AssistantConversationMessage} + */ +proto.talk_api.AssistantMessagingResponse.prototype.getMessage = function() { + return /** @type{?proto.AssistantConversationMessage} */ ( + jspb.Message.getWrapperField(this, common_pb.AssistantConversationMessage, 13)); +}; + + +/** + * @param {?proto.AssistantConversationMessage|undefined} value + * @return {!proto.talk_api.AssistantMessagingResponse} returns this +*/ +proto.talk_api.AssistantMessagingResponse.prototype.setMessage = function(value) { + return jspb.Message.setOneofWrapperField(this, 13, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value); }; @@ -1154,8 +2355,8 @@ proto.talk_api.AssistantMessagingResponse.prototype.setEvent = function(value) { * Clears the message field making it undefined. * @return {!proto.talk_api.AssistantMessagingResponse} returns this */ -proto.talk_api.AssistantMessagingResponse.prototype.clearEvent = function() { - return this.setEvent(undefined); +proto.talk_api.AssistantMessagingResponse.prototype.clearMessage = function() { + return this.setMessage(undefined); }; @@ -1163,8 +2364,8 @@ proto.talk_api.AssistantMessagingResponse.prototype.clearEvent = function() { * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.AssistantMessagingResponse.prototype.hasEvent = function() { - return jspb.Message.getField(this, 5) != null; +proto.talk_api.AssistantMessagingResponse.prototype.hasMessage = function() { + return jspb.Message.getField(this, 13) != null; }; @@ -2128,189 +3329,56 @@ proto.talk_api.CreateConversationMetricResponse.prototype.setDataList = function * @param {!proto.Metric=} opt_value * @param {number=} opt_index * @return {!proto.Metric} - */ -proto.talk_api.CreateConversationMetricResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Metric, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.talk_api.CreateConversationMetricResponse} returns this - */ -proto.talk_api.CreateConversationMetricResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.talk_api.CreateConversationMetricResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.talk_api.CreateConversationMetricResponse} returns this -*/ -proto.talk_api.CreateConversationMetricResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.talk_api.CreateConversationMetricResponse} returns this - */ -proto.talk_api.CreateConversationMetricResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.talk_api.CreateConversationMetricResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.talk_api.InitiateAssistantTalkParameter.prototype.toObject = function(opt_includeInstance) { - return proto.talk_api.InitiateAssistantTalkParameter.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.talk_api.InitiateAssistantTalkParameter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.talk_api.InitiateAssistantTalkParameter.toObject = function(includeInstance, msg) { - var f, obj = { - itemsMap: (f = msg.getItemsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.talk_api.InitiateAssistantTalkParameter} - */ -proto.talk_api.InitiateAssistantTalkParameter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.talk_api.InitiateAssistantTalkParameter; - return proto.talk_api.InitiateAssistantTalkParameter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.talk_api.InitiateAssistantTalkParameter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.talk_api.InitiateAssistantTalkParameter} - */ -proto.talk_api.InitiateAssistantTalkParameter.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getItemsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; + */ +proto.talk_api.CreateConversationMetricResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Metric, opt_index); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the list making it empty but non-null. + * @return {!proto.talk_api.CreateConversationMetricResponse} returns this */ -proto.talk_api.InitiateAssistantTalkParameter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.talk_api.InitiateAssistantTalkParameter.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.talk_api.CreateConversationMetricResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.talk_api.InitiateAssistantTalkParameter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional Error error = 4; + * @return {?proto.Error} */ -proto.talk_api.InitiateAssistantTalkParameter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } +proto.talk_api.CreateConversationMetricResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * map items = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * @param {?proto.Error|undefined} value + * @return {!proto.talk_api.CreateConversationMetricResponse} returns this +*/ +proto.talk_api.CreateConversationMetricResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.talk_api.CreateConversationMetricResponse} returns this */ -proto.talk_api.InitiateAssistantTalkParameter.prototype.getItemsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.google.protobuf.Any)); +proto.talk_api.CreateConversationMetricResponse.prototype.clearError = function() { + return this.setError(undefined); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateAssistantTalkParameter} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.talk_api.InitiateAssistantTalkParameter.prototype.clearItemsMap = function() { - this.getItemsMap().clear(); - return this;}; +proto.talk_api.CreateConversationMetricResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; +}; @@ -2329,8 +3397,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.toObject = function(opt_includeInstance) { - return proto.talk_api.InitiateAssistantTalkRequest.toObject(opt_includeInstance, this); +proto.talk_api.CreatePhoneCallRequest.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.CreatePhoneCallRequest.toObject(opt_includeInstance, this); }; @@ -2339,18 +3407,18 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.talk_api.InitiateAssistantTalkRequest} msg The msg instance to transform. + * @param {!proto.talk_api.CreatePhoneCallRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateAssistantTalkRequest.toObject = function(includeInstance, msg) { +proto.talk_api.CreatePhoneCallRequest.toObject = function(includeInstance, msg) { var f, obj = { assistant: (f = msg.getAssistant()) && proto.talk_api.AssistantDefinition.toObject(includeInstance, f), - source: jspb.Message.getFieldWithDefault(msg, 2, 0), metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], argsMap: (f = msg.getArgsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], optionsMap: (f = msg.getOptionsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - params: (f = msg.getParams()) && proto.talk_api.InitiateAssistantTalkParameter.toObject(includeInstance, f) + fromnumber: jspb.Message.getFieldWithDefault(msg, 6, ""), + tonumber: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { @@ -2364,23 +3432,23 @@ proto.talk_api.InitiateAssistantTalkRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} + * @return {!proto.talk_api.CreatePhoneCallRequest} */ -proto.talk_api.InitiateAssistantTalkRequest.deserializeBinary = function(bytes) { +proto.talk_api.CreatePhoneCallRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.talk_api.InitiateAssistantTalkRequest; - return proto.talk_api.InitiateAssistantTalkRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.talk_api.CreatePhoneCallRequest; + return proto.talk_api.CreatePhoneCallRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.talk_api.InitiateAssistantTalkRequest} msg The message object to deserialize into. + * @param {!proto.talk_api.CreatePhoneCallRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} + * @return {!proto.talk_api.CreatePhoneCallRequest} */ -proto.talk_api.InitiateAssistantTalkRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.talk_api.CreatePhoneCallRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2392,10 +3460,6 @@ proto.talk_api.InitiateAssistantTalkRequest.deserializeBinaryFromReader = functi reader.readMessage(value,proto.talk_api.AssistantDefinition.deserializeBinaryFromReader); msg.setAssistant(value); break; - case 2: - var value = /** @type {!proto.Source} */ (reader.readEnum()); - msg.setSource(value); - break; case 3: var value = msg.getMetadataMap(); reader.readMessage(value, function(message, reader) { @@ -2415,9 +3479,12 @@ proto.talk_api.InitiateAssistantTalkRequest.deserializeBinaryFromReader = functi }); break; case 6: - var value = new proto.talk_api.InitiateAssistantTalkParameter; - reader.readMessage(value,proto.talk_api.InitiateAssistantTalkParameter.deserializeBinaryFromReader); - msg.setParams(value); + var value = /** @type {string} */ (reader.readString()); + msg.setFromnumber(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setTonumber(value); break; default: reader.skipField(); @@ -2432,9 +3499,9 @@ proto.talk_api.InitiateAssistantTalkRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.serializeBinary = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.talk_api.InitiateAssistantTalkRequest.serializeBinaryToWriter(this, writer); + proto.talk_api.CreatePhoneCallRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2442,11 +3509,11 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.talk_api.InitiateAssistantTalkRequest} message + * @param {!proto.talk_api.CreatePhoneCallRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateAssistantTalkRequest.serializeBinaryToWriter = function(message, writer) { +proto.talk_api.CreatePhoneCallRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAssistant(); if (f != null) { @@ -2456,13 +3523,6 @@ proto.talk_api.InitiateAssistantTalkRequest.serializeBinaryToWriter = function(m proto.talk_api.AssistantDefinition.serializeBinaryToWriter ); } - f = message.getSource(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } f = message.getMetadataMap(true); if (f && f.getLength() > 0) { f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); @@ -2475,12 +3535,18 @@ proto.talk_api.InitiateAssistantTalkRequest.serializeBinaryToWriter = function(m if (f && f.getLength() > 0) { f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); } - f = message.getParams(); - if (f != null) { - writer.writeMessage( + f = message.getFromnumber(); + if (f.length > 0) { + writer.writeString( 6, - f, - proto.talk_api.InitiateAssistantTalkParameter.serializeBinaryToWriter + f + ); + } + f = message.getTonumber(); + if (f.length > 0) { + writer.writeString( + 7, + f ); } }; @@ -2490,7 +3556,7 @@ proto.talk_api.InitiateAssistantTalkRequest.serializeBinaryToWriter = function(m * optional AssistantDefinition assistant = 1; * @return {?proto.talk_api.AssistantDefinition} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.getAssistant = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.getAssistant = function() { return /** @type{?proto.talk_api.AssistantDefinition} */ ( jspb.Message.getWrapperField(this, proto.talk_api.AssistantDefinition, 1)); }; @@ -2498,18 +3564,18 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.getAssistant = function() /** * @param {?proto.talk_api.AssistantDefinition|undefined} value - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.setAssistant = function(value) { +proto.talk_api.CreatePhoneCallRequest.prototype.setAssistant = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.clearAssistant = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.clearAssistant = function() { return this.setAssistant(undefined); }; @@ -2518,36 +3584,18 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.clearAssistant = function( * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.hasAssistant = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.hasAssistant = function() { return jspb.Message.getField(this, 1) != null; }; -/** - * optional Source source = 2; - * @return {!proto.Source} - */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.getSource = function() { - return /** @type {!proto.Source} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.Source} value - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this - */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.setSource = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - /** * map metadata = 3; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { +proto.talk_api.CreatePhoneCallRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, proto.google.protobuf.Any)); @@ -2556,9 +3604,9 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.getMetadataMap = function( /** * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.clearMetadataMap = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); return this;}; @@ -2569,7 +3617,7 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.clearMetadataMap = functio * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.getArgsMap = function(opt_noLazyCreate) { +proto.talk_api.CreatePhoneCallRequest.prototype.getArgsMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 4, opt_noLazyCreate, proto.google.protobuf.Any)); @@ -2578,9 +3626,9 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.getArgsMap = function(opt_ /** * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.clearArgsMap = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.clearArgsMap = function() { this.getArgsMap().clear(); return this;}; @@ -2591,7 +3639,7 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.clearArgsMap = function() * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.getOptionsMap = function(opt_noLazyCreate) { +proto.talk_api.CreatePhoneCallRequest.prototype.getOptionsMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 5, opt_noLazyCreate, proto.google.protobuf.Any)); @@ -2600,47 +3648,46 @@ proto.talk_api.InitiateAssistantTalkRequest.prototype.getOptionsMap = function(o /** * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.clearOptionsMap = function() { +proto.talk_api.CreatePhoneCallRequest.prototype.clearOptionsMap = function() { this.getOptionsMap().clear(); return this;}; /** - * optional InitiateAssistantTalkParameter params = 6; - * @return {?proto.talk_api.InitiateAssistantTalkParameter} + * optional string fromNumber = 6; + * @return {string} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.getParams = function() { - return /** @type{?proto.talk_api.InitiateAssistantTalkParameter} */ ( - jspb.Message.getWrapperField(this, proto.talk_api.InitiateAssistantTalkParameter, 6)); +proto.talk_api.CreatePhoneCallRequest.prototype.getFromnumber = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {?proto.talk_api.InitiateAssistantTalkParameter|undefined} value - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this -*/ -proto.talk_api.InitiateAssistantTalkRequest.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + * @param {string} value + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this + */ +proto.talk_api.CreatePhoneCallRequest.prototype.setFromnumber = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.talk_api.InitiateAssistantTalkRequest} returns this + * optional string toNumber = 7; + * @return {string} */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.clearParams = function() { - return this.setParams(undefined); +proto.talk_api.CreatePhoneCallRequest.prototype.getTonumber = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.talk_api.CreatePhoneCallRequest} returns this */ -proto.talk_api.InitiateAssistantTalkRequest.prototype.hasParams = function() { - return jspb.Message.getField(this, 6) != null; +proto.talk_api.CreatePhoneCallRequest.prototype.setTonumber = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -2660,8 +3707,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.toObject = function(opt_includeInstance) { - return proto.talk_api.InitiateAssistantTalkResponse.toObject(opt_includeInstance, this); +proto.talk_api.CreatePhoneCallResponse.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.CreatePhoneCallResponse.toObject(opt_includeInstance, this); }; @@ -2670,15 +3717,15 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.talk_api.InitiateAssistantTalkResponse} msg The msg instance to transform. + * @param {!proto.talk_api.CreatePhoneCallResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateAssistantTalkResponse.toObject = function(includeInstance, msg) { +proto.talk_api.CreatePhoneCallResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.talk_api.InitiateAssistantTalkParameter.toObject(includeInstance, f), + data: (f = msg.getData()) && common_pb.AssistantConversation.toObject(includeInstance, f), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; @@ -2693,23 +3740,23 @@ proto.talk_api.InitiateAssistantTalkResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.talk_api.InitiateAssistantTalkResponse} + * @return {!proto.talk_api.CreatePhoneCallResponse} */ -proto.talk_api.InitiateAssistantTalkResponse.deserializeBinary = function(bytes) { +proto.talk_api.CreatePhoneCallResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.talk_api.InitiateAssistantTalkResponse; - return proto.talk_api.InitiateAssistantTalkResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.talk_api.CreatePhoneCallResponse; + return proto.talk_api.CreatePhoneCallResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.talk_api.InitiateAssistantTalkResponse} msg The message object to deserialize into. + * @param {!proto.talk_api.CreatePhoneCallResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.talk_api.InitiateAssistantTalkResponse} + * @return {!proto.talk_api.CreatePhoneCallResponse} */ -proto.talk_api.InitiateAssistantTalkResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.talk_api.CreatePhoneCallResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2725,8 +3772,8 @@ proto.talk_api.InitiateAssistantTalkResponse.deserializeBinaryFromReader = funct msg.setSuccess(value); break; case 3: - var value = new proto.talk_api.InitiateAssistantTalkParameter; - reader.readMessage(value,proto.talk_api.InitiateAssistantTalkParameter.deserializeBinaryFromReader); + var value = new common_pb.AssistantConversation; + reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); msg.setData(value); break; case 4: @@ -2747,9 +3794,9 @@ proto.talk_api.InitiateAssistantTalkResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.serializeBinary = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.talk_api.InitiateAssistantTalkResponse.serializeBinaryToWriter(this, writer); + proto.talk_api.CreatePhoneCallResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2757,11 +3804,11 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.talk_api.InitiateAssistantTalkResponse} message + * @param {!proto.talk_api.CreatePhoneCallResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateAssistantTalkResponse.serializeBinaryToWriter = function(message, writer) { +proto.talk_api.CreatePhoneCallResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -2782,7 +3829,7 @@ proto.talk_api.InitiateAssistantTalkResponse.serializeBinaryToWriter = function( writer.writeMessage( 3, f, - proto.talk_api.InitiateAssistantTalkParameter.serializeBinaryToWriter + common_pb.AssistantConversation.serializeBinaryToWriter ); } f = message.getError(); @@ -2800,16 +3847,16 @@ proto.talk_api.InitiateAssistantTalkResponse.serializeBinaryToWriter = function( * optional int32 code = 1; * @return {number} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.getCode = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.talk_api.InitiateAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreatePhoneCallResponse} returns this */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.setCode = function(value) { +proto.talk_api.CreatePhoneCallResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -2818,44 +3865,44 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.setCode = function(value) * optional bool success = 2; * @return {boolean} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.getSuccess = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.talk_api.InitiateAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreatePhoneCallResponse} returns this */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.setSuccess = function(value) { +proto.talk_api.CreatePhoneCallResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional InitiateAssistantTalkParameter data = 3; - * @return {?proto.talk_api.InitiateAssistantTalkParameter} + * optional AssistantConversation data = 3; + * @return {?proto.AssistantConversation} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.getData = function() { - return /** @type{?proto.talk_api.InitiateAssistantTalkParameter} */ ( - jspb.Message.getWrapperField(this, proto.talk_api.InitiateAssistantTalkParameter, 3)); +proto.talk_api.CreatePhoneCallResponse.prototype.getData = function() { + return /** @type{?proto.AssistantConversation} */ ( + jspb.Message.getWrapperField(this, common_pb.AssistantConversation, 3)); }; /** - * @param {?proto.talk_api.InitiateAssistantTalkParameter|undefined} value - * @return {!proto.talk_api.InitiateAssistantTalkResponse} returns this + * @param {?proto.AssistantConversation|undefined} value + * @return {!proto.talk_api.CreatePhoneCallResponse} returns this */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.setData = function(value) { +proto.talk_api.CreatePhoneCallResponse.prototype.setData = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.talk_api.InitiateAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreatePhoneCallResponse} returns this */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.clearData = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.clearData = function() { return this.setData(undefined); }; @@ -2864,7 +3911,7 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.hasData = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.hasData = function() { return jspb.Message.getField(this, 3) != null; }; @@ -2873,7 +3920,7 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.hasData = function() { * optional Error error = 4; * @return {?proto.Error} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.getError = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -2881,18 +3928,18 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.getError = function() { /** * @param {?proto.Error|undefined} value - * @return {!proto.talk_api.InitiateAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreatePhoneCallResponse} returns this */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.setError = function(value) { +proto.talk_api.CreatePhoneCallResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.talk_api.InitiateAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreatePhoneCallResponse} returns this */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.clearError = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -2901,7 +3948,7 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.clearError = function() { * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.InitiateAssistantTalkResponse.prototype.hasError = function() { +proto.talk_api.CreatePhoneCallResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; @@ -2912,7 +3959,7 @@ proto.talk_api.InitiateAssistantTalkResponse.prototype.hasError = function() { * @private {!Array} * @const */ -proto.talk_api.InitiateBulkAssistantTalkRequest.repeatedFields_ = [6]; +proto.talk_api.CreateBulkPhoneCallRequest.repeatedFields_ = [6]; @@ -2929,8 +3976,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.toObject = function(opt_includeInstance) { - return proto.talk_api.InitiateBulkAssistantTalkRequest.toObject(opt_includeInstance, this); +proto.talk_api.CreateBulkPhoneCallRequest.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.CreateBulkPhoneCallRequest.toObject(opt_includeInstance, this); }; @@ -2939,19 +3986,14 @@ proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.talk_api.InitiateBulkAssistantTalkRequest} msg The msg instance to transform. + * @param {!proto.talk_api.CreateBulkPhoneCallRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateBulkAssistantTalkRequest.toObject = function(includeInstance, msg) { +proto.talk_api.CreateBulkPhoneCallRequest.toObject = function(includeInstance, msg) { var f, obj = { - assistant: (f = msg.getAssistant()) && proto.talk_api.AssistantDefinition.toObject(includeInstance, f), - source: jspb.Message.getFieldWithDefault(msg, 2, 0), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - argsMap: (f = msg.getArgsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - optionsMap: (f = msg.getOptionsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - paramsList: jspb.Message.toObjectList(msg.getParamsList(), - proto.talk_api.InitiateAssistantTalkParameter.toObject, includeInstance) + phonecallsList: jspb.Message.toObjectList(msg.getPhonecallsList(), + proto.talk_api.CreatePhoneCallRequest.toObject, includeInstance) }; if (includeInstance) { @@ -2965,60 +4007,33 @@ proto.talk_api.InitiateBulkAssistantTalkRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} + * @return {!proto.talk_api.CreateBulkPhoneCallRequest} */ -proto.talk_api.InitiateBulkAssistantTalkRequest.deserializeBinary = function(bytes) { +proto.talk_api.CreateBulkPhoneCallRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.talk_api.InitiateBulkAssistantTalkRequest; - return proto.talk_api.InitiateBulkAssistantTalkRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.talk_api.CreateBulkPhoneCallRequest; + return proto.talk_api.CreateBulkPhoneCallRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.talk_api.InitiateBulkAssistantTalkRequest} msg The message object to deserialize into. + * @param {!proto.talk_api.CreateBulkPhoneCallRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} + * @return {!proto.talk_api.CreateBulkPhoneCallRequest} */ -proto.talk_api.InitiateBulkAssistantTalkRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.talk_api.CreateBulkPhoneCallRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new proto.talk_api.AssistantDefinition; - reader.readMessage(value,proto.talk_api.AssistantDefinition.deserializeBinaryFromReader); - msg.setAssistant(value); - break; - case 2: - var value = /** @type {!proto.Source} */ (reader.readEnum()); - msg.setSource(value); - break; - case 3: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - break; - case 4: - var value = msg.getArgsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - break; - case 5: - var value = msg.getOptionsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - break; case 6: - var value = new proto.talk_api.InitiateAssistantTalkParameter; - reader.readMessage(value,proto.talk_api.InitiateAssistantTalkParameter.deserializeBinaryFromReader); - msg.addParams(value); + var value = new proto.talk_api.CreatePhoneCallRequest; + reader.readMessage(value,proto.talk_api.CreatePhoneCallRequest.deserializeBinaryFromReader); + msg.addPhonecalls(value); break; default: reader.skipField(); @@ -3033,9 +4048,9 @@ proto.talk_api.InitiateBulkAssistantTalkRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.serializeBinary = function() { +proto.talk_api.CreateBulkPhoneCallRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.talk_api.InitiateBulkAssistantTalkRequest.serializeBinaryToWriter(this, writer); + proto.talk_api.CreateBulkPhoneCallRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3043,206 +4058,58 @@ proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.talk_api.InitiateBulkAssistantTalkRequest} message + * @param {!proto.talk_api.CreateBulkPhoneCallRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateBulkAssistantTalkRequest.serializeBinaryToWriter = function(message, writer) { +proto.talk_api.CreateBulkPhoneCallRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAssistant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.talk_api.AssistantDefinition.serializeBinaryToWriter - ); - } - f = message.getSource(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } - f = message.getArgsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } - f = message.getOptionsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } - f = message.getParamsList(); + f = message.getPhonecallsList(); if (f.length > 0) { writer.writeRepeatedMessage( 6, f, - proto.talk_api.InitiateAssistantTalkParameter.serializeBinaryToWriter + proto.talk_api.CreatePhoneCallRequest.serializeBinaryToWriter ); } }; /** - * optional AssistantDefinition assistant = 1; - * @return {?proto.talk_api.AssistantDefinition} - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.getAssistant = function() { - return /** @type{?proto.talk_api.AssistantDefinition} */ ( - jspb.Message.getWrapperField(this, proto.talk_api.AssistantDefinition, 1)); -}; - - -/** - * @param {?proto.talk_api.AssistantDefinition|undefined} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this -*/ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.setAssistant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.clearAssistant = function() { - return this.setAssistant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.hasAssistant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Source source = 2; - * @return {!proto.Source} - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.getSource = function() { - return /** @type {!proto.Source} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.Source} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.setSource = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - proto.google.protobuf.Any)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * map args = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.getArgsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - proto.google.protobuf.Any)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.clearArgsMap = function() { - this.getArgsMap().clear(); - return this;}; - - -/** - * map options = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.getOptionsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - proto.google.protobuf.Any)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this - */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.clearOptionsMap = function() { - this.getOptionsMap().clear(); - return this;}; - - -/** - * repeated InitiateAssistantTalkParameter params = 6; - * @return {!Array} + * repeated CreatePhoneCallRequest phoneCalls = 6; + * @return {!Array} */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.getParamsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.talk_api.InitiateAssistantTalkParameter, 6)); +proto.talk_api.CreateBulkPhoneCallRequest.prototype.getPhonecallsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.talk_api.CreatePhoneCallRequest, 6)); }; /** - * @param {!Array} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this + * @param {!Array} value + * @return {!proto.talk_api.CreateBulkPhoneCallRequest} returns this */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.setParamsList = function(value) { +proto.talk_api.CreateBulkPhoneCallRequest.prototype.setPhonecallsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * @param {!proto.talk_api.InitiateAssistantTalkParameter=} opt_value + * @param {!proto.talk_api.CreatePhoneCallRequest=} opt_value * @param {number=} opt_index - * @return {!proto.talk_api.InitiateAssistantTalkParameter} + * @return {!proto.talk_api.CreatePhoneCallRequest} */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.addParams = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.talk_api.InitiateAssistantTalkParameter, opt_index); +proto.talk_api.CreateBulkPhoneCallRequest.prototype.addPhonecalls = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.talk_api.CreatePhoneCallRequest, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.talk_api.InitiateBulkAssistantTalkRequest} returns this + * @return {!proto.talk_api.CreateBulkPhoneCallRequest} returns this */ -proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.clearParamsList = function() { - return this.setParamsList([]); +proto.talk_api.CreateBulkPhoneCallRequest.prototype.clearPhonecallsList = function() { + return this.setPhonecallsList([]); }; @@ -3252,7 +4119,7 @@ proto.talk_api.InitiateBulkAssistantTalkRequest.prototype.clearParamsList = func * @private {!Array} * @const */ -proto.talk_api.InitiateBulkAssistantTalkResponse.repeatedFields_ = [3]; +proto.talk_api.CreateBulkPhoneCallResponse.repeatedFields_ = [3]; @@ -3269,8 +4136,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.toObject = function(opt_includeInstance) { - return proto.talk_api.InitiateBulkAssistantTalkResponse.toObject(opt_includeInstance, this); +proto.talk_api.CreateBulkPhoneCallResponse.prototype.toObject = function(opt_includeInstance) { + return proto.talk_api.CreateBulkPhoneCallResponse.toObject(opt_includeInstance, this); }; @@ -3279,16 +4146,16 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.talk_api.InitiateBulkAssistantTalkResponse} msg The msg instance to transform. + * @param {!proto.talk_api.CreateBulkPhoneCallResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateBulkAssistantTalkResponse.toObject = function(includeInstance, msg) { +proto.talk_api.CreateBulkPhoneCallResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.talk_api.InitiateAssistantTalkParameter.toObject, includeInstance), + common_pb.AssistantConversation.toObject, includeInstance), error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) }; @@ -3303,23 +4170,23 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.deserializeBinary = function(bytes) { +proto.talk_api.CreateBulkPhoneCallResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.talk_api.InitiateBulkAssistantTalkResponse; - return proto.talk_api.InitiateBulkAssistantTalkResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.talk_api.CreateBulkPhoneCallResponse; + return proto.talk_api.CreateBulkPhoneCallResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.talk_api.InitiateBulkAssistantTalkResponse} msg The message object to deserialize into. + * @param {!proto.talk_api.CreateBulkPhoneCallResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.talk_api.CreateBulkPhoneCallResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3335,8 +4202,8 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.deserializeBinaryFromReader = f msg.setSuccess(value); break; case 3: - var value = new proto.talk_api.InitiateAssistantTalkParameter; - reader.readMessage(value,proto.talk_api.InitiateAssistantTalkParameter.deserializeBinaryFromReader); + var value = new common_pb.AssistantConversation; + reader.readMessage(value,common_pb.AssistantConversation.deserializeBinaryFromReader); msg.addData(value); break; case 4: @@ -3357,9 +4224,9 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.serializeBinary = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.talk_api.InitiateBulkAssistantTalkResponse.serializeBinaryToWriter(this, writer); + proto.talk_api.CreateBulkPhoneCallResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3367,11 +4234,11 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.talk_api.InitiateBulkAssistantTalkResponse} message + * @param {!proto.talk_api.CreateBulkPhoneCallResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.talk_api.InitiateBulkAssistantTalkResponse.serializeBinaryToWriter = function(message, writer) { +proto.talk_api.CreateBulkPhoneCallResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -3392,7 +4259,7 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.serializeBinaryToWriter = funct writer.writeRepeatedMessage( 3, f, - proto.talk_api.InitiateAssistantTalkParameter.serializeBinaryToWriter + common_pb.AssistantConversation.serializeBinaryToWriter ); } f = message.getError(); @@ -3410,16 +4277,16 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.serializeBinaryToWriter = funct * optional int32 code = 1; * @return {number} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.getCode = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} returns this */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.setCode = function(value) { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -3428,54 +4295,54 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.setCode = function(va * optional bool success = 2; * @return {boolean} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.getSuccess = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} returns this */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.setSuccess = function(value) { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * repeated InitiateAssistantTalkParameter data = 3; - * @return {!Array} + * repeated AssistantConversation data = 3; + * @return {!Array} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.talk_api.InitiateAssistantTalkParameter, 3)); +proto.talk_api.CreateBulkPhoneCallResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversation, 3)); }; /** - * @param {!Array} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} returns this + * @param {!Array} value + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} returns this */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.setDataList = function(value) { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.setDataList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.talk_api.InitiateAssistantTalkParameter=} opt_value + * @param {!proto.AssistantConversation=} opt_value * @param {number=} opt_index - * @return {!proto.talk_api.InitiateAssistantTalkParameter} + * @return {!proto.AssistantConversation} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.talk_api.InitiateAssistantTalkParameter, opt_index); +proto.talk_api.CreateBulkPhoneCallResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversation, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} returns this */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.clearDataList = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.clearDataList = function() { return this.setDataList([]); }; @@ -3484,7 +4351,7 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.clearDataList = funct * optional Error error = 4; * @return {?proto.Error} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.getError = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -3492,18 +4359,18 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.getError = function() /** * @param {?proto.Error|undefined} value - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} returns this */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.setError = function(value) { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.talk_api.InitiateBulkAssistantTalkResponse} returns this + * @return {!proto.talk_api.CreateBulkPhoneCallResponse} returns this */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.clearError = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -3512,7 +4379,7 @@ proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.clearError = function * Returns whether this field is set. * @return {boolean} */ -proto.talk_api.InitiateBulkAssistantTalkResponse.prototype.hasError = function() { +proto.talk_api.CreateBulkPhoneCallResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; diff --git a/src/clients/protos/vault-api_grpc_pb.d.ts b/src/clients/protos/vault-api_grpc_pb.d.ts index c0a0640..922dc9f 100644 --- a/src/clients/protos/vault-api_grpc_pb.d.ts +++ b/src/clients/protos/vault-api_grpc_pb.d.ts @@ -7,43 +7,48 @@ import * as vault_api_pb from "./vault-api_pb"; import * as grpc from "grpc"; interface IVaultServiceService extends grpc.ServiceDefinition { - createProviderCredential: grpc.MethodDefinition; - createToolCredential: grpc.MethodDefinition; - deleteProviderCredential: grpc.MethodDefinition; + createProviderCredential: grpc.MethodDefinition; + createToolCredential: grpc.MethodDefinition; getAllOrganizationCredential: grpc.MethodDefinition; - getProviderCredential: grpc.MethodDefinition; - getOauth2VaultCredential: grpc.MethodDefinition; + deleteCredential: grpc.MethodDefinition; + getProviderCredential: grpc.MethodDefinition; + getCredential: grpc.MethodDefinition; + getOauth2Credential: grpc.MethodDefinition; } export const VaultServiceService: IVaultServiceService; export interface IVaultServiceServer extends grpc.UntypedServiceImplementation { - createProviderCredential: grpc.handleUnaryCall; - createToolCredential: grpc.handleUnaryCall; - deleteProviderCredential: grpc.handleUnaryCall; + createProviderCredential: grpc.handleUnaryCall; + createToolCredential: grpc.handleUnaryCall; getAllOrganizationCredential: grpc.handleUnaryCall; - getProviderCredential: grpc.handleUnaryCall; - getOauth2VaultCredential: grpc.handleUnaryCall; + deleteCredential: grpc.handleUnaryCall; + getProviderCredential: grpc.handleUnaryCall; + getCredential: grpc.handleUnaryCall; + getOauth2Credential: grpc.handleUnaryCall; } export class VaultServiceClient extends grpc.Client { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - createProviderCredential(argument: vault_api_pb.CreateProviderCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createProviderCredential(argument: vault_api_pb.CreateProviderCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createProviderCredential(argument: vault_api_pb.CreateProviderCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createToolCredential(argument: vault_api_pb.CreateToolCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createToolCredential(argument: vault_api_pb.CreateToolCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createToolCredential(argument: vault_api_pb.CreateToolCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteProviderCredential(argument: vault_api_pb.DeleteProviderCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteProviderCredential(argument: vault_api_pb.DeleteProviderCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteProviderCredential(argument: vault_api_pb.DeleteProviderCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createProviderCredential(argument: vault_api_pb.CreateProviderCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createProviderCredential(argument: vault_api_pb.CreateProviderCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createProviderCredential(argument: vault_api_pb.CreateProviderCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createToolCredential(argument: vault_api_pb.CreateToolCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createToolCredential(argument: vault_api_pb.CreateToolCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + createToolCredential(argument: vault_api_pb.CreateToolCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllOrganizationCredential(argument: vault_api_pb.GetAllOrganizationCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllOrganizationCredential(argument: vault_api_pb.GetAllOrganizationCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllOrganizationCredential(argument: vault_api_pb.GetAllOrganizationCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProviderCredential(argument: vault_api_pb.GetProviderCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProviderCredential(argument: vault_api_pb.GetProviderCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getProviderCredential(argument: vault_api_pb.GetProviderCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getOauth2VaultCredential(argument: vault_api_pb.GetOauth2VaultCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getOauth2VaultCredential(argument: vault_api_pb.GetOauth2VaultCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getOauth2VaultCredential(argument: vault_api_pb.GetOauth2VaultCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteCredential(argument: vault_api_pb.DeleteCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteCredential(argument: vault_api_pb.DeleteCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + deleteCredential(argument: vault_api_pb.DeleteCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getProviderCredential(argument: vault_api_pb.GetProviderCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getProviderCredential(argument: vault_api_pb.GetProviderCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getProviderCredential(argument: vault_api_pb.GetProviderCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getCredential(argument: vault_api_pb.GetCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getCredential(argument: vault_api_pb.GetCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getCredential(argument: vault_api_pb.GetCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getOauth2Credential(argument: vault_api_pb.GetCredentialRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getOauth2Credential(argument: vault_api_pb.GetCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + getOauth2Credential(argument: vault_api_pb.GetCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } diff --git a/src/clients/protos/vault-api_grpc_pb.js b/src/clients/protos/vault-api_grpc_pb.js index fb5a2b1..8213af0 100644 --- a/src/clients/protos/vault-api_grpc_pb.js +++ b/src/clients/protos/vault-api_grpc_pb.js @@ -18,17 +18,6 @@ function deserialize_vault_api_CreateProviderCredentialRequest(buffer_arg) { return vault$api_pb.CreateProviderCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_vault_api_CreateProviderCredentialResponse(arg) { - if (!(arg instanceof vault$api_pb.CreateProviderCredentialResponse)) { - throw new Error('Expected argument of type vault_api.CreateProviderCredentialResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_vault_api_CreateProviderCredentialResponse(buffer_arg) { - return vault$api_pb.CreateProviderCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_vault_api_CreateToolCredentialRequest(arg) { if (!(arg instanceof vault$api_pb.CreateToolCredentialRequest)) { throw new Error('Expected argument of type vault_api.CreateToolCredentialRequest'); @@ -40,37 +29,15 @@ function deserialize_vault_api_CreateToolCredentialRequest(buffer_arg) { return vault$api_pb.CreateToolCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_vault_api_CreateToolCredentialResponse(arg) { - if (!(arg instanceof vault$api_pb.CreateToolCredentialResponse)) { - throw new Error('Expected argument of type vault_api.CreateToolCredentialResponse'); +function serialize_vault_api_DeleteCredentialRequest(arg) { + if (!(arg instanceof vault$api_pb.DeleteCredentialRequest)) { + throw new Error('Expected argument of type vault_api.DeleteCredentialRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_vault_api_CreateToolCredentialResponse(buffer_arg) { - return vault$api_pb.CreateToolCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_vault_api_DeleteProviderCredentialRequest(arg) { - if (!(arg instanceof vault$api_pb.DeleteProviderCredentialRequest)) { - throw new Error('Expected argument of type vault_api.DeleteProviderCredentialRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_vault_api_DeleteProviderCredentialRequest(buffer_arg) { - return vault$api_pb.DeleteProviderCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_vault_api_DeleteProviderCredentialResponse(arg) { - if (!(arg instanceof vault$api_pb.DeleteProviderCredentialResponse)) { - throw new Error('Expected argument of type vault_api.DeleteProviderCredentialResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_vault_api_DeleteProviderCredentialResponse(buffer_arg) { - return vault$api_pb.DeleteProviderCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_vault_api_DeleteCredentialRequest(buffer_arg) { + return vault$api_pb.DeleteCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_vault_api_GetAllOrganizationCredentialRequest(arg) { @@ -95,26 +62,26 @@ function deserialize_vault_api_GetAllOrganizationCredentialResponse(buffer_arg) return vault$api_pb.GetAllOrganizationCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_vault_api_GetOauth2VaultCredentialRequest(arg) { - if (!(arg instanceof vault$api_pb.GetOauth2VaultCredentialRequest)) { - throw new Error('Expected argument of type vault_api.GetOauth2VaultCredentialRequest'); +function serialize_vault_api_GetCredentialRequest(arg) { + if (!(arg instanceof vault$api_pb.GetCredentialRequest)) { + throw new Error('Expected argument of type vault_api.GetCredentialRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_vault_api_GetOauth2VaultCredentialRequest(buffer_arg) { - return vault$api_pb.GetOauth2VaultCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_vault_api_GetCredentialRequest(buffer_arg) { + return vault$api_pb.GetCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_vault_api_GetOauth2VaultCredentialResponse(arg) { - if (!(arg instanceof vault$api_pb.GetOauth2VaultCredentialResponse)) { - throw new Error('Expected argument of type vault_api.GetOauth2VaultCredentialResponse'); +function serialize_vault_api_GetCredentialResponse(arg) { + if (!(arg instanceof vault$api_pb.GetCredentialResponse)) { + throw new Error('Expected argument of type vault_api.GetCredentialResponse'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_vault_api_GetOauth2VaultCredentialResponse(buffer_arg) { - return vault$api_pb.GetOauth2VaultCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_vault_api_GetCredentialResponse(buffer_arg) { + return vault$api_pb.GetCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_vault_api_GetProviderCredentialRequest(arg) { @@ -128,17 +95,6 @@ function deserialize_vault_api_GetProviderCredentialRequest(buffer_arg) { return vault$api_pb.GetProviderCredentialRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_vault_api_GetProviderCredentialResponse(arg) { - if (!(arg instanceof vault$api_pb.GetProviderCredentialResponse)) { - throw new Error('Expected argument of type vault_api.GetProviderCredentialResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_vault_api_GetProviderCredentialResponse(buffer_arg) { - return vault$api_pb.GetProviderCredentialResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - var VaultServiceService = exports.VaultServiceService = { createProviderCredential: { @@ -146,33 +102,22 @@ var VaultServiceService = exports.VaultServiceService = { requestStream: false, responseStream: false, requestType: vault$api_pb.CreateProviderCredentialRequest, - responseType: vault$api_pb.CreateProviderCredentialResponse, + responseType: vault$api_pb.GetCredentialResponse, requestSerialize: serialize_vault_api_CreateProviderCredentialRequest, requestDeserialize: deserialize_vault_api_CreateProviderCredentialRequest, - responseSerialize: serialize_vault_api_CreateProviderCredentialResponse, - responseDeserialize: deserialize_vault_api_CreateProviderCredentialResponse, + responseSerialize: serialize_vault_api_GetCredentialResponse, + responseDeserialize: deserialize_vault_api_GetCredentialResponse, }, createToolCredential: { path: '/vault_api.VaultService/CreateToolCredential', requestStream: false, responseStream: false, requestType: vault$api_pb.CreateToolCredentialRequest, - responseType: vault$api_pb.CreateToolCredentialResponse, + responseType: vault$api_pb.GetCredentialResponse, requestSerialize: serialize_vault_api_CreateToolCredentialRequest, requestDeserialize: deserialize_vault_api_CreateToolCredentialRequest, - responseSerialize: serialize_vault_api_CreateToolCredentialResponse, - responseDeserialize: deserialize_vault_api_CreateToolCredentialResponse, - }, - deleteProviderCredential: { - path: '/vault_api.VaultService/DeleteProviderCredential', - requestStream: false, - responseStream: false, - requestType: vault$api_pb.DeleteProviderCredentialRequest, - responseType: vault$api_pb.DeleteProviderCredentialResponse, - requestSerialize: serialize_vault_api_DeleteProviderCredentialRequest, - requestDeserialize: deserialize_vault_api_DeleteProviderCredentialRequest, - responseSerialize: serialize_vault_api_DeleteProviderCredentialResponse, - responseDeserialize: deserialize_vault_api_DeleteProviderCredentialResponse, + responseSerialize: serialize_vault_api_GetCredentialResponse, + responseDeserialize: deserialize_vault_api_GetCredentialResponse, }, getAllOrganizationCredential: { path: '/vault_api.VaultService/GetAllOrganizationCredential', @@ -185,27 +130,49 @@ var VaultServiceService = exports.VaultServiceService = { responseSerialize: serialize_vault_api_GetAllOrganizationCredentialResponse, responseDeserialize: deserialize_vault_api_GetAllOrganizationCredentialResponse, }, + deleteCredential: { + path: '/vault_api.VaultService/DeleteCredential', + requestStream: false, + responseStream: false, + requestType: vault$api_pb.DeleteCredentialRequest, + responseType: vault$api_pb.GetCredentialResponse, + requestSerialize: serialize_vault_api_DeleteCredentialRequest, + requestDeserialize: deserialize_vault_api_DeleteCredentialRequest, + responseSerialize: serialize_vault_api_GetCredentialResponse, + responseDeserialize: deserialize_vault_api_GetCredentialResponse, + }, getProviderCredential: { path: '/vault_api.VaultService/GetProviderCredential', requestStream: false, responseStream: false, requestType: vault$api_pb.GetProviderCredentialRequest, - responseType: vault$api_pb.GetProviderCredentialResponse, + responseType: vault$api_pb.GetCredentialResponse, requestSerialize: serialize_vault_api_GetProviderCredentialRequest, requestDeserialize: deserialize_vault_api_GetProviderCredentialRequest, - responseSerialize: serialize_vault_api_GetProviderCredentialResponse, - responseDeserialize: deserialize_vault_api_GetProviderCredentialResponse, + responseSerialize: serialize_vault_api_GetCredentialResponse, + responseDeserialize: deserialize_vault_api_GetCredentialResponse, + }, + getCredential: { + path: '/vault_api.VaultService/GetCredential', + requestStream: false, + responseStream: false, + requestType: vault$api_pb.GetCredentialRequest, + responseType: vault$api_pb.GetCredentialResponse, + requestSerialize: serialize_vault_api_GetCredentialRequest, + requestDeserialize: deserialize_vault_api_GetCredentialRequest, + responseSerialize: serialize_vault_api_GetCredentialResponse, + responseDeserialize: deserialize_vault_api_GetCredentialResponse, }, - getOauth2VaultCredential: { - path: '/vault_api.VaultService/GetOauth2VaultCredential', + getOauth2Credential: { + path: '/vault_api.VaultService/GetOauth2Credential', requestStream: false, responseStream: false, - requestType: vault$api_pb.GetOauth2VaultCredentialRequest, - responseType: vault$api_pb.GetOauth2VaultCredentialResponse, - requestSerialize: serialize_vault_api_GetOauth2VaultCredentialRequest, - requestDeserialize: deserialize_vault_api_GetOauth2VaultCredentialRequest, - responseSerialize: serialize_vault_api_GetOauth2VaultCredentialResponse, - responseDeserialize: deserialize_vault_api_GetOauth2VaultCredentialResponse, + requestType: vault$api_pb.GetCredentialRequest, + responseType: vault$api_pb.GetCredentialResponse, + requestSerialize: serialize_vault_api_GetCredentialRequest, + requestDeserialize: deserialize_vault_api_GetCredentialRequest, + responseSerialize: serialize_vault_api_GetCredentialResponse, + responseDeserialize: deserialize_vault_api_GetCredentialResponse, }, }; diff --git a/src/clients/protos/vault-api_pb.d.ts b/src/clients/protos/vault-api_pb.d.ts index bb307c2..cffabfa 100644 --- a/src/clients/protos/vault-api_pb.d.ts +++ b/src/clients/protos/vault-api_pb.d.ts @@ -108,42 +108,6 @@ export namespace CreateProviderCredentialRequest { } } -export class CreateProviderCredentialResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): VaultCredential | undefined; - setData(value?: VaultCredential): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateProviderCredentialResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateProviderCredentialResponse): CreateProviderCredentialResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateProviderCredentialResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateProviderCredentialResponse; - static deserializeBinaryFromReader(message: CreateProviderCredentialResponse, reader: jspb.BinaryReader): CreateProviderCredentialResponse; -} - -export namespace CreateProviderCredentialResponse { - export type AsObject = { - code: number, - success: boolean, - data?: VaultCredential.AsObject, - error?: common_pb.Error.AsObject, - } -} - export class CreateToolCredentialRequest extends jspb.Message { getToolid(): string; setToolid(value: string): void; @@ -178,93 +142,51 @@ export namespace CreateToolCredentialRequest { } } -export class CreateToolCredentialResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): VaultCredential | undefined; - setData(value?: VaultCredential): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateToolCredentialResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateToolCredentialResponse): CreateToolCredentialResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateToolCredentialResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateToolCredentialResponse; - static deserializeBinaryFromReader(message: CreateToolCredentialResponse, reader: jspb.BinaryReader): CreateToolCredentialResponse; -} - -export namespace CreateToolCredentialResponse { - export type AsObject = { - code: number, - success: boolean, - data?: VaultCredential.AsObject, - error?: common_pb.Error.AsObject, - } -} - -export class DeleteProviderCredentialRequest extends jspb.Message { - getProviderkeyid(): string; - setProviderkeyid(value: string): void; +export class DeleteCredentialRequest extends jspb.Message { + getVaultid(): string; + setVaultid(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteProviderCredentialRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteProviderCredentialRequest): DeleteProviderCredentialRequest.AsObject; + toObject(includeInstance?: boolean): DeleteCredentialRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteCredentialRequest): DeleteCredentialRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteProviderCredentialRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteProviderCredentialRequest; - static deserializeBinaryFromReader(message: DeleteProviderCredentialRequest, reader: jspb.BinaryReader): DeleteProviderCredentialRequest; + static serializeBinaryToWriter(message: DeleteCredentialRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteCredentialRequest; + static deserializeBinaryFromReader(message: DeleteCredentialRequest, reader: jspb.BinaryReader): DeleteCredentialRequest; } -export namespace DeleteProviderCredentialRequest { +export namespace DeleteCredentialRequest { export type AsObject = { - providerkeyid: string, + vaultid: string, } } -export class DeleteProviderCredentialResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - getId(): string; - setId(value: string): void; +export class GetAllOrganizationCredentialRequest extends jspb.Message { + hasPaginate(): boolean; + clearPaginate(): void; + getPaginate(): common_pb.Paginate | undefined; + setPaginate(value?: common_pb.Paginate): void; - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; + clearCriteriasList(): void; + getCriteriasList(): Array; + setCriteriasList(value: Array): void; + addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteProviderCredentialResponse.AsObject; - static toObject(includeInstance: boolean, msg: DeleteProviderCredentialResponse): DeleteProviderCredentialResponse.AsObject; + toObject(includeInstance?: boolean): GetAllOrganizationCredentialRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAllOrganizationCredentialRequest): GetAllOrganizationCredentialRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteProviderCredentialResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteProviderCredentialResponse; - static deserializeBinaryFromReader(message: DeleteProviderCredentialResponse, reader: jspb.BinaryReader): DeleteProviderCredentialResponse; + static serializeBinaryToWriter(message: GetAllOrganizationCredentialRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAllOrganizationCredentialRequest; + static deserializeBinaryFromReader(message: GetAllOrganizationCredentialRequest, reader: jspb.BinaryReader): GetAllOrganizationCredentialRequest; } -export namespace DeleteProviderCredentialResponse { +export namespace GetAllOrganizationCredentialRequest { export type AsObject = { - code: number, - success: boolean, - id: string, - error?: common_pb.Error.AsObject, + paginate?: common_pb.Paginate.AsObject, + criteriasList: Array, } } @@ -334,7 +256,7 @@ export namespace GetProviderCredentialRequest { } } -export class GetProviderCredentialResponse extends jspb.Message { +export class GetCredentialResponse extends jspb.Message { getCode(): number; setCode(value: number): void; @@ -352,16 +274,16 @@ export class GetProviderCredentialResponse extends jspb.Message { setError(value?: common_pb.Error): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetProviderCredentialResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetProviderCredentialResponse): GetProviderCredentialResponse.AsObject; + toObject(includeInstance?: boolean): GetCredentialResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetCredentialResponse): GetCredentialResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetProviderCredentialResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetProviderCredentialResponse; - static deserializeBinaryFromReader(message: GetProviderCredentialResponse, reader: jspb.BinaryReader): GetProviderCredentialResponse; + static serializeBinaryToWriter(message: GetCredentialResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetCredentialResponse; + static deserializeBinaryFromReader(message: GetCredentialResponse, reader: jspb.BinaryReader): GetCredentialResponse; } -export namespace GetProviderCredentialResponse { +export namespace GetCredentialResponse { export type AsObject = { code: number, success: boolean, @@ -370,95 +292,23 @@ export namespace GetProviderCredentialResponse { } } -export class GetAllOrganizationCredentialRequest extends jspb.Message { - hasPaginate(): boolean; - clearPaginate(): void; - getPaginate(): common_pb.Paginate | undefined; - setPaginate(value?: common_pb.Paginate): void; - - clearCriteriasList(): void; - getCriteriasList(): Array; - setCriteriasList(value: Array): void; - addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllOrganizationCredentialRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllOrganizationCredentialRequest): GetAllOrganizationCredentialRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllOrganizationCredentialRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllOrganizationCredentialRequest; - static deserializeBinaryFromReader(message: GetAllOrganizationCredentialRequest, reader: jspb.BinaryReader): GetAllOrganizationCredentialRequest; -} - -export namespace GetAllOrganizationCredentialRequest { - export type AsObject = { - paginate?: common_pb.Paginate.AsObject, - criteriasList: Array, - } -} - -export class GetOauth2VaultCredentialRequest extends jspb.Message { +export class GetCredentialRequest extends jspb.Message { getVaultid(): string; setVaultid(value: string): void; - getProviderid(): string; - setProviderid(value: string): void; - - getOrganizationid(): string; - setOrganizationid(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetOauth2VaultCredentialRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetOauth2VaultCredentialRequest): GetOauth2VaultCredentialRequest.AsObject; + toObject(includeInstance?: boolean): GetCredentialRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetCredentialRequest): GetCredentialRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetOauth2VaultCredentialRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetOauth2VaultCredentialRequest; - static deserializeBinaryFromReader(message: GetOauth2VaultCredentialRequest, reader: jspb.BinaryReader): GetOauth2VaultCredentialRequest; + static serializeBinaryToWriter(message: GetCredentialRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetCredentialRequest; + static deserializeBinaryFromReader(message: GetCredentialRequest, reader: jspb.BinaryReader): GetCredentialRequest; } -export namespace GetOauth2VaultCredentialRequest { +export namespace GetCredentialRequest { export type AsObject = { vaultid: string, - providerid: string, - organizationid: string, - } -} - -export class GetOauth2VaultCredentialResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): VaultCredential | undefined; - setData(value?: VaultCredential): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetOauth2VaultCredentialResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetOauth2VaultCredentialResponse): GetOauth2VaultCredentialResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetOauth2VaultCredentialResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetOauth2VaultCredentialResponse; - static deserializeBinaryFromReader(message: GetOauth2VaultCredentialResponse, reader: jspb.BinaryReader): GetOauth2VaultCredentialResponse; -} - -export namespace GetOauth2VaultCredentialResponse { - export type AsObject = { - code: number, - success: boolean, - data?: VaultCredential.AsObject, - error?: common_pb.Error.AsObject, } } diff --git a/src/clients/protos/vault-api_pb.js b/src/clients/protos/vault-api_pb.js index 83e6bbd..767fc5a 100644 --- a/src/clients/protos/vault-api_pb.js +++ b/src/clients/protos/vault-api_pb.js @@ -28,17 +28,13 @@ goog.object.extend(proto, google_protobuf_struct_pb); var common_pb = require('./common_pb.js'); goog.object.extend(proto, common_pb); goog.exportSymbol('proto.vault_api.CreateProviderCredentialRequest', null, global); -goog.exportSymbol('proto.vault_api.CreateProviderCredentialResponse', null, global); goog.exportSymbol('proto.vault_api.CreateToolCredentialRequest', null, global); -goog.exportSymbol('proto.vault_api.CreateToolCredentialResponse', null, global); -goog.exportSymbol('proto.vault_api.DeleteProviderCredentialRequest', null, global); -goog.exportSymbol('proto.vault_api.DeleteProviderCredentialResponse', null, global); +goog.exportSymbol('proto.vault_api.DeleteCredentialRequest', null, global); goog.exportSymbol('proto.vault_api.GetAllOrganizationCredentialRequest', null, global); goog.exportSymbol('proto.vault_api.GetAllOrganizationCredentialResponse', null, global); -goog.exportSymbol('proto.vault_api.GetOauth2VaultCredentialRequest', null, global); -goog.exportSymbol('proto.vault_api.GetOauth2VaultCredentialResponse', null, global); +goog.exportSymbol('proto.vault_api.GetCredentialRequest', null, global); +goog.exportSymbol('proto.vault_api.GetCredentialResponse', null, global); goog.exportSymbol('proto.vault_api.GetProviderCredentialRequest', null, global); -goog.exportSymbol('proto.vault_api.GetProviderCredentialResponse', null, global); goog.exportSymbol('proto.vault_api.VaultCredential', null, global); /** * Generated by JsPbCodeGenerator. @@ -82,27 +78,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.vault_api.CreateProviderCredentialRequest.displayName = 'proto.vault_api.CreateProviderCredentialRequest'; } -/** - * 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.vault_api.CreateProviderCredentialResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.vault_api.CreateProviderCredentialResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.vault_api.CreateProviderCredentialResponse.displayName = 'proto.vault_api.CreateProviderCredentialResponse'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -134,37 +109,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vault_api.CreateToolCredentialResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.vault_api.CreateToolCredentialResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.vault_api.CreateToolCredentialResponse.displayName = 'proto.vault_api.CreateToolCredentialResponse'; -} -/** - * 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.vault_api.DeleteProviderCredentialRequest = function(opt_data) { +proto.vault_api.DeleteCredentialRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vault_api.DeleteProviderCredentialRequest, jspb.Message); +goog.inherits(proto.vault_api.DeleteCredentialRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vault_api.DeleteProviderCredentialRequest.displayName = 'proto.vault_api.DeleteProviderCredentialRequest'; + proto.vault_api.DeleteCredentialRequest.displayName = 'proto.vault_api.DeleteCredentialRequest'; } /** * Generated by JsPbCodeGenerator. @@ -176,16 +130,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vault_api.DeleteProviderCredentialResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.vault_api.GetAllOrganizationCredentialRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.vault_api.GetAllOrganizationCredentialRequest.repeatedFields_, null); }; -goog.inherits(proto.vault_api.DeleteProviderCredentialResponse, jspb.Message); +goog.inherits(proto.vault_api.GetAllOrganizationCredentialRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vault_api.DeleteProviderCredentialResponse.displayName = 'proto.vault_api.DeleteProviderCredentialResponse'; + proto.vault_api.GetAllOrganizationCredentialRequest.displayName = 'proto.vault_api.GetAllOrganizationCredentialRequest'; } /** * Generated by JsPbCodeGenerator. @@ -239,58 +193,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vault_api.GetProviderCredentialResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.vault_api.GetProviderCredentialResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.vault_api.GetProviderCredentialResponse.displayName = 'proto.vault_api.GetProviderCredentialResponse'; -} -/** - * 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.vault_api.GetAllOrganizationCredentialRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.vault_api.GetAllOrganizationCredentialRequest.repeatedFields_, null); -}; -goog.inherits(proto.vault_api.GetAllOrganizationCredentialRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.vault_api.GetAllOrganizationCredentialRequest.displayName = 'proto.vault_api.GetAllOrganizationCredentialRequest'; -} -/** - * 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.vault_api.GetOauth2VaultCredentialRequest = function(opt_data) { +proto.vault_api.GetCredentialResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vault_api.GetOauth2VaultCredentialRequest, jspb.Message); +goog.inherits(proto.vault_api.GetCredentialResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vault_api.GetOauth2VaultCredentialRequest.displayName = 'proto.vault_api.GetOauth2VaultCredentialRequest'; + proto.vault_api.GetCredentialResponse.displayName = 'proto.vault_api.GetCredentialResponse'; } /** * Generated by JsPbCodeGenerator. @@ -302,16 +214,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.vault_api.GetOauth2VaultCredentialResponse = function(opt_data) { +proto.vault_api.GetCredentialRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.vault_api.GetOauth2VaultCredentialResponse, jspb.Message); +goog.inherits(proto.vault_api.GetCredentialRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.vault_api.GetOauth2VaultCredentialResponse.displayName = 'proto.vault_api.GetOauth2VaultCredentialResponse'; + proto.vault_api.GetCredentialRequest.displayName = 'proto.vault_api.GetCredentialRequest'; } @@ -1084,8 +996,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.CreateProviderCredentialResponse.toObject(opt_includeInstance, this); +proto.vault_api.CreateToolCredentialRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.CreateToolCredentialRequest.toObject(opt_includeInstance, this); }; @@ -1094,16 +1006,16 @@ proto.vault_api.CreateProviderCredentialResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vault_api.CreateProviderCredentialResponse} msg The msg instance to transform. + * @param {!proto.vault_api.CreateToolCredentialRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.CreateProviderCredentialResponse.toObject = function(includeInstance, msg) { +proto.vault_api.CreateToolCredentialRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.vault_api.VaultCredential.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + toolid: jspb.Message.getFieldWithDefault(msg, 1, "0"), + credential: (f = msg.getCredential()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + toolname: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -1117,23 +1029,23 @@ proto.vault_api.CreateProviderCredentialResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vault_api.CreateProviderCredentialResponse} + * @return {!proto.vault_api.CreateToolCredentialRequest} */ -proto.vault_api.CreateProviderCredentialResponse.deserializeBinary = function(bytes) { +proto.vault_api.CreateToolCredentialRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.CreateProviderCredentialResponse; - return proto.vault_api.CreateProviderCredentialResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vault_api.CreateToolCredentialRequest; + return proto.vault_api.CreateToolCredentialRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vault_api.CreateProviderCredentialResponse} msg The message object to deserialize into. + * @param {!proto.vault_api.CreateToolCredentialRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.CreateProviderCredentialResponse} + * @return {!proto.vault_api.CreateToolCredentialRequest} */ -proto.vault_api.CreateProviderCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.vault_api.CreateToolCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1141,22 +1053,21 @@ proto.vault_api.CreateProviderCredentialResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = /** @type {string} */ (reader.readUint64String()); + msg.setToolid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setCredential(value); break; case 3: - var value = new proto.vault_api.VaultCredential; - reader.readMessage(value,proto.vault_api.VaultCredential.deserializeBinaryFromReader); - msg.setData(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = /** @type {string} */ (reader.readString()); + msg.setToolname(value); break; default: reader.skipField(); @@ -1171,9 +1082,9 @@ proto.vault_api.CreateProviderCredentialResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.serializeBinary = function() { +proto.vault_api.CreateToolCredentialRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vault_api.CreateProviderCredentialResponse.serializeBinaryToWriter(this, writer); + proto.vault_api.CreateToolCredentialRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1181,106 +1092,87 @@ proto.vault_api.CreateProviderCredentialResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.CreateProviderCredentialResponse} message + * @param {!proto.vault_api.CreateToolCredentialRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.CreateProviderCredentialResponse.serializeBinaryToWriter = function(message, writer) { +proto.vault_api.CreateToolCredentialRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( + f = message.getToolid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getCredential(); + if (f != null) { + writer.writeMessage( 2, - f + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 3, - f, - proto.vault_api.VaultCredential.serializeBinaryToWriter + f ); } - f = message.getError(); - if (f != null) { - writer.writeMessage( + f = message.getToolname(); + if (f.length > 0) { + writer.writeString( 4, - f, - common_pb.Error.serializeBinaryToWriter + f ); } }; /** - * optional int32 code = 1; - * @return {number} - */ -proto.vault_api.CreateProviderCredentialResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vault_api.CreateProviderCredentialResponse} returns this - */ -proto.vault_api.CreateProviderCredentialResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} + * optional uint64 toolId = 1; + * @return {string} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.vault_api.CreateToolCredentialRequest.prototype.getToolid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {boolean} value - * @return {!proto.vault_api.CreateProviderCredentialResponse} returns this + * @param {string} value + * @return {!proto.vault_api.CreateToolCredentialRequest} returns this */ -proto.vault_api.CreateProviderCredentialResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.vault_api.CreateToolCredentialRequest.prototype.setToolid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional VaultCredential data = 3; - * @return {?proto.vault_api.VaultCredential} + * optional google.protobuf.Struct credential = 2; + * @return {?proto.google.protobuf.Struct} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.getData = function() { - return /** @type{?proto.vault_api.VaultCredential} */ ( - jspb.Message.getWrapperField(this, proto.vault_api.VaultCredential, 3)); +proto.vault_api.CreateToolCredentialRequest.prototype.getCredential = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); }; /** - * @param {?proto.vault_api.VaultCredential|undefined} value - * @return {!proto.vault_api.CreateProviderCredentialResponse} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.vault_api.CreateToolCredentialRequest} returns this */ -proto.vault_api.CreateProviderCredentialResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.vault_api.CreateToolCredentialRequest.prototype.setCredential = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.vault_api.CreateProviderCredentialResponse} returns this + * @return {!proto.vault_api.CreateToolCredentialRequest} returns this */ -proto.vault_api.CreateProviderCredentialResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.vault_api.CreateToolCredentialRequest.prototype.clearCredential = function() { + return this.setCredential(undefined); }; @@ -1288,45 +1180,44 @@ proto.vault_api.CreateProviderCredentialResponse.prototype.clearData = function( * Returns whether this field is set. * @return {boolean} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.vault_api.CreateToolCredentialRequest.prototype.hasCredential = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional Error error = 4; - * @return {?proto.Error} + * optional string name = 3; + * @return {string} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.vault_api.CreateToolCredentialRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.vault_api.CreateProviderCredentialResponse} returns this -*/ -proto.vault_api.CreateProviderCredentialResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {string} value + * @return {!proto.vault_api.CreateToolCredentialRequest} returns this + */ +proto.vault_api.CreateToolCredentialRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.vault_api.CreateProviderCredentialResponse} returns this + * optional string toolName = 4; + * @return {string} */ -proto.vault_api.CreateProviderCredentialResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.vault_api.CreateToolCredentialRequest.prototype.getToolname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.vault_api.CreateToolCredentialRequest} returns this */ -proto.vault_api.CreateProviderCredentialResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; +proto.vault_api.CreateToolCredentialRequest.prototype.setToolname = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -1346,8 +1237,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vault_api.CreateToolCredentialRequest.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.CreateToolCredentialRequest.toObject(opt_includeInstance, this); +proto.vault_api.DeleteCredentialRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.DeleteCredentialRequest.toObject(opt_includeInstance, this); }; @@ -1356,16 +1247,13 @@ proto.vault_api.CreateToolCredentialRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vault_api.CreateToolCredentialRequest} msg The msg instance to transform. + * @param {!proto.vault_api.DeleteCredentialRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.CreateToolCredentialRequest.toObject = function(includeInstance, msg) { +proto.vault_api.DeleteCredentialRequest.toObject = function(includeInstance, msg) { var f, obj = { - toolid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - credential: (f = msg.getCredential()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - toolname: jspb.Message.getFieldWithDefault(msg, 4, "") + vaultid: jspb.Message.getFieldWithDefault(msg, 1, "0") }; if (includeInstance) { @@ -1379,23 +1267,23 @@ proto.vault_api.CreateToolCredentialRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vault_api.CreateToolCredentialRequest} + * @return {!proto.vault_api.DeleteCredentialRequest} */ -proto.vault_api.CreateToolCredentialRequest.deserializeBinary = function(bytes) { +proto.vault_api.DeleteCredentialRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.CreateToolCredentialRequest; - return proto.vault_api.CreateToolCredentialRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vault_api.DeleteCredentialRequest; + return proto.vault_api.DeleteCredentialRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vault_api.CreateToolCredentialRequest} msg The message object to deserialize into. + * @param {!proto.vault_api.DeleteCredentialRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.CreateToolCredentialRequest} + * @return {!proto.vault_api.DeleteCredentialRequest} */ -proto.vault_api.CreateToolCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.vault_api.DeleteCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1404,20 +1292,7 @@ proto.vault_api.CreateToolCredentialRequest.deserializeBinaryFromReader = functi switch (field) { case 1: var value = /** @type {string} */ (reader.readUint64String()); - msg.setToolid(value); - break; - case 2: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setCredential(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setToolname(value); + msg.setVaultid(value); break; default: reader.skipField(); @@ -1432,9 +1307,9 @@ proto.vault_api.CreateToolCredentialRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vault_api.CreateToolCredentialRequest.prototype.serializeBinary = function() { +proto.vault_api.DeleteCredentialRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vault_api.CreateToolCredentialRequest.serializeBinaryToWriter(this, writer); + proto.vault_api.DeleteCredentialRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1442,135 +1317,47 @@ proto.vault_api.CreateToolCredentialRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.CreateToolCredentialRequest} message + * @param {!proto.vault_api.DeleteCredentialRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.CreateToolCredentialRequest.serializeBinaryToWriter = function(message, writer) { +proto.vault_api.DeleteCredentialRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getToolid(); + f = message.getVaultid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( 1, f ); } - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getToolname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } }; /** - * optional uint64 toolId = 1; + * optional uint64 vaultId = 1; * @return {string} */ -proto.vault_api.CreateToolCredentialRequest.prototype.getToolid = function() { +proto.vault_api.DeleteCredentialRequest.prototype.getVaultid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value - * @return {!proto.vault_api.CreateToolCredentialRequest} returns this + * @return {!proto.vault_api.DeleteCredentialRequest} returns this */ -proto.vault_api.CreateToolCredentialRequest.prototype.setToolid = function(value) { +proto.vault_api.DeleteCredentialRequest.prototype.setVaultid = function(value) { return jspb.Message.setProto3StringIntField(this, 1, value); }; -/** - * optional google.protobuf.Struct credential = 2; - * @return {?proto.google.protobuf.Struct} - */ -proto.vault_api.CreateToolCredentialRequest.prototype.getCredential = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.vault_api.CreateToolCredentialRequest} returns this -*/ -proto.vault_api.CreateToolCredentialRequest.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.CreateToolCredentialRequest} returns this - */ -proto.vault_api.CreateToolCredentialRequest.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.CreateToolCredentialRequest.prototype.hasCredential = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.vault_api.CreateToolCredentialRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.vault_api.CreateToolCredentialRequest} returns this - */ -proto.vault_api.CreateToolCredentialRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string toolName = 4; - * @return {string} - */ -proto.vault_api.CreateToolCredentialRequest.prototype.getToolname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - /** - * @param {string} value - * @return {!proto.vault_api.CreateToolCredentialRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.vault_api.CreateToolCredentialRequest.prototype.setToolname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - +proto.vault_api.GetAllOrganizationCredentialRequest.repeatedFields_ = [2]; @@ -1587,8 +1374,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vault_api.CreateToolCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.CreateToolCredentialResponse.toObject(opt_includeInstance, this); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.GetAllOrganizationCredentialRequest.toObject(opt_includeInstance, this); }; @@ -1597,16 +1384,15 @@ proto.vault_api.CreateToolCredentialResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vault_api.CreateToolCredentialResponse} msg The msg instance to transform. + * @param {!proto.vault_api.GetAllOrganizationCredentialRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.CreateToolCredentialResponse.toObject = function(includeInstance, msg) { +proto.vault_api.GetAllOrganizationCredentialRequest.toObject = function(includeInstance, msg) { var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.vault_api.VaultCredential.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), + criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), + common_pb.Criteria.toObject, includeInstance) }; if (includeInstance) { @@ -1620,23 +1406,23 @@ proto.vault_api.CreateToolCredentialResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vault_api.CreateToolCredentialResponse} + * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} */ -proto.vault_api.CreateToolCredentialResponse.deserializeBinary = function(bytes) { +proto.vault_api.GetAllOrganizationCredentialRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.CreateToolCredentialResponse; - return proto.vault_api.CreateToolCredentialResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vault_api.GetAllOrganizationCredentialRequest; + return proto.vault_api.GetAllOrganizationCredentialRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vault_api.CreateToolCredentialResponse} msg The message object to deserialize into. + * @param {!proto.vault_api.GetAllOrganizationCredentialRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.CreateToolCredentialResponse} + * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} */ -proto.vault_api.CreateToolCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.vault_api.GetAllOrganizationCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1644,22 +1430,14 @@ proto.vault_api.CreateToolCredentialResponse.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); + var value = new common_pb.Paginate; + reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); + msg.setPaginate(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.vault_api.VaultCredential; - reader.readMessage(value,proto.vault_api.VaultCredential.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); + var value = new common_pb.Criteria; + reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); + msg.addCriterias(value); break; default: reader.skipField(); @@ -1674,9 +1452,9 @@ proto.vault_api.CreateToolCredentialResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vault_api.CreateToolCredentialResponse.prototype.serializeBinary = function() { +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vault_api.CreateToolCredentialResponse.serializeBinaryToWriter(this, writer); + proto.vault_api.GetAllOrganizationCredentialRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1684,1009 +1462,114 @@ proto.vault_api.CreateToolCredentialResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.CreateToolCredentialResponse} message + * @param {!proto.vault_api.GetAllOrganizationCredentialRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.CreateToolCredentialResponse.serializeBinaryToWriter = function(message, writer) { +proto.vault_api.GetAllOrganizationCredentialRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); + f = message.getPaginate(); if (f != null) { writer.writeMessage( - 3, + 1, f, - proto.vault_api.VaultCredential.serializeBinaryToWriter + common_pb.Paginate.serializeBinaryToWriter ); } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, + f = message.getCriteriasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, f, - common_pb.Error.serializeBinaryToWriter + common_pb.Criteria.serializeBinaryToWriter ); } }; /** - * optional int32 code = 1; - * @return {number} - */ -proto.vault_api.CreateToolCredentialResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vault_api.CreateToolCredentialResponse} returns this - */ -proto.vault_api.CreateToolCredentialResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.vault_api.CreateToolCredentialResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.vault_api.CreateToolCredentialResponse} returns this - */ -proto.vault_api.CreateToolCredentialResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional VaultCredential data = 3; - * @return {?proto.vault_api.VaultCredential} + * optional Paginate paginate = 1; + * @return {?proto.Paginate} */ -proto.vault_api.CreateToolCredentialResponse.prototype.getData = function() { - return /** @type{?proto.vault_api.VaultCredential} */ ( - jspb.Message.getWrapperField(this, proto.vault_api.VaultCredential, 3)); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.getPaginate = function() { + return /** @type{?proto.Paginate} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); }; /** - * @param {?proto.vault_api.VaultCredential|undefined} value - * @return {!proto.vault_api.CreateToolCredentialResponse} returns this + * @param {?proto.Paginate|undefined} value + * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this */ -proto.vault_api.CreateToolCredentialResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.setPaginate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.vault_api.CreateToolCredentialResponse} returns this + * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this */ -proto.vault_api.CreateToolCredentialResponse.prototype.clearData = function() { - return this.setData(undefined); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.clearPaginate = function() { + return this.setPaginate(undefined); }; /** * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.CreateToolCredentialResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.vault_api.CreateToolCredentialResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.vault_api.CreateToolCredentialResponse} returns this -*/ -proto.vault_api.CreateToolCredentialResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.CreateToolCredentialResponse} returns this - */ -proto.vault_api.CreateToolCredentialResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.CreateToolCredentialResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.vault_api.DeleteProviderCredentialRequest.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.DeleteProviderCredentialRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vault_api.DeleteProviderCredentialRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.DeleteProviderCredentialRequest.toObject = function(includeInstance, msg) { - var f, obj = { - providerkeyid: jspb.Message.getFieldWithDefault(msg, 1, "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.vault_api.DeleteProviderCredentialRequest} - */ -proto.vault_api.DeleteProviderCredentialRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.DeleteProviderCredentialRequest; - return proto.vault_api.DeleteProviderCredentialRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vault_api.DeleteProviderCredentialRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.DeleteProviderCredentialRequest} - */ -proto.vault_api.DeleteProviderCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderkeyid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.vault_api.DeleteProviderCredentialRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vault_api.DeleteProviderCredentialRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.DeleteProviderCredentialRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.DeleteProviderCredentialRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderkeyid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } -}; - - -/** - * optional uint64 providerKeyId = 1; - * @return {string} - */ -proto.vault_api.DeleteProviderCredentialRequest.prototype.getProviderkeyid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.vault_api.DeleteProviderCredentialRequest} returns this - */ -proto.vault_api.DeleteProviderCredentialRequest.prototype.setProviderkeyid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.DeleteProviderCredentialResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vault_api.DeleteProviderCredentialResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.DeleteProviderCredentialResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - id: jspb.Message.getFieldWithDefault(msg, 3, "0"), - error: (f = msg.getError()) && common_pb.Error.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.vault_api.DeleteProviderCredentialResponse} - */ -proto.vault_api.DeleteProviderCredentialResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.DeleteProviderCredentialResponse; - return proto.vault_api.DeleteProviderCredentialResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vault_api.DeleteProviderCredentialResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.DeleteProviderCredentialResponse} - */ -proto.vault_api.DeleteProviderCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vault_api.DeleteProviderCredentialResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.DeleteProviderCredentialResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.DeleteProviderCredentialResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vault_api.DeleteProviderCredentialResponse} returns this - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.vault_api.DeleteProviderCredentialResponse} returns this - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 id = 3; - * @return {string} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.vault_api.DeleteProviderCredentialResponse} returns this - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.vault_api.DeleteProviderCredentialResponse} returns this -*/ -proto.vault_api.DeleteProviderCredentialResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.DeleteProviderCredentialResponse} returns this - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.DeleteProviderCredentialResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.vault_api.GetAllOrganizationCredentialResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.GetAllOrganizationCredentialResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vault_api.GetAllOrganizationCredentialResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.GetAllOrganizationCredentialResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.vault_api.VaultCredential.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.vault_api.GetAllOrganizationCredentialResponse} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.GetAllOrganizationCredentialResponse; - return proto.vault_api.GetAllOrganizationCredentialResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vault_api.GetAllOrganizationCredentialResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.vault_api.VaultCredential; - reader.readMessage(value,proto.vault_api.VaultCredential.deserializeBinaryFromReader); - msg.addData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 5: - var value = new common_pb.Paginated; - reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); - msg.setPaginated(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vault_api.GetAllOrganizationCredentialResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.GetAllOrganizationCredentialResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.GetAllOrganizationCredentialResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.vault_api.VaultCredential.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getPaginated(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Paginated.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated VaultCredential data = 3; - * @return {!Array} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vault_api.VaultCredential, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this -*/ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.vault_api.VaultCredential=} opt_value - * @param {number=} opt_index - * @return {!proto.vault_api.VaultCredential} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.vault_api.VaultCredential, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this -*/ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Paginated paginated = 5; - * @return {?proto.Paginated} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getPaginated = function() { - return /** @type{?proto.Paginated} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); -}; - - -/** - * @param {?proto.Paginated|undefined} value - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this -*/ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setPaginated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.clearPaginated = function() { - return this.setPaginated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.GetAllOrganizationCredentialResponse.prototype.hasPaginated = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.vault_api.GetProviderCredentialRequest.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.GetProviderCredentialRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vault_api.GetProviderCredentialRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.GetProviderCredentialRequest.toObject = function(includeInstance, msg) { - var f, obj = { - providerid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - organizationid: 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.vault_api.GetProviderCredentialRequest} - */ -proto.vault_api.GetProviderCredentialRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.GetProviderCredentialRequest; - return proto.vault_api.GetProviderCredentialRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vault_api.GetProviderCredentialRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.GetProviderCredentialRequest} - */ -proto.vault_api.GetProviderCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setProviderid(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOrganizationid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.vault_api.GetProviderCredentialRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vault_api.GetProviderCredentialRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.GetProviderCredentialRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.GetProviderCredentialRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getOrganizationid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } + * @return {boolean} + */ +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.hasPaginate = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional uint64 providerId = 3; - * @return {string} + * repeated Criteria criterias = 2; + * @return {!Array} */ -proto.vault_api.GetProviderCredentialRequest.prototype.getProviderid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.getCriteriasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); }; /** - * @param {string} value - * @return {!proto.vault_api.GetProviderCredentialRequest} returns this - */ -proto.vault_api.GetProviderCredentialRequest.prototype.setProviderid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); + * @param {!Array} value + * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this +*/ +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.setCriteriasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional uint64 organizationId = 4; - * @return {string} + * @param {!proto.Criteria=} opt_value + * @param {number=} opt_index + * @return {!proto.Criteria} */ -proto.vault_api.GetProviderCredentialRequest.prototype.getOrganizationid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.addCriterias = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); }; /** - * @param {string} value - * @return {!proto.vault_api.GetProviderCredentialRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this */ -proto.vault_api.GetProviderCredentialRequest.prototype.setOrganizationid = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); +proto.vault_api.GetAllOrganizationCredentialRequest.prototype.clearCriteriasList = function() { + return this.setCriteriasList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.vault_api.GetAllOrganizationCredentialResponse.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -2702,8 +1585,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vault_api.GetProviderCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.GetProviderCredentialResponse.toObject(opt_includeInstance, this); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.GetAllOrganizationCredentialResponse.toObject(opt_includeInstance, this); }; @@ -2712,16 +1595,18 @@ proto.vault_api.GetProviderCredentialResponse.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vault_api.GetProviderCredentialResponse} msg The msg instance to transform. + * @param {!proto.vault_api.GetAllOrganizationCredentialResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.GetProviderCredentialResponse.toObject = function(includeInstance, msg) { +proto.vault_api.GetAllOrganizationCredentialResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.vault_api.VaultCredential.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f) + dataList: jspb.Message.toObjectList(msg.getDataList(), + proto.vault_api.VaultCredential.toObject, includeInstance), + error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), + paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f) }; if (includeInstance) { @@ -2735,23 +1620,23 @@ proto.vault_api.GetProviderCredentialResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vault_api.GetProviderCredentialResponse} + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} */ -proto.vault_api.GetProviderCredentialResponse.deserializeBinary = function(bytes) { +proto.vault_api.GetAllOrganizationCredentialResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.GetProviderCredentialResponse; - return proto.vault_api.GetProviderCredentialResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vault_api.GetAllOrganizationCredentialResponse; + return proto.vault_api.GetAllOrganizationCredentialResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vault_api.GetProviderCredentialResponse} msg The message object to deserialize into. + * @param {!proto.vault_api.GetAllOrganizationCredentialResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.GetProviderCredentialResponse} + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} */ -proto.vault_api.GetProviderCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.vault_api.GetAllOrganizationCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2769,13 +1654,18 @@ proto.vault_api.GetProviderCredentialResponse.deserializeBinaryFromReader = func case 3: var value = new proto.vault_api.VaultCredential; reader.readMessage(value,proto.vault_api.VaultCredential.deserializeBinaryFromReader); - msg.setData(value); + msg.addData(value); break; case 4: var value = new common_pb.Error; reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); msg.setError(value); break; + case 5: + var value = new common_pb.Paginated; + reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); + msg.setPaginated(value); + break; default: reader.skipField(); break; @@ -2789,9 +1679,9 @@ proto.vault_api.GetProviderCredentialResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vault_api.GetProviderCredentialResponse.prototype.serializeBinary = function() { +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vault_api.GetProviderCredentialResponse.serializeBinaryToWriter(this, writer); + proto.vault_api.GetAllOrganizationCredentialResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2799,11 +1689,11 @@ proto.vault_api.GetProviderCredentialResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.GetProviderCredentialResponse} message + * @param {!proto.vault_api.GetAllOrganizationCredentialResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.GetProviderCredentialResponse.serializeBinaryToWriter = function(message, writer) { +proto.vault_api.GetAllOrganizationCredentialResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -2819,9 +1709,9 @@ proto.vault_api.GetProviderCredentialResponse.serializeBinaryToWriter = function f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getDataList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, f, proto.vault_api.VaultCredential.serializeBinaryToWriter @@ -2835,6 +1725,14 @@ proto.vault_api.GetProviderCredentialResponse.serializeBinaryToWriter = function common_pb.Error.serializeBinaryToWriter ); } + f = message.getPaginated(); + if (f != null) { + writer.writeMessage( + 5, + f, + common_pb.Paginated.serializeBinaryToWriter + ); + } }; @@ -2842,16 +1740,16 @@ proto.vault_api.GetProviderCredentialResponse.serializeBinaryToWriter = function * optional int32 code = 1; * @return {number} */ -proto.vault_api.GetProviderCredentialResponse.prototype.getCode = function() { +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.vault_api.GetProviderCredentialResponse} returns this + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetProviderCredentialResponse.prototype.setCode = function(value) { +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -2860,255 +1758,83 @@ proto.vault_api.GetProviderCredentialResponse.prototype.setCode = function(value * optional bool success = 2; * @return {boolean} */ -proto.vault_api.GetProviderCredentialResponse.prototype.getSuccess = function() { +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.vault_api.GetProviderCredentialResponse} returns this + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetProviderCredentialResponse.prototype.setSuccess = function(value) { +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional VaultCredential data = 3; - * @return {?proto.vault_api.VaultCredential} - */ -proto.vault_api.GetProviderCredentialResponse.prototype.getData = function() { - return /** @type{?proto.vault_api.VaultCredential} */ ( - jspb.Message.getWrapperField(this, proto.vault_api.VaultCredential, 3)); -}; - - -/** - * @param {?proto.vault_api.VaultCredential|undefined} value - * @return {!proto.vault_api.GetProviderCredentialResponse} returns this -*/ -proto.vault_api.GetProviderCredentialResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.GetProviderCredentialResponse} returns this - */ -proto.vault_api.GetProviderCredentialResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.GetProviderCredentialResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} + * repeated VaultCredential data = 3; + * @return {!Array} */ -proto.vault_api.GetProviderCredentialResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getDataList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.vault_api.VaultCredential, 3)); }; /** - * @param {?proto.Error|undefined} value - * @return {!proto.vault_api.GetProviderCredentialResponse} returns this + * @param {!Array} value + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetProviderCredentialResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.vault_api.GetProviderCredentialResponse} returns this - */ -proto.vault_api.GetProviderCredentialResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.vault_api.GetProviderCredentialResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.vault_api.GetAllOrganizationCredentialRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.GetAllOrganizationCredentialRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.vault_api.GetAllOrganizationCredentialRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.vault_api.GetAllOrganizationCredentialRequest.toObject = function(includeInstance, msg) { - var f, obj = { - paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.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.vault_api.GetAllOrganizationCredentialRequest} - */ -proto.vault_api.GetAllOrganizationCredentialRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.GetAllOrganizationCredentialRequest; - return proto.vault_api.GetAllOrganizationCredentialRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.vault_api.GetAllOrganizationCredentialRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} - */ -proto.vault_api.GetAllOrganizationCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Paginate; - reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); - msg.setPaginate(value); - break; - case 2: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setDataList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!proto.vault_api.VaultCredential=} opt_value + * @param {number=} opt_index + * @return {!proto.vault_api.VaultCredential} */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.vault_api.GetAllOrganizationCredentialRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.addData = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.vault_api.VaultCredential, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.GetAllOrganizationCredentialRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetAllOrganizationCredentialRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaginate(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Paginate.serializeBinaryToWriter - ); - } - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - common_pb.Criteria.serializeBinaryToWriter - ); - } +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.clearDataList = function() { + return this.setDataList([]); }; /** - * optional Paginate paginate = 1; - * @return {?proto.Paginate} + * optional Error error = 4; + * @return {?proto.Error} */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getError = function() { + return /** @type{?proto.Error} */ ( + jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; /** - * @param {?proto.Paginate|undefined} value - * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this + * @param {?proto.Error|undefined} value + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.clearError = function() { + return this.setError(undefined); }; @@ -3116,46 +1842,45 @@ proto.vault_api.GetAllOrganizationCredentialRequest.prototype.clearPaginate = fu * Returns whether this field is set. * @return {boolean} */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * repeated Criteria criterias = 2; - * @return {!Array} + * optional Paginated paginated = 5; + * @return {?proto.Paginated} */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.getPaginated = function() { + return /** @type{?proto.Paginated} */ ( + jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); }; /** - * @param {!Array} value - * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this + * @param {?proto.Paginated|undefined} value + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.setPaginated = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} + * Clears the message field making it undefined. + * @return {!proto.vault_api.GetAllOrganizationCredentialResponse} returns this */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.clearPaginated = function() { + return this.setPaginated(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.vault_api.GetAllOrganizationCredentialRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.vault_api.GetAllOrganizationCredentialRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); +proto.vault_api.GetAllOrganizationCredentialResponse.prototype.hasPaginated = function() { + return jspb.Message.getField(this, 5) != null; }; @@ -3175,8 +1900,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.GetOauth2VaultCredentialRequest.toObject(opt_includeInstance, this); +proto.vault_api.GetProviderCredentialRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.GetProviderCredentialRequest.toObject(opt_includeInstance, this); }; @@ -3185,13 +1910,12 @@ proto.vault_api.GetOauth2VaultCredentialRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vault_api.GetOauth2VaultCredentialRequest} msg The msg instance to transform. + * @param {!proto.vault_api.GetProviderCredentialRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.GetOauth2VaultCredentialRequest.toObject = function(includeInstance, msg) { +proto.vault_api.GetProviderCredentialRequest.toObject = function(includeInstance, msg) { var f, obj = { - vaultid: jspb.Message.getFieldWithDefault(msg, 1, "0"), providerid: jspb.Message.getFieldWithDefault(msg, 3, "0"), organizationid: jspb.Message.getFieldWithDefault(msg, 4, "0") }; @@ -3207,33 +1931,29 @@ proto.vault_api.GetOauth2VaultCredentialRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vault_api.GetOauth2VaultCredentialRequest} + * @return {!proto.vault_api.GetProviderCredentialRequest} */ -proto.vault_api.GetOauth2VaultCredentialRequest.deserializeBinary = function(bytes) { +proto.vault_api.GetProviderCredentialRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.GetOauth2VaultCredentialRequest; - return proto.vault_api.GetOauth2VaultCredentialRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vault_api.GetProviderCredentialRequest; + return proto.vault_api.GetProviderCredentialRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vault_api.GetOauth2VaultCredentialRequest} msg The message object to deserialize into. + * @param {!proto.vault_api.GetProviderCredentialRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.GetOauth2VaultCredentialRequest} + * @return {!proto.vault_api.GetProviderCredentialRequest} */ -proto.vault_api.GetOauth2VaultCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.vault_api.GetProviderCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setVaultid(value); - break; case 3: var value = /** @type {string} */ (reader.readUint64String()); msg.setProviderid(value); @@ -3255,9 +1975,9 @@ proto.vault_api.GetOauth2VaultCredentialRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.serializeBinary = function() { +proto.vault_api.GetProviderCredentialRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vault_api.GetOauth2VaultCredentialRequest.serializeBinaryToWriter(this, writer); + proto.vault_api.GetProviderCredentialRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3265,19 +1985,12 @@ proto.vault_api.GetOauth2VaultCredentialRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.GetOauth2VaultCredentialRequest} message + * @param {!proto.vault_api.GetProviderCredentialRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.GetOauth2VaultCredentialRequest.serializeBinaryToWriter = function(message, writer) { +proto.vault_api.GetProviderCredentialRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getVaultid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } f = message.getProviderid(); if (parseInt(f, 10) !== 0) { writer.writeUint64String( @@ -3295,38 +2008,20 @@ proto.vault_api.GetOauth2VaultCredentialRequest.serializeBinaryToWriter = functi }; -/** - * optional uint64 vaultId = 1; - * @return {string} - */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.getVaultid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.vault_api.GetOauth2VaultCredentialRequest} returns this - */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.setVaultid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - /** * optional uint64 providerId = 3; * @return {string} */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.getProviderid = function() { +proto.vault_api.GetProviderCredentialRequest.prototype.getProviderid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** * @param {string} value - * @return {!proto.vault_api.GetOauth2VaultCredentialRequest} returns this + * @return {!proto.vault_api.GetProviderCredentialRequest} returns this */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.setProviderid = function(value) { +proto.vault_api.GetProviderCredentialRequest.prototype.setProviderid = function(value) { return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -3335,16 +2030,16 @@ proto.vault_api.GetOauth2VaultCredentialRequest.prototype.setProviderid = functi * optional uint64 organizationId = 4; * @return {string} */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.getOrganizationid = function() { +proto.vault_api.GetProviderCredentialRequest.prototype.getOrganizationid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; /** * @param {string} value - * @return {!proto.vault_api.GetOauth2VaultCredentialRequest} returns this + * @return {!proto.vault_api.GetProviderCredentialRequest} returns this */ -proto.vault_api.GetOauth2VaultCredentialRequest.prototype.setOrganizationid = function(value) { +proto.vault_api.GetProviderCredentialRequest.prototype.setOrganizationid = function(value) { return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -3365,8 +2060,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.toObject = function(opt_includeInstance) { - return proto.vault_api.GetOauth2VaultCredentialResponse.toObject(opt_includeInstance, this); +proto.vault_api.GetCredentialResponse.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.GetCredentialResponse.toObject(opt_includeInstance, this); }; @@ -3375,11 +2070,11 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.vault_api.GetOauth2VaultCredentialResponse} msg The msg instance to transform. + * @param {!proto.vault_api.GetCredentialResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.GetOauth2VaultCredentialResponse.toObject = function(includeInstance, msg) { +proto.vault_api.GetCredentialResponse.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, 0), success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), @@ -3398,23 +2093,23 @@ proto.vault_api.GetOauth2VaultCredentialResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} + * @return {!proto.vault_api.GetCredentialResponse} */ -proto.vault_api.GetOauth2VaultCredentialResponse.deserializeBinary = function(bytes) { +proto.vault_api.GetCredentialResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.vault_api.GetOauth2VaultCredentialResponse; - return proto.vault_api.GetOauth2VaultCredentialResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.vault_api.GetCredentialResponse; + return proto.vault_api.GetCredentialResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.vault_api.GetOauth2VaultCredentialResponse} msg The message object to deserialize into. + * @param {!proto.vault_api.GetCredentialResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} + * @return {!proto.vault_api.GetCredentialResponse} */ -proto.vault_api.GetOauth2VaultCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.vault_api.GetCredentialResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3452,9 +2147,9 @@ proto.vault_api.GetOauth2VaultCredentialResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.serializeBinary = function() { +proto.vault_api.GetCredentialResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.vault_api.GetOauth2VaultCredentialResponse.serializeBinaryToWriter(this, writer); + proto.vault_api.GetCredentialResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3462,11 +2157,11 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.vault_api.GetOauth2VaultCredentialResponse} message + * @param {!proto.vault_api.GetCredentialResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.vault_api.GetOauth2VaultCredentialResponse.serializeBinaryToWriter = function(message, writer) { +proto.vault_api.GetCredentialResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f !== 0) { @@ -3505,16 +2200,16 @@ proto.vault_api.GetOauth2VaultCredentialResponse.serializeBinaryToWriter = funct * optional int32 code = 1; * @return {number} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.getCode = function() { +proto.vault_api.GetCredentialResponse.prototype.getCode = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} returns this + * @return {!proto.vault_api.GetCredentialResponse} returns this */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.setCode = function(value) { +proto.vault_api.GetCredentialResponse.prototype.setCode = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -3523,16 +2218,16 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.setCode = function(va * optional bool success = 2; * @return {boolean} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.getSuccess = function() { +proto.vault_api.GetCredentialResponse.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} returns this + * @return {!proto.vault_api.GetCredentialResponse} returns this */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.setSuccess = function(value) { +proto.vault_api.GetCredentialResponse.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -3541,7 +2236,7 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.setSuccess = function * optional VaultCredential data = 3; * @return {?proto.vault_api.VaultCredential} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.getData = function() { +proto.vault_api.GetCredentialResponse.prototype.getData = function() { return /** @type{?proto.vault_api.VaultCredential} */ ( jspb.Message.getWrapperField(this, proto.vault_api.VaultCredential, 3)); }; @@ -3549,18 +2244,18 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.getData = function() /** * @param {?proto.vault_api.VaultCredential|undefined} value - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} returns this + * @return {!proto.vault_api.GetCredentialResponse} returns this */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.setData = function(value) { +proto.vault_api.GetCredentialResponse.prototype.setData = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} returns this + * @return {!proto.vault_api.GetCredentialResponse} returns this */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.clearData = function() { +proto.vault_api.GetCredentialResponse.prototype.clearData = function() { return this.setData(undefined); }; @@ -3569,7 +2264,7 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.clearData = function( * Returns whether this field is set. * @return {boolean} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.hasData = function() { +proto.vault_api.GetCredentialResponse.prototype.hasData = function() { return jspb.Message.getField(this, 3) != null; }; @@ -3578,7 +2273,7 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.hasData = function() * optional Error error = 4; * @return {?proto.Error} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.getError = function() { +proto.vault_api.GetCredentialResponse.prototype.getError = function() { return /** @type{?proto.Error} */ ( jspb.Message.getWrapperField(this, common_pb.Error, 4)); }; @@ -3586,18 +2281,18 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.getError = function() /** * @param {?proto.Error|undefined} value - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} returns this + * @return {!proto.vault_api.GetCredentialResponse} returns this */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.setError = function(value) { +proto.vault_api.GetCredentialResponse.prototype.setError = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.vault_api.GetOauth2VaultCredentialResponse} returns this + * @return {!proto.vault_api.GetCredentialResponse} returns this */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.clearError = function() { +proto.vault_api.GetCredentialResponse.prototype.clearError = function() { return this.setError(undefined); }; @@ -3606,9 +2301,139 @@ proto.vault_api.GetOauth2VaultCredentialResponse.prototype.clearError = function * Returns whether this field is set. * @return {boolean} */ -proto.vault_api.GetOauth2VaultCredentialResponse.prototype.hasError = function() { +proto.vault_api.GetCredentialResponse.prototype.hasError = function() { return jspb.Message.getField(this, 4) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.vault_api.GetCredentialRequest.prototype.toObject = function(opt_includeInstance) { + return proto.vault_api.GetCredentialRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.vault_api.GetCredentialRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vault_api.GetCredentialRequest.toObject = function(includeInstance, msg) { + var f, obj = { + vaultid: jspb.Message.getFieldWithDefault(msg, 1, "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.vault_api.GetCredentialRequest} + */ +proto.vault_api.GetCredentialRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.vault_api.GetCredentialRequest; + return proto.vault_api.GetCredentialRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.vault_api.GetCredentialRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.vault_api.GetCredentialRequest} + */ +proto.vault_api.GetCredentialRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setVaultid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.vault_api.GetCredentialRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.vault_api.GetCredentialRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.vault_api.GetCredentialRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.vault_api.GetCredentialRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVaultid(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } +}; + + +/** + * optional uint64 vaultId = 1; + * @return {string} + */ +proto.vault_api.GetCredentialRequest.prototype.getVaultid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.vault_api.GetCredentialRequest} returns this + */ +proto.vault_api.GetCredentialRequest.prototype.setVaultid = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + goog.object.extend(exports, proto.vault_api); diff --git a/src/clients/protos/web-api_grpc_pb.d.ts b/src/clients/protos/web-api_grpc_pb.d.ts index fac493b..8327c03 100644 --- a/src/clients/protos/web-api_grpc_pb.d.ts +++ b/src/clients/protos/web-api_grpc_pb.d.ts @@ -167,20 +167,3 @@ export class ProjectServiceClient extends grpc.Client { getAllProjectCredential(argument: web_api_pb.GetAllProjectCredentialRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; getAllProjectCredential(argument: web_api_pb.GetAllProjectCredentialRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } - -interface ILeadServiceService extends grpc.ServiceDefinition { - createLead: grpc.MethodDefinition; -} - -export const LeadServiceService: ILeadServiceService; - -export interface ILeadServiceServer extends grpc.UntypedServiceImplementation { - createLead: grpc.handleUnaryCall; -} - -export class LeadServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - createLead(argument: web_api_pb.LeadCreationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createLead(argument: web_api_pb.LeadCreationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createLead(argument: web_api_pb.LeadCreationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/src/clients/protos/web-api_grpc_pb.js b/src/clients/protos/web-api_grpc_pb.js index 53d7393..900df6e 100644 --- a/src/clients/protos/web-api_grpc_pb.js +++ b/src/clients/protos/web-api_grpc_pb.js @@ -336,17 +336,6 @@ function deserialize_web_api_GetUserResponse(buffer_arg) { return web$api_pb.GetUserResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_web_api_LeadCreationRequest(arg) { - if (!(arg instanceof web$api_pb.LeadCreationRequest)) { - throw new Error('Expected argument of type web_api.LeadCreationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_web_api_LeadCreationRequest(buffer_arg) { - return web$api_pb.LeadCreationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_web_api_RegisterUserRequest(arg) { if (!(arg instanceof web$api_pb.RegisterUserRequest)) { throw new Error('Expected argument of type web_api.RegisterUserRequest'); @@ -780,18 +769,3 @@ var ProjectServiceService = exports.ProjectServiceService = { }; exports.ProjectServiceClient = grpc.makeGenericClientConstructor(ProjectServiceService, 'ProjectService'); -var LeadServiceService = exports.LeadServiceService = { - createLead: { - path: '/web_api.LeadService/CreateLead', - requestStream: false, - responseStream: false, - requestType: web$api_pb.LeadCreationRequest, - responseType: common_pb.BaseResponse, - requestSerialize: serialize_web_api_LeadCreationRequest, - requestDeserialize: deserialize_web_api_LeadCreationRequest, - responseSerialize: serialize_BaseResponse, - responseDeserialize: deserialize_BaseResponse, - }, -}; - -exports.LeadServiceClient = grpc.makeGenericClientConstructor(LeadServiceService, 'LeadService'); diff --git a/src/clients/protos/web-api_pb.d.ts b/src/clients/protos/web-api_pb.d.ts index 55cb1ee..43d1d29 100644 --- a/src/clients/protos/web-api_pb.d.ts +++ b/src/clients/protos/web-api_pb.d.ts @@ -1479,6 +1479,11 @@ export class ProjectCredential extends jspb.Message { getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; + hasCreateduser(): boolean; + clearCreateduser(): void; + getCreateduser(): common_pb.User | undefined; + setCreateduser(value?: common_pb.User): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProjectCredential.AsObject; static toObject(includeInstance: boolean, msg: ProjectCredential): ProjectCredential.AsObject; @@ -1501,6 +1506,7 @@ export namespace ProjectCredential { updatedby: string, createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, + createduser?: common_pb.User.AsObject, } } @@ -1638,23 +1644,3 @@ export namespace GetAllProjectCredentialResponse { } } -export class LeadCreationRequest extends jspb.Message { - getEmail(): string; - setEmail(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LeadCreationRequest.AsObject; - static toObject(includeInstance: boolean, msg: LeadCreationRequest): LeadCreationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LeadCreationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LeadCreationRequest; - static deserializeBinaryFromReader(message: LeadCreationRequest, reader: jspb.BinaryReader): LeadCreationRequest; -} - -export namespace LeadCreationRequest { - export type AsObject = { - email: string, - } -} - diff --git a/src/clients/protos/web-api_pb.js b/src/clients/protos/web-api_pb.js index 81d7091..25178f4 100644 --- a/src/clients/protos/web-api_pb.js +++ b/src/clients/protos/web-api_pb.js @@ -57,7 +57,6 @@ goog.exportSymbol('proto.web_api.GetProjectRequest', null, global); goog.exportSymbol('proto.web_api.GetProjectResponse', null, global); goog.exportSymbol('proto.web_api.GetUserRequest', null, global); goog.exportSymbol('proto.web_api.GetUserResponse', null, global); -goog.exportSymbol('proto.web_api.LeadCreationRequest', null, global); goog.exportSymbol('proto.web_api.OrganizationError', null, global); goog.exportSymbol('proto.web_api.OrganizationRole', null, global); goog.exportSymbol('proto.web_api.Project', null, global); @@ -1171,27 +1170,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.web_api.GetAllProjectCredentialResponse.displayName = 'proto.web_api.GetAllProjectCredentialResponse'; } -/** - * 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.web_api.LeadCreationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.web_api.LeadCreationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.web_api.LeadCreationRequest.displayName = 'proto.web_api.LeadCreationRequest'; -} @@ -11401,7 +11379,8 @@ proto.web_api.ProjectCredential.toObject = function(includeInstance, msg) { createdby: jspb.Message.getFieldWithDefault(msg, 7, "0"), updatedby: jspb.Message.getFieldWithDefault(msg, 8, "0"), createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + updateddate: (f = msg.getUpdateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f) }; if (includeInstance) { @@ -11480,6 +11459,11 @@ proto.web_api.ProjectCredential.deserializeBinaryFromReader = function(msg, read reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setUpdateddate(value); break; + case 11: + var value = new common_pb.User; + reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); + msg.setCreateduser(value); + break; default: reader.skipField(); break; @@ -11581,6 +11565,14 @@ proto.web_api.ProjectCredential.serializeBinaryToWriter = function(message, writ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } + f = message.getCreateduser(); + if (f != null) { + writer.writeMessage( + 11, + f, + common_pb.User.serializeBinaryToWriter + ); + } }; @@ -11802,6 +11794,43 @@ proto.web_api.ProjectCredential.prototype.hasUpdateddate = function() { }; +/** + * optional User createdUser = 11; + * @return {?proto.User} + */ +proto.web_api.ProjectCredential.prototype.getCreateduser = function() { + return /** @type{?proto.User} */ ( + jspb.Message.getWrapperField(this, common_pb.User, 11)); +}; + + +/** + * @param {?proto.User|undefined} value + * @return {!proto.web_api.ProjectCredential} returns this +*/ +proto.web_api.ProjectCredential.prototype.setCreateduser = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.web_api.ProjectCredential} returns this + */ +proto.web_api.ProjectCredential.prototype.clearCreateduser = function() { + return this.setCreateduser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.web_api.ProjectCredential.prototype.hasCreateduser = function() { + return jspb.Message.getField(this, 11) != null; +}; + + @@ -12787,134 +12816,4 @@ proto.web_api.GetAllProjectCredentialResponse.prototype.hasPaginated = function( }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.web_api.LeadCreationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.web_api.LeadCreationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.web_api.LeadCreationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.web_api.LeadCreationRequest.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.web_api.LeadCreationRequest} - */ -proto.web_api.LeadCreationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.web_api.LeadCreationRequest; - return proto.web_api.LeadCreationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.web_api.LeadCreationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.web_api.LeadCreationRequest} - */ -proto.web_api.LeadCreationRequest.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.web_api.LeadCreationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.web_api.LeadCreationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.web_api.LeadCreationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.web_api.LeadCreationRequest.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.web_api.LeadCreationRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.web_api.LeadCreationRequest} returns this - */ -proto.web_api.LeadCreationRequest.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - goog.object.extend(exports, proto.web_api); diff --git a/src/clients/protos/workflow-api_grpc_pb.d.ts b/src/clients/protos/workflow-api_grpc_pb.d.ts deleted file mode 100644 index cecf041..0000000 --- a/src/clients/protos/workflow-api_grpc_pb.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: workflow_api -// file: workflow-api.proto - -import * as workflow_api_pb from "./workflow-api_pb"; -import * as grpc from "grpc"; - -interface IWorkflowServiceService extends grpc.ServiceDefinition { - getWorkflow: grpc.MethodDefinition; - getAllWorkflow: grpc.MethodDefinition; - createWorkflow: grpc.MethodDefinition; - createWorkflowTag: grpc.MethodDefinition; - publishWorkflowVersion: grpc.MethodDefinition; - updateWorkflowDetail: grpc.MethodDefinition; -} - -export const WorkflowServiceService: IWorkflowServiceService; - -export interface IWorkflowServiceServer extends grpc.UntypedServiceImplementation { - getWorkflow: grpc.handleUnaryCall; - getAllWorkflow: grpc.handleUnaryCall; - createWorkflow: grpc.handleUnaryCall; - createWorkflowTag: grpc.handleUnaryCall; - publishWorkflowVersion: grpc.handleUnaryCall; - updateWorkflowDetail: grpc.handleUnaryCall; -} - -export class WorkflowServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - getWorkflow(argument: workflow_api_pb.GetWorkflowRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getWorkflow(argument: workflow_api_pb.GetWorkflowRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getWorkflow(argument: workflow_api_pb.GetWorkflowRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllWorkflow(argument: workflow_api_pb.GetAllWorkflowRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllWorkflow(argument: workflow_api_pb.GetAllWorkflowRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAllWorkflow(argument: workflow_api_pb.GetAllWorkflowRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createWorkflow(argument: workflow_api_pb.CreateWorkflowRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createWorkflow(argument: workflow_api_pb.CreateWorkflowRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createWorkflow(argument: workflow_api_pb.CreateWorkflowRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createWorkflowTag(argument: workflow_api_pb.CreateWorkflowTagRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createWorkflowTag(argument: workflow_api_pb.CreateWorkflowTagRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createWorkflowTag(argument: workflow_api_pb.CreateWorkflowTagRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - publishWorkflowVersion(argument: workflow_api_pb.PublishWorkflowVersionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - publishWorkflowVersion(argument: workflow_api_pb.PublishWorkflowVersionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - publishWorkflowVersion(argument: workflow_api_pb.PublishWorkflowVersionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateWorkflowDetail(argument: workflow_api_pb.UpdateWorkflowDetailRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateWorkflowDetail(argument: workflow_api_pb.UpdateWorkflowDetailRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateWorkflowDetail(argument: workflow_api_pb.UpdateWorkflowDetailRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} - -interface IExecutorServiceService extends grpc.ServiceDefinition { - runWorkflow: grpc.MethodDefinition; - getWorkflowRunOutput: grpc.MethodDefinition; -} - -export const ExecutorServiceService: IExecutorServiceService; - -export interface IExecutorServiceServer extends grpc.UntypedServiceImplementation { - runWorkflow: grpc.handleUnaryCall; - getWorkflowRunOutput: grpc.handleUnaryCall; -} - -export class ExecutorServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - runWorkflow(argument: workflow_api_pb.RunWorkflowRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - runWorkflow(argument: workflow_api_pb.RunWorkflowRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - runWorkflow(argument: workflow_api_pb.RunWorkflowRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getWorkflowRunOutput(argument: workflow_api_pb.GetWorkflowRunOutputRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getWorkflowRunOutput(argument: workflow_api_pb.GetWorkflowRunOutputRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getWorkflowRunOutput(argument: workflow_api_pb.GetWorkflowRunOutputRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/src/clients/protos/workflow-api_grpc_pb.js b/src/clients/protos/workflow-api_grpc_pb.js deleted file mode 100644 index 3b60547..0000000 --- a/src/clients/protos/workflow-api_grpc_pb.js +++ /dev/null @@ -1,237 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var workflow$api_pb = require('./workflow-api_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var common_pb = require('./common_pb.js'); - -function serialize_workflow_api_CreateWorkflowRequest(arg) { - if (!(arg instanceof workflow$api_pb.CreateWorkflowRequest)) { - throw new Error('Expected argument of type workflow_api.CreateWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_CreateWorkflowRequest(buffer_arg) { - return workflow$api_pb.CreateWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_CreateWorkflowTagRequest(arg) { - if (!(arg instanceof workflow$api_pb.CreateWorkflowTagRequest)) { - throw new Error('Expected argument of type workflow_api.CreateWorkflowTagRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_CreateWorkflowTagRequest(buffer_arg) { - return workflow$api_pb.CreateWorkflowTagRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_GetAllWorkflowRequest(arg) { - if (!(arg instanceof workflow$api_pb.GetAllWorkflowRequest)) { - throw new Error('Expected argument of type workflow_api.GetAllWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_GetAllWorkflowRequest(buffer_arg) { - return workflow$api_pb.GetAllWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_GetAllWorkflowResponse(arg) { - if (!(arg instanceof workflow$api_pb.GetAllWorkflowResponse)) { - throw new Error('Expected argument of type workflow_api.GetAllWorkflowResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_GetAllWorkflowResponse(buffer_arg) { - return workflow$api_pb.GetAllWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_GetWorkflowRequest(arg) { - if (!(arg instanceof workflow$api_pb.GetWorkflowRequest)) { - throw new Error('Expected argument of type workflow_api.GetWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_GetWorkflowRequest(buffer_arg) { - return workflow$api_pb.GetWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_GetWorkflowResponse(arg) { - if (!(arg instanceof workflow$api_pb.GetWorkflowResponse)) { - throw new Error('Expected argument of type workflow_api.GetWorkflowResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_GetWorkflowResponse(buffer_arg) { - return workflow$api_pb.GetWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_GetWorkflowRunOutputRequest(arg) { - if (!(arg instanceof workflow$api_pb.GetWorkflowRunOutputRequest)) { - throw new Error('Expected argument of type workflow_api.GetWorkflowRunOutputRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_GetWorkflowRunOutputRequest(buffer_arg) { - return workflow$api_pb.GetWorkflowRunOutputRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_GetWorkflowRunOutputResponse(arg) { - if (!(arg instanceof workflow$api_pb.GetWorkflowRunOutputResponse)) { - throw new Error('Expected argument of type workflow_api.GetWorkflowRunOutputResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_GetWorkflowRunOutputResponse(buffer_arg) { - return workflow$api_pb.GetWorkflowRunOutputResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_PublishWorkflowVersionRequest(arg) { - if (!(arg instanceof workflow$api_pb.PublishWorkflowVersionRequest)) { - throw new Error('Expected argument of type workflow_api.PublishWorkflowVersionRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_PublishWorkflowVersionRequest(buffer_arg) { - return workflow$api_pb.PublishWorkflowVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_RunWorkflowRequest(arg) { - if (!(arg instanceof workflow$api_pb.RunWorkflowRequest)) { - throw new Error('Expected argument of type workflow_api.RunWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_RunWorkflowRequest(buffer_arg) { - return workflow$api_pb.RunWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_RunWorkflowResponse(arg) { - if (!(arg instanceof workflow$api_pb.RunWorkflowResponse)) { - throw new Error('Expected argument of type workflow_api.RunWorkflowResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_RunWorkflowResponse(buffer_arg) { - return workflow$api_pb.RunWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_workflow_api_UpdateWorkflowDetailRequest(arg) { - if (!(arg instanceof workflow$api_pb.UpdateWorkflowDetailRequest)) { - throw new Error('Expected argument of type workflow_api.UpdateWorkflowDetailRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_workflow_api_UpdateWorkflowDetailRequest(buffer_arg) { - return workflow$api_pb.UpdateWorkflowDetailRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var WorkflowServiceService = exports.WorkflowServiceService = { - getWorkflow: { - path: '/workflow_api.WorkflowService/GetWorkflow', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.GetWorkflowRequest, - responseType: workflow$api_pb.GetWorkflowResponse, - requestSerialize: serialize_workflow_api_GetWorkflowRequest, - requestDeserialize: deserialize_workflow_api_GetWorkflowRequest, - responseSerialize: serialize_workflow_api_GetWorkflowResponse, - responseDeserialize: deserialize_workflow_api_GetWorkflowResponse, - }, - getAllWorkflow: { - path: '/workflow_api.WorkflowService/GetAllWorkflow', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.GetAllWorkflowRequest, - responseType: workflow$api_pb.GetAllWorkflowResponse, - requestSerialize: serialize_workflow_api_GetAllWorkflowRequest, - requestDeserialize: deserialize_workflow_api_GetAllWorkflowRequest, - responseSerialize: serialize_workflow_api_GetAllWorkflowResponse, - responseDeserialize: deserialize_workflow_api_GetAllWorkflowResponse, - }, - createWorkflow: { - path: '/workflow_api.WorkflowService/CreateWorkflow', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.CreateWorkflowRequest, - responseType: workflow$api_pb.GetWorkflowResponse, - requestSerialize: serialize_workflow_api_CreateWorkflowRequest, - requestDeserialize: deserialize_workflow_api_CreateWorkflowRequest, - responseSerialize: serialize_workflow_api_GetWorkflowResponse, - responseDeserialize: deserialize_workflow_api_GetWorkflowResponse, - }, - createWorkflowTag: { - path: '/workflow_api.WorkflowService/CreateWorkflowTag', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.CreateWorkflowTagRequest, - responseType: workflow$api_pb.GetWorkflowResponse, - requestSerialize: serialize_workflow_api_CreateWorkflowTagRequest, - requestDeserialize: deserialize_workflow_api_CreateWorkflowTagRequest, - responseSerialize: serialize_workflow_api_GetWorkflowResponse, - responseDeserialize: deserialize_workflow_api_GetWorkflowResponse, - }, - publishWorkflowVersion: { - path: '/workflow_api.WorkflowService/PublishWorkflowVersion', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.PublishWorkflowVersionRequest, - responseType: workflow$api_pb.GetWorkflowResponse, - requestSerialize: serialize_workflow_api_PublishWorkflowVersionRequest, - requestDeserialize: deserialize_workflow_api_PublishWorkflowVersionRequest, - responseSerialize: serialize_workflow_api_GetWorkflowResponse, - responseDeserialize: deserialize_workflow_api_GetWorkflowResponse, - }, - updateWorkflowDetail: { - path: '/workflow_api.WorkflowService/UpdateWorkflowDetail', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.UpdateWorkflowDetailRequest, - responseType: workflow$api_pb.GetWorkflowResponse, - requestSerialize: serialize_workflow_api_UpdateWorkflowDetailRequest, - requestDeserialize: deserialize_workflow_api_UpdateWorkflowDetailRequest, - responseSerialize: serialize_workflow_api_GetWorkflowResponse, - responseDeserialize: deserialize_workflow_api_GetWorkflowResponse, - }, -}; - -exports.WorkflowServiceClient = grpc.makeGenericClientConstructor(WorkflowServiceService, 'WorkflowService'); -var ExecutorServiceService = exports.ExecutorServiceService = { - runWorkflow: { - path: '/workflow_api.ExecutorService/RunWorkflow', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.RunWorkflowRequest, - responseType: workflow$api_pb.RunWorkflowResponse, - requestSerialize: serialize_workflow_api_RunWorkflowRequest, - requestDeserialize: deserialize_workflow_api_RunWorkflowRequest, - responseSerialize: serialize_workflow_api_RunWorkflowResponse, - responseDeserialize: deserialize_workflow_api_RunWorkflowResponse, - }, - getWorkflowRunOutput: { - path: '/workflow_api.ExecutorService/GetWorkflowRunOutput', - requestStream: false, - responseStream: false, - requestType: workflow$api_pb.GetWorkflowRunOutputRequest, - responseType: workflow$api_pb.GetWorkflowRunOutputResponse, - requestSerialize: serialize_workflow_api_GetWorkflowRunOutputRequest, - requestDeserialize: deserialize_workflow_api_GetWorkflowRunOutputRequest, - responseSerialize: serialize_workflow_api_GetWorkflowRunOutputResponse, - responseDeserialize: deserialize_workflow_api_GetWorkflowRunOutputResponse, - }, -}; - -exports.ExecutorServiceClient = grpc.makeGenericClientConstructor(ExecutorServiceService, 'ExecutorService'); diff --git a/src/clients/protos/workflow-api_pb.d.ts b/src/clients/protos/workflow-api_pb.d.ts deleted file mode 100644 index e700b5a..0000000 --- a/src/clients/protos/workflow-api_pb.d.ts +++ /dev/null @@ -1,1105 +0,0 @@ -// package: workflow_api -// file: workflow-api.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as common_pb from "./common_pb"; - -export class Workflow extends jspb.Message { - getId(): string; - setId(value: string): void; - - clearEdgesList(): void; - getEdgesList(): Array; - setEdgesList(value: Array): void; - addEdges(value?: Edge, index?: number): Edge; - - clearFlownodesList(): void; - getFlownodesList(): Array; - setFlownodesList(value: Array): void; - addFlownodes(value?: FlowNode, index?: number): FlowNode; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getSource(): string; - setSource(value: string): void; - - getSourceidentifier(): string; - setSourceidentifier(value: string): void; - - getVisibility(): string; - setVisibility(value: string): void; - - hasWorkflowtag(): boolean; - clearWorkflowtag(): void; - getWorkflowtag(): common_pb.Tag | undefined; - setWorkflowtag(value?: common_pb.Tag): void; - - getWorkflowversionid(): string; - setWorkflowversionid(value: string): void; - - hasWorkflowversion(): boolean; - clearWorkflowversion(): void; - getWorkflowversion(): WorkflowVersion | undefined; - setWorkflowversion(value?: WorkflowVersion): void; - - getStatus(): string; - setStatus(value: string): void; - - getCreatedby(): string; - setCreatedby(value: string): void; - - hasCreateduser(): boolean; - clearCreateduser(): void; - getCreateduser(): common_pb.User | undefined; - setCreateduser(value?: common_pb.User): void; - - getUpdatedby(): string; - setUpdatedby(value: string): void; - - hasUpdateduser(): boolean; - clearUpdateduser(): void; - getUpdateduser(): common_pb.User | undefined; - setUpdateduser(value?: common_pb.User): void; - - hasCreateddate(): boolean; - clearCreateddate(): void; - getCreateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdateddate(): boolean; - clearUpdateddate(): void; - getUpdateddate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdateddate(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Workflow.AsObject; - static toObject(includeInstance: boolean, msg: Workflow): Workflow.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Workflow, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Workflow; - static deserializeBinaryFromReader(message: Workflow, reader: jspb.BinaryReader): Workflow; -} - -export namespace Workflow { - export type AsObject = { - id: string, - edgesList: Array, - flownodesList: Array, - name: string, - description: string, - source: string, - sourceidentifier: string, - visibility: string, - workflowtag?: common_pb.Tag.AsObject, - workflowversionid: string, - workflowversion?: WorkflowVersion.AsObject, - status: string, - createdby: string, - createduser?: common_pb.User.AsObject, - updatedby: string, - updateduser?: common_pb.User.AsObject, - createddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updateddate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class WorkflowVersion extends jspb.Message { - getId(): string; - setId(value: string): void; - - getWorkflowjson(): string; - setWorkflowjson(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WorkflowVersion.AsObject; - static toObject(includeInstance: boolean, msg: WorkflowVersion): WorkflowVersion.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WorkflowVersion, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WorkflowVersion; - static deserializeBinaryFromReader(message: WorkflowVersion, reader: jspb.BinaryReader): WorkflowVersion; -} - -export namespace WorkflowVersion { - export type AsObject = { - id: string, - workflowjson: string, - } -} - -export class Edge extends jspb.Message { - getId(): string; - setId(value: string): void; - - getIn(): string; - setIn(value: string): void; - - getOut(): string; - setOut(value: string): void; - - hasCondition(): boolean; - clearCondition(): void; - getCondition(): string; - setCondition(value: string): void; - - hasConditionaltaskid(): boolean; - clearConditionaltaskid(): void; - getConditionaltaskid(): number; - setConditionaltaskid(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Edge.AsObject; - static toObject(includeInstance: boolean, msg: Edge): Edge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Edge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Edge; - static deserializeBinaryFromReader(message: Edge, reader: jspb.BinaryReader): Edge; -} - -export namespace Edge { - export type AsObject = { - id: string, - pb_in: string, - out: string, - condition: string, - conditionaltaskid: number, - } -} - -export class FlowNode extends jspb.Message { - getId(): string; - setId(value: string): void; - - getType(): string; - setType(value: string): void; - - clearNodeinputsList(): void; - getNodeinputsList(): Array; - setNodeinputsList(value: Array): void; - addNodeinputs(value?: NodeInputs, index?: number): NodeInputs; - - hasInputtask(): boolean; - clearInputtask(): void; - getInputtask(): InputTask | undefined; - setInputtask(value?: InputTask): void; - - hasEndpointtask(): boolean; - clearEndpointtask(): void; - getEndpointtask(): EndpointTask | undefined; - setEndpointtask(value?: EndpointTask): void; - - hasOutputtask(): boolean; - clearOutputtask(): void; - getOutputtask(): OutputTask | undefined; - setOutputtask(value?: OutputTask): void; - - hasConditionaltask(): boolean; - clearConditionaltask(): void; - getConditionaltask(): ConditionalTask | undefined; - setConditionaltask(value?: ConditionalTask): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlowNode.AsObject; - static toObject(includeInstance: boolean, msg: FlowNode): FlowNode.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FlowNode, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlowNode; - static deserializeBinaryFromReader(message: FlowNode, reader: jspb.BinaryReader): FlowNode; -} - -export namespace FlowNode { - export type AsObject = { - id: string, - type: string, - nodeinputsList: Array, - inputtask?: InputTask.AsObject, - endpointtask?: EndpointTask.AsObject, - outputtask?: OutputTask.AsObject, - conditionaltask?: ConditionalTask.AsObject, - } -} - -export class NodeInputs extends jspb.Message { - getId(): string; - setId(value: string): void; - - getFlownodeid(): string; - setFlownodeid(value: string): void; - - getInputid(): string; - setInputid(value: string): void; - - hasVariable(): boolean; - clearVariable(): void; - getVariable(): WorkflowVariable | undefined; - setVariable(value?: WorkflowVariable): void; - - hasIdentifier(): boolean; - clearIdentifier(): void; - getIdentifier(): string; - setIdentifier(value: string): void; - - getInputtype(): string; - setInputtype(value: string): void; - - hasName(): boolean; - clearName(): void; - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeInputs.AsObject; - static toObject(includeInstance: boolean, msg: NodeInputs): NodeInputs.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeInputs, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeInputs; - static deserializeBinaryFromReader(message: NodeInputs, reader: jspb.BinaryReader): NodeInputs; -} - -export namespace NodeInputs { - export type AsObject = { - id: string, - flownodeid: string, - inputid: string, - variable?: WorkflowVariable.AsObject, - identifier: string, - inputtype: string, - name: string, - } -} - -export class WorkflowVariable extends jspb.Message { - getId(): string; - setId(value: string): void; - - getVariabletype(): string; - setVariabletype(value: string): void; - - getValuetype(): string; - setValuetype(value: string): void; - - getDefaultvalue(): string; - setDefaultvalue(value: string): void; - - getName(): string; - setName(value: string): void; - - hasIdentifier(): boolean; - clearIdentifier(): void; - getIdentifier(): string; - setIdentifier(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WorkflowVariable.AsObject; - static toObject(includeInstance: boolean, msg: WorkflowVariable): WorkflowVariable.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WorkflowVariable, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WorkflowVariable; - static deserializeBinaryFromReader(message: WorkflowVariable, reader: jspb.BinaryReader): WorkflowVariable; -} - -export namespace WorkflowVariable { - export type AsObject = { - id: string, - variabletype: string, - valuetype: string, - defaultvalue: string, - name: string, - identifier: string, - } -} - -export class RunWorkflowRequest extends jspb.Message { - getWorkflowid(): string; - setWorkflowid(value: string): void; - - clearVariablesList(): void; - getVariablesList(): Array; - setVariablesList(value: Array): void; - addVariables(value?: WorkflowVariable, index?: number): WorkflowVariable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RunWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: RunWorkflowRequest): RunWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RunWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RunWorkflowRequest; - static deserializeBinaryFromReader(message: RunWorkflowRequest, reader: jspb.BinaryReader): RunWorkflowRequest; -} - -export namespace RunWorkflowRequest { - export type AsObject = { - workflowid: string, - variablesList: Array, - } -} - -export class GetWorkflowRequest extends jspb.Message { - getWorkflowid(): string; - setWorkflowid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowRequest): GetWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowRequest; - static deserializeBinaryFromReader(message: GetWorkflowRequest, reader: jspb.BinaryReader): GetWorkflowRequest; -} - -export namespace GetWorkflowRequest { - export type AsObject = { - workflowid: string, - } -} - -export class EndpointTask extends jspb.Message { - getId(): string; - setId(value: string): void; - - getEndpointid(): string; - setEndpointid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EndpointTask.AsObject; - static toObject(includeInstance: boolean, msg: EndpointTask): EndpointTask.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EndpointTask, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EndpointTask; - static deserializeBinaryFromReader(message: EndpointTask, reader: jspb.BinaryReader): EndpointTask; -} - -export namespace EndpointTask { - export type AsObject = { - id: string, - endpointid: string, - } -} - -export class OutputTask extends jspb.Message { - getId(): string; - setId(value: string): void; - - clearOutputsList(): void; - getOutputsList(): Array; - setOutputsList(value: Array): void; - addOutputs(value?: Outputs, index?: number): Outputs; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OutputTask.AsObject; - static toObject(includeInstance: boolean, msg: OutputTask): OutputTask.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OutputTask, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OutputTask; - static deserializeBinaryFromReader(message: OutputTask, reader: jspb.BinaryReader): OutputTask; -} - -export namespace OutputTask { - export type AsObject = { - id: string, - outputsList: Array, - } -} - -export class ConditionalTask extends jspb.Message { - getId(): string; - setId(value: string): void; - - clearConditionsList(): void; - getConditionsList(): Array; - setConditionsList(value: Array): void; - addConditions(value?: Condition, index?: number): Condition; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConditionalTask.AsObject; - static toObject(includeInstance: boolean, msg: ConditionalTask): ConditionalTask.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConditionalTask, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConditionalTask; - static deserializeBinaryFromReader(message: ConditionalTask, reader: jspb.BinaryReader): ConditionalTask; -} - -export namespace ConditionalTask { - export type AsObject = { - id: string, - conditionsList: Array, - } -} - -export class Condition extends jspb.Message { - getId(): string; - setId(value: string): void; - - getConditionaltaskid(): string; - setConditionaltaskid(value: string): void; - - getType(): string; - setType(value: string): void; - - getPrecedence(): number; - setPrecedence(value: number): void; - - clearRulegroupsList(): void; - getRulegroupsList(): Array; - setRulegroupsList(value: Array): void; - addRulegroups(value?: RuleGroup, index?: number): RuleGroup; - - clearRulegroupedgesList(): void; - getRulegroupedgesList(): Array; - setRulegroupedgesList(value: Array): void; - addRulegroupedges(value?: Edge, index?: number): Edge; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Condition.AsObject; - static toObject(includeInstance: boolean, msg: Condition): Condition.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Condition, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Condition; - static deserializeBinaryFromReader(message: Condition, reader: jspb.BinaryReader): Condition; -} - -export namespace Condition { - export type AsObject = { - id: string, - conditionaltaskid: string, - type: string, - precedence: number, - rulegroupsList: Array, - rulegroupedgesList: Array, - } -} - -export class RuleGroup extends jspb.Message { - getId(): string; - setId(value: string): void; - - getConditionid(): string; - setConditionid(value: string): void; - - getPrecedence(): number; - setPrecedence(value: number): void; - - hasConnectingoperator(): boolean; - clearConnectingoperator(): void; - getConnectingoperator(): string; - setConnectingoperator(value: string): void; - - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: Rule, index?: number): Rule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RuleGroup.AsObject; - static toObject(includeInstance: boolean, msg: RuleGroup): RuleGroup.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RuleGroup, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RuleGroup; - static deserializeBinaryFromReader(message: RuleGroup, reader: jspb.BinaryReader): RuleGroup; -} - -export namespace RuleGroup { - export type AsObject = { - id: string, - conditionid: string, - precedence: number, - connectingoperator: string, - rulesList: Array, - } -} - -export class Rule extends jspb.Message { - getId(): string; - setId(value: string): void; - - getRulegroupid(): string; - setRulegroupid(value: string): void; - - getOperatorname(): string; - setOperatorname(value: string): void; - - getPrecedence(): number; - setPrecedence(value: number): void; - - hasConnectingoperator(): boolean; - clearConnectingoperator(): void; - getConnectingoperator(): string; - setConnectingoperator(value: string): void; - - clearRulevariablesList(): void; - getRulevariablesList(): Array; - setRulevariablesList(value: Array): void; - addRulevariables(value?: RuleVariable, index?: number): RuleVariable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Rule.AsObject; - static toObject(includeInstance: boolean, msg: Rule): Rule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Rule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Rule; - static deserializeBinaryFromReader(message: Rule, reader: jspb.BinaryReader): Rule; -} - -export namespace Rule { - export type AsObject = { - id: string, - rulegroupid: string, - operatorname: string, - precedence: number, - connectingoperator: string, - rulevariablesList: Array, - } -} - -export class RuleVariable extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPosition(): string; - setPosition(value: string): void; - - getVariabletype(): string; - setVariabletype(value: string): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RuleVariable.AsObject; - static toObject(includeInstance: boolean, msg: RuleVariable): RuleVariable.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RuleVariable, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RuleVariable; - static deserializeBinaryFromReader(message: RuleVariable, reader: jspb.BinaryReader): RuleVariable; -} - -export namespace RuleVariable { - export type AsObject = { - id: string, - position: string, - variabletype: string, - value: string, - } -} - -export class Outputs extends jspb.Message { - getId(): string; - setId(value: string): void; - - getOutputtaskid(): string; - setOutputtaskid(value: string): void; - - getOutputid(): string; - setOutputid(value: string): void; - - getOutputtype(): string; - setOutputtype(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Outputs.AsObject; - static toObject(includeInstance: boolean, msg: Outputs): Outputs.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Outputs, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Outputs; - static deserializeBinaryFromReader(message: Outputs, reader: jspb.BinaryReader): Outputs; -} - -export namespace Outputs { - export type AsObject = { - id: string, - outputtaskid: string, - outputid: string, - outputtype: string, - } -} - -export class InputTask extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InputTask.AsObject; - static toObject(includeInstance: boolean, msg: InputTask): InputTask.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InputTask, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InputTask; - static deserializeBinaryFromReader(message: InputTask, reader: jspb.BinaryReader): InputTask; -} - -export namespace InputTask { - export type AsObject = { - id: string, - } -} - -export class RunWorkflowResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - getWorkflowid(): string; - setWorkflowid(value: string): void; - - getWorkflowrunid(): string; - setWorkflowrunid(value: string): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RunWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: RunWorkflowResponse): RunWorkflowResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RunWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RunWorkflowResponse; - static deserializeBinaryFromReader(message: RunWorkflowResponse, reader: jspb.BinaryReader): RunWorkflowResponse; -} - -export namespace RunWorkflowResponse { - export type AsObject = { - code: number, - success: boolean, - workflowid: string, - workflowrunid: string, - error?: common_pb.Error.AsObject, - } -} - -export class GetWorkflowResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): Workflow | undefined; - setData(value?: Workflow): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowResponse): GetWorkflowResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowResponse; - static deserializeBinaryFromReader(message: GetWorkflowResponse, reader: jspb.BinaryReader): GetWorkflowResponse; -} - -export namespace GetWorkflowResponse { - export type AsObject = { - code: number, - success: boolean, - data?: Workflow.AsObject, - error?: common_pb.Error.AsObject, - } -} - -export class GetAllWorkflowRequest extends jspb.Message { - hasPaginate(): boolean; - clearPaginate(): void; - getPaginate(): common_pb.Paginate | undefined; - setPaginate(value?: common_pb.Paginate): void; - - clearCriteriasList(): void; - getCriteriasList(): Array; - setCriteriasList(value: Array): void; - addCriterias(value?: common_pb.Criteria, index?: number): common_pb.Criteria; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAllWorkflowRequest): GetAllWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllWorkflowRequest; - static deserializeBinaryFromReader(message: GetAllWorkflowRequest, reader: jspb.BinaryReader): GetAllWorkflowRequest; -} - -export namespace GetAllWorkflowRequest { - export type AsObject = { - paginate?: common_pb.Paginate.AsObject, - criteriasList: Array, - } -} - -export class GetAllWorkflowResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value?: Workflow, index?: number): Workflow; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - hasPaginated(): boolean; - clearPaginated(): void; - getPaginated(): common_pb.Paginated | undefined; - setPaginated(value?: common_pb.Paginated): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAllWorkflowResponse): GetAllWorkflowResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAllWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAllWorkflowResponse; - static deserializeBinaryFromReader(message: GetAllWorkflowResponse, reader: jspb.BinaryReader): GetAllWorkflowResponse; -} - -export namespace GetAllWorkflowResponse { - export type AsObject = { - code: number, - success: boolean, - dataList: Array, - error?: common_pb.Error.AsObject, - paginated?: common_pb.Paginated.AsObject, - } -} - -export class WorkflowAttributes extends jspb.Message { - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getSource(): string; - setSource(value: string): void; - - getSourceidentifier(): string; - setSourceidentifier(value: string): void; - - getVisibility(): string; - setVisibility(value: string): void; - - clearTagsList(): void; - getTagsList(): Array; - setTagsList(value: Array): void; - addTags(value: string, index?: number): string; - - clearEdgesList(): void; - getEdgesList(): Array; - setEdgesList(value: Array): void; - addEdges(value?: Edge, index?: number): Edge; - - clearFlownodesList(): void; - getFlownodesList(): Array; - setFlownodesList(value: Array): void; - addFlownodes(value?: FlowNode, index?: number): FlowNode; - - getWorkflow(): string; - setWorkflow(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WorkflowAttributes.AsObject; - static toObject(includeInstance: boolean, msg: WorkflowAttributes): WorkflowAttributes.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WorkflowAttributes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WorkflowAttributes; - static deserializeBinaryFromReader(message: WorkflowAttributes, reader: jspb.BinaryReader): WorkflowAttributes; -} - -export namespace WorkflowAttributes { - export type AsObject = { - name: string, - description: string, - source: string, - sourceidentifier: string, - visibility: string, - tagsList: Array, - edgesList: Array, - flownodesList: Array, - workflow: string, - } -} - -export class CreateWorkflowRequest extends jspb.Message { - hasWorkflowattributes(): boolean; - clearWorkflowattributes(): void; - getWorkflowattributes(): WorkflowAttributes | undefined; - setWorkflowattributes(value?: WorkflowAttributes): void; - - clearVariablesList(): void; - getVariablesList(): Array; - setVariablesList(value: Array): void; - addVariables(value?: WorkflowVariable, index?: number): WorkflowVariable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateWorkflowRequest): CreateWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateWorkflowRequest; - static deserializeBinaryFromReader(message: CreateWorkflowRequest, reader: jspb.BinaryReader): CreateWorkflowRequest; -} - -export namespace CreateWorkflowRequest { - export type AsObject = { - workflowattributes?: WorkflowAttributes.AsObject, - variablesList: Array, - } -} - -export class GetWorkflowRunOutputRequest extends jspb.Message { - getWorkflowid(): string; - setWorkflowid(value: string): void; - - getWorkflowrunid(): string; - setWorkflowrunid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowRunOutputRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowRunOutputRequest): GetWorkflowRunOutputRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowRunOutputRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowRunOutputRequest; - static deserializeBinaryFromReader(message: GetWorkflowRunOutputRequest, reader: jspb.BinaryReader): GetWorkflowRunOutputRequest; -} - -export namespace GetWorkflowRunOutputRequest { - export type AsObject = { - workflowid: string, - workflowrunid: string, - } -} - -export class GetWorkflowRunOutputResponse extends jspb.Message { - getCode(): number; - setCode(value: number): void; - - getSuccess(): boolean; - setSuccess(value: boolean): void; - - hasData(): boolean; - clearData(): void; - getData(): WorkflowRunResponse | undefined; - setData(value?: WorkflowRunResponse): void; - - hasError(): boolean; - clearError(): void; - getError(): common_pb.Error | undefined; - setError(value?: common_pb.Error): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowRunOutputResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowRunOutputResponse): GetWorkflowRunOutputResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowRunOutputResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowRunOutputResponse; - static deserializeBinaryFromReader(message: GetWorkflowRunOutputResponse, reader: jspb.BinaryReader): GetWorkflowRunOutputResponse; -} - -export namespace GetWorkflowRunOutputResponse { - export type AsObject = { - code: number, - success: boolean, - data?: WorkflowRunResponse.AsObject, - error?: common_pb.Error.AsObject, - } -} - -export class WorkflowRunResponse extends jspb.Message { - getWorkflowrunid(): string; - setWorkflowrunid(value: string): void; - - getStatus(): string; - setStatus(value: string): void; - - clearOutputsList(): void; - getOutputsList(): Array; - setOutputsList(value: Array): void; - addOutputs(value?: WorkflowOutput, index?: number): WorkflowOutput; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WorkflowRunResponse.AsObject; - static toObject(includeInstance: boolean, msg: WorkflowRunResponse): WorkflowRunResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WorkflowRunResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WorkflowRunResponse; - static deserializeBinaryFromReader(message: WorkflowRunResponse, reader: jspb.BinaryReader): WorkflowRunResponse; -} - -export namespace WorkflowRunResponse { - export type AsObject = { - workflowrunid: string, - status: string, - outputsList: Array, - } -} - -export class WorkflowOutput extends jspb.Message { - getId(): string; - setId(value: string): void; - - getWorkflowrunid(): string; - setWorkflowrunid(value: string): void; - - getFlownodeid(): string; - setFlownodeid(value: string): void; - - getOutput(): string; - setOutput(value: string): void; - - getStatus(): string; - setStatus(value: string): void; - - getOutputtype(): string; - setOutputtype(value: string): void; - - hasResponsecode(): boolean; - clearResponsecode(): void; - getResponsecode(): number; - setResponsecode(value: number): void; - - hasFlownode(): boolean; - clearFlownode(): void; - getFlownode(): FlowNode | undefined; - setFlownode(value?: FlowNode): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WorkflowOutput.AsObject; - static toObject(includeInstance: boolean, msg: WorkflowOutput): WorkflowOutput.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WorkflowOutput, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WorkflowOutput; - static deserializeBinaryFromReader(message: WorkflowOutput, reader: jspb.BinaryReader): WorkflowOutput; -} - -export namespace WorkflowOutput { - export type AsObject = { - id: string, - workflowrunid: string, - flownodeid: string, - output: string, - status: string, - outputtype: string, - responsecode: number, - flownode?: FlowNode.AsObject, - } -} - -export class CreateWorkflowTagRequest extends jspb.Message { - getWorkflowid(): string; - setWorkflowid(value: string): void; - - clearTagsList(): void; - getTagsList(): Array; - setTagsList(value: Array): void; - addTags(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateWorkflowTagRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateWorkflowTagRequest): CreateWorkflowTagRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateWorkflowTagRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateWorkflowTagRequest; - static deserializeBinaryFromReader(message: CreateWorkflowTagRequest, reader: jspb.BinaryReader): CreateWorkflowTagRequest; -} - -export namespace CreateWorkflowTagRequest { - export type AsObject = { - workflowid: string, - tagsList: Array, - } -} - -export class PublishWorkflowVersionRequest extends jspb.Message { - getWorkflowid(): string; - setWorkflowid(value: string): void; - - getWorkflowjson(): string; - setWorkflowjson(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PublishWorkflowVersionRequest.AsObject; - static toObject(includeInstance: boolean, msg: PublishWorkflowVersionRequest): PublishWorkflowVersionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PublishWorkflowVersionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PublishWorkflowVersionRequest; - static deserializeBinaryFromReader(message: PublishWorkflowVersionRequest, reader: jspb.BinaryReader): PublishWorkflowVersionRequest; -} - -export namespace PublishWorkflowVersionRequest { - export type AsObject = { - workflowid: string, - workflowjson: string, - } -} - -export class UpdateWorkflowDetailRequest extends jspb.Message { - getWorkflowid(): string; - setWorkflowid(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateWorkflowDetailRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateWorkflowDetailRequest): UpdateWorkflowDetailRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateWorkflowDetailRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateWorkflowDetailRequest; - static deserializeBinaryFromReader(message: UpdateWorkflowDetailRequest, reader: jspb.BinaryReader): UpdateWorkflowDetailRequest; -} - -export namespace UpdateWorkflowDetailRequest { - export type AsObject = { - workflowid: string, - name: string, - description: string, - } -} - diff --git a/src/clients/protos/workflow-api_pb.js b/src/clients/protos/workflow-api_pb.js deleted file mode 100644 index cecf726..0000000 --- a/src/clients/protos/workflow-api_pb.js +++ /dev/null @@ -1,8707 +0,0 @@ -// source: workflow-api.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @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! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var common_pb = require('./common_pb.js'); -goog.object.extend(proto, common_pb); -goog.exportSymbol('proto.workflow_api.Condition', null, global); -goog.exportSymbol('proto.workflow_api.ConditionalTask', null, global); -goog.exportSymbol('proto.workflow_api.CreateWorkflowRequest', null, global); -goog.exportSymbol('proto.workflow_api.CreateWorkflowTagRequest', null, global); -goog.exportSymbol('proto.workflow_api.Edge', null, global); -goog.exportSymbol('proto.workflow_api.EndpointTask', null, global); -goog.exportSymbol('proto.workflow_api.FlowNode', null, global); -goog.exportSymbol('proto.workflow_api.GetAllWorkflowRequest', null, global); -goog.exportSymbol('proto.workflow_api.GetAllWorkflowResponse', null, global); -goog.exportSymbol('proto.workflow_api.GetWorkflowRequest', null, global); -goog.exportSymbol('proto.workflow_api.GetWorkflowResponse', null, global); -goog.exportSymbol('proto.workflow_api.GetWorkflowRunOutputRequest', null, global); -goog.exportSymbol('proto.workflow_api.GetWorkflowRunOutputResponse', null, global); -goog.exportSymbol('proto.workflow_api.InputTask', null, global); -goog.exportSymbol('proto.workflow_api.NodeInputs', null, global); -goog.exportSymbol('proto.workflow_api.OutputTask', null, global); -goog.exportSymbol('proto.workflow_api.Outputs', null, global); -goog.exportSymbol('proto.workflow_api.PublishWorkflowVersionRequest', null, global); -goog.exportSymbol('proto.workflow_api.Rule', null, global); -goog.exportSymbol('proto.workflow_api.RuleGroup', null, global); -goog.exportSymbol('proto.workflow_api.RuleVariable', null, global); -goog.exportSymbol('proto.workflow_api.RunWorkflowRequest', null, global); -goog.exportSymbol('proto.workflow_api.RunWorkflowResponse', null, global); -goog.exportSymbol('proto.workflow_api.UpdateWorkflowDetailRequest', null, global); -goog.exportSymbol('proto.workflow_api.Workflow', null, global); -goog.exportSymbol('proto.workflow_api.WorkflowAttributes', null, global); -goog.exportSymbol('proto.workflow_api.WorkflowOutput', null, global); -goog.exportSymbol('proto.workflow_api.WorkflowRunResponse', null, global); -goog.exportSymbol('proto.workflow_api.WorkflowVariable', null, global); -goog.exportSymbol('proto.workflow_api.WorkflowVersion', 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.workflow_api.Workflow = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.Workflow.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.Workflow, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.Workflow.displayName = 'proto.workflow_api.Workflow'; -} -/** - * 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.workflow_api.WorkflowVersion = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.WorkflowVersion, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.WorkflowVersion.displayName = 'proto.workflow_api.WorkflowVersion'; -} -/** - * 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.workflow_api.Edge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.Edge, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.Edge.displayName = 'proto.workflow_api.Edge'; -} -/** - * 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.workflow_api.FlowNode = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.FlowNode.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.FlowNode, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.FlowNode.displayName = 'proto.workflow_api.FlowNode'; -} -/** - * 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.workflow_api.NodeInputs = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.NodeInputs, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.NodeInputs.displayName = 'proto.workflow_api.NodeInputs'; -} -/** - * 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.workflow_api.WorkflowVariable = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.WorkflowVariable, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.WorkflowVariable.displayName = 'proto.workflow_api.WorkflowVariable'; -} -/** - * 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.workflow_api.RunWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.RunWorkflowRequest.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.RunWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.RunWorkflowRequest.displayName = 'proto.workflow_api.RunWorkflowRequest'; -} -/** - * 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.workflow_api.GetWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.GetWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.GetWorkflowRequest.displayName = 'proto.workflow_api.GetWorkflowRequest'; -} -/** - * 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.workflow_api.EndpointTask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.EndpointTask, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.EndpointTask.displayName = 'proto.workflow_api.EndpointTask'; -} -/** - * 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.workflow_api.OutputTask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.OutputTask.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.OutputTask, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.OutputTask.displayName = 'proto.workflow_api.OutputTask'; -} -/** - * 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.workflow_api.ConditionalTask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.ConditionalTask.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.ConditionalTask, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.ConditionalTask.displayName = 'proto.workflow_api.ConditionalTask'; -} -/** - * 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.workflow_api.Condition = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.Condition.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.Condition, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.Condition.displayName = 'proto.workflow_api.Condition'; -} -/** - * 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.workflow_api.RuleGroup = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.RuleGroup.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.RuleGroup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.RuleGroup.displayName = 'proto.workflow_api.RuleGroup'; -} -/** - * 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.workflow_api.Rule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.Rule.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.Rule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.Rule.displayName = 'proto.workflow_api.Rule'; -} -/** - * 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.workflow_api.RuleVariable = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.RuleVariable, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.RuleVariable.displayName = 'proto.workflow_api.RuleVariable'; -} -/** - * 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.workflow_api.Outputs = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.Outputs, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.Outputs.displayName = 'proto.workflow_api.Outputs'; -} -/** - * 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.workflow_api.InputTask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.InputTask, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.InputTask.displayName = 'proto.workflow_api.InputTask'; -} -/** - * 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.workflow_api.RunWorkflowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.RunWorkflowResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.RunWorkflowResponse.displayName = 'proto.workflow_api.RunWorkflowResponse'; -} -/** - * 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.workflow_api.GetWorkflowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.GetWorkflowResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.GetWorkflowResponse.displayName = 'proto.workflow_api.GetWorkflowResponse'; -} -/** - * 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.workflow_api.GetAllWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.GetAllWorkflowRequest.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.GetAllWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.GetAllWorkflowRequest.displayName = 'proto.workflow_api.GetAllWorkflowRequest'; -} -/** - * 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.workflow_api.GetAllWorkflowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.GetAllWorkflowResponse.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.GetAllWorkflowResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.GetAllWorkflowResponse.displayName = 'proto.workflow_api.GetAllWorkflowResponse'; -} -/** - * 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.workflow_api.WorkflowAttributes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.WorkflowAttributes.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.WorkflowAttributes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.WorkflowAttributes.displayName = 'proto.workflow_api.WorkflowAttributes'; -} -/** - * 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.workflow_api.CreateWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.CreateWorkflowRequest.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.CreateWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.CreateWorkflowRequest.displayName = 'proto.workflow_api.CreateWorkflowRequest'; -} -/** - * 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.workflow_api.GetWorkflowRunOutputRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.GetWorkflowRunOutputRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.GetWorkflowRunOutputRequest.displayName = 'proto.workflow_api.GetWorkflowRunOutputRequest'; -} -/** - * 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.workflow_api.GetWorkflowRunOutputResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.GetWorkflowRunOutputResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.GetWorkflowRunOutputResponse.displayName = 'proto.workflow_api.GetWorkflowRunOutputResponse'; -} -/** - * 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.workflow_api.WorkflowRunResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.WorkflowRunResponse.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.WorkflowRunResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.WorkflowRunResponse.displayName = 'proto.workflow_api.WorkflowRunResponse'; -} -/** - * 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.workflow_api.WorkflowOutput = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.WorkflowOutput, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.WorkflowOutput.displayName = 'proto.workflow_api.WorkflowOutput'; -} -/** - * 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.workflow_api.CreateWorkflowTagRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.workflow_api.CreateWorkflowTagRequest.repeatedFields_, null); -}; -goog.inherits(proto.workflow_api.CreateWorkflowTagRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.CreateWorkflowTagRequest.displayName = 'proto.workflow_api.CreateWorkflowTagRequest'; -} -/** - * 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.workflow_api.PublishWorkflowVersionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.PublishWorkflowVersionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.PublishWorkflowVersionRequest.displayName = 'proto.workflow_api.PublishWorkflowVersionRequest'; -} -/** - * 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.workflow_api.UpdateWorkflowDetailRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.workflow_api.UpdateWorkflowDetailRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.workflow_api.UpdateWorkflowDetailRequest.displayName = 'proto.workflow_api.UpdateWorkflowDetailRequest'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.Workflow.repeatedFields_ = [2,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.Workflow.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.Workflow.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.Workflow} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Workflow.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - edgesList: jspb.Message.toObjectList(msg.getEdgesList(), - proto.workflow_api.Edge.toObject, includeInstance), - flownodesList: jspb.Message.toObjectList(msg.getFlownodesList(), - proto.workflow_api.FlowNode.toObject, includeInstance), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - description: jspb.Message.getFieldWithDefault(msg, 5, ""), - source: jspb.Message.getFieldWithDefault(msg, 6, ""), - sourceidentifier: jspb.Message.getFieldWithDefault(msg, 7, "0"), - visibility: jspb.Message.getFieldWithDefault(msg, 8, ""), - workflowtag: (f = msg.getWorkflowtag()) && common_pb.Tag.toObject(includeInstance, f), - workflowversionid: jspb.Message.getFieldWithDefault(msg, 10, "0"), - workflowversion: (f = msg.getWorkflowversion()) && proto.workflow_api.WorkflowVersion.toObject(includeInstance, f), - status: jspb.Message.getFieldWithDefault(msg, 21, ""), - createdby: jspb.Message.getFieldWithDefault(msg, 22, "0"), - createduser: (f = msg.getCreateduser()) && common_pb.User.toObject(includeInstance, f), - updatedby: jspb.Message.getFieldWithDefault(msg, 24, "0"), - updateduser: (f = msg.getUpdateduser()) && common_pb.User.toObject(includeInstance, f), - createddate: (f = msg.getCreateddate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updateddate: (f = msg.getUpdateddate()) && 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.workflow_api.Workflow} - */ -proto.workflow_api.Workflow.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.Workflow; - return proto.workflow_api.Workflow.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.Workflow} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.Workflow} - */ -proto.workflow_api.Workflow.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = new proto.workflow_api.Edge; - reader.readMessage(value,proto.workflow_api.Edge.deserializeBinaryFromReader); - msg.addEdges(value); - break; - case 3: - var value = new proto.workflow_api.FlowNode; - reader.readMessage(value,proto.workflow_api.FlowNode.deserializeBinaryFromReader); - msg.addFlownodes(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSource(value); - break; - case 7: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSourceidentifier(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 9: - var value = new common_pb.Tag; - reader.readMessage(value,common_pb.Tag.deserializeBinaryFromReader); - msg.setWorkflowtag(value); - break; - case 10: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowversionid(value); - break; - case 11: - var value = new proto.workflow_api.WorkflowVersion; - reader.readMessage(value,proto.workflow_api.WorkflowVersion.deserializeBinaryFromReader); - msg.setWorkflowversion(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 22: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedby(value); - break; - case 23: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setCreateduser(value); - break; - case 24: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUpdatedby(value); - break; - case 25: - var value = new common_pb.User; - reader.readMessage(value,common_pb.User.deserializeBinaryFromReader); - msg.setUpdateduser(value); - break; - case 26: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreateddate(value); - break; - case 27: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdateddate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.Workflow.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.Workflow.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.Workflow} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Workflow.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getEdgesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.workflow_api.Edge.serializeBinaryToWriter - ); - } - f = message.getFlownodesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.workflow_api.FlowNode.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSourceidentifier(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getWorkflowtag(); - if (f != null) { - writer.writeMessage( - 9, - f, - common_pb.Tag.serializeBinaryToWriter - ); - } - f = message.getWorkflowversionid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 10, - f - ); - } - f = message.getWorkflowversion(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.workflow_api.WorkflowVersion.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getCreatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 22, - f - ); - } - f = message.getCreateduser(); - if (f != null) { - writer.writeMessage( - 23, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getUpdatedby(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 24, - f - ); - } - f = message.getUpdateduser(); - if (f != null) { - writer.writeMessage( - 25, - f, - common_pb.User.serializeBinaryToWriter - ); - } - f = message.getCreateddate(); - if (f != null) { - writer.writeMessage( - 26, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdateddate(); - if (f != null) { - writer.writeMessage( - 27, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated Edge edges = 2; - * @return {!Array} - */ -proto.workflow_api.Workflow.prototype.getEdgesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Edge, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setEdgesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.workflow_api.Edge=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Edge} - */ -proto.workflow_api.Workflow.prototype.addEdges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.workflow_api.Edge, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearEdgesList = function() { - return this.setEdgesList([]); -}; - - -/** - * repeated FlowNode flowNodes = 3; - * @return {!Array} - */ -proto.workflow_api.Workflow.prototype.getFlownodesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.FlowNode, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setFlownodesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.workflow_api.FlowNode=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.FlowNode} - */ -proto.workflow_api.Workflow.prototype.addFlownodes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.workflow_api.FlowNode, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearFlownodesList = function() { - return this.setFlownodesList([]); -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string description = 5; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string source = 6; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sourceIdentifier = 7; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getSourceidentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setSourceidentifier = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); -}; - - -/** - * optional string visibility = 8; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional Tag workflowTag = 9; - * @return {?proto.Tag} - */ -proto.workflow_api.Workflow.prototype.getWorkflowtag = function() { - return /** @type{?proto.Tag} */ ( - jspb.Message.getWrapperField(this, common_pb.Tag, 9)); -}; - - -/** - * @param {?proto.Tag|undefined} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setWorkflowtag = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearWorkflowtag = function() { - return this.setWorkflowtag(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Workflow.prototype.hasWorkflowtag = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional uint64 workflowVersionId = 10; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getWorkflowversionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setWorkflowversionid = function(value) { - return jspb.Message.setProto3StringIntField(this, 10, value); -}; - - -/** - * optional WorkflowVersion workflowVersion = 11; - * @return {?proto.workflow_api.WorkflowVersion} - */ -proto.workflow_api.Workflow.prototype.getWorkflowversion = function() { - return /** @type{?proto.workflow_api.WorkflowVersion} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.WorkflowVersion, 11)); -}; - - -/** - * @param {?proto.workflow_api.WorkflowVersion|undefined} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setWorkflowversion = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearWorkflowversion = function() { - return this.setWorkflowversion(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Workflow.prototype.hasWorkflowversion = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional string status = 21; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional uint64 createdBy = 22; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getCreatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setCreatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 22, value); -}; - - -/** - * optional User createdUser = 23; - * @return {?proto.User} - */ -proto.workflow_api.Workflow.prototype.getCreateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 23)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setCreateduser = function(value) { - return jspb.Message.setWrapperField(this, 23, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearCreateduser = function() { - return this.setCreateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Workflow.prototype.hasCreateduser = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional uint64 updatedBy = 24; - * @return {string} - */ -proto.workflow_api.Workflow.prototype.getUpdatedby = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.setUpdatedby = function(value) { - return jspb.Message.setProto3StringIntField(this, 24, value); -}; - - -/** - * optional User updatedUser = 25; - * @return {?proto.User} - */ -proto.workflow_api.Workflow.prototype.getUpdateduser = function() { - return /** @type{?proto.User} */ ( - jspb.Message.getWrapperField(this, common_pb.User, 25)); -}; - - -/** - * @param {?proto.User|undefined} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setUpdateduser = function(value) { - return jspb.Message.setWrapperField(this, 25, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearUpdateduser = function() { - return this.setUpdateduser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Workflow.prototype.hasUpdateduser = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional google.protobuf.Timestamp createdDate = 26; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.workflow_api.Workflow.prototype.getCreateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 26)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setCreateddate = function(value) { - return jspb.Message.setWrapperField(this, 26, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearCreateddate = function() { - return this.setCreateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Workflow.prototype.hasCreateddate = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional google.protobuf.Timestamp updatedDate = 27; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.workflow_api.Workflow.prototype.getUpdateddate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 27)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.workflow_api.Workflow} returns this -*/ -proto.workflow_api.Workflow.prototype.setUpdateddate = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.Workflow} returns this - */ -proto.workflow_api.Workflow.prototype.clearUpdateddate = function() { - return this.setUpdateddate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Workflow.prototype.hasUpdateddate = function() { - return jspb.Message.getField(this, 27) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.WorkflowVersion.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.WorkflowVersion.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.WorkflowVersion} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowVersion.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - workflowjson: 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.workflow_api.WorkflowVersion} - */ -proto.workflow_api.WorkflowVersion.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.WorkflowVersion; - return proto.workflow_api.WorkflowVersion.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.WorkflowVersion} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.WorkflowVersion} - */ -proto.workflow_api.WorkflowVersion.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowjson(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.WorkflowVersion.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.WorkflowVersion.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.WorkflowVersion} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowVersion.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getWorkflowjson(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.WorkflowVersion.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVersion} returns this - */ -proto.workflow_api.WorkflowVersion.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string workflowJson = 2; - * @return {string} - */ -proto.workflow_api.WorkflowVersion.prototype.getWorkflowjson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVersion} returns this - */ -proto.workflow_api.WorkflowVersion.prototype.setWorkflowjson = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.Edge.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.Edge.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.Edge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Edge.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - pb_in: jspb.Message.getFieldWithDefault(msg, 2, "0"), - out: jspb.Message.getFieldWithDefault(msg, 3, "0"), - condition: jspb.Message.getFieldWithDefault(msg, 4, ""), - conditionaltaskid: 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.workflow_api.Edge} - */ -proto.workflow_api.Edge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.Edge; - return proto.workflow_api.Edge.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.Edge} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.Edge} - */ -proto.workflow_api.Edge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setIn(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOut(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCondition(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setConditionaltaskid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.Edge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.Edge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.Edge} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Edge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getIn(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getOut(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.Edge.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 in = 2; - * @return {string} - */ -proto.workflow_api.Edge.prototype.getIn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.setIn = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional uint64 out = 3; - * @return {string} - */ -proto.workflow_api.Edge.prototype.getOut = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.setOut = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional string condition = 4; - * @return {string} - */ -proto.workflow_api.Edge.prototype.getCondition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.setCondition = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.clearCondition = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Edge.prototype.hasCondition = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 conditionalTaskId = 5; - * @return {number} - */ -proto.workflow_api.Edge.prototype.getConditionaltaskid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.setConditionaltaskid = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.Edge} returns this - */ -proto.workflow_api.Edge.prototype.clearConditionaltaskid = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Edge.prototype.hasConditionaltaskid = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.FlowNode.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.FlowNode.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.FlowNode.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.FlowNode} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.FlowNode.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - type: jspb.Message.getFieldWithDefault(msg, 2, ""), - nodeinputsList: jspb.Message.toObjectList(msg.getNodeinputsList(), - proto.workflow_api.NodeInputs.toObject, includeInstance), - inputtask: (f = msg.getInputtask()) && proto.workflow_api.InputTask.toObject(includeInstance, f), - endpointtask: (f = msg.getEndpointtask()) && proto.workflow_api.EndpointTask.toObject(includeInstance, f), - outputtask: (f = msg.getOutputtask()) && proto.workflow_api.OutputTask.toObject(includeInstance, f), - conditionaltask: (f = msg.getConditionaltask()) && proto.workflow_api.ConditionalTask.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.workflow_api.FlowNode} - */ -proto.workflow_api.FlowNode.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.FlowNode; - return proto.workflow_api.FlowNode.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.FlowNode} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.FlowNode} - */ -proto.workflow_api.FlowNode.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 3: - var value = new proto.workflow_api.NodeInputs; - reader.readMessage(value,proto.workflow_api.NodeInputs.deserializeBinaryFromReader); - msg.addNodeinputs(value); - break; - case 4: - var value = new proto.workflow_api.InputTask; - reader.readMessage(value,proto.workflow_api.InputTask.deserializeBinaryFromReader); - msg.setInputtask(value); - break; - case 5: - var value = new proto.workflow_api.EndpointTask; - reader.readMessage(value,proto.workflow_api.EndpointTask.deserializeBinaryFromReader); - msg.setEndpointtask(value); - break; - case 6: - var value = new proto.workflow_api.OutputTask; - reader.readMessage(value,proto.workflow_api.OutputTask.deserializeBinaryFromReader); - msg.setOutputtask(value); - break; - case 7: - var value = new proto.workflow_api.ConditionalTask; - reader.readMessage(value,proto.workflow_api.ConditionalTask.deserializeBinaryFromReader); - msg.setConditionaltask(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.FlowNode.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.FlowNode.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.FlowNode} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.FlowNode.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNodeinputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.workflow_api.NodeInputs.serializeBinaryToWriter - ); - } - f = message.getInputtask(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.workflow_api.InputTask.serializeBinaryToWriter - ); - } - f = message.getEndpointtask(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.workflow_api.EndpointTask.serializeBinaryToWriter - ); - } - f = message.getOutputtask(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.workflow_api.OutputTask.serializeBinaryToWriter - ); - } - f = message.getConditionaltask(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.workflow_api.ConditionalTask.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.FlowNode.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string type = 2; - * @return {string} - */ -proto.workflow_api.FlowNode.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated NodeInputs nodeInputs = 3; - * @return {!Array} - */ -proto.workflow_api.FlowNode.prototype.getNodeinputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.NodeInputs, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.FlowNode} returns this -*/ -proto.workflow_api.FlowNode.prototype.setNodeinputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.workflow_api.NodeInputs=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.NodeInputs} - */ -proto.workflow_api.FlowNode.prototype.addNodeinputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.workflow_api.NodeInputs, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.clearNodeinputsList = function() { - return this.setNodeinputsList([]); -}; - - -/** - * optional InputTask inputTask = 4; - * @return {?proto.workflow_api.InputTask} - */ -proto.workflow_api.FlowNode.prototype.getInputtask = function() { - return /** @type{?proto.workflow_api.InputTask} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.InputTask, 4)); -}; - - -/** - * @param {?proto.workflow_api.InputTask|undefined} value - * @return {!proto.workflow_api.FlowNode} returns this -*/ -proto.workflow_api.FlowNode.prototype.setInputtask = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.clearInputtask = function() { - return this.setInputtask(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.FlowNode.prototype.hasInputtask = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional EndpointTask endpointTask = 5; - * @return {?proto.workflow_api.EndpointTask} - */ -proto.workflow_api.FlowNode.prototype.getEndpointtask = function() { - return /** @type{?proto.workflow_api.EndpointTask} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.EndpointTask, 5)); -}; - - -/** - * @param {?proto.workflow_api.EndpointTask|undefined} value - * @return {!proto.workflow_api.FlowNode} returns this -*/ -proto.workflow_api.FlowNode.prototype.setEndpointtask = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.clearEndpointtask = function() { - return this.setEndpointtask(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.FlowNode.prototype.hasEndpointtask = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional OutputTask outputTask = 6; - * @return {?proto.workflow_api.OutputTask} - */ -proto.workflow_api.FlowNode.prototype.getOutputtask = function() { - return /** @type{?proto.workflow_api.OutputTask} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.OutputTask, 6)); -}; - - -/** - * @param {?proto.workflow_api.OutputTask|undefined} value - * @return {!proto.workflow_api.FlowNode} returns this -*/ -proto.workflow_api.FlowNode.prototype.setOutputtask = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.clearOutputtask = function() { - return this.setOutputtask(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.FlowNode.prototype.hasOutputtask = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional ConditionalTask conditionalTask = 7; - * @return {?proto.workflow_api.ConditionalTask} - */ -proto.workflow_api.FlowNode.prototype.getConditionaltask = function() { - return /** @type{?proto.workflow_api.ConditionalTask} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.ConditionalTask, 7)); -}; - - -/** - * @param {?proto.workflow_api.ConditionalTask|undefined} value - * @return {!proto.workflow_api.FlowNode} returns this -*/ -proto.workflow_api.FlowNode.prototype.setConditionaltask = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.FlowNode} returns this - */ -proto.workflow_api.FlowNode.prototype.clearConditionaltask = function() { - return this.setConditionaltask(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.FlowNode.prototype.hasConditionaltask = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.NodeInputs.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.NodeInputs.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.NodeInputs} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.NodeInputs.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - flownodeid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - inputid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - variable: (f = msg.getVariable()) && proto.workflow_api.WorkflowVariable.toObject(includeInstance, f), - identifier: jspb.Message.getFieldWithDefault(msg, 5, ""), - inputtype: jspb.Message.getFieldWithDefault(msg, 6, ""), - name: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.workflow_api.NodeInputs} - */ -proto.workflow_api.NodeInputs.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.NodeInputs; - return proto.workflow_api.NodeInputs.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.NodeInputs} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.NodeInputs} - */ -proto.workflow_api.NodeInputs.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setFlownodeid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setInputid(value); - break; - case 4: - var value = new proto.workflow_api.WorkflowVariable; - reader.readMessage(value,proto.workflow_api.WorkflowVariable.deserializeBinaryFromReader); - msg.setVariable(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setIdentifier(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setInputtype(value); - break; - case 7: - 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.workflow_api.NodeInputs.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.NodeInputs.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.NodeInputs} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.NodeInputs.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getFlownodeid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getInputid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getVariable(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.workflow_api.WorkflowVariable.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeString( - 5, - f - ); - } - f = message.getInputtype(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.NodeInputs.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 flowNodeId = 2; - * @return {string} - */ -proto.workflow_api.NodeInputs.prototype.getFlownodeid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.setFlownodeid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional uint64 inputId = 3; - * @return {string} - */ -proto.workflow_api.NodeInputs.prototype.getInputid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.setInputid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional WorkflowVariable variable = 4; - * @return {?proto.workflow_api.WorkflowVariable} - */ -proto.workflow_api.NodeInputs.prototype.getVariable = function() { - return /** @type{?proto.workflow_api.WorkflowVariable} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.WorkflowVariable, 4)); -}; - - -/** - * @param {?proto.workflow_api.WorkflowVariable|undefined} value - * @return {!proto.workflow_api.NodeInputs} returns this -*/ -proto.workflow_api.NodeInputs.prototype.setVariable = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.clearVariable = function() { - return this.setVariable(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.NodeInputs.prototype.hasVariable = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string identifier = 5; - * @return {string} - */ -proto.workflow_api.NodeInputs.prototype.getIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.setIdentifier = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.clearIdentifier = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.NodeInputs.prototype.hasIdentifier = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string inputType = 6; - * @return {string} - */ -proto.workflow_api.NodeInputs.prototype.getInputtype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.setInputtype = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string name = 7; - * @return {string} - */ -proto.workflow_api.NodeInputs.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.setName = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.NodeInputs} returns this - */ -proto.workflow_api.NodeInputs.prototype.clearName = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.NodeInputs.prototype.hasName = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.WorkflowVariable.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.WorkflowVariable.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.WorkflowVariable} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowVariable.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - variabletype: jspb.Message.getFieldWithDefault(msg, 2, ""), - valuetype: jspb.Message.getFieldWithDefault(msg, 3, ""), - defaultvalue: jspb.Message.getFieldWithDefault(msg, 4, ""), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - identifier: 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.workflow_api.WorkflowVariable} - */ -proto.workflow_api.WorkflowVariable.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.WorkflowVariable; - return proto.workflow_api.WorkflowVariable.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.WorkflowVariable} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.WorkflowVariable} - */ -proto.workflow_api.WorkflowVariable.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVariabletype(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValuetype(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDefaultvalue(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setIdentifier(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.WorkflowVariable.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.WorkflowVariable.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.WorkflowVariable} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowVariable.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getVariabletype(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getValuetype(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDefaultvalue(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.WorkflowVariable.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string variableType = 2; - * @return {string} - */ -proto.workflow_api.WorkflowVariable.prototype.getVariabletype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.setVariabletype = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string valueType = 3; - * @return {string} - */ -proto.workflow_api.WorkflowVariable.prototype.getValuetype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.setValuetype = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string defaultValue = 4; - * @return {string} - */ -proto.workflow_api.WorkflowVariable.prototype.getDefaultvalue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.setDefaultvalue = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.workflow_api.WorkflowVariable.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string identifier = 6; - * @return {string} - */ -proto.workflow_api.WorkflowVariable.prototype.getIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.setIdentifier = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.WorkflowVariable} returns this - */ -proto.workflow_api.WorkflowVariable.prototype.clearIdentifier = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.WorkflowVariable.prototype.hasIdentifier = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.RunWorkflowRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.RunWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.RunWorkflowRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.RunWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RunWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - variablesList: jspb.Message.toObjectList(msg.getVariablesList(), - proto.workflow_api.WorkflowVariable.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.workflow_api.RunWorkflowRequest} - */ -proto.workflow_api.RunWorkflowRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.RunWorkflowRequest; - return proto.workflow_api.RunWorkflowRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.RunWorkflowRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.RunWorkflowRequest} - */ -proto.workflow_api.RunWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - case 2: - var value = new proto.workflow_api.WorkflowVariable; - reader.readMessage(value,proto.workflow_api.WorkflowVariable.deserializeBinaryFromReader); - msg.addVariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.RunWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.RunWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.RunWorkflowRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RunWorkflowRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getVariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.workflow_api.WorkflowVariable.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 workflowId = 1; - * @return {string} - */ -proto.workflow_api.RunWorkflowRequest.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RunWorkflowRequest} returns this - */ -proto.workflow_api.RunWorkflowRequest.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated WorkflowVariable variables = 2; - * @return {!Array} - */ -proto.workflow_api.RunWorkflowRequest.prototype.getVariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.WorkflowVariable, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.RunWorkflowRequest} returns this -*/ -proto.workflow_api.RunWorkflowRequest.prototype.setVariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.workflow_api.WorkflowVariable=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.WorkflowVariable} - */ -proto.workflow_api.RunWorkflowRequest.prototype.addVariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.workflow_api.WorkflowVariable, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.RunWorkflowRequest} returns this - */ -proto.workflow_api.RunWorkflowRequest.prototype.clearVariablesList = function() { - return this.setVariablesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.GetWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.GetWorkflowRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.GetWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowid: jspb.Message.getFieldWithDefault(msg, 1, "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.workflow_api.GetWorkflowRequest} - */ -proto.workflow_api.GetWorkflowRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.GetWorkflowRequest; - return proto.workflow_api.GetWorkflowRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.GetWorkflowRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.GetWorkflowRequest} - */ -proto.workflow_api.GetWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.GetWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.GetWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.GetWorkflowRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } -}; - - -/** - * optional uint64 workflowId = 1; - * @return {string} - */ -proto.workflow_api.GetWorkflowRequest.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.GetWorkflowRequest} returns this - */ -proto.workflow_api.GetWorkflowRequest.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.EndpointTask.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.EndpointTask.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.EndpointTask} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.EndpointTask.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endpointid: 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.workflow_api.EndpointTask} - */ -proto.workflow_api.EndpointTask.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.EndpointTask; - return proto.workflow_api.EndpointTask.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.EndpointTask} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.EndpointTask} - */ -proto.workflow_api.EndpointTask.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndpointid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.EndpointTask.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.EndpointTask.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.EndpointTask} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.EndpointTask.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getEndpointid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.EndpointTask.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.EndpointTask} returns this - */ -proto.workflow_api.EndpointTask.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 endpointId = 2; - * @return {string} - */ -proto.workflow_api.EndpointTask.prototype.getEndpointid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.EndpointTask} returns this - */ -proto.workflow_api.EndpointTask.prototype.setEndpointid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.OutputTask.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.OutputTask.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.OutputTask.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.OutputTask} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.OutputTask.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - outputsList: jspb.Message.toObjectList(msg.getOutputsList(), - proto.workflow_api.Outputs.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.workflow_api.OutputTask} - */ -proto.workflow_api.OutputTask.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.OutputTask; - return proto.workflow_api.OutputTask.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.OutputTask} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.OutputTask} - */ -proto.workflow_api.OutputTask.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 4: - var value = new proto.workflow_api.Outputs; - reader.readMessage(value,proto.workflow_api.Outputs.deserializeBinaryFromReader); - msg.addOutputs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.OutputTask.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.OutputTask.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.OutputTask} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.OutputTask.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getOutputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.workflow_api.Outputs.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.OutputTask.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.OutputTask} returns this - */ -proto.workflow_api.OutputTask.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated Outputs outputs = 4; - * @return {!Array} - */ -proto.workflow_api.OutputTask.prototype.getOutputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Outputs, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.OutputTask} returns this -*/ -proto.workflow_api.OutputTask.prototype.setOutputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.workflow_api.Outputs=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Outputs} - */ -proto.workflow_api.OutputTask.prototype.addOutputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.workflow_api.Outputs, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.OutputTask} returns this - */ -proto.workflow_api.OutputTask.prototype.clearOutputsList = function() { - return this.setOutputsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.ConditionalTask.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.ConditionalTask.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.ConditionalTask.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.ConditionalTask} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.ConditionalTask.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - conditionsList: jspb.Message.toObjectList(msg.getConditionsList(), - proto.workflow_api.Condition.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.workflow_api.ConditionalTask} - */ -proto.workflow_api.ConditionalTask.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.ConditionalTask; - return proto.workflow_api.ConditionalTask.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.ConditionalTask} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.ConditionalTask} - */ -proto.workflow_api.ConditionalTask.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = new proto.workflow_api.Condition; - reader.readMessage(value,proto.workflow_api.Condition.deserializeBinaryFromReader); - msg.addConditions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.ConditionalTask.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.ConditionalTask.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.ConditionalTask} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.ConditionalTask.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getConditionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.workflow_api.Condition.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.ConditionalTask.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.ConditionalTask} returns this - */ -proto.workflow_api.ConditionalTask.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated Condition conditions = 2; - * @return {!Array} - */ -proto.workflow_api.ConditionalTask.prototype.getConditionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Condition, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.ConditionalTask} returns this -*/ -proto.workflow_api.ConditionalTask.prototype.setConditionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.workflow_api.Condition=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Condition} - */ -proto.workflow_api.ConditionalTask.prototype.addConditions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.workflow_api.Condition, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.ConditionalTask} returns this - */ -proto.workflow_api.ConditionalTask.prototype.clearConditionsList = function() { - return this.setConditionsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.Condition.repeatedFields_ = [5,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.Condition.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.Condition.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.Condition} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Condition.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - conditionaltaskid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - precedence: jspb.Message.getFieldWithDefault(msg, 4, 0), - rulegroupsList: jspb.Message.toObjectList(msg.getRulegroupsList(), - proto.workflow_api.RuleGroup.toObject, includeInstance), - rulegroupedgesList: jspb.Message.toObjectList(msg.getRulegroupedgesList(), - proto.workflow_api.Edge.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.workflow_api.Condition} - */ -proto.workflow_api.Condition.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.Condition; - return proto.workflow_api.Condition.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.Condition} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.Condition} - */ -proto.workflow_api.Condition.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setConditionaltaskid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPrecedence(value); - break; - case 5: - var value = new proto.workflow_api.RuleGroup; - reader.readMessage(value,proto.workflow_api.RuleGroup.deserializeBinaryFromReader); - msg.addRulegroups(value); - break; - case 6: - var value = new proto.workflow_api.Edge; - reader.readMessage(value,proto.workflow_api.Edge.deserializeBinaryFromReader); - msg.addRulegroupedges(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.Condition.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.Condition.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.Condition} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Condition.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getConditionaltaskid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPrecedence(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getRulegroupsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.workflow_api.RuleGroup.serializeBinaryToWriter - ); - } - f = message.getRulegroupedgesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.workflow_api.Edge.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.Condition.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Condition} returns this - */ -proto.workflow_api.Condition.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 conditionalTaskId = 2; - * @return {string} - */ -proto.workflow_api.Condition.prototype.getConditionaltaskid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Condition} returns this - */ -proto.workflow_api.Condition.prototype.setConditionaltaskid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.workflow_api.Condition.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Condition} returns this - */ -proto.workflow_api.Condition.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional int32 precedence = 4; - * @return {number} - */ -proto.workflow_api.Condition.prototype.getPrecedence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.Condition} returns this - */ -proto.workflow_api.Condition.prototype.setPrecedence = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * repeated RuleGroup ruleGroups = 5; - * @return {!Array} - */ -proto.workflow_api.Condition.prototype.getRulegroupsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.RuleGroup, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.Condition} returns this -*/ -proto.workflow_api.Condition.prototype.setRulegroupsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.workflow_api.RuleGroup=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.RuleGroup} - */ -proto.workflow_api.Condition.prototype.addRulegroups = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.workflow_api.RuleGroup, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.Condition} returns this - */ -proto.workflow_api.Condition.prototype.clearRulegroupsList = function() { - return this.setRulegroupsList([]); -}; - - -/** - * repeated Edge ruleGroupEdges = 6; - * @return {!Array} - */ -proto.workflow_api.Condition.prototype.getRulegroupedgesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Edge, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.Condition} returns this -*/ -proto.workflow_api.Condition.prototype.setRulegroupedgesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.workflow_api.Edge=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Edge} - */ -proto.workflow_api.Condition.prototype.addRulegroupedges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.workflow_api.Edge, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.Condition} returns this - */ -proto.workflow_api.Condition.prototype.clearRulegroupedgesList = function() { - return this.setRulegroupedgesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.RuleGroup.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.RuleGroup.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.RuleGroup.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.RuleGroup} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RuleGroup.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - conditionid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - precedence: jspb.Message.getFieldWithDefault(msg, 3, 0), - connectingoperator: jspb.Message.getFieldWithDefault(msg, 4, ""), - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.workflow_api.Rule.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.workflow_api.RuleGroup} - */ -proto.workflow_api.RuleGroup.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.RuleGroup; - return proto.workflow_api.RuleGroup.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.RuleGroup} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.RuleGroup} - */ -proto.workflow_api.RuleGroup.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setConditionid(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPrecedence(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectingoperator(value); - break; - case 5: - var value = new proto.workflow_api.Rule; - reader.readMessage(value,proto.workflow_api.Rule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.RuleGroup.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.RuleGroup.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.RuleGroup} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RuleGroup.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getConditionid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getPrecedence(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.workflow_api.Rule.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.RuleGroup.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleGroup} returns this - */ -proto.workflow_api.RuleGroup.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 conditionId = 2; - * @return {string} - */ -proto.workflow_api.RuleGroup.prototype.getConditionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleGroup} returns this - */ -proto.workflow_api.RuleGroup.prototype.setConditionid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional int32 precedence = 3; - * @return {number} - */ -proto.workflow_api.RuleGroup.prototype.getPrecedence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.RuleGroup} returns this - */ -proto.workflow_api.RuleGroup.prototype.setPrecedence = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string connectingOperator = 4; - * @return {string} - */ -proto.workflow_api.RuleGroup.prototype.getConnectingoperator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleGroup} returns this - */ -proto.workflow_api.RuleGroup.prototype.setConnectingoperator = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.RuleGroup} returns this - */ -proto.workflow_api.RuleGroup.prototype.clearConnectingoperator = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.RuleGroup.prototype.hasConnectingoperator = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * repeated Rule rules = 5; - * @return {!Array} - */ -proto.workflow_api.RuleGroup.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Rule, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.RuleGroup} returns this -*/ -proto.workflow_api.RuleGroup.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.workflow_api.Rule=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Rule} - */ -proto.workflow_api.RuleGroup.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.workflow_api.Rule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.RuleGroup} returns this - */ -proto.workflow_api.RuleGroup.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.Rule.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.Rule.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.Rule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.Rule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Rule.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - rulegroupid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - operatorname: jspb.Message.getFieldWithDefault(msg, 3, ""), - precedence: jspb.Message.getFieldWithDefault(msg, 4, 0), - connectingoperator: jspb.Message.getFieldWithDefault(msg, 5, ""), - rulevariablesList: jspb.Message.toObjectList(msg.getRulevariablesList(), - proto.workflow_api.RuleVariable.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.workflow_api.Rule} - */ -proto.workflow_api.Rule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.Rule; - return proto.workflow_api.Rule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.Rule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.Rule} - */ -proto.workflow_api.Rule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRulegroupid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOperatorname(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPrecedence(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectingoperator(value); - break; - case 6: - var value = new proto.workflow_api.RuleVariable; - reader.readMessage(value,proto.workflow_api.RuleVariable.deserializeBinaryFromReader); - msg.addRulevariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.Rule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.Rule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.Rule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Rule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getRulegroupid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getOperatorname(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPrecedence(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeString( - 5, - f - ); - } - f = message.getRulevariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.workflow_api.RuleVariable.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.Rule.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 ruleGroupId = 2; - * @return {string} - */ -proto.workflow_api.Rule.prototype.getRulegroupid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.setRulegroupid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional string operatorName = 3; - * @return {string} - */ -proto.workflow_api.Rule.prototype.getOperatorname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.setOperatorname = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional int32 precedence = 4; - * @return {number} - */ -proto.workflow_api.Rule.prototype.getPrecedence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.setPrecedence = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string connectingOperator = 5; - * @return {string} - */ -proto.workflow_api.Rule.prototype.getConnectingoperator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.setConnectingoperator = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.clearConnectingoperator = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.Rule.prototype.hasConnectingoperator = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated RuleVariable ruleVariables = 6; - * @return {!Array} - */ -proto.workflow_api.Rule.prototype.getRulevariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.RuleVariable, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.Rule} returns this -*/ -proto.workflow_api.Rule.prototype.setRulevariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.workflow_api.RuleVariable=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.RuleVariable} - */ -proto.workflow_api.Rule.prototype.addRulevariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.workflow_api.RuleVariable, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.Rule} returns this - */ -proto.workflow_api.Rule.prototype.clearRulevariablesList = function() { - return this.setRulevariablesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.RuleVariable.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.RuleVariable.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.RuleVariable} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RuleVariable.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - position: jspb.Message.getFieldWithDefault(msg, 2, ""), - variabletype: jspb.Message.getFieldWithDefault(msg, 3, ""), - value: 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.workflow_api.RuleVariable} - */ -proto.workflow_api.RuleVariable.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.RuleVariable; - return proto.workflow_api.RuleVariable.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.RuleVariable} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.RuleVariable} - */ -proto.workflow_api.RuleVariable.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPosition(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVariabletype(value); - break; - case 4: - 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.workflow_api.RuleVariable.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.RuleVariable.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.RuleVariable} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RuleVariable.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getPosition(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVariabletype(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.RuleVariable.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleVariable} returns this - */ -proto.workflow_api.RuleVariable.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string position = 2; - * @return {string} - */ -proto.workflow_api.RuleVariable.prototype.getPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleVariable} returns this - */ -proto.workflow_api.RuleVariable.prototype.setPosition = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string variableType = 3; - * @return {string} - */ -proto.workflow_api.RuleVariable.prototype.getVariabletype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleVariable} returns this - */ -proto.workflow_api.RuleVariable.prototype.setVariabletype = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string value = 4; - * @return {string} - */ -proto.workflow_api.RuleVariable.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RuleVariable} returns this - */ -proto.workflow_api.RuleVariable.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.Outputs.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.Outputs.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.Outputs} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Outputs.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - outputtaskid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - outputid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - outputtype: 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.workflow_api.Outputs} - */ -proto.workflow_api.Outputs.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.Outputs; - return proto.workflow_api.Outputs.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.Outputs} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.Outputs} - */ -proto.workflow_api.Outputs.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOutputtaskid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setOutputid(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setOutputtype(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.Outputs.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.Outputs.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.Outputs} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.Outputs.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getOutputtaskid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getOutputid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getOutputtype(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.Outputs.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Outputs} returns this - */ -proto.workflow_api.Outputs.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 outputTaskId = 2; - * @return {string} - */ -proto.workflow_api.Outputs.prototype.getOutputtaskid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Outputs} returns this - */ -proto.workflow_api.Outputs.prototype.setOutputtaskid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional uint64 outputId = 3; - * @return {string} - */ -proto.workflow_api.Outputs.prototype.getOutputid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Outputs} returns this - */ -proto.workflow_api.Outputs.prototype.setOutputid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional string outputType = 4; - * @return {string} - */ -proto.workflow_api.Outputs.prototype.getOutputtype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.Outputs} returns this - */ -proto.workflow_api.Outputs.prototype.setOutputtype = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.InputTask.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.InputTask.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.InputTask} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.InputTask.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "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.workflow_api.InputTask} - */ -proto.workflow_api.InputTask.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.InputTask; - return proto.workflow_api.InputTask.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.InputTask} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.InputTask} - */ -proto.workflow_api.InputTask.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.InputTask.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.InputTask.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.InputTask} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.InputTask.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.InputTask.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.InputTask} returns this - */ -proto.workflow_api.InputTask.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.RunWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.RunWorkflowResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.RunWorkflowResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RunWorkflowResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - workflowid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - workflowrunid: jspb.Message.getFieldWithDefault(msg, 4, "0"), - error: (f = msg.getError()) && common_pb.Error.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.workflow_api.RunWorkflowResponse} - */ -proto.workflow_api.RunWorkflowResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.RunWorkflowResponse; - return proto.workflow_api.RunWorkflowResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.RunWorkflowResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.RunWorkflowResponse} - */ -proto.workflow_api.RunWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowrunid(value); - break; - case 5: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.RunWorkflowResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.RunWorkflowResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.RunWorkflowResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.RunWorkflowResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getWorkflowrunid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Error.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.workflow_api.RunWorkflowResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.RunWorkflowResponse} returns this - */ -proto.workflow_api.RunWorkflowResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.workflow_api.RunWorkflowResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.workflow_api.RunWorkflowResponse} returns this - */ -proto.workflow_api.RunWorkflowResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 workflowId = 3; - * @return {string} - */ -proto.workflow_api.RunWorkflowResponse.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RunWorkflowResponse} returns this - */ -proto.workflow_api.RunWorkflowResponse.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional uint64 workflowRunId = 4; - * @return {string} - */ -proto.workflow_api.RunWorkflowResponse.prototype.getWorkflowrunid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.RunWorkflowResponse} returns this - */ -proto.workflow_api.RunWorkflowResponse.prototype.setWorkflowrunid = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional Error error = 5; - * @return {?proto.Error} - */ -proto.workflow_api.RunWorkflowResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 5)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.workflow_api.RunWorkflowResponse} returns this -*/ -proto.workflow_api.RunWorkflowResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.RunWorkflowResponse} returns this - */ -proto.workflow_api.RunWorkflowResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.RunWorkflowResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.GetWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.GetWorkflowResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.GetWorkflowResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.workflow_api.Workflow.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.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.workflow_api.GetWorkflowResponse} - */ -proto.workflow_api.GetWorkflowResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.GetWorkflowResponse; - return proto.workflow_api.GetWorkflowResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.GetWorkflowResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.GetWorkflowResponse} - */ -proto.workflow_api.GetWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.workflow_api.Workflow; - reader.readMessage(value,proto.workflow_api.Workflow.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.GetWorkflowResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.GetWorkflowResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.GetWorkflowResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.workflow_api.Workflow.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.workflow_api.GetWorkflowResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.GetWorkflowResponse} returns this - */ -proto.workflow_api.GetWorkflowResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.workflow_api.GetWorkflowResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.workflow_api.GetWorkflowResponse} returns this - */ -proto.workflow_api.GetWorkflowResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional Workflow Data = 3; - * @return {?proto.workflow_api.Workflow} - */ -proto.workflow_api.GetWorkflowResponse.prototype.getData = function() { - return /** @type{?proto.workflow_api.Workflow} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.Workflow, 3)); -}; - - -/** - * @param {?proto.workflow_api.Workflow|undefined} value - * @return {!proto.workflow_api.GetWorkflowResponse} returns this -*/ -proto.workflow_api.GetWorkflowResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetWorkflowResponse} returns this - */ -proto.workflow_api.GetWorkflowResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetWorkflowResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.workflow_api.GetWorkflowResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.workflow_api.GetWorkflowResponse} returns this -*/ -proto.workflow_api.GetWorkflowResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetWorkflowResponse} returns this - */ -proto.workflow_api.GetWorkflowResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetWorkflowResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.GetAllWorkflowRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.GetAllWorkflowRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.GetAllWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetAllWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f), - criteriasList: jspb.Message.toObjectList(msg.getCriteriasList(), - common_pb.Criteria.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.workflow_api.GetAllWorkflowRequest} - */ -proto.workflow_api.GetAllWorkflowRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.GetAllWorkflowRequest; - return proto.workflow_api.GetAllWorkflowRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.GetAllWorkflowRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.GetAllWorkflowRequest} - */ -proto.workflow_api.GetAllWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Paginate; - reader.readMessage(value,common_pb.Paginate.deserializeBinaryFromReader); - msg.setPaginate(value); - break; - case 2: - var value = new common_pb.Criteria; - reader.readMessage(value,common_pb.Criteria.deserializeBinaryFromReader); - msg.addCriterias(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.GetAllWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.GetAllWorkflowRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetAllWorkflowRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaginate(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Paginate.serializeBinaryToWriter - ); - } - f = message.getCriteriasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - common_pb.Criteria.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Paginate paginate = 1; - * @return {?proto.Paginate} - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.getPaginate = function() { - return /** @type{?proto.Paginate} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginate, 1)); -}; - - -/** - * @param {?proto.Paginate|undefined} value - * @return {!proto.workflow_api.GetAllWorkflowRequest} returns this -*/ -proto.workflow_api.GetAllWorkflowRequest.prototype.setPaginate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetAllWorkflowRequest} returns this - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.clearPaginate = function() { - return this.setPaginate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.hasPaginate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated Criteria criterias = 2; - * @return {!Array} - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.getCriteriasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.GetAllWorkflowRequest} returns this -*/ -proto.workflow_api.GetAllWorkflowRequest.prototype.setCriteriasList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.Criteria=} opt_value - * @param {number=} opt_index - * @return {!proto.Criteria} - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.addCriterias = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Criteria, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.GetAllWorkflowRequest} returns this - */ -proto.workflow_api.GetAllWorkflowRequest.prototype.clearCriteriasList = function() { - return this.setCriteriasList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.GetAllWorkflowResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.GetAllWorkflowResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.GetAllWorkflowResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetAllWorkflowResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataList: jspb.Message.toObjectList(msg.getDataList(), - proto.workflow_api.Workflow.toObject, includeInstance), - error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f), - paginated: (f = msg.getPaginated()) && common_pb.Paginated.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.workflow_api.GetAllWorkflowResponse} - */ -proto.workflow_api.GetAllWorkflowResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.GetAllWorkflowResponse; - return proto.workflow_api.GetAllWorkflowResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.GetAllWorkflowResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.GetAllWorkflowResponse} - */ -proto.workflow_api.GetAllWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.workflow_api.Workflow; - reader.readMessage(value,proto.workflow_api.Workflow.deserializeBinaryFromReader); - msg.addData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - case 5: - var value = new common_pb.Paginated; - reader.readMessage(value,common_pb.Paginated.deserializeBinaryFromReader); - msg.setPaginated(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.GetAllWorkflowResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.GetAllWorkflowResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetAllWorkflowResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.workflow_api.Workflow.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } - f = message.getPaginated(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Paginated.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated Workflow Data = 3; - * @return {!Array} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.getDataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Workflow, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this -*/ -proto.workflow_api.GetAllWorkflowResponse.prototype.setDataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.workflow_api.Workflow=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Workflow} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.addData = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.workflow_api.Workflow, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this -*/ -proto.workflow_api.GetAllWorkflowResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Paginated paginated = 5; - * @return {?proto.Paginated} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.getPaginated = function() { - return /** @type{?proto.Paginated} */ ( - jspb.Message.getWrapperField(this, common_pb.Paginated, 5)); -}; - - -/** - * @param {?proto.Paginated|undefined} value - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this -*/ -proto.workflow_api.GetAllWorkflowResponse.prototype.setPaginated = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetAllWorkflowResponse} returns this - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.clearPaginated = function() { - return this.setPaginated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetAllWorkflowResponse.prototype.hasPaginated = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.WorkflowAttributes.repeatedFields_ = [6,7,8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.WorkflowAttributes.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.WorkflowAttributes.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.WorkflowAttributes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowAttributes.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - source: jspb.Message.getFieldWithDefault(msg, 3, ""), - sourceidentifier: jspb.Message.getFieldWithDefault(msg, 4, "0"), - visibility: jspb.Message.getFieldWithDefault(msg, 5, ""), - tagsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, - edgesList: jspb.Message.toObjectList(msg.getEdgesList(), - proto.workflow_api.Edge.toObject, includeInstance), - flownodesList: jspb.Message.toObjectList(msg.getFlownodesList(), - proto.workflow_api.FlowNode.toObject, includeInstance), - workflow: 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.workflow_api.WorkflowAttributes} - */ -proto.workflow_api.WorkflowAttributes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.WorkflowAttributes; - return proto.workflow_api.WorkflowAttributes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.WorkflowAttributes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.WorkflowAttributes} - */ -proto.workflow_api.WorkflowAttributes.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; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSource(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSourceidentifier(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setVisibility(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); - break; - case 7: - var value = new proto.workflow_api.Edge; - reader.readMessage(value,proto.workflow_api.Edge.deserializeBinaryFromReader); - msg.addEdges(value); - break; - case 8: - var value = new proto.workflow_api.FlowNode; - reader.readMessage(value,proto.workflow_api.FlowNode.deserializeBinaryFromReader); - msg.addFlownodes(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflow(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.WorkflowAttributes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.WorkflowAttributes.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.WorkflowAttributes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowAttributes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSourceidentifier(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getVisibility(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } - f = message.getEdgesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.workflow_api.Edge.serializeBinaryToWriter - ); - } - f = message.getFlownodesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.workflow_api.FlowNode.serializeBinaryToWriter - ); - } - f = message.getWorkflow(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.workflow_api.WorkflowAttributes.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.workflow_api.WorkflowAttributes.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string source = 3; - * @return {string} - */ -proto.workflow_api.WorkflowAttributes.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint64 sourceIdentifier = 4; - * @return {string} - */ -proto.workflow_api.WorkflowAttributes.prototype.getSourceidentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setSourceidentifier = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional string visibility = 5; - * @return {string} - */ -proto.workflow_api.WorkflowAttributes.prototype.getVisibility = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setVisibility = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated string tags = 6; - * @return {!Array} - */ -proto.workflow_api.WorkflowAttributes.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.clearTagsList = function() { - return this.setTagsList([]); -}; - - -/** - * repeated Edge edges = 7; - * @return {!Array} - */ -proto.workflow_api.WorkflowAttributes.prototype.getEdgesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.Edge, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this -*/ -proto.workflow_api.WorkflowAttributes.prototype.setEdgesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.workflow_api.Edge=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.Edge} - */ -proto.workflow_api.WorkflowAttributes.prototype.addEdges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.workflow_api.Edge, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.clearEdgesList = function() { - return this.setEdgesList([]); -}; - - -/** - * repeated FlowNode flowNodes = 8; - * @return {!Array} - */ -proto.workflow_api.WorkflowAttributes.prototype.getFlownodesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.FlowNode, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this -*/ -proto.workflow_api.WorkflowAttributes.prototype.setFlownodesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.workflow_api.FlowNode=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.FlowNode} - */ -proto.workflow_api.WorkflowAttributes.prototype.addFlownodes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.workflow_api.FlowNode, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.clearFlownodesList = function() { - return this.setFlownodesList([]); -}; - - -/** - * optional string Workflow = 9; - * @return {string} - */ -proto.workflow_api.WorkflowAttributes.prototype.getWorkflow = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowAttributes} returns this - */ -proto.workflow_api.WorkflowAttributes.prototype.setWorkflow = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.CreateWorkflowRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.CreateWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.CreateWorkflowRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.CreateWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.CreateWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowattributes: (f = msg.getWorkflowattributes()) && proto.workflow_api.WorkflowAttributes.toObject(includeInstance, f), - variablesList: jspb.Message.toObjectList(msg.getVariablesList(), - proto.workflow_api.WorkflowVariable.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.workflow_api.CreateWorkflowRequest} - */ -proto.workflow_api.CreateWorkflowRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.CreateWorkflowRequest; - return proto.workflow_api.CreateWorkflowRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.CreateWorkflowRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.CreateWorkflowRequest} - */ -proto.workflow_api.CreateWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.workflow_api.WorkflowAttributes; - reader.readMessage(value,proto.workflow_api.WorkflowAttributes.deserializeBinaryFromReader); - msg.setWorkflowattributes(value); - break; - case 2: - var value = new proto.workflow_api.WorkflowVariable; - reader.readMessage(value,proto.workflow_api.WorkflowVariable.deserializeBinaryFromReader); - msg.addVariables(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.CreateWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.CreateWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.CreateWorkflowRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.CreateWorkflowRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowattributes(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.workflow_api.WorkflowAttributes.serializeBinaryToWriter - ); - } - f = message.getVariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.workflow_api.WorkflowVariable.serializeBinaryToWriter - ); - } -}; - - -/** - * optional WorkflowAttributes workflowAttributes = 1; - * @return {?proto.workflow_api.WorkflowAttributes} - */ -proto.workflow_api.CreateWorkflowRequest.prototype.getWorkflowattributes = function() { - return /** @type{?proto.workflow_api.WorkflowAttributes} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.WorkflowAttributes, 1)); -}; - - -/** - * @param {?proto.workflow_api.WorkflowAttributes|undefined} value - * @return {!proto.workflow_api.CreateWorkflowRequest} returns this -*/ -proto.workflow_api.CreateWorkflowRequest.prototype.setWorkflowattributes = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.CreateWorkflowRequest} returns this - */ -proto.workflow_api.CreateWorkflowRequest.prototype.clearWorkflowattributes = function() { - return this.setWorkflowattributes(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.CreateWorkflowRequest.prototype.hasWorkflowattributes = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated WorkflowVariable variables = 2; - * @return {!Array} - */ -proto.workflow_api.CreateWorkflowRequest.prototype.getVariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.WorkflowVariable, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.CreateWorkflowRequest} returns this -*/ -proto.workflow_api.CreateWorkflowRequest.prototype.setVariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.workflow_api.WorkflowVariable=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.WorkflowVariable} - */ -proto.workflow_api.CreateWorkflowRequest.prototype.addVariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.workflow_api.WorkflowVariable, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.CreateWorkflowRequest} returns this - */ -proto.workflow_api.CreateWorkflowRequest.prototype.clearVariablesList = function() { - return this.setVariablesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.GetWorkflowRunOutputRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.GetWorkflowRunOutputRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.GetWorkflowRunOutputRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowRunOutputRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - workflowrunid: 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.workflow_api.GetWorkflowRunOutputRequest} - */ -proto.workflow_api.GetWorkflowRunOutputRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.GetWorkflowRunOutputRequest; - return proto.workflow_api.GetWorkflowRunOutputRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.GetWorkflowRunOutputRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.GetWorkflowRunOutputRequest} - */ -proto.workflow_api.GetWorkflowRunOutputRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowrunid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.GetWorkflowRunOutputRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.GetWorkflowRunOutputRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.GetWorkflowRunOutputRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowRunOutputRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getWorkflowrunid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } -}; - - -/** - * optional uint64 workflowId = 1; - * @return {string} - */ -proto.workflow_api.GetWorkflowRunOutputRequest.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.GetWorkflowRunOutputRequest} returns this - */ -proto.workflow_api.GetWorkflowRunOutputRequest.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 workflowRunId = 2; - * @return {string} - */ -proto.workflow_api.GetWorkflowRunOutputRequest.prototype.getWorkflowrunid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.GetWorkflowRunOutputRequest} returns this - */ -proto.workflow_api.GetWorkflowRunOutputRequest.prototype.setWorkflowrunid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.GetWorkflowRunOutputResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.GetWorkflowRunOutputResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowRunOutputResponse.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - data: (f = msg.getData()) && proto.workflow_api.WorkflowRunResponse.toObject(includeInstance, f), - error: (f = msg.getError()) && common_pb.Error.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.workflow_api.GetWorkflowRunOutputResponse} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.GetWorkflowRunOutputResponse; - return proto.workflow_api.GetWorkflowRunOutputResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.GetWorkflowRunOutputResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCode(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 3: - var value = new proto.workflow_api.WorkflowRunResponse; - reader.readMessage(value,proto.workflow_api.WorkflowRunResponse.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new common_pb.Error; - reader.readMessage(value,common_pb.Error.deserializeBinaryFromReader); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.GetWorkflowRunOutputResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.GetWorkflowRunOutputResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.GetWorkflowRunOutputResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.workflow_api.WorkflowRunResponse.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Error.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} returns this - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool success = 2; - * @return {boolean} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} returns this - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional WorkflowRunResponse Data = 3; - * @return {?proto.workflow_api.WorkflowRunResponse} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.getData = function() { - return /** @type{?proto.workflow_api.WorkflowRunResponse} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.WorkflowRunResponse, 3)); -}; - - -/** - * @param {?proto.workflow_api.WorkflowRunResponse|undefined} value - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} returns this -*/ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} returns this - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Error error = 4; - * @return {?proto.Error} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.getError = function() { - return /** @type{?proto.Error} */ ( - jspb.Message.getWrapperField(this, common_pb.Error, 4)); -}; - - -/** - * @param {?proto.Error|undefined} value - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} returns this -*/ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.setError = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.GetWorkflowRunOutputResponse} returns this - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.clearError = function() { - return this.setError(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.GetWorkflowRunOutputResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.WorkflowRunResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.WorkflowRunResponse.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.WorkflowRunResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.WorkflowRunResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowRunResponse.toObject = function(includeInstance, msg) { - var f, obj = { - workflowrunid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - status: jspb.Message.getFieldWithDefault(msg, 2, ""), - outputsList: jspb.Message.toObjectList(msg.getOutputsList(), - proto.workflow_api.WorkflowOutput.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.workflow_api.WorkflowRunResponse} - */ -proto.workflow_api.WorkflowRunResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.WorkflowRunResponse; - return proto.workflow_api.WorkflowRunResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.WorkflowRunResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.WorkflowRunResponse} - */ -proto.workflow_api.WorkflowRunResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowrunid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 3: - var value = new proto.workflow_api.WorkflowOutput; - reader.readMessage(value,proto.workflow_api.WorkflowOutput.deserializeBinaryFromReader); - msg.addOutputs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.WorkflowRunResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.WorkflowRunResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.WorkflowRunResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowRunResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowrunid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOutputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.workflow_api.WorkflowOutput.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 workflowRunId = 1; - * @return {string} - */ -proto.workflow_api.WorkflowRunResponse.prototype.getWorkflowrunid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowRunResponse} returns this - */ -proto.workflow_api.WorkflowRunResponse.prototype.setWorkflowrunid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string status = 2; - * @return {string} - */ -proto.workflow_api.WorkflowRunResponse.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowRunResponse} returns this - */ -proto.workflow_api.WorkflowRunResponse.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated WorkflowOutput outputs = 3; - * @return {!Array} - */ -proto.workflow_api.WorkflowRunResponse.prototype.getOutputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.workflow_api.WorkflowOutput, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.WorkflowRunResponse} returns this -*/ -proto.workflow_api.WorkflowRunResponse.prototype.setOutputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.workflow_api.WorkflowOutput=} opt_value - * @param {number=} opt_index - * @return {!proto.workflow_api.WorkflowOutput} - */ -proto.workflow_api.WorkflowRunResponse.prototype.addOutputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.workflow_api.WorkflowOutput, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.WorkflowRunResponse} returns this - */ -proto.workflow_api.WorkflowRunResponse.prototype.clearOutputsList = function() { - return this.setOutputsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.WorkflowOutput.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.WorkflowOutput.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.WorkflowOutput} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowOutput.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "0"), - workflowrunid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - flownodeid: jspb.Message.getFieldWithDefault(msg, 3, "0"), - output: jspb.Message.getFieldWithDefault(msg, 4, ""), - status: jspb.Message.getFieldWithDefault(msg, 5, ""), - outputtype: jspb.Message.getFieldWithDefault(msg, 6, ""), - responsecode: jspb.Message.getFieldWithDefault(msg, 7, 0), - flownode: (f = msg.getFlownode()) && proto.workflow_api.FlowNode.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.workflow_api.WorkflowOutput} - */ -proto.workflow_api.WorkflowOutput.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.WorkflowOutput; - return proto.workflow_api.WorkflowOutput.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.WorkflowOutput} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.WorkflowOutput} - */ -proto.workflow_api.WorkflowOutput.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowrunid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setFlownodeid(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setOutput(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setOutputtype(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setResponsecode(value); - break; - case 8: - var value = new proto.workflow_api.FlowNode; - reader.readMessage(value,proto.workflow_api.FlowNode.deserializeBinaryFromReader); - msg.setFlownode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.WorkflowOutput.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.WorkflowOutput.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.WorkflowOutput} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.WorkflowOutput.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getWorkflowrunid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getFlownodeid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getOutput(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getOutputtype(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeInt32( - 7, - f - ); - } - f = message.getFlownode(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.workflow_api.FlowNode.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.workflow_api.WorkflowOutput.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 workflowRunId = 2; - * @return {string} - */ -proto.workflow_api.WorkflowOutput.prototype.getWorkflowrunid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setWorkflowrunid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional uint64 flowNodeId = 3; - * @return {string} - */ -proto.workflow_api.WorkflowOutput.prototype.getFlownodeid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setFlownodeid = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional string output = 4; - * @return {string} - */ -proto.workflow_api.WorkflowOutput.prototype.getOutput = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setOutput = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string status = 5; - * @return {string} - */ -proto.workflow_api.WorkflowOutput.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string outputType = 6; - * @return {string} - */ -proto.workflow_api.WorkflowOutput.prototype.getOutputtype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setOutputtype = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional int32 responseCode = 7; - * @return {number} - */ -proto.workflow_api.WorkflowOutput.prototype.getResponsecode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.setResponsecode = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.clearResponsecode = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.WorkflowOutput.prototype.hasResponsecode = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional FlowNode flowNode = 8; - * @return {?proto.workflow_api.FlowNode} - */ -proto.workflow_api.WorkflowOutput.prototype.getFlownode = function() { - return /** @type{?proto.workflow_api.FlowNode} */ ( - jspb.Message.getWrapperField(this, proto.workflow_api.FlowNode, 8)); -}; - - -/** - * @param {?proto.workflow_api.FlowNode|undefined} value - * @return {!proto.workflow_api.WorkflowOutput} returns this -*/ -proto.workflow_api.WorkflowOutput.prototype.setFlownode = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.workflow_api.WorkflowOutput} returns this - */ -proto.workflow_api.WorkflowOutput.prototype.clearFlownode = function() { - return this.setFlownode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.workflow_api.WorkflowOutput.prototype.hasFlownode = function() { - return jspb.Message.getField(this, 8) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.workflow_api.CreateWorkflowTagRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.CreateWorkflowTagRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.CreateWorkflowTagRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.CreateWorkflowTagRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - tagsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : 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.workflow_api.CreateWorkflowTagRequest} - */ -proto.workflow_api.CreateWorkflowTagRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.CreateWorkflowTagRequest; - return proto.workflow_api.CreateWorkflowTagRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.CreateWorkflowTagRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.CreateWorkflowTagRequest} - */ -proto.workflow_api.CreateWorkflowTagRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.CreateWorkflowTagRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.CreateWorkflowTagRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.CreateWorkflowTagRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional uint64 workflowId = 1; - * @return {string} - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.CreateWorkflowTagRequest} returns this - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated string tags = 2; - * @return {!Array} - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.workflow_api.CreateWorkflowTagRequest} returns this - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.workflow_api.CreateWorkflowTagRequest} returns this - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.workflow_api.CreateWorkflowTagRequest} returns this - */ -proto.workflow_api.CreateWorkflowTagRequest.prototype.clearTagsList = function() { - return this.setTagsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.PublishWorkflowVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.PublishWorkflowVersionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.PublishWorkflowVersionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.PublishWorkflowVersionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - workflowjson: 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.workflow_api.PublishWorkflowVersionRequest} - */ -proto.workflow_api.PublishWorkflowVersionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.PublishWorkflowVersionRequest; - return proto.workflow_api.PublishWorkflowVersionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.PublishWorkflowVersionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.PublishWorkflowVersionRequest} - */ -proto.workflow_api.PublishWorkflowVersionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowjson(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.PublishWorkflowVersionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.PublishWorkflowVersionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.PublishWorkflowVersionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.PublishWorkflowVersionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getWorkflowjson(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional uint64 workflowId = 1; - * @return {string} - */ -proto.workflow_api.PublishWorkflowVersionRequest.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.PublishWorkflowVersionRequest} returns this - */ -proto.workflow_api.PublishWorkflowVersionRequest.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string workflowJson = 2; - * @return {string} - */ -proto.workflow_api.PublishWorkflowVersionRequest.prototype.getWorkflowjson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.PublishWorkflowVersionRequest} returns this - */ -proto.workflow_api.PublishWorkflowVersionRequest.prototype.setWorkflowjson = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.workflow_api.UpdateWorkflowDetailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.workflow_api.UpdateWorkflowDetailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.UpdateWorkflowDetailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - workflowid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: 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.workflow_api.UpdateWorkflowDetailRequest} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.workflow_api.UpdateWorkflowDetailRequest; - return proto.workflow_api.UpdateWorkflowDetailRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.workflow_api.UpdateWorkflowDetailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.workflow_api.UpdateWorkflowDetailRequest} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setWorkflowid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.workflow_api.UpdateWorkflowDetailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.workflow_api.UpdateWorkflowDetailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.workflow_api.UpdateWorkflowDetailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional uint64 workflowId = 1; - * @return {string} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.getWorkflowid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.UpdateWorkflowDetailRequest} returns this - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.setWorkflowid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.UpdateWorkflowDetailRequest} returns this - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.workflow_api.UpdateWorkflowDetailRequest} returns this - */ -proto.workflow_api.UpdateWorkflowDetailRequest.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.workflow_api); diff --git a/src/clients/provider.ts b/src/clients/provider.ts new file mode 100644 index 0000000..ab28f48 --- /dev/null +++ b/src/clients/provider.ts @@ -0,0 +1,78 @@ +import { + GetAllModelProviderRequest, + GetAllModelProviderResponse, + GetAllToolProviderResponse, + GetAllToolProviderRequest, +} from "@/rapida/clients/protos/provider-api_pb"; +import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; +/** + * Retrieve all providers. + * + * @param connectionConfig - The connection configuration. + * @param authHeader - Authentication headers for the request (optional). + * @returns Promise - The response containing all model providers. + */ +export function GetAllProvider( + connectionConfig: ConnectionConfig +): Promise { + return new Promise((resolve, reject) => { + const request = new GetAllModelProviderRequest(); + connectionConfig.providerClient.getAllModelProvider( + request, + WithAuthContext(connectionConfig.auth), + (err: ServiceError, response: GetAllModelProviderResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +/** + * Retrieve all tool providers with pagination and filtering. + * + * @param connectionConfig - The connection configuration. + * @param page - The page number for pagination. + * @param pageSize - The number of items per page. + * @param criteria - List of criteria to filter the tool providers. + * @param authHeader - Authentication headers for the request. + * @returns Promise - The response containing all tool providers. + */ +export function GetAllToolProvider( + connectionConfig: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllToolProviderRequest(); + const paginate = new Paginate(); + + criteria.forEach((x) => { + let ctr = new Criteria(); + ctr.setKey(x.key); + ctr.setValue(x.value); + req.addCriterias(ctr); + }); + + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + + connectionConfig.providerClient.getAllToolProvider( + req, + WithAuthContext(connectionConfig.auth), + (err: ServiceError, response: GetAllToolProviderResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} diff --git a/src/clients/talk.ts b/src/clients/talk.ts index e63a7a2..ef4f529 100644 --- a/src/clients/talk.ts +++ b/src/clients/talk.ts @@ -23,169 +23,59 @@ * * This module provides functions for managing projects through the ProjectService. */ -import { - AssistantMessagingRequest, - AssistantDefinition, - AssistantMessagingResponse, - InitiateAssistantTalkRequest, - InitiateAssistantTalkParameter, - InitiateBulkAssistantTalkRequest, - CreateConversationMetricRequest, - CreateMessageMetricRequest, - CreateMessageMetricResponse, - CreateConversationMetricResponse, - InitiateAssistantTalkResponse, -} from "@/rapida/clients/protos/talk-api_pb"; import { GetAllConversationMessageRequest, + GetAllConversationMessageResponse, + GetAllAssistantConversationResponse, GetAllAssistantConversationRequest, Metric, - AssistantConversation, - AssistantConversationMessage, - GetAllAssistantConversationResponse, - GetAllConversationMessageResponse, - SourceMap, } from "@/rapida/clients/protos/common_pb"; import { - handleListResponse, - handleSingleResponse, + ClientAuthInfo, + UserAuthInfo, WithAuthContext, } from "@/rapida/clients"; -import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; +import { Criteria, Paginate, Message } from "@/rapida/clients/protos/common_pb"; +import { + CreateConversationMetricResponse, + CreateConversationMetricRequest, +} from "./protos/talk-api_pb"; +import { + CreateMessageMetricResponse, + CreateMessageMetricRequest, +} from "./protos/talk-api_pb"; import { ConnectionConfig } from "@/rapida/connections/connection-config"; -import { ClientDuplexStream } from "@grpc/grpc-js"; -import grpc from "@grpc/grpc-js"; -import { InitiateBulkAssistantTalkResponse } from "./protos/talk-api_pb"; -import { GetProtoSource, RapidaSource } from "@/rapida/utils/rapida_source"; - -/** - * - * @param clientCfg - * @param assistantId - * @param page - * @param pageSize - * @param criteria - * @returns - */ -export function GetAllAssistantConversation( - clientCfg: ConnectionConfig, - assistantId: string, - page: number, - pageSize: number, - criteria: { key: string; value: string }[] -): Promise> { - return new Promise((resolve, reject) => { - const req = new GetAllAssistantConversationRequest(); - req.setAssistantid(assistantId); - const paginate = new Paginate(); - criteria.forEach((x) => { - let ctr = new Criteria(); - ctr.setKey(x.key); - ctr.setValue(x.value); - req.addCriterias(ctr); - }); - paginate.setPage(page); - paginate.setPagesize(pageSize); - req.setPaginate(paginate); - clientCfg.conversationClient.getAllAssistantConversation( - req, - WithAuthContext(clientCfg.auth), - ( - err: grpc.ServiceError, - response: GetAllAssistantConversationResponse - ) => { - if (err) reject(err); - else { - try { - resolve(handleListResponse(response!)); - } catch (error) { - reject(error); - } - } - } - ); - }); -} +import { TalkServiceClient } from "@/rapida/clients/protos/talk-api_grpc_pb"; +import { ServiceError } from "@grpc/grpc-js"; /** * - * @param clientCfg - * @param assistantId - * @param assistantConversationId - * @param page - * @param pageSize - * @param criteria - * @returns - */ -export function GetAllAssistantConversationMessage( - clientCfg: ConnectionConfig, - assistantId: string, - assistantConversationId: string, - page: number, - pageSize: number, - criteria: { key: string; value: string }[] -): Promise> { - return new Promise((resolve, reject) => { - const req = new GetAllConversationMessageRequest(); - req.setAssistantid(assistantId); - req.setAssistantconversationid(assistantConversationId); - const paginate = new Paginate(); - criteria.forEach((x) => { - let ctr = new Criteria(); - ctr.setKey(x.key); - ctr.setValue(x.value); - req.addCriterias(ctr); - }); - paginate.setPage(page); - paginate.setPagesize(pageSize); - req.setPaginate(paginate); - clientCfg.conversationClient.getAllConversationMessage( - req, - WithAuthContext(clientCfg.auth), - (err: grpc.ServiceError, response: GetAllConversationMessageResponse) => { - if (err) reject(err); - else { - try { - resolve(handleListResponse(response!)); - } catch (error) { - reject(error); - } - } - } - ); - }); -} - -/** - * - * @param clientCfg + * @param authHeader * @returns */ export function AssistantTalk( - clientCfg: ConnectionConfig -): ClientDuplexStream { - return clientCfg.conversationClient.assistantTalk( - WithAuthContext(clientCfg.auth) - ); + conversationStreamClient: TalkServiceClient, + authHeader: UserAuthInfo | ClientAuthInfo +) { + return conversationStreamClient.assistantTalk(WithAuthContext(authHeader)); } /** * - * @param clientCfg + * @param conversationClient * @param assistantId * @param assistantConversationId - * @param messageId - * @param metrics - * @returns + * @param assistantConversationMessageId + * @param cb + * @param authHeader */ export function CreateMessageMetric( - clientCfg: ConnectionConfig, + connectionConfig: ConnectionConfig, assistantId: string, assistantConversationId: string, messageId: string, metrics: { name: string; value: string; description: string }[] -): Promise> { +): Promise { return new Promise((resolve, reject) => { const req = new CreateMessageMetricRequest(); req.setAssistantid(assistantId); @@ -198,18 +88,12 @@ export function CreateMessageMetric( _m.setDescription(mtr.description); req.addMetrics(_m); } - clientCfg.conversationClient.createMessageMetric( + connectionConfig.conversationClient.createMessageMetric( req, - WithAuthContext(clientCfg.auth), - (err: grpc.ServiceError, response: CreateMessageMetricResponse) => { + WithAuthContext(connectionConfig.auth), + (err: ServiceError | null, uvcr: CreateMessageMetricResponse) => { if (err) reject(err); - else { - try { - resolve(handleListResponse(response!)); - } catch (error) { - reject(error); - } - } + else resolve(uvcr!); } ); }); @@ -217,18 +101,19 @@ export function CreateMessageMetric( /** * - * @param clientCfg + * @param conversationClient * @param assistantId * @param assistantConversationId * @param metrics - * @returns + * @param cb + * @param authHeader */ export function CreateConversationMetric( - clientCfg: ConnectionConfig, + connectionConfig: ConnectionConfig, assistantId: string, assistantConversationId: string, metrics: { name: string; value: string; description: string }[] -): Promise> { +): Promise { return new Promise((resolve, reject) => { const req = new CreateConversationMetricRequest(); req.setAssistantid(assistantId); @@ -240,18 +125,15 @@ export function CreateConversationMetric( _m.setDescription(mtr.description); req.addMetrics(_m); } - clientCfg.conversationClient.createConversationMetric( + connectionConfig.conversationClient.createConversationMetric( req, - WithAuthContext(clientCfg.auth), - (err: grpc.ServiceError, response: CreateConversationMetricResponse) => { + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + uvcr: CreateConversationMetricResponse | null + ) => { if (err) reject(err); - else { - try { - resolve(handleListResponse(response!)); - } catch (error) { - reject(error); - } - } + else resolve(uvcr!); } ); }); @@ -259,79 +141,42 @@ export function CreateConversationMetric( /** * - * @param clientCfg * @param assistantId - * @param assistantVersion - * @param params - * @param args - * @param options - * @param metadata - * @returns + * @param page + * @param pageSize + * @param criteria + * @param cb + * @param authHeader */ -export function InitiateAssistantTalk( - clientCfg: ConnectionConfig, - assistant: AssistantDefinition, - source: RapidaSource, - params: Map, - args?: Map, - options?: Map, - metadata?: Map -): Promise { +export function GetAllAssistantConversation( + connectionConfig: ConnectionConfig, + assistantId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { return new Promise((resolve, reject) => { - const request = new InitiateAssistantTalkRequest(); - request.setAssistant(assistant); - request.setSource(GetProtoSource(source)); - - const tk = new InitiateAssistantTalkParameter(); - params.forEach((value, key) => { - tk.getItemsMap().set(key, value); + const req = new GetAllAssistantConversationRequest(); + req.setAssistantid(assistantId); + const paginate = new Paginate(); + criteria.forEach((x) => { + let ctr = new Criteria(); + ctr.setKey(x.key); + ctr.setValue(x.value); + req.addCriterias(ctr); }); - request.setParams(tk); - - if (args) { - args.forEach((value, key) => { - request.getArgsMap().set(key, value); - }); - } - - if (options) { - options.forEach((value, key) => { - request.getOptionsMap().set(key, value); - }); - } - - if (metadata) { - metadata.forEach((value, key) => { - request.getMetadataMap().set(key, value); - }); - } - clientCfg.conversationClient.initiateAssistantTalk( - request, - WithAuthContext(clientCfg.auth), + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + connectionConfig.conversationClient.getAllAssistantConversation( + req, + WithAuthContext(connectionConfig.auth), ( - err: grpc.ServiceError | null, - response: InitiateAssistantTalkResponse + err: ServiceError | null, + uvcr: GetAllAssistantConversationResponse | null ) => { - if (err) { - console.error("Error in initiateAssistantTalk:", err); - reject(err); - } else if (!response) { - reject(new Error("No response received from initiateAssistantTalk")); - } else { - try { - const result = handleSingleResponse(response); - if (result) { - resolve(result); - } else { - reject( - new Error("handleSingleResponse returned null or undefined") - ); - } - } catch (error) { - console.error("Error in handleSingleResponse:", error); - reject(error); - } - } + if (err) reject(err); + else resolve(uvcr!); } ); }); @@ -339,62 +184,45 @@ export function InitiateAssistantTalk( /** * - * @param clientCfg * @param assistantId - * @param assistantVersion - * @param params - * @param args - * @param options - * @param metadata - * @returns + * @param assistantConversationId + * @param page + * @param pageSize + * @param criteria + * @param cb + * @param authHeader */ -export function InitiateBulkAssistantTalk( - clientCfg: ConnectionConfig, - assistant: AssistantDefinition, - params: Array>, - args?: Map, - options?: Map, - metadata?: Map -): Promise> { +export function GetAllAssistantConversationMessage( + connectionConfig: ConnectionConfig, + assistantId: string, + assistantConversationId: string, + page: number, + pageSize: number, + criteria: { key: string; value: string }[] +): Promise { return new Promise((resolve, reject) => { - const request = new InitiateBulkAssistantTalkRequest(); - request.setAssistant(assistant); - params.map((param) => { - const tk = new InitiateAssistantTalkParameter(); - param.forEach((v, k) => { - tk.getItemsMap().set(k, v); - }); - request.addParams(tk); + const req = new GetAllConversationMessageRequest(); + req.setAssistantid(assistantId); + req.setAssistantconversationid(assistantConversationId); + const paginate = new Paginate(); + criteria.forEach((x) => { + let ctr = new Criteria(); + ctr.setKey(x.key); + ctr.setValue(x.value); + req.addCriterias(ctr); }); - if (args) { - args?.forEach((v, k) => { - request.getArgsMap().set(k, v); - }); - } - - if (options) { - options?.forEach((v, k) => { - request.getOptionsMap().set(k, v); - }); - } - if (metadata) { - metadata?.forEach((v, k) => { - request.getMetadataMap().set(k, v); - }); - } - - clientCfg.conversationClient.initiateBulkAssistantTalk( - request, - WithAuthContext(clientCfg.auth), - (err: grpc.ServiceError, response: InitiateBulkAssistantTalkResponse) => { + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + connectionConfig.conversationClient.getAllConversationMessage( + req, + WithAuthContext(connectionConfig.auth), + ( + err: ServiceError | null, + uvcr: GetAllConversationMessageResponse | null + ) => { if (err) reject(err); - else { - try { - resolve(handleListResponse(response!)); - } catch (error) { - reject(error); - } - } + else resolve(uvcr!); } ); }); diff --git a/src/clients/vault.ts b/src/clients/vault.ts new file mode 100644 index 0000000..f9727cb --- /dev/null +++ b/src/clients/vault.ts @@ -0,0 +1,152 @@ +/* + * Copyright (c) 2024. Rapida + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Author: Prashant + * + * This module provides a function for creating a lead via the LeadService. + */ + +import { + CreateProviderCredentialRequest, + GetCredentialResponse, + DeleteCredentialRequest, + GetAllOrganizationCredentialResponse, + GetAllOrganizationCredentialRequest, + CreateToolCredentialRequest, +} from "@/rapida/clients/protos/vault-api_pb"; +import { Criteria, Paginate } from "@/rapida/clients/protos/common_pb"; +import { Struct } from "google-protobuf/google/protobuf/struct_pb"; +import { + UserAuthInfo, + ClientAuthInfo, + WithAuthContext, +} from "@/rapida/clients"; +import { ConnectionConfig } from "@/rapida/connections/connection-config"; +import { ServiceError } from "@grpc/grpc-js"; + +/** + * + * @param providerId + * @param providerKey + * @param keyName + * @param cb + */ +export function CreateProviderKey( + connectionConfig: ConnectionConfig, + providerId: string, + providerName: string, + credential: {}, + name: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new CreateProviderCredentialRequest(); + requestObject.setProviderid(providerId); + requestObject.setProvidername(providerName); + requestObject.setCredential(Struct.fromJavaScript(credential)); + requestObject.setName(name); + connectionConfig.vaultClient.createProviderCredential( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError | null, response: GetCredentialResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function DeleteProviderKey( + connectionConfig: ConnectionConfig, + providerKeyId: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new DeleteCredentialRequest(); + requestObject.setVaultid(providerKeyId); + connectionConfig.vaultClient.deleteCredential( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError | null, response: GetCredentialResponse) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function AllOrganizationCredential( + connectionConfig: ConnectionConfig, + page: number, + pageSize: number, + criteria: { key: string; value: string }[], + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const req = new GetAllOrganizationCredentialRequest(); + const paginate = new Paginate(); + criteria.forEach((x) => { + let ctr = new Criteria(); + ctr.setKey(x.key); + ctr.setValue(x.value); + req.addCriterias(ctr); + }); + paginate.setPage(page); + paginate.setPagesize(pageSize); + req.setPaginate(paginate); + connectionConfig.vaultClient.getAllOrganizationCredential( + req, + WithAuthContext(authHeader), + ( + err: ServiceError | null, + response: GetAllOrganizationCredentialResponse + ) => { + if (err) reject(err); + else resolve(response); + } + ); + }); +} + +export function CreateToolCredential( + connectionConfig: ConnectionConfig, + toolId: string, + toolName: string, + credential: {}, + name: string, + authHeader: ClientAuthInfo | UserAuthInfo +): Promise { + return new Promise((resolve, reject) => { + const requestObject = new CreateToolCredentialRequest(); + requestObject.setToolid(toolId); + requestObject.setToolname(toolName); + requestObject.setCredential(Struct.fromJavaScript(credential)); + requestObject.setName(name); + connectionConfig.vaultClient.createToolCredential( + requestObject, + WithAuthContext(authHeader), + (err: ServiceError | null, response: GetCredentialResponse) => { + if (err) reject(err); + else resolve(response!); + } + ); + }); +} diff --git a/src/configs/index.ts b/src/configs/index.ts index 4efedde..12dd717 100644 --- a/src/configs/index.ts +++ b/src/configs/index.ts @@ -25,7 +25,9 @@ */ export const ASSISTANT_API = "workflow-01.rapida.ai"; -export const LOCAL_ASSISTANT_API = "localhost:9007"; - export const ENDPOINT_API = "endpoint-01.rapida.ai"; +export const WEB_API = "web-01.rapida.ai"; + +export const LOCAL_ASSISTANT_API = "localhost:9007"; export const LOCAL_ENDPOINT_API = "localhost:9005"; +export const LOCAL_WEB_API = "localhost:9001"; diff --git a/src/connections/connection-config.ts b/src/connections/connection-config.ts index 45aa54c..ee35532 100644 --- a/src/connections/connection-config.ts +++ b/src/connections/connection-config.ts @@ -27,6 +27,8 @@ import { ENDPOINT_API, LOCAL_ASSISTANT_API, LOCAL_ENDPOINT_API, + LOCAL_WEB_API, + WEB_API, } from "@/rapida/configs"; import { ClientAuthInfo, getClientInfo, UserAuthInfo } from "@/rapida/clients"; import { RapidaSource } from "@/rapida/utils/rapida_source"; @@ -40,32 +42,22 @@ import { TalkServiceClient } from "@/rapida/clients/protos/talk-api_grpc_pb"; import { AssistantServiceClient } from "@/rapida/clients/protos/assistant-api_grpc_pb"; import { DeploymentClient } from "@/rapida/clients/protos/invoker-api_grpc_pb"; import { credentials } from "@grpc/grpc-js"; +import { + AuthenticationServiceClient, + OrganizationServiceClient, + ProjectServiceClient, +} from "@/rapida/clients/protos/web-api_grpc_pb"; +import { KnowledgeServiceClient } from "@/rapida/clients/protos/knowledge-api_grpc_pb"; +import { MarketplaceServiceClient } from "@/rapida/clients/protos/marketplace-api_grpc_pb"; +import { DocumentServiceClient } from "@/rapida/clients/protos/document-api_grpc_pb"; +import { VaultServiceClient } from "@/rapida/clients/protos/vault-api_grpc_pb"; +import { EndpointServiceClient } from "@/rapida/clients/protos/endpoint-api_grpc_pb"; +import { AuditLoggingServiceClient } from "@/rapida/clients/protos/audit-logging-api_grpc_pb"; +import { AssistantDeploymentServiceClient } from "@/rapida/clients/protos/assistant-deployment_grpc_pb"; +import { ConnectServiceClient } from "@/rapida/clients/protos/connect-api_grpc_pb"; +import { ProviderServiceClient } from "@/rapida/clients/protos/provider-api_grpc_pb"; -/** - * Represents a connection to the TalkService, providing both a conversation client - * and a streaming client for real-time communication. - */ export class ConnectionConfig { - /** - * gRPC client for handling standard conversation requests. - */ - conversationClient: TalkServiceClient; - - /** - * gRPC client for assistant apis - */ - assistantClient: AssistantServiceClient; - - /** - * deployment client to invoke endpoint - */ - endpointClient: DeploymentClient; - - /** - * Authentication information for the client, supporting both client and user authentication. - */ - auth: ClientAuthInfo | UserAuthInfo; - /** * an utils for debugger credentials * @param param0 @@ -95,107 +87,236 @@ export class ConnectionConfig { * @param param0 * @returns */ - static WithSDK({ + static WithPersonalToken({ + authorization, + userId, + projectId, + }: { + authorization: string; + userId: string; + projectId: string; + }): UserAuthInfo { + return { + authorization, + [HEADER_AUTH_ID]: userId, + [HEADER_PROJECT_ID]: projectId, + Client: { + [HEADER_SOURCE_KEY]: RapidaSource.SDK, + }, + }; + } + + /** + * + * @param param0 + * @returns + */ + static WithWebpluginClient({ apiKey, userId, }: { apiKey: string; - userId: string; + userId?: string; }): ClientAuthInfo { return { [HEADER_API_KEY]: apiKey, [HEADER_AUTH_ID]: userId, Client: { - [HEADER_SOURCE_KEY]: RapidaSource.NODE_SDK, + [HEADER_SOURCE_KEY]: RapidaSource.WEB_PLUGIN, }, }; } - /** - * Creates a new Connection instance, initializing the conversation and streaming clients. * - * @param auth - Authentication information for the connection. - * @param endpoint - (Optional) Custom API endpoint for connecting to the TalkService. - * If not provided, it defaults to `ASSISTANT_API`. + * @param param0 + * @returns */ + static WithSDK({ + apiKey, + userId, + }: { + apiKey: string; + userId?: string; + }): ClientAuthInfo { + return { + [HEADER_API_KEY]: apiKey, + [HEADER_AUTH_ID]: userId, + Client: { + [HEADER_SOURCE_KEY]: RapidaSource.SDK, + }, + }; + } + + private _endpoint: { + assistant: string; + web: string; + endpoint: string; + }; + private _debug: boolean; + private _auth?: ClientAuthInfo | UserAuthInfo; + + getClientOptions() { + return { debug: this._debug }; + } constructor( - auth: ClientAuthInfo | UserAuthInfo, - assistantEndpoint?: string, - deploymentEndpoint?: string, - debug?: boolean + endpoint: { + assistant?: string; + web?: string; + endpoint?: string; + } = { + assistant: ASSISTANT_API, + web: WEB_API, + endpoint: ENDPOINT_API, + }, + debug: boolean = false ) { - this.auth = auth; - this.auth.Client = getClientInfo(this.auth.Client); - this.conversationClient = new TalkServiceClient( - assistantEndpoint ? assistantEndpoint : ASSISTANT_API, - debug ? credentials.createInsecure() : credentials.createSsl() + this._endpoint = { + assistant: endpoint.assistant || ASSISTANT_API, + web: endpoint.web || WEB_API, + endpoint: endpoint.endpoint || ENDPOINT_API, + }; + this._debug = debug; + } + + get conversationClient(): TalkServiceClient { + return new TalkServiceClient(this._endpoint.web, this.getClientOptions()); + } + + get assistantClient(): AssistantServiceClient { + return new AssistantServiceClient( + this._endpoint.web, + this.getClientOptions() ); + } - this.assistantClient = new AssistantServiceClient( - assistantEndpoint ? assistantEndpoint : ASSISTANT_API, - debug ? credentials.createInsecure() : credentials.createSsl() + get projectClient(): ProjectServiceClient { + return new ProjectServiceClient( + this._endpoint.web, + this.getClientOptions() ); + } - this.endpointClient = new DeploymentClient( - deploymentEndpoint ? deploymentEndpoint : ENDPOINT_API, - debug ? credentials.createInsecure() : credentials.createSsl() + get knowledgeClient(): KnowledgeServiceClient { + return new KnowledgeServiceClient( + this._endpoint.web, + this.getClientOptions() ); } - /** - * Only for testing - * @returns - */ - withLocal(): this { - return this.withCustomEndpoint( - LOCAL_ASSISTANT_API, - LOCAL_ENDPOINT_API, - true + get deploymentClient(): DeploymentClient { + return new DeploymentClient(this._endpoint.web, this.getClientOptions()); + } + + get marketplaceClient(): MarketplaceServiceClient { + return new MarketplaceServiceClient( + this._endpoint.web, + this.getClientOptions() ); } - /** - * On premise deployment options - * @param endpoint - * @returns - */ - withCustomEndpoint( - assistantEndpoint: string, - deploymentEndpoint: string, - debug?: boolean - ): this { - console.log( - `Debug: Initializing TalkServiceClient with endpoint: ${assistantEndpoint}` + get documentClient(): DocumentServiceClient { + return new DocumentServiceClient( + this._endpoint.web, + this.getClientOptions() ); - this.conversationClient = new TalkServiceClient( - assistantEndpoint, - debug ? credentials.createInsecure() : credentials.createSsl() + } + + get vaultClient(): VaultServiceClient { + return new VaultServiceClient(this._endpoint.web, this.getClientOptions()); + } + + get endpointClient(): EndpointServiceClient { + return new EndpointServiceClient( + this._endpoint.web, + this.getClientOptions() ); - console.log( - `Debug: TalkServiceClient initialized: ${this.conversationClient}` + } + + get auditLoggingClient(): AuditLoggingServiceClient { + return new AuditLoggingServiceClient( + this._endpoint.web, + this.getClientOptions() ); + } - console.log( - `Debug: Initializing AssistantServiceClient with endpoint: ${assistantEndpoint}` + get assistantDeploymentClient(): AssistantDeploymentServiceClient { + return new AssistantDeploymentServiceClient( + this._endpoint.web, + this.getClientOptions() ); - this.assistantClient = new AssistantServiceClient( - assistantEndpoint, - debug ? credentials.createInsecure() : credentials.createSsl() + } + + get organizationClient(): OrganizationServiceClient { + return new OrganizationServiceClient( + this._endpoint.web, + this.getClientOptions() ); - console.log( - `Debug: AssistantServiceClient initialized: ${this.assistantClient}` + } + + get connectClient(): ConnectServiceClient { + return new ConnectServiceClient( + this._endpoint.web, + this.getClientOptions() ); + } - console.log( - `Debug: Initializing DeploymentClient with endpoint: ${deploymentEndpoint}` + get providerClient(): ProviderServiceClient { + return new ProviderServiceClient( + this._endpoint.web, + this.getClientOptions() ); - this.endpointClient = new DeploymentClient( - deploymentEndpoint, - debug ? credentials.createInsecure() : credentials.createSsl() + } + + get authenticationClient(): AuthenticationServiceClient { + return new AuthenticationServiceClient( + this._endpoint.web, + this.getClientOptions() ); - console.log(`Debug: DeploymentClient initialized: ${this.endpointClient}`); + } + + withLocal(): this { + return this.withCustomEndpoint({ + assistant: LOCAL_ASSISTANT_API, + web: LOCAL_WEB_API, + endpoint: LOCAL_ENDPOINT_API, + }); + } + + get auth(): ClientAuthInfo | UserAuthInfo | undefined { + return this._auth; + } - console.log("Debug: All clients initialized"); + withCustomEndpoint( + endpoint: { + assistant?: string; + web?: string; + endpoint?: string; + } = { + assistant: ASSISTANT_API, + web: WEB_API, + endpoint: ENDPOINT_API, + }, + debug?: boolean + ): this { + this._endpoint = { + assistant: endpoint.assistant || ASSISTANT_API, + web: endpoint.web || WEB_API, + endpoint: endpoint.endpoint || ENDPOINT_API, + }; + if (debug !== undefined) this._debug = debug; + return this; + } + + withAuth(auth: ClientAuthInfo | UserAuthInfo): this { + this._auth = auth; return this; } + + static DefaultConnectionConfig( + auth: ClientAuthInfo | UserAuthInfo + ): ConnectionConfig { + const cc = new ConnectionConfig(); + cc.withAuth(auth); + return cc; + } } diff --git a/src/index.ts b/src/index.ts index 438d909..acede6f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ -import { Assistant } from "./clients/protos/assistant-api_pb"; import { AssistantConversation, Error } from "./clients/protos/common_pb"; import { AssistantApiDeployment } from "./clients/protos/assistant-deployment_pb"; import { EndpointDefinition } from "./clients/protos/invoker-api_pb"; @@ -18,28 +17,7 @@ import { AnyToJSON, MapToObject, } from "./utils/rapida_value"; -export { ConnectionConfig } from "./connections/connection-config"; -export { Invoke } from "./clients/invoke"; -export { GetAssistant } from "./clients/assistant"; -export { - InitiateBulkAssistantTalk, - InitiateAssistantTalk, -} from "./clients/talk"; export { RapidaSource } from "./utils/rapida_source"; -export { - HEADER_API_KEY, - HEADER_AUTH_ID, - HEADER_PROJECT_ID, - HEADER_SOURCE_KEY, -} from "./utils/rapida_header"; -export { - Assistant, - AssistantConversation, - AssistantApiDeployment, - Error, - EndpointDefinition, - AssistantDefinition, -}; export { Any, @@ -56,3 +34,507 @@ export { MapToObject, StringToAny, }; + +export { ConnectionConfig } from "./connections/connection-config"; +export * from "@/rapida/utils/rapida_value"; +export * from "@/rapida/utils/rapida_source"; + +export { + HEADER_ENVIRONMENT_KEY, + HEADER_SOURCE_KEY, + HEADER_REGION_KEY, + HEADER_API_KEY, + HEADER_AUTH_ID, + HEADER_PROJECT_ID, + HEADER_USER_AGENT, + HEADER_LANGUAGE, + HEADER_PLATFORM, + HEADER_SCREEN_WIDTH, + HEADER_SCREEN_HEIGHT, + HEADER_WINDOW_WIDTH, + HEADER_WINDOW_HEIGHT, + HEADER_TIMEZONE, + HEADER_COLOR_DEPTH, + HEADER_DEVICE_MEMORY, + HEADER_HARDWARE_CONCURRENCY, + HEADER_CONNECTION_TYPE, + HEADER_CONNECTION_EFFECTIVE_TYPE, + HEADER_COOKIES_ENABLED, + HEADER_DO_NOT_TRACK, + HEADER_REFERRER, + HEADER_REMOTE_URL, + HEADER_LATITUDE, + HEADER_LONGITUDE, +} from "@/rapida/utils/rapida_header"; +export { IndexKnowledgeDocument } from "@/rapida/clients/document"; +export { GetAllDeployment } from "@/rapida/clients/marketplace"; +export { Invoke } from "@/rapida/clients/invoke"; +export { + AuthenticateUser, + AuthorizeUser, + RegisterUser, + VerifyToken, + ForgotPassword, + CreatePassword, + GetUser, + UpdateUser, + GetAllUser, + Google, + Linkedin, + Github, +} from "@/rapida/clients/auth"; +export { GetAllProvider, GetAllToolProvider } from "@/rapida/clients/provider"; +export { + WithPlatform, + WithAuthContext, + getClientInfo, + WithClientContext, +} from "@/rapida/clients/index"; +export { + GeneralConnect, + KnowledgeConnect, + ActionConnect, + GetConnectorFiles, +} from "@/rapida/clients/connect"; +export { + CreateOrganization, + UpdateOrganization, + GetOrganization, +} from "@/rapida/clients/organization"; +export { + GetAllAssistant, + UpdateAssistantVersion, + GetAllAssistantProviderModel, + GetAssistant, + CreateAssistantProviderModel, + CreateAssistant, + CreateAssistantTag, + UpdateAssistantDetail, + GetAssistantMessages, + GetMessages, + GetAllAssistantSession, + GetAllAssistantConversationMessage, + GetAllAssistantWebhook, + CreateWebhook, + UpdateWebhook, + GetAssistantWebhook, + DeleteAssistantWebhook, + GetAssistantConversation, + DeleteAssistant, + GetAllAssistantAnalysis, + CreateAnalysis, + UpdateAnalysis, + GetAssistantAnalysis, + DeleteAssistantAnalysis, + GetAllWebhookLog, + GetWebhookLog, + GetAllAssistantTool, + CreateAssistantTool, + UpdateAssistantTool, + GetAssistantTool, + DeleteAssistantTool, + GetAllAssistantKnowledge, + CreateAssistantKnowledge, + UpdateAssistantKnowledge, + GetAssistantKnowledge, + DeleteAssistantKnowledge, +} from "@/rapida/clients/assistant"; + +export { + CreateAssistantDebuggerDeployment, + GetAssistantDebuggerDeployment, + CreateAssistantApiDeployment, + GetAssistantApiDeployment, + CreateAssistantWebpluginDeployment, + GetAssistantWebpluginDeployment, + CreateAssistantPhoneDeployment, + GetAssistantPhoneDeployment, + CreateAssistantWhatsappDeployment, + GetAssistantWhatsappDeployment, +} from "@/rapida/clients/deployment"; +export { GetActivities, GetActivity } from "@/rapida/clients/activity"; +export { + GetAllEndpoint, + UpdateEndpointVersion, + GetAllEndpointProviderModel, + GetEndpoint, + CreateEndpointProviderModel, + CreateEndpoint, + CreateEndpointTag, + UpdateEndpointDetail, + CreateEndpointRetryConfiguration, + CreateEndpointCacheConfiguration, + GetAllEndpointLog, + GetEndpointLog, +} from "@/rapida/clients/endpoint"; +export { + CreateProviderKey, + DeleteProviderKey, + AllOrganizationCredential, + CreateToolCredential, +} from "@/rapida/clients/vault"; +export { + AssistantTalk, + CreateMessageMetric, + CreateConversationMetric, + GetAllAssistantConversation, +} from "@/rapida/clients/talk"; + +export { + CreateKnowledge, + GetKnowledgeBase, + GetAllKnowledgeBases, + CreateKnowledgeDocument, + GetAllKnowledgeDocument, + GetAllKnowledgeDocumentSegment, + CreateKnowledgeTag, + UpdateKnowledgeDetail, + DeleteKnowledgeDocumentSegment, + UpdateKnowledgeDocumentSegment, +} from "@/rapida/clients/knowledge"; +export { + AddUsersToProject, + CreateProject, + UpdateProject, + GetAllProject, + GetProject, + DeleteProject, + GetAllProjectCredential, + CreateProjectCredential, +} from "@/rapida/clients/project"; + +export { + AssistantKnowledge, + CreateAssistantKnowledgeRequest, + UpdateAssistantKnowledgeRequest, + GetAssistantKnowledgeRequest, + DeleteAssistantKnowledgeRequest, + GetAssistantKnowledgeResponse, + GetAllAssistantKnowledgeRequest, + GetAllAssistantKnowledgeResponse, +} from "@/rapida/clients/protos/assistant-knowledge_pb"; +export { + GetAllDeploymentRequest, + SearchableDeployment, + GetAllDeploymentResponse, +} from "@/rapida/clients/protos/marketplace-api_pb"; + +export { + AuditLog, + GetAllAuditLogRequest, + GetAllAuditLogResponse, + GetAuditLogRequest, + GetAuditLogResponse, + CreateMetadataRequest, + CreateMetadataResponse, +} from "@/rapida/clients/protos/audit-logging-api_pb"; + +export { + GetAllModelProviderRequest, + GetAllModelProviderResponse, + ToolProvider, + GetAllToolProviderRequest, + GetAllToolProviderResponse, +} from "@/rapida/clients/protos/provider-api_pb"; +export { + VaultCredential, + CreateProviderCredentialRequest, + CreateToolCredentialRequest, + DeleteCredentialRequest, + GetAllOrganizationCredentialResponse, + GetProviderCredentialRequest, + GetCredentialResponse, + GetAllOrganizationCredentialRequest, +} from "@/rapida/clients/protos/vault-api_pb"; + +export { + AssistantDefinition, + AssistantMessagingRequest, + AssistantConversationConfiguration, + AssistantConversationInterruption, + AssistantConversationUserMessage, + AssistantConversationAssistantMessage, + AssistantMessagingResponse, + CreateMessageMetricRequest, + CreateMessageMetricResponse, + CreateConversationMetricRequest, + CreateConversationMetricResponse, +} from "@/rapida/clients/protos/talk-api_pb"; +export { + AssistantAnalysis, + CreateAssistantAnalysisRequest, + UpdateAssistantAnalysisRequest, + GetAssistantAnalysisRequest, + DeleteAssistantAnalysisRequest, + GetAssistantAnalysisResponse, + GetAllAssistantAnalysisRequest, + GetAllAssistantAnalysisResponse, +} from "@/rapida/clients/protos/assistant-analysis_pb"; +export { + Contact, + WelcomeEmailRequest, + WelcomeEmailResponse, + ResetPasswordEmailRequest, + ResetPasswordEmailResponse, + InviteMemeberEmailRequest, + InviteMemeberEmailResponse, +} from "@/rapida/clients/protos/sendgrid-api_pb"; +export { + EndpointDefinition, + InvokeRequest, + InvokeResponse, + UpdateRequest, + UpdateResponse, + ProbeRequest, + ProbeResponse, +} from "@/rapida/clients/protos/invoker-api_pb"; +export { + AuthenticateRequest, + RegisterUserRequest, + Token, + OrganizationRole, + ProjectRole, + FeaturePermission, + Authentication, + ScopedAuthentication, + AuthenticationError, + AuthenticateResponse, + ForgotPasswordRequest, + ForgotPasswordResponse, + CreatePasswordRequest, + CreatePasswordResponse, + VerifyTokenRequest, + VerifyTokenResponse, + AuthorizeRequest, + ScopeAuthorizeRequest, + ScopedAuthenticationResponse, + GetUserRequest, + GetUserResponse, + UpdateUserRequest, + UpdateUserResponse, + SocialAuthenticationRequest, + GetAllUserRequest, + GetAllUserResponse, + OrganizationError, + CreateOrganizationRequest, + UpdateOrganizationRequest, + GetOrganizationRequest, + GetOrganizationResponse, + CreateOrganizationResponse, + UpdateOrganizationResponse, + UpdateBillingInformationRequest, + Project, + CreateProjectRequest, + CreateProjectResponse, + UpdateProjectRequest, + UpdateProjectResponse, + GetProjectRequest, + GetProjectResponse, + GetAllProjectRequest, + GetAllProjectResponse, + AddUsersToProjectRequest, + ArchiveProjectRequest, + ArchiveProjectResponse, + AddUsersToProjectResponse, + ProjectCredential, + CreateProjectCredentialRequest, + GetAllProjectCredentialRequest, + CreateProjectCredentialResponse, + GetAllProjectCredentialResponse, +} from "@/rapida/clients/protos/web-api_pb"; +export { + FieldSelector, + Criteria, + Error, + Paginate, + Paginated, + Ordering, + User, + BaseResponse, + Metadata, + Argument, + Variable, + Provider, + Tag, + Organization, + Metric, + Content, + Message as ProtoMessage, + ToolCall, + FunctionCall, + Knowledge, + TextPrompt, + TextChatCompletePrompt, + AssistantMessageStage, + AssistantConversationMessage, + AssistantConversationContext, + AssistantConversation, + GetAllAssistantConversationRequest, + GetAllAssistantConversationResponse, + GetAllConversationMessageRequest, + GetAllConversationMessageResponse, +} from "@/rapida/clients/protos/common_pb"; + +export { + AssistantWebhook, + AssistantWebhookLog, + CreateAssistantWebhookRequest, + UpdateAssistantWebhookRequest, + GetAssistantWebhookRequest, + DeleteAssistantWebhookRequest, + GetAssistantWebhookResponse, + GetAllAssistantWebhookRequest, + GetAllAssistantWebhookResponse, + GetAllAssistantWebhookLogRequest, + GetAssistantWebhookLogRequest, + GetAssistantWebhookLogResponse, + GetAllAssistantWebhookLogResponse, +} from "@/rapida/clients/protos/assistant-webhook_pb"; +export { + KnowledgeConnectRequest, + KnowledgeConnectResponse, + GeneralConnectRequest, + GeneralConnectResponse, + ActionConnectRequest, + ActionConnectResponse, + GetConnectorFilesRequest, + GetConnectorFilesResponse, +} from "@/rapida/clients/protos/connect-api_pb"; + +export { + EndpointAttribute, + EndpointProviderModelAttribute, + CreateEndpointRequest, + CreateEndpointResponse, + EndpointProviderModel, + AggregatedEndpointAnalytics, + Endpoint, + CreateEndpointProviderModelRequest, + CreateEndpointProviderModelResponse, + GetEndpointRequest, + GetEndpointResponse, + GetAllEndpointRequest, + GetAllEndpointResponse, + GetAllEndpointProviderModelRequest, + GetAllEndpointProviderModelResponse, + UpdateEndpointVersionRequest, + UpdateEndpointVersionResponse, + EndpointRetryConfiguration, + EndpointCacheConfiguration, + CreateEndpointRetryConfigurationRequest, + CreateEndpointRetryConfigurationResponse, + CreateEndpointCacheConfigurationRequest, + CreateEndpointCacheConfigurationResponse, + CreateEndpointTagRequest, + ForkEndpointRequest, + UpdateEndpointDetailRequest, + EndpointLog, + GetAllEndpointLogRequest, + GetAllEndpointLogResponse, + GetEndpointLogRequest, + GetEndpointLogResponse, +} from "@/rapida/clients/protos/endpoint-api_pb"; +export { + AssistantTool, + CreateAssistantToolRequest, + UpdateAssistantToolRequest, + GetAssistantToolRequest, + DeleteAssistantToolRequest, + GetAssistantToolResponse, + GetAllAssistantToolRequest, + GetAllAssistantToolResponse, +} from "@/rapida/clients/protos/assistant-tool_pb"; +export { + Credential, + ToolDefinition, + FunctionDefinition, + FunctionParameter, + FunctionParameterProperty, + Embedding, + EmbeddingRequest, + EmbeddingResponse, + Reranking, + RerankingRequest, + RerankingResponse, + ChatResponse, + ChatRequest, + VerifyCredentialRequest, + VerifyCredentialResponse, + Moderation, + GetModerationRequest, + GetModerationResponse, +} from "@/rapida/clients/protos/integration-api_pb"; +export { + DeploymentAudioProvider, + AssistantDeploymentCapturer, + AssistantWebpluginDeployment, + AssistantPhoneDeployment, + AssistantWhatsappDeployment, + AssistantDebuggerDeployment, + AssistantApiDeployment, + CreateAssistantApiDeploymentRequest, + AssistantApiDeploymentResponse, + CreateAssistantPhoneDeploymentRequest, + AssistantPhoneDeploymentResponse, + CreateAssistantWhatsappDeploymentRequest, + AssistantWhatsappDeploymentResponse, + CreateAssistantDebuggerDeploymentRequest, + AssistantDebuggerDeploymentResponse, + CreateAssistantWebpluginDeploymentRequest, + AssistantWebpluginDeploymentResponse, + GetAssistantDeploymentRequest, +} from "@/rapida/clients/protos/assistant-deployment_pb"; + +export { + CreateKnowledgeRequest, + CreateKnowledgeResponse, + GetAllKnowledgeRequest, + GetAllKnowledgeResponse, + GetKnowledgeRequest, + GetKnowledgeResponse, + CreateKnowledgeTagRequest, + KnowledgeDocument, + GetAllKnowledgeDocumentRequest, + GetAllKnowledgeDocumentResponse, + CreateKnowledgeDocumentRequest, + CreateKnowledgeDocumentResponse, + KnowledgeDocumentSegment, + GetAllKnowledgeDocumentSegmentRequest, + GetAllKnowledgeDocumentSegmentResponse, + UpdateKnowledgeDetailRequest, + UpdateKnowledgeDocumentSegmentRequest, + DeleteKnowledgeDocumentSegmentRequest, +} from "@/rapida/clients/protos/knowledge-api_pb"; +export { + Assistant, + AssistantProviderModel, + CreateAssistantRequest, + CreateAssistantProviderModelRequest, + GetAssistantProviderModelResponse, + CreateAssistantTagRequest, + GetAssistantRequest, + DeleteAssistantRequest, + GetAssistantResponse, + GetAllAssistantRequest, + GetAllAssistantResponse, + GetAllAssistantProviderModelRequest, + GetAllAssistantProviderModelResponse, + GetAllAssistantMessageRequest, + GetAllAssistantMessageResponse, + GetAllMessageRequest, + GetAllMessageResponse, + UpdateAssistantVersionRequest, + UpdateAssistantDetailRequest, + GetAllAssistantUserConversationRequest, + GetAllAssistantUserConversationResponse, + GetAssistantConversationRequest, + GetAssistantConversationResponse, +} from "@/rapida/clients/protos/assistant-api_pb"; + +export { CreatePhoneCall, CreateBulkPhoneCall } from "./clients/call"; +export { + CreateBulkPhoneCallRequest, + CreateBulkPhoneCallResponse, + CreatePhoneCallRequest, + CreatePhoneCallResponse, +} from "@/rapida/clients/protos/talk-api_pb"; diff --git a/src/utils/index.ts b/src/utils/index.ts index 07ee34f..121b922 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -22,6 +22,7 @@ * Author: Prashant * */ +import { Metadata } from "@/rapida/clients/protos/common_pb"; import { getBrowser } from "@/rapida/utils/rapida_client"; import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; import moment from "moment"; @@ -186,3 +187,9 @@ export function isIOSSafari(): boolean { (navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1)) ); } + +export interface ProviderConfig { + providerId: string; + provider: string; + parameters: Metadata[]; +} diff --git a/src/utils/rapida_document.ts b/src/utils/rapida_document.ts index 59b133f..ba94f44 100644 --- a/src/utils/rapida_document.ts +++ b/src/utils/rapida_document.ts @@ -24,11 +24,18 @@ */ export enum RapidaDocumentSource { - MANUAL = 'manual', - TOOL = 'tool', + MANUAL = "manual", + TOOL = "tool", } export enum RapidaDocumentPreProcessing { - AUTOMATIC = 'automatic', - CUSTOM = 'custom', + AUTOMATIC = "automatic", + CUSTOM = "custom", +} + +export enum RapidaDocumentType { + UNSTRUCTURE = "unstructure", + STRUCTURE_PRODUCT = "structure.product", + STRUCTURE_ARTICLE = "structure.article", + STRUCTURE_QNA = "structure.qna", } diff --git a/src/utils/rapida_source.ts b/src/utils/rapida_source.ts index a341f41..c922464 100644 --- a/src/utils/rapida_source.ts +++ b/src/utils/rapida_source.ts @@ -26,47 +26,26 @@ import { Source, SourceMap } from "@/rapida/clients/protos/common_pb"; export enum RapidaSource { WEB_PLUGIN = "web-plugin", - RAPIDA_APP = "rapida-app", DEBUGGER = "debugger", // no proto value - - PYTHON_SDK = "python-sdk", - NODE_SDK = "node-sdk", - GO_SDK = "go-sdk", - JAVA_SDK = "java-sdk", - PHP_SDK = "php-sdk", - RUST_SDK = "rust-sdk", - TYPESCRIPT_SDK = "typescript-sdk", - REACT_SDK = "react-sdk", - - TWILIO_CALL = "twilio-call", + SDK = "sdk", + PHONE_CALL = "phone-call", + WHATSAPP = "whatsapp", } // Only the sources that exist in the protobuf Source enum type MappedRapidaSource = | RapidaSource.WEB_PLUGIN - | RapidaSource.RAPIDA_APP - | RapidaSource.PYTHON_SDK - | RapidaSource.NODE_SDK - | RapidaSource.GO_SDK - | RapidaSource.JAVA_SDK - | RapidaSource.PHP_SDK - | RapidaSource.RUST_SDK - | RapidaSource.TYPESCRIPT_SDK - | RapidaSource.REACT_SDK - | RapidaSource.TWILIO_CALL; + | RapidaSource.DEBUGGER + | RapidaSource.SDK + | RapidaSource.PHONE_CALL + | RapidaSource.WHATSAPP; const SourceMapping: Record = { [RapidaSource.WEB_PLUGIN]: Source.WEB_PLUGIN, - [RapidaSource.RAPIDA_APP]: Source.RAPIDA_APP, - [RapidaSource.PYTHON_SDK]: Source.PYTHON_SDK, - [RapidaSource.NODE_SDK]: Source.NODE_SDK, - [RapidaSource.GO_SDK]: Source.GO_SDK, - [RapidaSource.JAVA_SDK]: Source.JAVA_SDK, - [RapidaSource.PHP_SDK]: Source.PHP_SDK, - [RapidaSource.RUST_SDK]: Source.RUST_SDK, - [RapidaSource.TYPESCRIPT_SDK]: Source.TYPESCRIPT_SDK, - [RapidaSource.REACT_SDK]: Source.REACT_SDK, - [RapidaSource.TWILIO_CALL]: Source.TWILIO_CALL, + [RapidaSource.SDK]: Source.SDK, + [RapidaSource.DEBUGGER]: Source.DEBUGGER, + [RapidaSource.PHONE_CALL]: Source.PHONE_CALL, + [RapidaSource.WHATSAPP]: Source.WHATSAPP, }; export function GetProtoSource( @@ -76,5 +55,5 @@ export function GetProtoSource( if (mappedSource === undefined) { console.warn(`Invalid RapidaSource: ${source}`); } - return Source.NODE_SDK; + return Source.SDK; }