arg-services
Version:
Protobuf and gRPC definitions for microservice-based argumentation machines
154 lines (132 loc) • 4.58 kB
TypeScript
// @generated by protoc-gen-es v2.5.0 with parameter "target=js+dts,import_extension=js,json_types=true"
// @generated from file arg_services/mining_explanation/v1beta/adu.proto (package arg_services.mining_explanation.v1beta, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import type { JsonObject, Message } from "@bufbuild/protobuf";
import type { StructJson } from "@bufbuild/protobuf/wkt";
/**
* Describes the file arg_services/mining_explanation/v1beta/adu.proto.
*/
export declare const file_arg_services_mining_explanation_v1beta_adu: GenFile;
/**
* @generated from message arg_services.mining_explanation.v1beta.ClassificationRequest
*/
export declare type ClassificationRequest = Message<"arg_services.mining_explanation.v1beta.ClassificationRequest"> & {
/**
* @generated from field: string language = 1;
*/
language: string;
/**
* @generated from field: repeated string segments = 2;
*/
segments: string[];
/**
* Implementation-specific information can be encoded here
*
* @generated from field: google.protobuf.Struct extras = 15;
*/
extras?: JsonObject;
};
/**
* @generated from message arg_services.mining_explanation.v1beta.ClassificationRequest
*/
export declare type ClassificationRequestJson = {
/**
* @generated from field: string language = 1;
*/
language?: string;
/**
* @generated from field: repeated string segments = 2;
*/
segments?: string[];
/**
* Implementation-specific information can be encoded here
*
* @generated from field: google.protobuf.Struct extras = 15;
*/
extras?: StructJson;
};
/**
* Describes the message arg_services.mining_explanation.v1beta.ClassificationRequest.
* Use `create(ClassificationRequestSchema)` to create a new message.
*/
export declare const ClassificationRequestSchema: GenMessage<ClassificationRequest, {jsonType: ClassificationRequestJson}>;
/**
* @generated from message arg_services.mining_explanation.v1beta.ClassificationResponse
*/
export declare type ClassificationResponse = Message<"arg_services.mining_explanation.v1beta.ClassificationResponse"> & {
/**
* @generated from field: repeated arg_services.mining_explanation.v1beta.Segment segments = 1;
*/
segments: Segment[];
/**
* Implementation-specific information can be encoded here
*
* @generated from field: google.protobuf.Struct extras = 15;
*/
extras?: JsonObject;
};
/**
* @generated from message arg_services.mining_explanation.v1beta.ClassificationResponse
*/
export declare type ClassificationResponseJson = {
/**
* @generated from field: repeated arg_services.mining_explanation.v1beta.Segment segments = 1;
*/
segments?: SegmentJson[];
/**
* Implementation-specific information can be encoded here
*
* @generated from field: google.protobuf.Struct extras = 15;
*/
extras?: StructJson;
};
/**
* Describes the message arg_services.mining_explanation.v1beta.ClassificationResponse.
* Use `create(ClassificationResponseSchema)` to create a new message.
*/
export declare const ClassificationResponseSchema: GenMessage<ClassificationResponse, {jsonType: ClassificationResponseJson}>;
/**
* @generated from message arg_services.mining_explanation.v1beta.Segment
*/
export declare type Segment = Message<"arg_services.mining_explanation.v1beta.Segment"> & {
/**
* @generated from field: repeated bool keyword_markers = 1;
*/
keywordMarkers: boolean[];
/**
* @generated from field: repeated string clauses = 2;
*/
clauses: string[];
};
/**
* @generated from message arg_services.mining_explanation.v1beta.Segment
*/
export declare type SegmentJson = {
/**
* @generated from field: repeated bool keyword_markers = 1;
*/
keywordMarkers?: boolean[];
/**
* @generated from field: repeated string clauses = 2;
*/
clauses?: string[];
};
/**
* Describes the message arg_services.mining_explanation.v1beta.Segment.
* Use `create(SegmentSchema)` to create a new message.
*/
export declare const SegmentSchema: GenMessage<Segment, {jsonType: SegmentJson}>;
/**
* @generated from service arg_services.mining_explanation.v1beta.AduExplanationService
*/
export declare const AduExplanationService: GenService<{
/**
* @generated from rpc arg_services.mining_explanation.v1beta.AduExplanationService.Classification
*/
classification: {
methodKind: "unary";
input: typeof ClassificationRequestSchema;
output: typeof ClassificationResponseSchema;
},
}>;