| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: client/client.proto |
| |
| package client |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Client concept represents an end-user infra service that users interact with |
| // directly. e.g: CQ, Release testing. |
| // ClientId proto and companion protos are used for two purposes: |
| // 1) Coordinate configs across different internal sub services to achieve a |
| // certain property that's required by the end-user infra service. |
| // 2) Provide useful analytics of how the sub-services operate to fullfill |
| // requests from the end-user infra services. |
| // |
| // |
| // |
| // / |
| // --------------- 1:N / ----------- |
| // | Client | <---------| Profile | // Use for coordinate |
| // --------------- \ ----------- // behavioral configs |
| // ^ \ // of internal sub serivces |
| // | 1:N |
| // ____|______ |
| // / | \ |
| // --------- // Use for tracking/analytics |
| // |Request| // of how a request is fullfiled |
| // --------- // by internal sub services |
| // |
| // To encapsulate the concepts of Profiles & Requests within each Client, we |
| // design ProfileId & RequestId protos that are shareable between Client and |
| // infra sub services as simple as possible |
| // (mostly contain joinable id keys). |
| // This allows different Client implementation to define arbitrarily |
| // complex Profile & Request types without worrying about leaking those |
| // complexity to sub services. |
| // |
| type Client struct { |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| Id *ClientId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Client) Reset() { *m = Client{} } |
| func (m *Client) String() string { return proto.CompactTextString(m) } |
| func (*Client) ProtoMessage() {} |
| func (*Client) Descriptor() ([]byte, []int) { |
| return fileDescriptor_4d3551c163a1d198, []int{0} |
| } |
| |
| func (m *Client) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Client.Unmarshal(m, b) |
| } |
| func (m *Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Client.Marshal(b, m, deterministic) |
| } |
| func (m *Client) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Client.Merge(m, src) |
| } |
| func (m *Client) XXX_Size() int { |
| return xxx_messageInfo_Client.Size(m) |
| } |
| func (m *Client) XXX_DiscardUnknown() { |
| xxx_messageInfo_Client.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Client proto.InternalMessageInfo |
| |
| func (m *Client) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Client) GetId() *ClientId { |
| if m != nil { |
| return m.Id |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*Client)(nil), "client.Client") |
| } |
| |
| func init() { proto.RegisterFile("client/client.proto", fileDescriptor_4d3551c163a1d198) } |
| |
| var fileDescriptor_4d3551c163a1d198 = []byte{ |
| // 107 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xc9, 0x4c, |
| 0xcd, 0x2b, 0xd1, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x94, |
| 0x18, 0x8a, 0x64, 0x7c, 0x66, 0x0a, 0x44, 0x5e, 0xc9, 0x8e, 0x8b, 0xcd, 0x19, 0x2c, 0x24, 0x24, |
| 0xc4, 0xc5, 0x92, 0x97, 0x98, 0x9b, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x0b, |
| 0x29, 0x70, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe8, 0x41, 0x0d, |
| 0x86, 0xa8, 0xf7, 0x4c, 0x09, 0x62, 0xca, 0x4c, 0x49, 0x62, 0x03, 0x1b, 0x63, 0x0c, 0x08, 0x00, |
| 0x00, 0xff, 0xff, 0xb6, 0x87, 0x19, 0xa9, 0x7d, 0x00, 0x00, 0x00, |
| } |