github.com/anycable/anycable-go@v1.5.1/protos/rpc.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: rpc.proto
     3  
     4  package anycable
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type Status int32
    28  
    29  const (
    30  	Status_ERROR   Status = 0
    31  	Status_SUCCESS Status = 1
    32  	Status_FAILURE Status = 2
    33  )
    34  
    35  var Status_name = map[int32]string{
    36  	0: "ERROR",
    37  	1: "SUCCESS",
    38  	2: "FAILURE",
    39  }
    40  
    41  var Status_value = map[string]int32{
    42  	"ERROR":   0,
    43  	"SUCCESS": 1,
    44  	"FAILURE": 2,
    45  }
    46  
    47  func (x Status) String() string {
    48  	return proto.EnumName(Status_name, int32(x))
    49  }
    50  
    51  func (Status) EnumDescriptor() ([]byte, []int) {
    52  	return fileDescriptor_77a6da22d6a3feb1, []int{0}
    53  }
    54  
    55  type Env struct {
    56  	Url                  string            `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
    57  	Headers              map[string]string `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    58  	Cstate               map[string]string `protobuf:"bytes,3,rep,name=cstate,proto3" json:"cstate,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    59  	Istate               map[string]string `protobuf:"bytes,4,rep,name=istate,proto3" json:"istate,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    60  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    61  	XXX_unrecognized     []byte            `json:"-"`
    62  	XXX_sizecache        int32             `json:"-"`
    63  }
    64  
    65  func (m *Env) Reset()         { *m = Env{} }
    66  func (m *Env) String() string { return proto.CompactTextString(m) }
    67  func (*Env) ProtoMessage()    {}
    68  func (*Env) Descriptor() ([]byte, []int) {
    69  	return fileDescriptor_77a6da22d6a3feb1, []int{0}
    70  }
    71  
    72  func (m *Env) XXX_Unmarshal(b []byte) error {
    73  	return xxx_messageInfo_Env.Unmarshal(m, b)
    74  }
    75  func (m *Env) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    76  	return xxx_messageInfo_Env.Marshal(b, m, deterministic)
    77  }
    78  func (m *Env) XXX_Merge(src proto.Message) {
    79  	xxx_messageInfo_Env.Merge(m, src)
    80  }
    81  func (m *Env) XXX_Size() int {
    82  	return xxx_messageInfo_Env.Size(m)
    83  }
    84  func (m *Env) XXX_DiscardUnknown() {
    85  	xxx_messageInfo_Env.DiscardUnknown(m)
    86  }
    87  
    88  var xxx_messageInfo_Env proto.InternalMessageInfo
    89  
    90  func (m *Env) GetUrl() string {
    91  	if m != nil {
    92  		return m.Url
    93  	}
    94  	return ""
    95  }
    96  
    97  func (m *Env) GetHeaders() map[string]string {
    98  	if m != nil {
    99  		return m.Headers
   100  	}
   101  	return nil
   102  }
   103  
   104  func (m *Env) GetCstate() map[string]string {
   105  	if m != nil {
   106  		return m.Cstate
   107  	}
   108  	return nil
   109  }
   110  
   111  func (m *Env) GetIstate() map[string]string {
   112  	if m != nil {
   113  		return m.Istate
   114  	}
   115  	return nil
   116  }
   117  
   118  type EnvResponse struct {
   119  	Cstate               map[string]string `protobuf:"bytes,1,rep,name=cstate,proto3" json:"cstate,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   120  	Istate               map[string]string `protobuf:"bytes,2,rep,name=istate,proto3" json:"istate,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   121  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   122  	XXX_unrecognized     []byte            `json:"-"`
   123  	XXX_sizecache        int32             `json:"-"`
   124  }
   125  
   126  func (m *EnvResponse) Reset()         { *m = EnvResponse{} }
   127  func (m *EnvResponse) String() string { return proto.CompactTextString(m) }
   128  func (*EnvResponse) ProtoMessage()    {}
   129  func (*EnvResponse) Descriptor() ([]byte, []int) {
   130  	return fileDescriptor_77a6da22d6a3feb1, []int{1}
   131  }
   132  
   133  func (m *EnvResponse) XXX_Unmarshal(b []byte) error {
   134  	return xxx_messageInfo_EnvResponse.Unmarshal(m, b)
   135  }
   136  func (m *EnvResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   137  	return xxx_messageInfo_EnvResponse.Marshal(b, m, deterministic)
   138  }
   139  func (m *EnvResponse) XXX_Merge(src proto.Message) {
   140  	xxx_messageInfo_EnvResponse.Merge(m, src)
   141  }
   142  func (m *EnvResponse) XXX_Size() int {
   143  	return xxx_messageInfo_EnvResponse.Size(m)
   144  }
   145  func (m *EnvResponse) XXX_DiscardUnknown() {
   146  	xxx_messageInfo_EnvResponse.DiscardUnknown(m)
   147  }
   148  
   149  var xxx_messageInfo_EnvResponse proto.InternalMessageInfo
   150  
   151  func (m *EnvResponse) GetCstate() map[string]string {
   152  	if m != nil {
   153  		return m.Cstate
   154  	}
   155  	return nil
   156  }
   157  
   158  func (m *EnvResponse) GetIstate() map[string]string {
   159  	if m != nil {
   160  		return m.Istate
   161  	}
   162  	return nil
   163  }
   164  
   165  type ConnectionRequest struct {
   166  	Env                  *Env     `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"`
   167  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   168  	XXX_unrecognized     []byte   `json:"-"`
   169  	XXX_sizecache        int32    `json:"-"`
   170  }
   171  
   172  func (m *ConnectionRequest) Reset()         { *m = ConnectionRequest{} }
   173  func (m *ConnectionRequest) String() string { return proto.CompactTextString(m) }
   174  func (*ConnectionRequest) ProtoMessage()    {}
   175  func (*ConnectionRequest) Descriptor() ([]byte, []int) {
   176  	return fileDescriptor_77a6da22d6a3feb1, []int{2}
   177  }
   178  
   179  func (m *ConnectionRequest) XXX_Unmarshal(b []byte) error {
   180  	return xxx_messageInfo_ConnectionRequest.Unmarshal(m, b)
   181  }
   182  func (m *ConnectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   183  	return xxx_messageInfo_ConnectionRequest.Marshal(b, m, deterministic)
   184  }
   185  func (m *ConnectionRequest) XXX_Merge(src proto.Message) {
   186  	xxx_messageInfo_ConnectionRequest.Merge(m, src)
   187  }
   188  func (m *ConnectionRequest) XXX_Size() int {
   189  	return xxx_messageInfo_ConnectionRequest.Size(m)
   190  }
   191  func (m *ConnectionRequest) XXX_DiscardUnknown() {
   192  	xxx_messageInfo_ConnectionRequest.DiscardUnknown(m)
   193  }
   194  
   195  var xxx_messageInfo_ConnectionRequest proto.InternalMessageInfo
   196  
   197  func (m *ConnectionRequest) GetEnv() *Env {
   198  	if m != nil {
   199  		return m.Env
   200  	}
   201  	return nil
   202  }
   203  
   204  type ConnectionResponse struct {
   205  	Status               Status       `protobuf:"varint,1,opt,name=status,proto3,enum=anycable.Status" json:"status,omitempty"`
   206  	Identifiers          string       `protobuf:"bytes,2,opt,name=identifiers,proto3" json:"identifiers,omitempty"`
   207  	Transmissions        []string     `protobuf:"bytes,3,rep,name=transmissions,proto3" json:"transmissions,omitempty"`
   208  	ErrorMsg             string       `protobuf:"bytes,4,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
   209  	Env                  *EnvResponse `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
   210  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   211  	XXX_unrecognized     []byte       `json:"-"`
   212  	XXX_sizecache        int32        `json:"-"`
   213  }
   214  
   215  func (m *ConnectionResponse) Reset()         { *m = ConnectionResponse{} }
   216  func (m *ConnectionResponse) String() string { return proto.CompactTextString(m) }
   217  func (*ConnectionResponse) ProtoMessage()    {}
   218  func (*ConnectionResponse) Descriptor() ([]byte, []int) {
   219  	return fileDescriptor_77a6da22d6a3feb1, []int{3}
   220  }
   221  
   222  func (m *ConnectionResponse) XXX_Unmarshal(b []byte) error {
   223  	return xxx_messageInfo_ConnectionResponse.Unmarshal(m, b)
   224  }
   225  func (m *ConnectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   226  	return xxx_messageInfo_ConnectionResponse.Marshal(b, m, deterministic)
   227  }
   228  func (m *ConnectionResponse) XXX_Merge(src proto.Message) {
   229  	xxx_messageInfo_ConnectionResponse.Merge(m, src)
   230  }
   231  func (m *ConnectionResponse) XXX_Size() int {
   232  	return xxx_messageInfo_ConnectionResponse.Size(m)
   233  }
   234  func (m *ConnectionResponse) XXX_DiscardUnknown() {
   235  	xxx_messageInfo_ConnectionResponse.DiscardUnknown(m)
   236  }
   237  
   238  var xxx_messageInfo_ConnectionResponse proto.InternalMessageInfo
   239  
   240  func (m *ConnectionResponse) GetStatus() Status {
   241  	if m != nil {
   242  		return m.Status
   243  	}
   244  	return Status_ERROR
   245  }
   246  
   247  func (m *ConnectionResponse) GetIdentifiers() string {
   248  	if m != nil {
   249  		return m.Identifiers
   250  	}
   251  	return ""
   252  }
   253  
   254  func (m *ConnectionResponse) GetTransmissions() []string {
   255  	if m != nil {
   256  		return m.Transmissions
   257  	}
   258  	return nil
   259  }
   260  
   261  func (m *ConnectionResponse) GetErrorMsg() string {
   262  	if m != nil {
   263  		return m.ErrorMsg
   264  	}
   265  	return ""
   266  }
   267  
   268  func (m *ConnectionResponse) GetEnv() *EnvResponse {
   269  	if m != nil {
   270  		return m.Env
   271  	}
   272  	return nil
   273  }
   274  
   275  type CommandMessage struct {
   276  	Command               string   `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
   277  	Identifier            string   `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
   278  	ConnectionIdentifiers string   `protobuf:"bytes,3,opt,name=connection_identifiers,json=connectionIdentifiers,proto3" json:"connection_identifiers,omitempty"`
   279  	Data                  string   `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
   280  	Env                   *Env     `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
   281  	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
   282  	XXX_unrecognized      []byte   `json:"-"`
   283  	XXX_sizecache         int32    `json:"-"`
   284  }
   285  
   286  func (m *CommandMessage) Reset()         { *m = CommandMessage{} }
   287  func (m *CommandMessage) String() string { return proto.CompactTextString(m) }
   288  func (*CommandMessage) ProtoMessage()    {}
   289  func (*CommandMessage) Descriptor() ([]byte, []int) {
   290  	return fileDescriptor_77a6da22d6a3feb1, []int{4}
   291  }
   292  
   293  func (m *CommandMessage) XXX_Unmarshal(b []byte) error {
   294  	return xxx_messageInfo_CommandMessage.Unmarshal(m, b)
   295  }
   296  func (m *CommandMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   297  	return xxx_messageInfo_CommandMessage.Marshal(b, m, deterministic)
   298  }
   299  func (m *CommandMessage) XXX_Merge(src proto.Message) {
   300  	xxx_messageInfo_CommandMessage.Merge(m, src)
   301  }
   302  func (m *CommandMessage) XXX_Size() int {
   303  	return xxx_messageInfo_CommandMessage.Size(m)
   304  }
   305  func (m *CommandMessage) XXX_DiscardUnknown() {
   306  	xxx_messageInfo_CommandMessage.DiscardUnknown(m)
   307  }
   308  
   309  var xxx_messageInfo_CommandMessage proto.InternalMessageInfo
   310  
   311  func (m *CommandMessage) GetCommand() string {
   312  	if m != nil {
   313  		return m.Command
   314  	}
   315  	return ""
   316  }
   317  
   318  func (m *CommandMessage) GetIdentifier() string {
   319  	if m != nil {
   320  		return m.Identifier
   321  	}
   322  	return ""
   323  }
   324  
   325  func (m *CommandMessage) GetConnectionIdentifiers() string {
   326  	if m != nil {
   327  		return m.ConnectionIdentifiers
   328  	}
   329  	return ""
   330  }
   331  
   332  func (m *CommandMessage) GetData() string {
   333  	if m != nil {
   334  		return m.Data
   335  	}
   336  	return ""
   337  }
   338  
   339  func (m *CommandMessage) GetEnv() *Env {
   340  	if m != nil {
   341  		return m.Env
   342  	}
   343  	return nil
   344  }
   345  
   346  type CommandResponse struct {
   347  	Status               Status       `protobuf:"varint,1,opt,name=status,proto3,enum=anycable.Status" json:"status,omitempty"`
   348  	Disconnect           bool         `protobuf:"varint,2,opt,name=disconnect,proto3" json:"disconnect,omitempty"`
   349  	StopStreams          bool         `protobuf:"varint,3,opt,name=stop_streams,json=stopStreams,proto3" json:"stop_streams,omitempty"`
   350  	Streams              []string     `protobuf:"bytes,4,rep,name=streams,proto3" json:"streams,omitempty"`
   351  	Transmissions        []string     `protobuf:"bytes,5,rep,name=transmissions,proto3" json:"transmissions,omitempty"`
   352  	ErrorMsg             string       `protobuf:"bytes,6,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
   353  	Env                  *EnvResponse `protobuf:"bytes,7,opt,name=env,proto3" json:"env,omitempty"`
   354  	StoppedStreams       []string     `protobuf:"bytes,8,rep,name=stopped_streams,json=stoppedStreams,proto3" json:"stopped_streams,omitempty"`
   355  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   356  	XXX_unrecognized     []byte       `json:"-"`
   357  	XXX_sizecache        int32        `json:"-"`
   358  }
   359  
   360  func (m *CommandResponse) Reset()         { *m = CommandResponse{} }
   361  func (m *CommandResponse) String() string { return proto.CompactTextString(m) }
   362  func (*CommandResponse) ProtoMessage()    {}
   363  func (*CommandResponse) Descriptor() ([]byte, []int) {
   364  	return fileDescriptor_77a6da22d6a3feb1, []int{5}
   365  }
   366  
   367  func (m *CommandResponse) XXX_Unmarshal(b []byte) error {
   368  	return xxx_messageInfo_CommandResponse.Unmarshal(m, b)
   369  }
   370  func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   371  	return xxx_messageInfo_CommandResponse.Marshal(b, m, deterministic)
   372  }
   373  func (m *CommandResponse) XXX_Merge(src proto.Message) {
   374  	xxx_messageInfo_CommandResponse.Merge(m, src)
   375  }
   376  func (m *CommandResponse) XXX_Size() int {
   377  	return xxx_messageInfo_CommandResponse.Size(m)
   378  }
   379  func (m *CommandResponse) XXX_DiscardUnknown() {
   380  	xxx_messageInfo_CommandResponse.DiscardUnknown(m)
   381  }
   382  
   383  var xxx_messageInfo_CommandResponse proto.InternalMessageInfo
   384  
   385  func (m *CommandResponse) GetStatus() Status {
   386  	if m != nil {
   387  		return m.Status
   388  	}
   389  	return Status_ERROR
   390  }
   391  
   392  func (m *CommandResponse) GetDisconnect() bool {
   393  	if m != nil {
   394  		return m.Disconnect
   395  	}
   396  	return false
   397  }
   398  
   399  func (m *CommandResponse) GetStopStreams() bool {
   400  	if m != nil {
   401  		return m.StopStreams
   402  	}
   403  	return false
   404  }
   405  
   406  func (m *CommandResponse) GetStreams() []string {
   407  	if m != nil {
   408  		return m.Streams
   409  	}
   410  	return nil
   411  }
   412  
   413  func (m *CommandResponse) GetTransmissions() []string {
   414  	if m != nil {
   415  		return m.Transmissions
   416  	}
   417  	return nil
   418  }
   419  
   420  func (m *CommandResponse) GetErrorMsg() string {
   421  	if m != nil {
   422  		return m.ErrorMsg
   423  	}
   424  	return ""
   425  }
   426  
   427  func (m *CommandResponse) GetEnv() *EnvResponse {
   428  	if m != nil {
   429  		return m.Env
   430  	}
   431  	return nil
   432  }
   433  
   434  func (m *CommandResponse) GetStoppedStreams() []string {
   435  	if m != nil {
   436  		return m.StoppedStreams
   437  	}
   438  	return nil
   439  }
   440  
   441  type DisconnectRequest struct {
   442  	Identifiers          string   `protobuf:"bytes,1,opt,name=identifiers,proto3" json:"identifiers,omitempty"`
   443  	Subscriptions        []string `protobuf:"bytes,2,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
   444  	Env                  *Env     `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
   445  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   446  	XXX_unrecognized     []byte   `json:"-"`
   447  	XXX_sizecache        int32    `json:"-"`
   448  }
   449  
   450  func (m *DisconnectRequest) Reset()         { *m = DisconnectRequest{} }
   451  func (m *DisconnectRequest) String() string { return proto.CompactTextString(m) }
   452  func (*DisconnectRequest) ProtoMessage()    {}
   453  func (*DisconnectRequest) Descriptor() ([]byte, []int) {
   454  	return fileDescriptor_77a6da22d6a3feb1, []int{6}
   455  }
   456  
   457  func (m *DisconnectRequest) XXX_Unmarshal(b []byte) error {
   458  	return xxx_messageInfo_DisconnectRequest.Unmarshal(m, b)
   459  }
   460  func (m *DisconnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   461  	return xxx_messageInfo_DisconnectRequest.Marshal(b, m, deterministic)
   462  }
   463  func (m *DisconnectRequest) XXX_Merge(src proto.Message) {
   464  	xxx_messageInfo_DisconnectRequest.Merge(m, src)
   465  }
   466  func (m *DisconnectRequest) XXX_Size() int {
   467  	return xxx_messageInfo_DisconnectRequest.Size(m)
   468  }
   469  func (m *DisconnectRequest) XXX_DiscardUnknown() {
   470  	xxx_messageInfo_DisconnectRequest.DiscardUnknown(m)
   471  }
   472  
   473  var xxx_messageInfo_DisconnectRequest proto.InternalMessageInfo
   474  
   475  func (m *DisconnectRequest) GetIdentifiers() string {
   476  	if m != nil {
   477  		return m.Identifiers
   478  	}
   479  	return ""
   480  }
   481  
   482  func (m *DisconnectRequest) GetSubscriptions() []string {
   483  	if m != nil {
   484  		return m.Subscriptions
   485  	}
   486  	return nil
   487  }
   488  
   489  func (m *DisconnectRequest) GetEnv() *Env {
   490  	if m != nil {
   491  		return m.Env
   492  	}
   493  	return nil
   494  }
   495  
   496  type DisconnectResponse struct {
   497  	Status               Status   `protobuf:"varint,1,opt,name=status,proto3,enum=anycable.Status" json:"status,omitempty"`
   498  	ErrorMsg             string   `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
   499  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   500  	XXX_unrecognized     []byte   `json:"-"`
   501  	XXX_sizecache        int32    `json:"-"`
   502  }
   503  
   504  func (m *DisconnectResponse) Reset()         { *m = DisconnectResponse{} }
   505  func (m *DisconnectResponse) String() string { return proto.CompactTextString(m) }
   506  func (*DisconnectResponse) ProtoMessage()    {}
   507  func (*DisconnectResponse) Descriptor() ([]byte, []int) {
   508  	return fileDescriptor_77a6da22d6a3feb1, []int{7}
   509  }
   510  
   511  func (m *DisconnectResponse) XXX_Unmarshal(b []byte) error {
   512  	return xxx_messageInfo_DisconnectResponse.Unmarshal(m, b)
   513  }
   514  func (m *DisconnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   515  	return xxx_messageInfo_DisconnectResponse.Marshal(b, m, deterministic)
   516  }
   517  func (m *DisconnectResponse) XXX_Merge(src proto.Message) {
   518  	xxx_messageInfo_DisconnectResponse.Merge(m, src)
   519  }
   520  func (m *DisconnectResponse) XXX_Size() int {
   521  	return xxx_messageInfo_DisconnectResponse.Size(m)
   522  }
   523  func (m *DisconnectResponse) XXX_DiscardUnknown() {
   524  	xxx_messageInfo_DisconnectResponse.DiscardUnknown(m)
   525  }
   526  
   527  var xxx_messageInfo_DisconnectResponse proto.InternalMessageInfo
   528  
   529  func (m *DisconnectResponse) GetStatus() Status {
   530  	if m != nil {
   531  		return m.Status
   532  	}
   533  	return Status_ERROR
   534  }
   535  
   536  func (m *DisconnectResponse) GetErrorMsg() string {
   537  	if m != nil {
   538  		return m.ErrorMsg
   539  	}
   540  	return ""
   541  }
   542  
   543  func init() {
   544  	proto.RegisterEnum("anycable.Status", Status_name, Status_value)
   545  	proto.RegisterType((*Env)(nil), "anycable.Env")
   546  	proto.RegisterMapType((map[string]string)(nil), "anycable.Env.CstateEntry")
   547  	proto.RegisterMapType((map[string]string)(nil), "anycable.Env.HeadersEntry")
   548  	proto.RegisterMapType((map[string]string)(nil), "anycable.Env.IstateEntry")
   549  	proto.RegisterType((*EnvResponse)(nil), "anycable.EnvResponse")
   550  	proto.RegisterMapType((map[string]string)(nil), "anycable.EnvResponse.CstateEntry")
   551  	proto.RegisterMapType((map[string]string)(nil), "anycable.EnvResponse.IstateEntry")
   552  	proto.RegisterType((*ConnectionRequest)(nil), "anycable.ConnectionRequest")
   553  	proto.RegisterType((*ConnectionResponse)(nil), "anycable.ConnectionResponse")
   554  	proto.RegisterType((*CommandMessage)(nil), "anycable.CommandMessage")
   555  	proto.RegisterType((*CommandResponse)(nil), "anycable.CommandResponse")
   556  	proto.RegisterType((*DisconnectRequest)(nil), "anycable.DisconnectRequest")
   557  	proto.RegisterType((*DisconnectResponse)(nil), "anycable.DisconnectResponse")
   558  }
   559  
   560  func init() { proto.RegisterFile("rpc.proto", fileDescriptor_77a6da22d6a3feb1) }
   561  
   562  var fileDescriptor_77a6da22d6a3feb1 = []byte{
   563  	// 658 bytes of a gzipped FileDescriptorProto
   564  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xdd, 0x6e, 0xd3, 0x30,
   565  	0x14, 0x5e, 0x92, 0xfe, 0x9e, 0xec, 0xa7, 0x3b, 0x62, 0x28, 0xeb, 0xd0, 0xe8, 0x2a, 0xa4, 0x55,
   566  	0x48, 0x54, 0xa2, 0x0c, 0x89, 0xed, 0x0a, 0x54, 0x32, 0x51, 0x89, 0x09, 0xe4, 0x6a, 0x57, 0x5c,
   567  	0x4c, 0x59, 0x6a, 0x46, 0xb4, 0xd5, 0x09, 0xb1, 0x5b, 0xa9, 0x12, 0xaf, 0xc4, 0x2d, 0x4f, 0xc1,
   568  	0x13, 0x70, 0xcf, 0x43, 0x70, 0x87, 0x62, 0x27, 0xad, 0x43, 0x03, 0xd5, 0x76, 0xc3, 0x5d, 0x7c,
   569  	0xce, 0xf9, 0xec, 0xef, 0xc7, 0x6e, 0xa1, 0x1e, 0x47, 0x7e, 0x37, 0x8a, 0x43, 0x11, 0x62, 0xcd,
   570  	0x63, 0x33, 0xdf, 0xbb, 0xbc, 0xa1, 0xed, 0x9f, 0x26, 0x58, 0x2e, 0x9b, 0x62, 0x03, 0xac, 0x49,
   571  	0x7c, 0xe3, 0x18, 0x2d, 0xa3, 0x53, 0x27, 0xc9, 0x27, 0x1e, 0x41, 0xf5, 0x13, 0xf5, 0x46, 0x34,
   572  	0xe6, 0x8e, 0xd9, 0xb2, 0x3a, 0x76, 0xaf, 0xd9, 0xcd, 0x50, 0x5d, 0x97, 0x4d, 0xbb, 0x6f, 0x54,
   573  	0xd3, 0x65, 0x22, 0x9e, 0x91, 0x6c, 0x14, 0x9f, 0x42, 0xc5, 0xe7, 0xc2, 0x13, 0xd4, 0xb1, 0x24,
   574  	0x68, 0x37, 0x0f, 0xea, 0xcb, 0x9e, 0xc2, 0xa4, 0x83, 0x09, 0x24, 0x50, 0x90, 0x52, 0x11, 0x64,
   575  	0xa0, 0x43, 0xd4, 0x60, 0xf3, 0x04, 0xd6, 0xf5, 0xe3, 0x13, 0xf6, 0xd7, 0x74, 0x96, 0xb1, 0xbf,
   576  	0xa6, 0x33, 0xbc, 0x07, 0xe5, 0xa9, 0x77, 0x33, 0xa1, 0x8e, 0x29, 0x6b, 0x6a, 0x71, 0x62, 0xbe,
   577  	0x30, 0x9a, 0xc7, 0x60, 0x6b, 0x2c, 0x6e, 0x0b, 0x1d, 0xdc, 0x0d, 0xda, 0xfe, 0x65, 0x80, 0xed,
   578  	0xb2, 0x29, 0xa1, 0x3c, 0x0a, 0x19, 0xa7, 0x78, 0x3c, 0xf7, 0xc9, 0x90, 0xa2, 0x0f, 0x72, 0xa2,
   579  	0xb3, 0xb1, 0x42, 0xbf, 0x8e, 0xe7, 0x7e, 0x99, 0xff, 0x82, 0x16, 0xf9, 0xf6, 0x7f, 0xb4, 0x1f,
   580  	0xc1, 0x76, 0x3f, 0x64, 0x8c, 0xfa, 0x22, 0x08, 0x19, 0xa1, 0x9f, 0x27, 0x94, 0x0b, 0x7c, 0x08,
   581  	0x16, 0x65, 0x53, 0xc7, 0x6a, 0x19, 0x1d, 0xbb, 0xb7, 0x91, 0x97, 0x90, 0x74, 0xda, 0xdf, 0x0d,
   582  	0x40, 0x1d, 0x96, 0x1a, 0xd7, 0x81, 0x4a, 0x42, 0x63, 0xc2, 0xe5, 0xd9, 0x9b, 0xbd, 0xc6, 0x02,
   583  	0x3a, 0x94, 0x75, 0x92, 0xf6, 0xb1, 0x05, 0x76, 0x30, 0xa2, 0x4c, 0x04, 0x1f, 0x03, 0x75, 0x89,
   584  	0x13, 0x5a, 0x7a, 0x09, 0x1f, 0xc1, 0x86, 0x88, 0x3d, 0xc6, 0xc7, 0x01, 0xe7, 0x41, 0xc8, 0xb8,
   585  	0xbc, 0xb3, 0x75, 0x92, 0x2f, 0xe2, 0x1e, 0xd4, 0x69, 0x1c, 0x87, 0xf1, 0xc5, 0x98, 0x5f, 0x39,
   586  	0x25, 0xb9, 0x4b, 0x4d, 0x16, 0xce, 0xf8, 0x15, 0x1e, 0x2a, 0x19, 0x65, 0x29, 0x63, 0xa7, 0x30,
   587  	0x09, 0x25, 0xe7, 0x9b, 0x01, 0x9b, 0xfd, 0x70, 0x3c, 0xf6, 0xd8, 0xe8, 0x8c, 0x72, 0xee, 0x5d,
   588  	0x51, 0x74, 0xa0, 0xea, 0xab, 0x4a, 0xea, 0x63, 0xb6, 0xc4, 0x7d, 0x80, 0x05, 0xcf, 0x94, 0xb9,
   589  	0x56, 0xc1, 0xe7, 0x70, 0xdf, 0x9f, 0x5b, 0x73, 0xa1, 0xab, 0xb4, 0xe4, 0xec, 0xce, 0xa2, 0x3b,
   590  	0xd0, 0xf4, 0x22, 0x94, 0x46, 0x9e, 0xf0, 0x52, 0x11, 0xf2, 0x3b, 0xcb, 0xa1, 0xfc, 0xd7, 0x1c,
   591  	0xbe, 0x9a, 0xb0, 0x95, 0x12, 0xbf, 0x43, 0x08, 0xfb, 0x00, 0xa3, 0x80, 0xa7, 0x74, 0xa4, 0x92,
   592  	0x1a, 0xd1, 0x2a, 0x78, 0x00, 0xeb, 0x5c, 0x84, 0xd1, 0x05, 0x17, 0x31, 0xf5, 0xc6, 0x8a, 0x7f,
   593  	0x8d, 0xd8, 0x49, 0x6d, 0xa8, 0x4a, 0x89, 0x4d, 0x59, 0xb7, 0x24, 0xf3, 0xc9, 0x96, 0xcb, 0xf9,
   594  	0x95, 0x57, 0xe6, 0x57, 0x29, 0xce, 0xaf, 0xba, 0x2a, 0x3f, 0x3c, 0x84, 0xad, 0x84, 0x54, 0x44,
   595  	0x47, 0x73, 0xae, 0x35, 0x79, 0xda, 0x66, 0x5a, 0x4e, 0xe9, 0xb6, 0xbf, 0xc0, 0xf6, 0xeb, 0xb9,
   596  	0xbe, 0xec, 0xb6, 0xff, 0x71, 0x17, 0x8d, 0xc2, 0xbb, 0xc8, 0x27, 0x97, 0xdc, 0x8f, 0x83, 0x48,
   597  	0x48, 0x2d, 0xa6, 0xd2, 0x92, 0x2b, 0xae, 0x4e, 0xeb, 0x03, 0xa0, 0x7e, 0xfa, 0xad, 0xf3, 0xca,
   598  	0x99, 0x65, 0xe6, 0xcd, 0x7a, 0xfc, 0x04, 0x2a, 0x6a, 0x1c, 0xeb, 0x50, 0x76, 0x09, 0x79, 0x47,
   599  	0x1a, 0x6b, 0x68, 0x43, 0x75, 0x78, 0xde, 0xef, 0xbb, 0xc3, 0x61, 0xc3, 0x48, 0x16, 0xa7, 0xaf,
   600  	0x06, 0x6f, 0xcf, 0x89, 0xdb, 0x30, 0x7b, 0x3f, 0x0c, 0xb0, 0xc8, 0xfb, 0x3e, 0x9e, 0x42, 0x35,
   601  	0x7d, 0xc8, 0xb8, 0xb7, 0x38, 0x78, 0xe9, 0x27, 0xa1, 0xf9, 0xa0, 0xb8, 0xa9, 0x34, 0xb4, 0xd7,
   602  	0xf0, 0x65, 0xb2, 0x8f, 0x7a, 0x20, 0x8e, 0x3e, 0xaa, 0x3f, 0xaa, 0xe6, 0xee, 0x52, 0x47, 0xdb,
   603  	0x61, 0x00, 0xb0, 0x70, 0x47, 0x27, 0xb3, 0x94, 0x98, 0x4e, 0x66, 0xd9, 0xd0, 0xf6, 0xda, 0x65,
   604  	0x45, 0xfe, 0x93, 0x3e, 0xfb, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xfa, 0x4f, 0x93, 0x56, 0x07,
   605  	0x00, 0x00,
   606  }
   607  
   608  // Reference imports to suppress errors if they are not otherwise used.
   609  var _ context.Context
   610  var _ grpc.ClientConn
   611  
   612  // This is a compile-time assertion to ensure that this generated file
   613  // is compatible with the grpc package it is being compiled against.
   614  const _ = grpc.SupportPackageIsVersion4
   615  
   616  // RPCClient is the client API for RPC service.
   617  //
   618  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   619  type RPCClient interface {
   620  	Connect(ctx context.Context, in *ConnectionRequest, opts ...grpc.CallOption) (*ConnectionResponse, error)
   621  	Command(ctx context.Context, in *CommandMessage, opts ...grpc.CallOption) (*CommandResponse, error)
   622  	Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (*DisconnectResponse, error)
   623  }
   624  
   625  type rPCClient struct {
   626  	cc *grpc.ClientConn
   627  }
   628  
   629  func NewRPCClient(cc *grpc.ClientConn) RPCClient {
   630  	return &rPCClient{cc}
   631  }
   632  
   633  func (c *rPCClient) Connect(ctx context.Context, in *ConnectionRequest, opts ...grpc.CallOption) (*ConnectionResponse, error) {
   634  	out := new(ConnectionResponse)
   635  	err := c.cc.Invoke(ctx, "/anycable.RPC/Connect", in, out, opts...)
   636  	if err != nil {
   637  		return nil, err
   638  	}
   639  	return out, nil
   640  }
   641  
   642  func (c *rPCClient) Command(ctx context.Context, in *CommandMessage, opts ...grpc.CallOption) (*CommandResponse, error) {
   643  	out := new(CommandResponse)
   644  	err := c.cc.Invoke(ctx, "/anycable.RPC/Command", in, out, opts...)
   645  	if err != nil {
   646  		return nil, err
   647  	}
   648  	return out, nil
   649  }
   650  
   651  func (c *rPCClient) Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (*DisconnectResponse, error) {
   652  	out := new(DisconnectResponse)
   653  	err := c.cc.Invoke(ctx, "/anycable.RPC/Disconnect", in, out, opts...)
   654  	if err != nil {
   655  		return nil, err
   656  	}
   657  	return out, nil
   658  }
   659  
   660  // RPCServer is the server API for RPC service.
   661  type RPCServer interface {
   662  	Connect(context.Context, *ConnectionRequest) (*ConnectionResponse, error)
   663  	Command(context.Context, *CommandMessage) (*CommandResponse, error)
   664  	Disconnect(context.Context, *DisconnectRequest) (*DisconnectResponse, error)
   665  }
   666  
   667  // UnimplementedRPCServer can be embedded to have forward compatible implementations.
   668  type UnimplementedRPCServer struct {
   669  }
   670  
   671  func (*UnimplementedRPCServer) Connect(ctx context.Context, req *ConnectionRequest) (*ConnectionResponse, error) {
   672  	return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented")
   673  }
   674  func (*UnimplementedRPCServer) Command(ctx context.Context, req *CommandMessage) (*CommandResponse, error) {
   675  	return nil, status.Errorf(codes.Unimplemented, "method Command not implemented")
   676  }
   677  func (*UnimplementedRPCServer) Disconnect(ctx context.Context, req *DisconnectRequest) (*DisconnectResponse, error) {
   678  	return nil, status.Errorf(codes.Unimplemented, "method Disconnect not implemented")
   679  }
   680  
   681  func RegisterRPCServer(s *grpc.Server, srv RPCServer) {
   682  	s.RegisterService(&_RPC_serviceDesc, srv)
   683  }
   684  
   685  func _RPC_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   686  	in := new(ConnectionRequest)
   687  	if err := dec(in); err != nil {
   688  		return nil, err
   689  	}
   690  	if interceptor == nil {
   691  		return srv.(RPCServer).Connect(ctx, in)
   692  	}
   693  	info := &grpc.UnaryServerInfo{
   694  		Server:     srv,
   695  		FullMethod: "/anycable.RPC/Connect",
   696  	}
   697  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   698  		return srv.(RPCServer).Connect(ctx, req.(*ConnectionRequest))
   699  	}
   700  	return interceptor(ctx, in, info, handler)
   701  }
   702  
   703  func _RPC_Command_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   704  	in := new(CommandMessage)
   705  	if err := dec(in); err != nil {
   706  		return nil, err
   707  	}
   708  	if interceptor == nil {
   709  		return srv.(RPCServer).Command(ctx, in)
   710  	}
   711  	info := &grpc.UnaryServerInfo{
   712  		Server:     srv,
   713  		FullMethod: "/anycable.RPC/Command",
   714  	}
   715  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   716  		return srv.(RPCServer).Command(ctx, req.(*CommandMessage))
   717  	}
   718  	return interceptor(ctx, in, info, handler)
   719  }
   720  
   721  func _RPC_Disconnect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   722  	in := new(DisconnectRequest)
   723  	if err := dec(in); err != nil {
   724  		return nil, err
   725  	}
   726  	if interceptor == nil {
   727  		return srv.(RPCServer).Disconnect(ctx, in)
   728  	}
   729  	info := &grpc.UnaryServerInfo{
   730  		Server:     srv,
   731  		FullMethod: "/anycable.RPC/Disconnect",
   732  	}
   733  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   734  		return srv.(RPCServer).Disconnect(ctx, req.(*DisconnectRequest))
   735  	}
   736  	return interceptor(ctx, in, info, handler)
   737  }
   738  
   739  var _RPC_serviceDesc = grpc.ServiceDesc{
   740  	ServiceName: "anycable.RPC",
   741  	HandlerType: (*RPCServer)(nil),
   742  	Methods: []grpc.MethodDesc{
   743  		{
   744  			MethodName: "Connect",
   745  			Handler:    _RPC_Connect_Handler,
   746  		},
   747  		{
   748  			MethodName: "Command",
   749  			Handler:    _RPC_Command_Handler,
   750  		},
   751  		{
   752  			MethodName: "Disconnect",
   753  			Handler:    _RPC_Disconnect_Handler,
   754  		},
   755  	},
   756  	Streams:  []grpc.StreamDesc{},
   757  	Metadata: "rpc.proto",
   758  }