OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / devtools / clouderrorreporting / v1beta1 / error_group_service.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
3
4 package clouderrorreporting
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11 import (
12         context "golang.org/x/net/context"
13         grpc "google.golang.org/grpc"
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 // A request to return an individual group.
22 type GetGroupRequest struct {
23         // [Required] The group resource name. Written as
24         // <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
25         // Call
26         // <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
27         // <code>groupStats.list</code></a> to return a list of groups belonging to
28         // this project.
29         //
30         // Example: <code>projects/my-project-123/groups/my-group</code>
31         GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
32 }
33
34 func (m *GetGroupRequest) Reset()                    { *m = GetGroupRequest{} }
35 func (m *GetGroupRequest) String() string            { return proto.CompactTextString(m) }
36 func (*GetGroupRequest) ProtoMessage()               {}
37 func (*GetGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
38
39 func (m *GetGroupRequest) GetGroupName() string {
40         if m != nil {
41                 return m.GroupName
42         }
43         return ""
44 }
45
46 // A request to replace the existing data for the given group.
47 type UpdateGroupRequest struct {
48         // [Required] The group which replaces the resource on the server.
49         Group *ErrorGroup `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
50 }
51
52 func (m *UpdateGroupRequest) Reset()                    { *m = UpdateGroupRequest{} }
53 func (m *UpdateGroupRequest) String() string            { return proto.CompactTextString(m) }
54 func (*UpdateGroupRequest) ProtoMessage()               {}
55 func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
56
57 func (m *UpdateGroupRequest) GetGroup() *ErrorGroup {
58         if m != nil {
59                 return m.Group
60         }
61         return nil
62 }
63
64 func init() {
65         proto.RegisterType((*GetGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest")
66         proto.RegisterType((*UpdateGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest")
67 }
68
69 // Reference imports to suppress errors if they are not otherwise used.
70 var _ context.Context
71 var _ grpc.ClientConn
72
73 // This is a compile-time assertion to ensure that this generated file
74 // is compatible with the grpc package it is being compiled against.
75 const _ = grpc.SupportPackageIsVersion4
76
77 // Client API for ErrorGroupService service
78
79 type ErrorGroupServiceClient interface {
80         // Get the specified group.
81         GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error)
82         // Replace the data for the specified group.
83         // Fails if the group does not exist.
84         UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error)
85 }
86
87 type errorGroupServiceClient struct {
88         cc *grpc.ClientConn
89 }
90
91 func NewErrorGroupServiceClient(cc *grpc.ClientConn) ErrorGroupServiceClient {
92         return &errorGroupServiceClient{cc}
93 }
94
95 func (c *errorGroupServiceClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) {
96         out := new(ErrorGroup)
97         err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", in, out, c.cc, opts...)
98         if err != nil {
99                 return nil, err
100         }
101         return out, nil
102 }
103
104 func (c *errorGroupServiceClient) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) {
105         out := new(ErrorGroup)
106         err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", in, out, c.cc, opts...)
107         if err != nil {
108                 return nil, err
109         }
110         return out, nil
111 }
112
113 // Server API for ErrorGroupService service
114
115 type ErrorGroupServiceServer interface {
116         // Get the specified group.
117         GetGroup(context.Context, *GetGroupRequest) (*ErrorGroup, error)
118         // Replace the data for the specified group.
119         // Fails if the group does not exist.
120         UpdateGroup(context.Context, *UpdateGroupRequest) (*ErrorGroup, error)
121 }
122
123 func RegisterErrorGroupServiceServer(s *grpc.Server, srv ErrorGroupServiceServer) {
124         s.RegisterService(&_ErrorGroupService_serviceDesc, srv)
125 }
126
127 func _ErrorGroupService_GetGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
128         in := new(GetGroupRequest)
129         if err := dec(in); err != nil {
130                 return nil, err
131         }
132         if interceptor == nil {
133                 return srv.(ErrorGroupServiceServer).GetGroup(ctx, in)
134         }
135         info := &grpc.UnaryServerInfo{
136                 Server:     srv,
137                 FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup",
138         }
139         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
140                 return srv.(ErrorGroupServiceServer).GetGroup(ctx, req.(*GetGroupRequest))
141         }
142         return interceptor(ctx, in, info, handler)
143 }
144
145 func _ErrorGroupService_UpdateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
146         in := new(UpdateGroupRequest)
147         if err := dec(in); err != nil {
148                 return nil, err
149         }
150         if interceptor == nil {
151                 return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, in)
152         }
153         info := &grpc.UnaryServerInfo{
154                 Server:     srv,
155                 FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup",
156         }
157         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
158                 return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, req.(*UpdateGroupRequest))
159         }
160         return interceptor(ctx, in, info, handler)
161 }
162
163 var _ErrorGroupService_serviceDesc = grpc.ServiceDesc{
164         ServiceName: "google.devtools.clouderrorreporting.v1beta1.ErrorGroupService",
165         HandlerType: (*ErrorGroupServiceServer)(nil),
166         Methods: []grpc.MethodDesc{
167                 {
168                         MethodName: "GetGroup",
169                         Handler:    _ErrorGroupService_GetGroup_Handler,
170                 },
171                 {
172                         MethodName: "UpdateGroup",
173                         Handler:    _ErrorGroupService_UpdateGroup_Handler,
174                 },
175         },
176         Streams:  []grpc.StreamDesc{},
177         Metadata: "google/devtools/clouderrorreporting/v1beta1/error_group_service.proto",
178 }
179
180 func init() {
181         proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", fileDescriptor1)
182 }
183
184 var fileDescriptor1 = []byte{
185         // 381 bytes of a gzipped FileDescriptorProto
186         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x4f, 0x4a, 0x03, 0x31,
187         0x18, 0xc5, 0x99, 0x8a, 0x62, 0xd3, 0x85, 0x98, 0x85, 0xc8, 0xa0, 0x20, 0x75, 0xa3, 0x2d, 0x24,
188         0x4e, 0x5d, 0x58, 0xfc, 0x83, 0x50, 0x29, 0x5d, 0x29, 0xa5, 0xa2, 0x0b, 0x17, 0x96, 0x74, 0x1a,
189         0xc2, 0xc8, 0x4c, 0xbe, 0x31, 0x93, 0x76, 0x23, 0x6e, 0x3c, 0x80, 0x1b, 0x6f, 0xe1, 0xda, 0x0b,
190         0x78, 0x04, 0xf1, 0x0a, 0x1e, 0x44, 0x26, 0xe9, 0x1f, 0x6d, 0x2b, 0x38, 0xdd, 0xbe, 0xe4, 0x7b,
191         0xef, 0x97, 0x97, 0x0f, 0xd5, 0x05, 0x80, 0x08, 0x39, 0xed, 0xf2, 0xbe, 0x06, 0x08, 0x13, 0xea,
192         0x87, 0xd0, 0xeb, 0x72, 0xa5, 0x40, 0x29, 0x1e, 0x83, 0xd2, 0x81, 0x14, 0xb4, 0xef, 0x75, 0xb8,
193         0x66, 0x1e, 0x35, 0x72, 0x5b, 0x28, 0xe8, 0xc5, 0xed, 0x84, 0xab, 0x7e, 0xe0, 0x73, 0x12, 0x2b,
194         0xd0, 0x80, 0xcb, 0xd6, 0x86, 0x0c, 0x6d, 0xc8, 0x0c, 0x1b, 0x32, 0xb0, 0x71, 0x37, 0x06, 0x99,
195         0x2c, 0x0e, 0x28, 0x93, 0x12, 0x34, 0xd3, 0x01, 0xc8, 0xc4, 0x5a, 0xb9, 0xd5, 0x2c, 0x44, 0x3e,
196         0x44, 0x11, 0x48, 0x3b, 0x59, 0xdc, 0x43, 0x2b, 0x0d, 0xae, 0x1b, 0x29, 0x5e, 0x8b, 0xdf, 0xf7,
197         0x78, 0xa2, 0xf1, 0x26, 0x42, 0x16, 0x57, 0xb2, 0x88, 0xaf, 0x3b, 0x5b, 0xce, 0x4e, 0xbe, 0x95,
198         0x37, 0xca, 0x05, 0x8b, 0x78, 0xd1, 0x47, 0xf8, 0x2a, 0xee, 0x32, 0xcd, 0x7f, 0x0d, 0x9d, 0xa3,
199         0x45, 0x73, 0xc5, 0xdc, 0x2f, 0x54, 0x0e, 0x48, 0x86, 0xc7, 0x91, 0x7a, 0x2a, 0x5b, 0x3b, 0xeb,
200         0x52, 0x79, 0x5e, 0x40, 0xab, 0x63, 0xf5, 0xd2, 0xf6, 0x86, 0xdf, 0x1c, 0xb4, 0x3c, 0xa4, 0xc5,
201         0xc7, 0x99, 0x22, 0x26, 0x1e, 0xe9, 0xce, 0x0b, 0x58, 0xf4, 0x9e, 0x3e, 0xbf, 0x5e, 0x72, 0x65,
202         0xbc, 0x3b, 0xea, 0xf3, 0x61, 0xdc, 0xd6, 0x49, 0xac, 0xe0, 0x8e, 0xfb, 0x3a, 0xa1, 0x25, 0x6a,
203         0xd4, 0x84, 0x96, 0x1e, 0xf1, 0xbb, 0x83, 0x0a, 0x3f, 0x2a, 0xc3, 0xa7, 0x99, 0xb2, 0xa7, 0xcb,
204         0x9e, 0x1f, 0xbe, 0x6a, 0xe0, 0x2b, 0xee, 0x24, 0x3c, 0xf9, 0x13, 0xfe, 0xd0, 0x7e, 0x48, 0xed,
205         0xc3, 0x41, 0xe9, 0xe2, 0x64, 0x09, 0xae, 0xad, 0x4d, 0xfd, 0x60, 0x33, 0xdd, 0xb9, 0xa6, 0x73,
206         0x73, 0x3b, 0xb0, 0x11, 0x10, 0x32, 0x29, 0x08, 0x28, 0x41, 0x05, 0x97, 0x66, 0x23, 0xa9, 0x3d,
207         0x62, 0x71, 0x90, 0xfc, 0x6b, 0x9d, 0x8f, 0x66, 0x9c, 0xbd, 0xe6, 0xb6, 0x1b, 0x36, 0xe0, 0x2c,
208         0x3d, 0xb4, 0x0d, 0xb4, 0x46, 0x7c, 0xd7, 0x5e, 0x2d, 0x9d, 0xec, 0x2c, 0x99, 0xc0, 0xfd, 0xef,
209         0x00, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xb7, 0x37, 0x79, 0xd0, 0x03, 0x00, 0x00,
210 }