mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
1278 lines
34 KiB
Go
1278 lines
34 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: frontend.proto
|
|
|
|
// Protobuf package should not be changed when moving around go packages
|
|
// in order to not break backward compatibility.
|
|
|
|
package frontendv1pb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
httpgrpc "github.com/grafana/dskit/httpgrpc"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Type int32
|
|
|
|
const (
|
|
Type_HTTP_REQUEST Type = 0
|
|
Type_GET_ID Type = 1
|
|
Type_HTTP_REQUEST_BATCH Type = 2
|
|
)
|
|
|
|
var Type_name = map[int32]string{
|
|
0: "HTTP_REQUEST",
|
|
1: "GET_ID",
|
|
2: "HTTP_REQUEST_BATCH",
|
|
}
|
|
|
|
var Type_value = map[string]int32{
|
|
"HTTP_REQUEST": 0,
|
|
"GET_ID": 1,
|
|
"HTTP_REQUEST_BATCH": 2,
|
|
}
|
|
|
|
func (x Type) String() string {
|
|
return proto.EnumName(Type_name, int32(x))
|
|
}
|
|
|
|
func (Type) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_eca3873955a29cfe, []int{0}
|
|
}
|
|
|
|
type Feature int32
|
|
|
|
const (
|
|
Feature_NONE Feature = 0
|
|
Feature_REQUEST_BATCHING Feature = 1
|
|
)
|
|
|
|
var Feature_name = map[int32]string{
|
|
0: "NONE",
|
|
1: "REQUEST_BATCHING",
|
|
}
|
|
|
|
var Feature_value = map[string]int32{
|
|
"NONE": 0,
|
|
"REQUEST_BATCHING": 1,
|
|
}
|
|
|
|
func (x Feature) String() string {
|
|
return proto.EnumName(Feature_name, int32(x))
|
|
}
|
|
|
|
func (Feature) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_eca3873955a29cfe, []int{1}
|
|
}
|
|
|
|
type FrontendToClient struct {
|
|
HttpRequest *httpgrpc.HTTPRequest `protobuf:"bytes,1,opt,name=httpRequest,proto3" json:"httpRequest,omitempty"`
|
|
Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=frontend.Type" json:"type,omitempty"`
|
|
// bool statsEnabled = 3; - removed in 2.2. reserved until we can cleanly reclaim it
|
|
HttpRequestBatch []*httpgrpc.HTTPRequest `protobuf:"bytes,4,rep,name=httpRequestBatch,proto3" json:"httpRequestBatch,omitempty"`
|
|
}
|
|
|
|
func (m *FrontendToClient) Reset() { *m = FrontendToClient{} }
|
|
func (m *FrontendToClient) String() string { return proto.CompactTextString(m) }
|
|
func (*FrontendToClient) ProtoMessage() {}
|
|
func (*FrontendToClient) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eca3873955a29cfe, []int{0}
|
|
}
|
|
func (m *FrontendToClient) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *FrontendToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_FrontendToClient.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *FrontendToClient) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_FrontendToClient.Merge(m, src)
|
|
}
|
|
func (m *FrontendToClient) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *FrontendToClient) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_FrontendToClient.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_FrontendToClient proto.InternalMessageInfo
|
|
|
|
func (m *FrontendToClient) GetHttpRequest() *httpgrpc.HTTPRequest {
|
|
if m != nil {
|
|
return m.HttpRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *FrontendToClient) GetType() Type {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return Type_HTTP_REQUEST
|
|
}
|
|
|
|
func (m *FrontendToClient) GetHttpRequestBatch() []*httpgrpc.HTTPRequest {
|
|
if m != nil {
|
|
return m.HttpRequestBatch
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ClientToFrontend struct {
|
|
HttpResponse *httpgrpc.HTTPResponse `protobuf:"bytes,1,opt,name=httpResponse,proto3" json:"httpResponse,omitempty"`
|
|
ClientID string `protobuf:"bytes,2,opt,name=clientID,proto3" json:"clientID,omitempty"`
|
|
// stats.Stats stats = 3; - removed in 2.2. reserved until we can cleanly reclaim it
|
|
HttpResponseBatch []*httpgrpc.HTTPResponse `protobuf:"bytes,4,rep,name=httpResponseBatch,proto3" json:"httpResponseBatch,omitempty"`
|
|
Features int32 `protobuf:"varint,5,opt,name=features,proto3" json:"features,omitempty"`
|
|
}
|
|
|
|
func (m *ClientToFrontend) Reset() { *m = ClientToFrontend{} }
|
|
func (m *ClientToFrontend) String() string { return proto.CompactTextString(m) }
|
|
func (*ClientToFrontend) ProtoMessage() {}
|
|
func (*ClientToFrontend) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eca3873955a29cfe, []int{1}
|
|
}
|
|
func (m *ClientToFrontend) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ClientToFrontend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ClientToFrontend.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ClientToFrontend) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ClientToFrontend.Merge(m, src)
|
|
}
|
|
func (m *ClientToFrontend) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ClientToFrontend) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ClientToFrontend.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ClientToFrontend proto.InternalMessageInfo
|
|
|
|
func (m *ClientToFrontend) GetHttpResponse() *httpgrpc.HTTPResponse {
|
|
if m != nil {
|
|
return m.HttpResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ClientToFrontend) GetClientID() string {
|
|
if m != nil {
|
|
return m.ClientID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ClientToFrontend) GetHttpResponseBatch() []*httpgrpc.HTTPResponse {
|
|
if m != nil {
|
|
return m.HttpResponseBatch
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ClientToFrontend) GetFeatures() int32 {
|
|
if m != nil {
|
|
return m.Features
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NotifyClientShutdownRequest struct {
|
|
ClientID string `protobuf:"bytes,1,opt,name=clientID,proto3" json:"clientID,omitempty"`
|
|
}
|
|
|
|
func (m *NotifyClientShutdownRequest) Reset() { *m = NotifyClientShutdownRequest{} }
|
|
func (m *NotifyClientShutdownRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NotifyClientShutdownRequest) ProtoMessage() {}
|
|
func (*NotifyClientShutdownRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eca3873955a29cfe, []int{2}
|
|
}
|
|
func (m *NotifyClientShutdownRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NotifyClientShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NotifyClientShutdownRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NotifyClientShutdownRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NotifyClientShutdownRequest.Merge(m, src)
|
|
}
|
|
func (m *NotifyClientShutdownRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NotifyClientShutdownRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NotifyClientShutdownRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NotifyClientShutdownRequest proto.InternalMessageInfo
|
|
|
|
func (m *NotifyClientShutdownRequest) GetClientID() string {
|
|
if m != nil {
|
|
return m.ClientID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type NotifyClientShutdownResponse struct {
|
|
}
|
|
|
|
func (m *NotifyClientShutdownResponse) Reset() { *m = NotifyClientShutdownResponse{} }
|
|
func (m *NotifyClientShutdownResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NotifyClientShutdownResponse) ProtoMessage() {}
|
|
func (*NotifyClientShutdownResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eca3873955a29cfe, []int{3}
|
|
}
|
|
func (m *NotifyClientShutdownResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NotifyClientShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NotifyClientShutdownResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NotifyClientShutdownResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NotifyClientShutdownResponse.Merge(m, src)
|
|
}
|
|
func (m *NotifyClientShutdownResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NotifyClientShutdownResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NotifyClientShutdownResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NotifyClientShutdownResponse proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterEnum("frontend.Type", Type_name, Type_value)
|
|
proto.RegisterEnum("frontend.Feature", Feature_name, Feature_value)
|
|
proto.RegisterType((*FrontendToClient)(nil), "frontend.FrontendToClient")
|
|
proto.RegisterType((*ClientToFrontend)(nil), "frontend.ClientToFrontend")
|
|
proto.RegisterType((*NotifyClientShutdownRequest)(nil), "frontend.NotifyClientShutdownRequest")
|
|
proto.RegisterType((*NotifyClientShutdownResponse)(nil), "frontend.NotifyClientShutdownResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("frontend.proto", fileDescriptor_eca3873955a29cfe) }
|
|
|
|
var fileDescriptor_eca3873955a29cfe = []byte{
|
|
// 469 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcd, 0x6e, 0xd3, 0x40,
|
|
0x10, 0xf6, 0x96, 0xb4, 0x0d, 0xd3, 0x28, 0x5a, 0x46, 0xa1, 0x8a, 0x0c, 0xb2, 0x22, 0x4b, 0x54,
|
|
0xa1, 0x87, 0xa4, 0x84, 0x03, 0x02, 0x71, 0x69, 0x9b, 0x34, 0xcd, 0x25, 0x14, 0x77, 0xb9, 0x70,
|
|
0x89, 0x1c, 0x67, 0xe3, 0x44, 0x80, 0xd7, 0xd8, 0x6b, 0x50, 0xde, 0x82, 0x67, 0xe1, 0xc8, 0x13,
|
|
0x70, 0xe0, 0xd0, 0x23, 0x47, 0x94, 0xbc, 0x08, 0xb2, 0xd7, 0x76, 0x9d, 0xb4, 0x85, 0xdb, 0x8e,
|
|
0xbf, 0x9f, 0xf9, 0x76, 0x66, 0x0d, 0xd5, 0x69, 0x20, 0x3c, 0xc9, 0xbd, 0x49, 0xcb, 0x0f, 0x84,
|
|
0x14, 0x58, 0xce, 0x6a, 0xbd, 0xe6, 0x0a, 0x57, 0x24, 0x1f, 0xdb, 0xf1, 0x49, 0xe1, 0xfa, 0x91,
|
|
0x3b, 0x97, 0xb3, 0x68, 0xdc, 0x72, 0xc4, 0xa7, 0xb6, 0x1b, 0xd8, 0x53, 0xdb, 0xb3, 0xdb, 0x93,
|
|
0xf0, 0xc3, 0x5c, 0xb6, 0x67, 0x52, 0xfa, 0x6e, 0xe0, 0x3b, 0xf9, 0x41, 0x29, 0xcc, 0xef, 0x04,
|
|
0xe8, 0x59, 0x6a, 0xca, 0xc4, 0xe9, 0xc7, 0x39, 0xf7, 0x24, 0xbe, 0x80, 0xbd, 0x98, 0x66, 0xf1,
|
|
0xcf, 0x11, 0x0f, 0x65, 0x9d, 0x34, 0x48, 0x73, 0xaf, 0xf3, 0xb0, 0x95, 0x4b, 0xcf, 0x19, 0xbb,
|
|
0x48, 0x41, 0xab, 0xc8, 0x44, 0x13, 0x4a, 0x72, 0xe1, 0xf3, 0xfa, 0x56, 0x83, 0x34, 0xab, 0x9d,
|
|
0x6a, 0x2b, 0x8f, 0xcf, 0x16, 0x3e, 0xb7, 0x12, 0x0c, 0x8f, 0x81, 0x16, 0x24, 0x27, 0xb6, 0x74,
|
|
0x66, 0xf5, 0x52, 0xe3, 0xde, 0xdd, 0x1d, 0x6e, 0xd0, 0xcd, 0x5f, 0x04, 0xa8, 0x8a, 0xca, 0x44,
|
|
0x16, 0x1e, 0x5f, 0x41, 0x45, 0x11, 0x43, 0x5f, 0x78, 0x21, 0x4f, 0x53, 0xef, 0x6f, 0x7a, 0x2a,
|
|
0xd4, 0x5a, 0xe3, 0xa2, 0x0e, 0x65, 0x27, 0xf1, 0x1b, 0x74, 0x93, 0xec, 0xf7, 0xad, 0xbc, 0xc6,
|
|
0x2e, 0x3c, 0x28, 0x72, 0x8b, 0x81, 0xef, 0x32, 0xbf, 0x29, 0x88, 0x3b, 0x4c, 0xb9, 0x2d, 0xa3,
|
|
0x80, 0x87, 0xf5, 0xed, 0x06, 0x69, 0x6e, 0x5b, 0x79, 0x6d, 0xbe, 0x84, 0x47, 0x43, 0x21, 0xe7,
|
|
0xd3, 0x85, 0xba, 0xd3, 0xe5, 0x2c, 0x92, 0x13, 0xf1, 0xd5, 0xcb, 0x86, 0x5a, 0x0c, 0x47, 0xd6,
|
|
0xc3, 0x99, 0x06, 0x3c, 0xbe, 0x5d, 0xaa, 0x7a, 0x1f, 0xbe, 0x86, 0x52, 0x3c, 0x7a, 0xa4, 0x50,
|
|
0x89, 0x13, 0x8e, 0xac, 0xde, 0xdb, 0x77, 0xbd, 0x4b, 0x46, 0x35, 0x04, 0xd8, 0xe9, 0xf7, 0xd8,
|
|
0x68, 0xd0, 0xa5, 0x04, 0xf7, 0x01, 0x8b, 0xe8, 0xe8, 0xe4, 0x98, 0x9d, 0x9e, 0xd3, 0xad, 0xc3,
|
|
0xa7, 0xb0, 0x7b, 0xa6, 0x42, 0x62, 0x19, 0x4a, 0xc3, 0x37, 0xc3, 0x1e, 0xd5, 0xb0, 0x06, 0x74,
|
|
0x8d, 0x37, 0x18, 0xf6, 0x29, 0xe9, 0xfc, 0x20, 0x50, 0xce, 0x57, 0xd1, 0x87, 0xdd, 0x8b, 0x40,
|
|
0x38, 0x3c, 0x0c, 0x51, 0xbf, 0x7e, 0x03, 0x9b, 0x1b, 0xd3, 0x0b, 0xd8, 0xe6, 0x13, 0x34, 0xb5,
|
|
0x26, 0x39, 0x22, 0xc8, 0xa1, 0x76, 0xdb, 0xf5, 0xf0, 0xc9, 0xb5, 0xf2, 0x1f, 0x93, 0xd3, 0x0f,
|
|
0xfe, 0x47, 0x4b, 0x37, 0x74, 0xf0, 0x73, 0x69, 0x90, 0xab, 0xa5, 0x41, 0xfe, 0x2c, 0x0d, 0xf2,
|
|
0x6d, 0x65, 0x68, 0x57, 0x2b, 0x43, 0xfb, 0xbd, 0x32, 0xb4, 0xf7, 0x95, 0xcc, 0xe0, 0xcb, 0x33,
|
|
0x7f, 0x3c, 0xde, 0x49, 0xfe, 0x99, 0xe7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x17, 0x16,
|
|
0x1b, 0x97, 0x03, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// FrontendClient is the client API for Frontend service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type FrontendClient interface {
|
|
// After calling this method, client enters a loop, in which it waits for
|
|
// a "FrontendToClient" message and replies with single "ClientToFrontend" message.
|
|
Process(ctx context.Context, opts ...grpc.CallOption) (Frontend_ProcessClient, error)
|
|
// The client notifies the query-frontend that it started a graceful shutdown.
|
|
NotifyClientShutdown(ctx context.Context, in *NotifyClientShutdownRequest, opts ...grpc.CallOption) (*NotifyClientShutdownResponse, error)
|
|
}
|
|
|
|
type frontendClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewFrontendClient(cc *grpc.ClientConn) FrontendClient {
|
|
return &frontendClient{cc}
|
|
}
|
|
|
|
func (c *frontendClient) Process(ctx context.Context, opts ...grpc.CallOption) (Frontend_ProcessClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_Frontend_serviceDesc.Streams[0], "/frontend.Frontend/Process", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &frontendProcessClient{stream}
|
|
return x, nil
|
|
}
|
|
|
|
type Frontend_ProcessClient interface {
|
|
Send(*ClientToFrontend) error
|
|
Recv() (*FrontendToClient, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type frontendProcessClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *frontendProcessClient) Send(m *ClientToFrontend) error {
|
|
return x.ClientStream.SendMsg(m)
|
|
}
|
|
|
|
func (x *frontendProcessClient) Recv() (*FrontendToClient, error) {
|
|
m := new(FrontendToClient)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *frontendClient) NotifyClientShutdown(ctx context.Context, in *NotifyClientShutdownRequest, opts ...grpc.CallOption) (*NotifyClientShutdownResponse, error) {
|
|
out := new(NotifyClientShutdownResponse)
|
|
err := c.cc.Invoke(ctx, "/frontend.Frontend/NotifyClientShutdown", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// FrontendServer is the server API for Frontend service.
|
|
type FrontendServer interface {
|
|
// After calling this method, client enters a loop, in which it waits for
|
|
// a "FrontendToClient" message and replies with single "ClientToFrontend" message.
|
|
Process(Frontend_ProcessServer) error
|
|
// The client notifies the query-frontend that it started a graceful shutdown.
|
|
NotifyClientShutdown(context.Context, *NotifyClientShutdownRequest) (*NotifyClientShutdownResponse, error)
|
|
}
|
|
|
|
// UnimplementedFrontendServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedFrontendServer struct {
|
|
}
|
|
|
|
func (*UnimplementedFrontendServer) Process(srv Frontend_ProcessServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method Process not implemented")
|
|
}
|
|
func (*UnimplementedFrontendServer) NotifyClientShutdown(ctx context.Context, req *NotifyClientShutdownRequest) (*NotifyClientShutdownResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method NotifyClientShutdown not implemented")
|
|
}
|
|
|
|
func RegisterFrontendServer(s *grpc.Server, srv FrontendServer) {
|
|
s.RegisterService(&_Frontend_serviceDesc, srv)
|
|
}
|
|
|
|
func _Frontend_Process_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
return srv.(FrontendServer).Process(&frontendProcessServer{stream})
|
|
}
|
|
|
|
type Frontend_ProcessServer interface {
|
|
Send(*FrontendToClient) error
|
|
Recv() (*ClientToFrontend, error)
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type frontendProcessServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *frontendProcessServer) Send(m *FrontendToClient) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func (x *frontendProcessServer) Recv() (*ClientToFrontend, error) {
|
|
m := new(ClientToFrontend)
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func _Frontend_NotifyClientShutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NotifyClientShutdownRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FrontendServer).NotifyClientShutdown(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/frontend.Frontend/NotifyClientShutdown",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FrontendServer).NotifyClientShutdown(ctx, req.(*NotifyClientShutdownRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Frontend_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "frontend.Frontend",
|
|
HandlerType: (*FrontendServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "NotifyClientShutdown",
|
|
Handler: _Frontend_NotifyClientShutdown_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Process",
|
|
Handler: _Frontend_Process_Handler,
|
|
ServerStreams: true,
|
|
ClientStreams: true,
|
|
},
|
|
},
|
|
Metadata: "frontend.proto",
|
|
}
|
|
|
|
func (m *FrontendToClient) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *FrontendToClient) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *FrontendToClient) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.HttpRequestBatch) > 0 {
|
|
for iNdEx := len(m.HttpRequestBatch) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.HttpRequestBatch[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintFrontend(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.Type != 0 {
|
|
i = encodeVarintFrontend(dAtA, i, uint64(m.Type))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.HttpRequest != nil {
|
|
{
|
|
size, err := m.HttpRequest.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintFrontend(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ClientToFrontend) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ClientToFrontend) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ClientToFrontend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Features != 0 {
|
|
i = encodeVarintFrontend(dAtA, i, uint64(m.Features))
|
|
i--
|
|
dAtA[i] = 0x28
|
|
}
|
|
if len(m.HttpResponseBatch) > 0 {
|
|
for iNdEx := len(m.HttpResponseBatch) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.HttpResponseBatch[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintFrontend(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if len(m.ClientID) > 0 {
|
|
i -= len(m.ClientID)
|
|
copy(dAtA[i:], m.ClientID)
|
|
i = encodeVarintFrontend(dAtA, i, uint64(len(m.ClientID)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.HttpResponse != nil {
|
|
{
|
|
size, err := m.HttpResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintFrontend(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NotifyClientShutdownRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NotifyClientShutdownRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NotifyClientShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.ClientID) > 0 {
|
|
i -= len(m.ClientID)
|
|
copy(dAtA[i:], m.ClientID)
|
|
i = encodeVarintFrontend(dAtA, i, uint64(len(m.ClientID)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NotifyClientShutdownResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NotifyClientShutdownResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NotifyClientShutdownResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintFrontend(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovFrontend(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *FrontendToClient) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.HttpRequest != nil {
|
|
l = m.HttpRequest.Size()
|
|
n += 1 + l + sovFrontend(uint64(l))
|
|
}
|
|
if m.Type != 0 {
|
|
n += 1 + sovFrontend(uint64(m.Type))
|
|
}
|
|
if len(m.HttpRequestBatch) > 0 {
|
|
for _, e := range m.HttpRequestBatch {
|
|
l = e.Size()
|
|
n += 1 + l + sovFrontend(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ClientToFrontend) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.HttpResponse != nil {
|
|
l = m.HttpResponse.Size()
|
|
n += 1 + l + sovFrontend(uint64(l))
|
|
}
|
|
l = len(m.ClientID)
|
|
if l > 0 {
|
|
n += 1 + l + sovFrontend(uint64(l))
|
|
}
|
|
if len(m.HttpResponseBatch) > 0 {
|
|
for _, e := range m.HttpResponseBatch {
|
|
l = e.Size()
|
|
n += 1 + l + sovFrontend(uint64(l))
|
|
}
|
|
}
|
|
if m.Features != 0 {
|
|
n += 1 + sovFrontend(uint64(m.Features))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NotifyClientShutdownRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.ClientID)
|
|
if l > 0 {
|
|
n += 1 + l + sovFrontend(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NotifyClientShutdownResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func sovFrontend(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozFrontend(x uint64) (n int) {
|
|
return sovFrontend(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *FrontendToClient) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: FrontendToClient: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: FrontendToClient: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HttpRequest", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.HttpRequest == nil {
|
|
m.HttpRequest = &httpgrpc.HTTPRequest{}
|
|
}
|
|
if err := m.HttpRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
}
|
|
m.Type = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Type |= Type(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HttpRequestBatch", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.HttpRequestBatch = append(m.HttpRequestBatch, &httpgrpc.HTTPRequest{})
|
|
if err := m.HttpRequestBatch[len(m.HttpRequestBatch)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFrontend(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ClientToFrontend) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ClientToFrontend: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ClientToFrontend: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HttpResponse", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.HttpResponse == nil {
|
|
m.HttpResponse = &httpgrpc.HTTPResponse{}
|
|
}
|
|
if err := m.HttpResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ClientID = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HttpResponseBatch", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.HttpResponseBatch = append(m.HttpResponseBatch, &httpgrpc.HTTPResponse{})
|
|
if err := m.HttpResponseBatch[len(m.HttpResponseBatch)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Features", wireType)
|
|
}
|
|
m.Features = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Features |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFrontend(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NotifyClientShutdownRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: NotifyClientShutdownRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NotifyClientShutdownRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ClientID = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFrontend(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NotifyClientShutdownResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: NotifyClientShutdownResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NotifyClientShutdownResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFrontend(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFrontend
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipFrontend(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowFrontend
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthFrontend
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupFrontend
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthFrontend
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthFrontend = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowFrontend = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupFrontend = fmt.Errorf("proto: unexpected end of group")
|
|
)
|