UNPKG

@connectrpc/connect-query

Version:

TypeScript-first expansion pack for TanStack Query that gives you Protobuf superpowers.

418 lines 13.7 kB
// Copyright 2021-2023 The Connect Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; /** * SayRequest is a single-sentence request. * * @generated from message connectrpc.eliza.v1.SayRequest */ export class SayRequest extends Message { /** * @generated from field: string sentence = 1; */ sentence = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.SayRequest"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "sentence", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new SayRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new SayRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new SayRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(SayRequest, a, b); } } /** * SayResponse is a single-sentence response. * * @generated from message connectrpc.eliza.v1.SayResponse */ export class SayResponse extends Message { /** * @generated from field: string sentence = 1; */ sentence = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.SayResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "sentence", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new SayResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new SayResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new SayResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(SayResponse, a, b); } } /** * ConverseRequest is a single sentence request sent as part of a * back-and-forth conversation. * * @generated from message connectrpc.eliza.v1.ConverseRequest */ export class ConverseRequest extends Message { /** * @generated from field: string sentence = 1; */ sentence = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.ConverseRequest"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "sentence", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new ConverseRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ConverseRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ConverseRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ConverseRequest, a, b); } } /** * ConverseResponse is a single sentence response sent in answer to a * ConverseRequest. * * @generated from message connectrpc.eliza.v1.ConverseResponse */ export class ConverseResponse extends Message { /** * @generated from field: string sentence = 1; */ sentence = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.ConverseResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "sentence", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new ConverseResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ConverseResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ConverseResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ConverseResponse, a, b); } } /** * IntroduceRequest asks Eliza to introduce itself to the named user. * * @generated from message connectrpc.eliza.v1.IntroduceRequest */ export class IntroduceRequest extends Message { /** * @generated from field: string name = 1; */ name = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.IntroduceRequest"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IntroduceRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IntroduceRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IntroduceRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(IntroduceRequest, a, b); } } /** * IntroduceResponse is one sentence of Eliza's introductory monologue. * * @generated from message connectrpc.eliza.v1.IntroduceResponse */ export class IntroduceResponse extends Message { /** * @generated from field: string sentence = 1; */ sentence = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.IntroduceResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "sentence", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IntroduceResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IntroduceResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IntroduceResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(IntroduceResponse, a, b); } } /** * @generated from message connectrpc.eliza.v1.Nothing */ export class Nothing extends Message { constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.Nothing"; static fields = proto3.util.newFieldList(() => []); static fromBinary(bytes, options) { return new Nothing().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Nothing().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Nothing().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(Nothing, a, b); } } /** * @generated from message connectrpc.eliza.v1.CountRequest */ export class CountRequest extends Message { /** * @generated from field: int64 add = 1; */ add = protoInt64.zero; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.CountRequest"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "add", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new CountRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new CountRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new CountRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(CountRequest, a, b); } } /** * @generated from message connectrpc.eliza.v1.CountResponse */ export class CountResponse extends Message { /** * @generated from field: int64 count = 1; */ count = protoInt64.zero; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.CountResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new CountResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new CountResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new CountResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(CountResponse, a, b); } } /** * @generated from message connectrpc.eliza.v1.ListRequest */ export class ListRequest extends Message { /** * @generated from field: int64 page = 1; */ page = protoInt64.zero; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.ListRequest"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "page", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new ListRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ListRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ListRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ListRequest, a, b); } } /** * @generated from message connectrpc.eliza.v1.ListResponse */ export class ListResponse extends Message { /** * @generated from field: int64 page = 1; */ page = protoInt64.zero; /** * @generated from field: repeated string items = 2; */ items = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.ListResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "page", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "items", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes, options) { return new ListResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ListResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ListResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ListResponse, a, b); } } /** * @generated from message connectrpc.eliza.v1.OperationRequest */ export class OperationRequest extends Message { /** * @generated from field: google.protobuf.Timestamp timestamp = 1; */ timestamp; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.OperationRequest"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "timestamp", kind: "message", T: Timestamp }, ]); static fromBinary(bytes, options) { return new OperationRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new OperationRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new OperationRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(OperationRequest, a, b); } } /** * @generated from message connectrpc.eliza.v1.OperationResponse */ export class OperationResponse extends Message { /** * @generated from field: google.protobuf.Timestamp timestamp = 1; */ timestamp; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "connectrpc.eliza.v1.OperationResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "timestamp", kind: "message", T: Timestamp }, ]); static fromBinary(bytes, options) { return new OperationResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new OperationResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new OperationResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(OperationResponse, a, b); } } //# sourceMappingURL=eliza_pb.js.map