github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/mixnet/mixnet.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: mixnet.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package mixnet is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	mixnet.proto
    10  
    11  It has these top-level messages:
    12  	Directive
    13  	DirectoryMessage
    14  */
    15  package mixnet
    16  
    17  import proto "github.com/golang/protobuf/proto"
    18  import fmt "fmt"
    19  import math "math"
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  type DirectiveType int32
    33  
    34  const (
    35  	DirectiveType_ERROR     DirectiveType = 0
    36  	DirectiveType_CREATE    DirectiveType = 1
    37  	DirectiveType_CREATED   DirectiveType = 2
    38  	DirectiveType_DESTROY   DirectiveType = 3
    39  	DirectiveType_DESTROYED DirectiveType = 4
    40  )
    41  
    42  var DirectiveType_name = map[int32]string{
    43  	0: "ERROR",
    44  	1: "CREATE",
    45  	2: "CREATED",
    46  	3: "DESTROY",
    47  	4: "DESTROYED",
    48  }
    49  var DirectiveType_value = map[string]int32{
    50  	"ERROR":     0,
    51  	"CREATE":    1,
    52  	"CREATED":   2,
    53  	"DESTROY":   3,
    54  	"DESTROYED": 4,
    55  }
    56  
    57  func (x DirectiveType) Enum() *DirectiveType {
    58  	p := new(DirectiveType)
    59  	*p = x
    60  	return p
    61  }
    62  func (x DirectiveType) String() string {
    63  	return proto.EnumName(DirectiveType_name, int32(x))
    64  }
    65  func (x *DirectiveType) UnmarshalJSON(data []byte) error {
    66  	value, err := proto.UnmarshalJSONEnum(DirectiveType_value, data, "DirectiveType")
    67  	if err != nil {
    68  		return err
    69  	}
    70  	*x = DirectiveType(value)
    71  	return nil
    72  }
    73  func (DirectiveType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    74  
    75  type DirectoryMessageType int32
    76  
    77  const (
    78  	DirectoryMessageType_REGISTER  DirectoryMessageType = 0
    79  	DirectoryMessageType_DELETE    DirectoryMessageType = 1
    80  	DirectoryMessageType_LIST      DirectoryMessageType = 2
    81  	DirectoryMessageType_DIRECTORY DirectoryMessageType = 3
    82  	DirectoryMessageType_DIRERROR  DirectoryMessageType = 4
    83  )
    84  
    85  var DirectoryMessageType_name = map[int32]string{
    86  	0: "REGISTER",
    87  	1: "DELETE",
    88  	2: "LIST",
    89  	3: "DIRECTORY",
    90  	4: "DIRERROR",
    91  }
    92  var DirectoryMessageType_value = map[string]int32{
    93  	"REGISTER":  0,
    94  	"DELETE":    1,
    95  	"LIST":      2,
    96  	"DIRECTORY": 3,
    97  	"DIRERROR":  4,
    98  }
    99  
   100  func (x DirectoryMessageType) Enum() *DirectoryMessageType {
   101  	p := new(DirectoryMessageType)
   102  	*p = x
   103  	return p
   104  }
   105  func (x DirectoryMessageType) String() string {
   106  	return proto.EnumName(DirectoryMessageType_name, int32(x))
   107  }
   108  func (x *DirectoryMessageType) UnmarshalJSON(data []byte) error {
   109  	value, err := proto.UnmarshalJSONEnum(DirectoryMessageType_value, data, "DirectoryMessageType")
   110  	if err != nil {
   111  		return err
   112  	}
   113  	*x = DirectoryMessageType(value)
   114  	return nil
   115  }
   116  func (DirectoryMessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   117  
   118  type Directive struct {
   119  	Type *DirectiveType `protobuf:"varint,1,req,name=type,enum=mixnet.DirectiveType" json:"type,omitempty"`
   120  	// CREATE, a sequence of addresses (e.g. "192.168.1.1:7007")
   121  	// comprising the circuit to be constructed over the mixnet. Each address
   122  	// corresponds to a mixnet router except the last, which is the service the
   123  	// proxy would like to contact.
   124  	Addrs []string `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"`
   125  	Key   []byte   `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
   126  	// ERROR or FATAL, an error message.
   127  	Error            *string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
   128  	XXX_unrecognized []byte  `json:"-"`
   129  }
   130  
   131  func (m *Directive) Reset()                    { *m = Directive{} }
   132  func (m *Directive) String() string            { return proto.CompactTextString(m) }
   133  func (*Directive) ProtoMessage()               {}
   134  func (*Directive) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
   135  
   136  func (m *Directive) GetType() DirectiveType {
   137  	if m != nil && m.Type != nil {
   138  		return *m.Type
   139  	}
   140  	return DirectiveType_ERROR
   141  }
   142  
   143  func (m *Directive) GetAddrs() []string {
   144  	if m != nil {
   145  		return m.Addrs
   146  	}
   147  	return nil
   148  }
   149  
   150  func (m *Directive) GetKey() []byte {
   151  	if m != nil {
   152  		return m.Key
   153  	}
   154  	return nil
   155  }
   156  
   157  func (m *Directive) GetError() string {
   158  	if m != nil && m.Error != nil {
   159  		return *m.Error
   160  	}
   161  	return ""
   162  }
   163  
   164  type DirectoryMessage struct {
   165  	Type *DirectoryMessageType `protobuf:"varint,1,req,name=type,enum=mixnet.DirectoryMessageType" json:"type,omitempty"`
   166  	// Addresses to register to or delete from the directory,
   167  	// or list of all available mixnets
   168  	Addrs []string `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"`
   169  	Keys  [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"`
   170  	// Possible error message
   171  	Error            *string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
   172  	XXX_unrecognized []byte  `json:"-"`
   173  }
   174  
   175  func (m *DirectoryMessage) Reset()                    { *m = DirectoryMessage{} }
   176  func (m *DirectoryMessage) String() string            { return proto.CompactTextString(m) }
   177  func (*DirectoryMessage) ProtoMessage()               {}
   178  func (*DirectoryMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   179  
   180  func (m *DirectoryMessage) GetType() DirectoryMessageType {
   181  	if m != nil && m.Type != nil {
   182  		return *m.Type
   183  	}
   184  	return DirectoryMessageType_REGISTER
   185  }
   186  
   187  func (m *DirectoryMessage) GetAddrs() []string {
   188  	if m != nil {
   189  		return m.Addrs
   190  	}
   191  	return nil
   192  }
   193  
   194  func (m *DirectoryMessage) GetKeys() [][]byte {
   195  	if m != nil {
   196  		return m.Keys
   197  	}
   198  	return nil
   199  }
   200  
   201  func (m *DirectoryMessage) GetError() string {
   202  	if m != nil && m.Error != nil {
   203  		return *m.Error
   204  	}
   205  	return ""
   206  }
   207  
   208  func init() {
   209  	proto.RegisterType((*Directive)(nil), "mixnet.Directive")
   210  	proto.RegisterType((*DirectoryMessage)(nil), "mixnet.DirectoryMessage")
   211  	proto.RegisterEnum("mixnet.DirectiveType", DirectiveType_name, DirectiveType_value)
   212  	proto.RegisterEnum("mixnet.DirectoryMessageType", DirectoryMessageType_name, DirectoryMessageType_value)
   213  }
   214  
   215  func init() { proto.RegisterFile("mixnet.proto", fileDescriptor0) }
   216  
   217  var fileDescriptor0 = []byte{
   218  	// 261 bytes of a gzipped FileDescriptorProto
   219  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x8e, 0xcd, 0x4a, 0xc3, 0x40,
   220  	0x14, 0x85, 0x4d, 0x66, 0x5a, 0x93, 0xdb, 0x44, 0x86, 0x41, 0x21, 0x0b, 0x17, 0xa1, 0x6e, 0x42,
   221  	0x16, 0x5d, 0xf8, 0x06, 0xd2, 0x5c, 0x24, 0x50, 0x09, 0x4c, 0x06, 0x44, 0x5c, 0x15, 0x7b, 0x91,
   222  	0x58, 0x34, 0x61, 0x12, 0xc4, 0x79, 0x7b, 0xc9, 0x0f, 0x4a, 0x68, 0x77, 0x73, 0x98, 0x7b, 0xbe,
   223  	0xef, 0x40, 0xf0, 0x59, 0xfd, 0x7c, 0x51, 0xb7, 0x69, 0x4c, 0xdd, 0xd5, 0x72, 0x39, 0xa6, 0xf5,
   224  	0x2b, 0xf8, 0x59, 0x65, 0xe8, 0xad, 0xab, 0xbe, 0x49, 0xde, 0x01, 0xef, 0x6c, 0x43, 0x91, 0x13,
   225  	0xbb, 0xc9, 0xd5, 0xfd, 0xcd, 0x66, 0x6a, 0xfc, 0x1d, 0x68, 0xdb, 0x90, 0x0c, 0x61, 0xb1, 0x3f,
   226  	0x1c, 0x4c, 0x1b, 0xb9, 0x31, 0x4b, 0x7c, 0xb9, 0x02, 0x76, 0x24, 0x1b, 0xb1, 0xd8, 0x49, 0x82,
   227  	0xfe, 0x8f, 0x8c, 0xa9, 0x4d, 0xc4, 0x63, 0x27, 0xf1, 0xd7, 0x1f, 0x20, 0xc6, 0x6e, 0x6d, 0xec,
   228  	0x13, 0xb5, 0xed, 0xfe, 0x9d, 0x64, 0x3a, 0x73, 0xdc, 0xce, 0x1d, 0xff, 0x77, 0xe7, 0x54, 0x01,
   229  	0xf0, 0x23, 0xd9, 0x36, 0x62, 0x31, 0x3b, 0x71, 0xa5, 0x05, 0x84, 0xf3, 0x9d, 0x3e, 0x2c, 0x50,
   230  	0xa9, 0x42, 0x89, 0x0b, 0x09, 0xb0, 0xdc, 0x2a, 0x7c, 0xd0, 0x28, 0x1c, 0xb9, 0x82, 0xcb, 0xf1,
   231  	0x9d, 0x09, 0xb7, 0x0f, 0x19, 0x96, 0x5a, 0x15, 0x2f, 0x82, 0xc9, 0x10, 0xfc, 0x29, 0x60, 0x26,
   232  	0x78, 0xfa, 0x0c, 0xd7, 0x67, 0x47, 0x05, 0xe0, 0x29, 0x7c, 0xcc, 0x4b, 0x8d, 0x13, 0x3a, 0xc3,
   233  	0x1d, 0x0e, 0x68, 0x0f, 0xf8, 0x2e, 0x2f, 0xb5, 0x70, 0x07, 0x54, 0xae, 0x70, 0xab, 0x0b, 0xd5,
   234  	0x93, 0x03, 0xf0, 0xfa, 0x38, 0xac, 0xe1, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4c, 0x43, 0xe8,
   235  	0xd2, 0x89, 0x01, 0x00, 0x00,
   236  }