github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/support_infrastructure/secret_service/service.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: service.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package secret_service is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	service.proto
    10  
    11  It has these top-level messages:
    12  	ObjectIdMessage
    13  	SecretServiceRequest
    14  	SecretServiceResponse
    15  */
    16  package secret_service
    17  
    18  import proto "github.com/golang/protobuf/proto"
    19  import fmt "fmt"
    20  import math "math"
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  // const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    32  
    33  type SecretServiceRequestOperationType int32
    34  
    35  const (
    36  	SecretServiceRequest_READ   SecretServiceRequestOperationType = 1
    37  	SecretServiceRequest_WRITE  SecretServiceRequestOperationType = 2
    38  	SecretServiceRequest_CREATE SecretServiceRequestOperationType = 3
    39  	SecretServiceRequest_DELETE SecretServiceRequestOperationType = 4
    40  )
    41  
    42  var SecretServiceRequestOperationType_name = map[int32]string{
    43  	1: "READ",
    44  	2: "WRITE",
    45  	3: "CREATE",
    46  	4: "DELETE",
    47  }
    48  var SecretServiceRequestOperationType_value = map[string]int32{
    49  	"READ":   1,
    50  	"WRITE":  2,
    51  	"CREATE": 3,
    52  	"DELETE": 4,
    53  }
    54  
    55  func (x SecretServiceRequestOperationType) Enum() *SecretServiceRequestOperationType {
    56  	p := new(SecretServiceRequestOperationType)
    57  	*p = x
    58  	return p
    59  }
    60  func (x SecretServiceRequestOperationType) String() string {
    61  	return proto.EnumName(SecretServiceRequestOperationType_name, int32(x))
    62  }
    63  func (x *SecretServiceRequestOperationType) UnmarshalJSON(data []byte) error {
    64  	value, err := proto.UnmarshalJSONEnum(SecretServiceRequestOperationType_value, data, "SecretServiceRequestOperationType")
    65  	if err != nil {
    66  		return err
    67  	}
    68  	*x = SecretServiceRequestOperationType(value)
    69  	return nil
    70  }
    71  func (SecretServiceRequestOperationType) EnumDescriptor() ([]byte, []int) {
    72  	return fileDescriptor0, []int{1, 0}
    73  }
    74  
    75  // Epochs must increase monotonically and be > 0
    76  type ObjectIdMessage struct {
    77  	ObjName          *string `protobuf:"bytes,1,req,name=obj_name" json:"obj_name,omitempty"`
    78  	ObjEpoch         *int32  `protobuf:"varint,2,opt,name=obj_epoch" json:"obj_epoch,omitempty"`
    79  	XXX_unrecognized []byte  `json:"-"`
    80  }
    81  
    82  func (m *ObjectIdMessage) Reset()                    { *m = ObjectIdMessage{} }
    83  func (m *ObjectIdMessage) String() string            { return proto.CompactTextString(m) }
    84  func (*ObjectIdMessage) ProtoMessage()               {}
    85  func (*ObjectIdMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    86  
    87  func (m *ObjectIdMessage) GetObjName() string {
    88  	if m != nil && m.ObjName != nil {
    89  		return *m.ObjName
    90  	}
    91  	return ""
    92  }
    93  
    94  func (m *ObjectIdMessage) GetObjEpoch() int32 {
    95  	if m != nil && m.ObjEpoch != nil {
    96  		return *m.ObjEpoch
    97  	}
    98  	return 0
    99  }
   100  
   101  type SecretServiceRequest struct {
   102  	Op       *SecretServiceRequestOperationType `protobuf:"varint,1,opt,name=op,enum=secret_service.SecretServiceRequestOperationType" json:"op,omitempty"`
   103  	SecretId *ObjectIdMessage                   `protobuf:"bytes,2,opt,name=secret_id" json:"secret_id,omitempty"`
   104  	// Fields for type: WRITE.
   105  	NewSecretType *string `protobuf:"bytes,3,opt,name=new_secret_type" json:"new_secret_type,omitempty"`
   106  	NewSecretVal  []byte  `protobuf:"bytes,4,opt,name=new_secret_val" json:"new_secret_val,omitempty"`
   107  	// Fields for type: CREATE (in addition to above fields).
   108  	NewSecretId      *ObjectIdMessage `protobuf:"bytes,5,opt,name=new_secret_id" json:"new_secret_id,omitempty"`
   109  	ProtectorId      *ObjectIdMessage `protobuf:"bytes,6,opt,name=protector_id" json:"protector_id,omitempty"`
   110  	XXX_unrecognized []byte           `json:"-"`
   111  }
   112  
   113  func (m *SecretServiceRequest) Reset()                    { *m = SecretServiceRequest{} }
   114  func (m *SecretServiceRequest) String() string            { return proto.CompactTextString(m) }
   115  func (*SecretServiceRequest) ProtoMessage()               {}
   116  func (*SecretServiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   117  
   118  func (m *SecretServiceRequest) GetOp() SecretServiceRequestOperationType {
   119  	if m != nil && m.Op != nil {
   120  		return *m.Op
   121  	}
   122  	return SecretServiceRequest_READ
   123  }
   124  
   125  func (m *SecretServiceRequest) GetSecretId() *ObjectIdMessage {
   126  	if m != nil {
   127  		return m.SecretId
   128  	}
   129  	return nil
   130  }
   131  
   132  func (m *SecretServiceRequest) GetNewSecretType() string {
   133  	if m != nil && m.NewSecretType != nil {
   134  		return *m.NewSecretType
   135  	}
   136  	return ""
   137  }
   138  
   139  func (m *SecretServiceRequest) GetNewSecretVal() []byte {
   140  	if m != nil {
   141  		return m.NewSecretVal
   142  	}
   143  	return nil
   144  }
   145  
   146  func (m *SecretServiceRequest) GetNewSecretId() *ObjectIdMessage {
   147  	if m != nil {
   148  		return m.NewSecretId
   149  	}
   150  	return nil
   151  }
   152  
   153  func (m *SecretServiceRequest) GetProtectorId() *ObjectIdMessage {
   154  	if m != nil {
   155  		return m.ProtectorId
   156  	}
   157  	return nil
   158  }
   159  
   160  type SecretServiceResponse struct {
   161  	ErrorMessage *string `protobuf:"bytes,1,opt,name=error_message" json:"error_message,omitempty"`
   162  	// Fields for response to READ.
   163  	SecretType       *string `protobuf:"bytes,2,opt,name=secret_type" json:"secret_type,omitempty"`
   164  	SecretVal        []byte  `protobuf:"bytes,3,opt,name=secret_val" json:"secret_val,omitempty"`
   165  	XXX_unrecognized []byte  `json:"-"`
   166  }
   167  
   168  func (m *SecretServiceResponse) Reset()                    { *m = SecretServiceResponse{} }
   169  func (m *SecretServiceResponse) String() string            { return proto.CompactTextString(m) }
   170  func (*SecretServiceResponse) ProtoMessage()               {}
   171  func (*SecretServiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   172  
   173  func (m *SecretServiceResponse) GetErrorMessage() string {
   174  	if m != nil && m.ErrorMessage != nil {
   175  		return *m.ErrorMessage
   176  	}
   177  	return ""
   178  }
   179  
   180  func (m *SecretServiceResponse) GetSecretType() string {
   181  	if m != nil && m.SecretType != nil {
   182  		return *m.SecretType
   183  	}
   184  	return ""
   185  }
   186  
   187  func (m *SecretServiceResponse) GetSecretVal() []byte {
   188  	if m != nil {
   189  		return m.SecretVal
   190  	}
   191  	return nil
   192  }
   193  
   194  func init() {
   195  	proto.RegisterType((*ObjectIdMessage)(nil), "secret_service.object_id_message")
   196  	proto.RegisterType((*SecretServiceRequest)(nil), "secret_service.secret_service_request")
   197  	proto.RegisterType((*SecretServiceResponse)(nil), "secret_service.secret_service_response")
   198  	proto.RegisterEnum("secret_service.SecretServiceRequestOperationType", SecretServiceRequestOperationType_name, SecretServiceRequestOperationType_value)
   199  }
   200  
   201  var fileDescriptor0 = []byte{
   202  	// 303 bytes of a gzipped FileDescriptorProto
   203  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x91, 0x3f, 0x4f, 0xc3, 0x30,
   204  	0x10, 0xc5, 0x15, 0xf7, 0x8f, 0xea, 0x6b, 0x13, 0x52, 0x23, 0xda, 0x8c, 0x25, 0x53, 0xa6, 0x0c,
   205  	0x15, 0x88, 0x2e, 0x0c, 0x15, 0xcd, 0x80, 0xc4, 0x54, 0x21, 0x21, 0x26, 0x2b, 0xa4, 0x27, 0x08,
   206  	0xa2, 0xb1, 0xb1, 0x4d, 0x11, 0xdf, 0x9b, 0x0f, 0x80, 0x1d, 0x65, 0x48, 0x5b, 0x86, 0x6e, 0xa7,
   207  	0x5f, 0xee, 0xbd, 0x77, 0x79, 0x06, 0x5f, 0xa3, 0xda, 0x95, 0x05, 0xa6, 0x52, 0x09, 0x23, 0x58,
   208  	0xa0, 0xb1, 0x50, 0x68, 0x78, 0x43, 0xe3, 0x05, 0x8c, 0xc5, 0xcb, 0x3b, 0x16, 0x86, 0x97, 0x1b,
   209  	0xbe, 0x45, 0xad, 0xf3, 0x57, 0x64, 0x21, 0x0c, 0x2c, 0xe4, 0x55, 0xbe, 0xc5, 0xc8, 0x9b, 0x91,
   210  	0x84, 0xb2, 0x31, 0x50, 0x47, 0x50, 0x8a, 0xe2, 0x2d, 0x22, 0x33, 0x2f, 0xe9, 0xc5, 0xbf, 0x04,
   211  	0x26, 0xfb, 0x66, 0x5c, 0xe1, 0xe7, 0x17, 0x6a, 0xc3, 0x96, 0x40, 0x84, 0xb4, 0x4a, 0x2f, 0x09,
   212  	0xe6, 0xd7, 0xe9, 0xfe, 0x52, 0xfa, 0xbf, 0x26, 0x15, 0x12, 0x55, 0x6e, 0x4a, 0x51, 0x71, 0xf3,
   213  	0x23, 0x91, 0x5d, 0x01, 0x6d, 0x16, 0xcb, 0x4d, 0x1d, 0x38, 0x9c, 0x5f, 0x1e, 0x3a, 0x1d, 0x1f,
   214  	0x3e, 0x85, 0xb3, 0x0a, 0xbf, 0x79, 0xb3, 0xe7, 0x8c, 0xa2, 0x8e, 0xd5, 0x52, 0x36, 0x81, 0xa0,
   215  	0xf5, 0x61, 0x97, 0x7f, 0x44, 0x5d, 0xcb, 0x47, 0x6c, 0x01, 0x7e, 0x8b, 0xdb, 0xa8, 0xde, 0xa9,
   216  	0x51, 0x37, 0x30, 0x72, 0x8d, 0x5a, 0x2a, 0x94, 0x13, 0xf6, 0x4f, 0x14, 0xc6, 0xb7, 0x10, 0x1c,
   217  	0xfc, 0xeb, 0x00, 0xba, 0xeb, 0x6c, 0xb9, 0x0a, 0x3d, 0x46, 0xa1, 0xf7, 0xb4, 0xbe, 0x7f, 0xcc,
   218  	0x42, 0xc2, 0x00, 0xfa, 0x77, 0x96, 0xda, 0xb9, 0xe3, 0xe6, 0x55, 0xf6, 0x90, 0xd9, 0xb9, 0x1b,
   219  	0x3f, 0xc3, 0xf4, 0xa8, 0x41, 0x2d, 0x45, 0xa5, 0x91, 0x5d, 0x80, 0x8f, 0x4a, 0xd9, 0x73, 0x9a,
   220  	0xa8, 0xfa, 0x05, 0x28, 0x3b, 0x87, 0x61, 0xbb, 0x10, 0x52, 0x43, 0xeb, 0xd9, 0x2a, 0xc3, 0x95,
   221  	0x34, 0xfa, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x5b, 0xd4, 0x7e, 0xb6, 0x2b, 0x02, 0x00, 0x00,
   222  }