Created
November 6, 2018 20:38
-
-
Save zeevallin/651152c2761ae157971ff96c24b67eff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package common.v1.identity; | |
option go_package = "protos/common/v1/identity"; | |
// Contains identity data, should be part of each service procedure | |
message Identity { | |
string UserSecret = 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code generated by protoc-gen-go. DO NOT EDIT. | |
// source: common/v1/identity/identity.proto | |
package identity // import "protos/common/v1/identity" | |
import proto "github.com/golang/protobuf/proto" | |
import fmt "fmt" | |
import math "math" | |
// 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.ProtoPackageIsVersion2 // please upgrade the proto package | |
// Contains identity data, should be part of each service procedure | |
type Identity struct { | |
UserSecret string `protobuf:"bytes,1,opt,name=UserSecret,json=userSecret,proto3" json:"UserSecret,omitempty"` | |
XXX_NoUnkeyedLiteral struct{} `json:"-"` | |
XXX_unrecognized []byte `json:"-"` | |
XXX_sizecache int32 `json:"-"` | |
} | |
func (m *Identity) Reset() { *m = Identity{} } | |
func (m *Identity) String() string { return proto.CompactTextString(m) } | |
func (*Identity) ProtoMessage() {} | |
func (*Identity) Descriptor() ([]byte, []int) { | |
return fileDescriptor_identity_6662e736b252df6c, []int{0} | |
} | |
func (m *Identity) XXX_Unmarshal(b []byte) error { | |
return xxx_messageInfo_Identity.Unmarshal(m, b) | |
} | |
func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | |
return xxx_messageInfo_Identity.Marshal(b, m, deterministic) | |
} | |
func (dst *Identity) XXX_Merge(src proto.Message) { | |
xxx_messageInfo_Identity.Merge(dst, src) | |
} | |
func (m *Identity) XXX_Size() int { | |
return xxx_messageInfo_Identity.Size(m) | |
} | |
func (m *Identity) XXX_DiscardUnknown() { | |
xxx_messageInfo_Identity.DiscardUnknown(m) | |
} | |
var xxx_messageInfo_Identity proto.InternalMessageInfo | |
func (m *Identity) GetUserSecret() string { | |
if m != nil { | |
return m.UserSecret | |
} | |
return "" | |
} | |
func init() { | |
proto.RegisterType((*Identity)(nil), "common.v1.identity.Identity") | |
} | |
func init() { | |
proto.RegisterFile("common/v1/identity/identity.proto", fileDescriptor_identity_6662e736b252df6c) | |
} | |
var fileDescriptor_identity_6662e736b252df6c = []byte{ | |
// 109 bytes of a gzipped FileDescriptorProto | |
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0xcf, 0xcd, | |
0xcd, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0xcf, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, 0x2c, 0xa9, 0x84, 0x33, | |
0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x84, 0x20, 0x4a, 0xf4, 0xca, 0x0c, 0xf5, 0x60, 0x32, | |
0x4a, 0x5a, 0x5c, 0x1c, 0x9e, 0x50, 0xb6, 0x90, 0x1c, 0x17, 0x57, 0x68, 0x71, 0x6a, 0x51, 0x70, | |
0x6a, 0x72, 0x51, 0x6a, 0x89, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x57, 0x29, 0x5c, 0xc4, | |
0x49, 0x3a, 0x4a, 0x12, 0x6c, 0x50, 0xb1, 0x3e, 0xa6, 0x5d, 0x49, 0x6c, 0x60, 0x29, 0x63, 0x40, | |
0x00, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x7f, 0x88, 0x3d, 0x88, 0x00, 0x00, 0x00, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment