1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto 3 4package clouderrorreporting 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16) 17 18// Reference imports to suppress errors if they are not otherwise used. 19var _ = proto.Marshal 20var _ = fmt.Errorf 21var _ = math.Inf 22 23// This is a compile-time assertion to ensure that this generated file 24// is compatible with the proto package it is being compiled against. 25// A compilation error at this line likely means your copy of the 26// proto package needs to be updated. 27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29// A request to return an individual group. 30type GetGroupRequest struct { 31 // [Required] The group resource name. Written as 32 // <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. 33 // Call 34 // <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> 35 // <code>groupStats.list</code></a> to return a list of groups belonging to 36 // this project. 37 // 38 // Example: <code>projects/my-project-123/groups/my-group</code> 39 GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` 40 XXX_NoUnkeyedLiteral struct{} `json:"-"` 41 XXX_unrecognized []byte `json:"-"` 42 XXX_sizecache int32 `json:"-"` 43} 44 45func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} } 46func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) } 47func (*GetGroupRequest) ProtoMessage() {} 48func (*GetGroupRequest) Descriptor() ([]byte, []int) { 49 return fileDescriptor_cada5d349d61e784, []int{0} 50} 51 52func (m *GetGroupRequest) XXX_Unmarshal(b []byte) error { 53 return xxx_messageInfo_GetGroupRequest.Unmarshal(m, b) 54} 55func (m *GetGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 56 return xxx_messageInfo_GetGroupRequest.Marshal(b, m, deterministic) 57} 58func (m *GetGroupRequest) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_GetGroupRequest.Merge(m, src) 60} 61func (m *GetGroupRequest) XXX_Size() int { 62 return xxx_messageInfo_GetGroupRequest.Size(m) 63} 64func (m *GetGroupRequest) XXX_DiscardUnknown() { 65 xxx_messageInfo_GetGroupRequest.DiscardUnknown(m) 66} 67 68var xxx_messageInfo_GetGroupRequest proto.InternalMessageInfo 69 70func (m *GetGroupRequest) GetGroupName() string { 71 if m != nil { 72 return m.GroupName 73 } 74 return "" 75} 76 77// A request to replace the existing data for the given group. 78type UpdateGroupRequest struct { 79 // [Required] The group which replaces the resource on the server. 80 Group *ErrorGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` 81 XXX_NoUnkeyedLiteral struct{} `json:"-"` 82 XXX_unrecognized []byte `json:"-"` 83 XXX_sizecache int32 `json:"-"` 84} 85 86func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} } 87func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) } 88func (*UpdateGroupRequest) ProtoMessage() {} 89func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { 90 return fileDescriptor_cada5d349d61e784, []int{1} 91} 92 93func (m *UpdateGroupRequest) XXX_Unmarshal(b []byte) error { 94 return xxx_messageInfo_UpdateGroupRequest.Unmarshal(m, b) 95} 96func (m *UpdateGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 97 return xxx_messageInfo_UpdateGroupRequest.Marshal(b, m, deterministic) 98} 99func (m *UpdateGroupRequest) XXX_Merge(src proto.Message) { 100 xxx_messageInfo_UpdateGroupRequest.Merge(m, src) 101} 102func (m *UpdateGroupRequest) XXX_Size() int { 103 return xxx_messageInfo_UpdateGroupRequest.Size(m) 104} 105func (m *UpdateGroupRequest) XXX_DiscardUnknown() { 106 xxx_messageInfo_UpdateGroupRequest.DiscardUnknown(m) 107} 108 109var xxx_messageInfo_UpdateGroupRequest proto.InternalMessageInfo 110 111func (m *UpdateGroupRequest) GetGroup() *ErrorGroup { 112 if m != nil { 113 return m.Group 114 } 115 return nil 116} 117 118func init() { 119 proto.RegisterType((*GetGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest") 120 proto.RegisterType((*UpdateGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest") 121} 122 123func init() { 124 proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", fileDescriptor_cada5d349d61e784) 125} 126 127var fileDescriptor_cada5d349d61e784 = []byte{ 128 // 398 bytes of a gzipped FileDescriptorProto 129 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcb, 0x4a, 0x23, 0x41, 130 0x14, 0x86, 0xe9, 0x0c, 0x33, 0x4c, 0x2a, 0x8b, 0x61, 0x6a, 0x31, 0x0c, 0xcd, 0x0c, 0x48, 0xdc, 131 0x68, 0x02, 0x55, 0x76, 0x5c, 0x18, 0xbc, 0x20, 0x44, 0x42, 0x56, 0x4a, 0x88, 0x98, 0x85, 0x04, 132 0x43, 0xa5, 0x53, 0x14, 0x2d, 0xdd, 0x75, 0xda, 0xea, 0x4a, 0x36, 0xe2, 0xc6, 0x07, 0x70, 0xe3, 133 0x5b, 0xb8, 0xf6, 0x05, 0xdc, 0xba, 0xf5, 0x15, 0x7c, 0x07, 0xb7, 0xd2, 0x55, 0xb9, 0x98, 0x8b, 134 0x60, 0x67, 0x7b, 0x2e, 0xff, 0xff, 0xd5, 0x5f, 0x07, 0xd5, 0x05, 0x80, 0x08, 0x39, 0xed, 0xf3, 135 0xa1, 0x06, 0x08, 0x13, 0xea, 0x87, 0x30, 0xe8, 0x73, 0xa5, 0x40, 0x29, 0x1e, 0x83, 0xd2, 0x81, 136 0x14, 0x74, 0xe8, 0xf5, 0xb8, 0x66, 0x1e, 0x35, 0xe5, 0xae, 0x50, 0x30, 0x88, 0xbb, 0x09, 0x57, 137 0xc3,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21, 0xb5, 0x37, 0x07, 0xa5, 0x87, 0x93, 0xc5, 0xb8, 0xf6, 0x67, 0xe1, 149 0x07, 0x9b, 0xe9, 0xcd, 0x35, 0x9d, 0xf3, 0x8b, 0x91, 0x8c, 0x80, 0x90, 0x49, 0x41, 0x40, 0x09, 150 0x2a, 0xb8, 0x34, 0x17, 0x49, 0x6d, 0x8b, 0xc5, 0x41, 0xf2, 0xa5, 0x73, 0xde, 0x5b, 0xd2, 0x7b, 151 0xc8, 0xad, 0x37, 0xac, 0xc1, 0x51, 0xda, 0xb4, 0x09, 0xb4, 0x26, 0x7c, 0x6d, 0xaf, 0x96, 0x6e, 152 0x3e, 0x8f, 0xa7, 0x3a, 0x66, 0xaa, 0x33, 0x3b, 0xd5, 0x69, 0x5b, 0xfd, 0xde, 0x0f, 0x83, 0xb5, 153 0xfd, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x0a, 0xfa, 0x93, 0xf6, 0x03, 0x00, 0x00, 154} 155 156// Reference imports to suppress errors if they are not otherwise used. 157var _ context.Context 158var _ grpc.ClientConn 159 160// This is a compile-time assertion to ensure that this generated file 161// is compatible with the grpc package it is being compiled against. 162const _ = grpc.SupportPackageIsVersion4 163 164// ErrorGroupServiceClient is the client API for ErrorGroupService service. 165// 166// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 167type ErrorGroupServiceClient interface { 168 // Get the specified group. 169 GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) 170 // Replace the data for the specified group. 171 // Fails if the group does not exist. 172 UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) 173} 174 175type errorGroupServiceClient struct { 176 cc *grpc.ClientConn 177} 178 179func NewErrorGroupServiceClient(cc *grpc.ClientConn) ErrorGroupServiceClient { 180 return &errorGroupServiceClient{cc} 181} 182 183func (c *errorGroupServiceClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) { 184 out := new(ErrorGroup) 185 err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", in, out, opts...) 186 if err != nil { 187 return nil, err 188 } 189 return out, nil 190} 191 192func (c *errorGroupServiceClient) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) { 193 out := new(ErrorGroup) 194 err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", in, out, opts...) 195 if err != nil { 196 return nil, err 197 } 198 return out, nil 199} 200 201// ErrorGroupServiceServer is the server API for ErrorGroupService service. 202type ErrorGroupServiceServer interface { 203 // Get the specified group. 204 GetGroup(context.Context, *GetGroupRequest) (*ErrorGroup, error) 205 // Replace the data for the specified group. 206 // Fails if the group does not exist. 207 UpdateGroup(context.Context, *UpdateGroupRequest) (*ErrorGroup, error) 208} 209 210// UnimplementedErrorGroupServiceServer can be embedded to have forward compatible implementations. 211type UnimplementedErrorGroupServiceServer struct { 212} 213 214func (*UnimplementedErrorGroupServiceServer) GetGroup(ctx context.Context, req *GetGroupRequest) (*ErrorGroup, error) { 215 return nil, status.Errorf(codes.Unimplemented, "method GetGroup not implemented") 216} 217func (*UnimplementedErrorGroupServiceServer) UpdateGroup(ctx context.Context, req *UpdateGroupRequest) (*ErrorGroup, error) { 218 return nil, status.Errorf(codes.Unimplemented, "method UpdateGroup not implemented") 219} 220 221func RegisterErrorGroupServiceServer(s *grpc.Server, srv ErrorGroupServiceServer) { 222 s.RegisterService(&_ErrorGroupService_serviceDesc, srv) 223} 224 225func _ErrorGroupService_GetGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 226 in := new(GetGroupRequest) 227 if err := dec(in); err != nil { 228 return nil, err 229 } 230 if interceptor == nil { 231 return srv.(ErrorGroupServiceServer).GetGroup(ctx, in) 232 } 233 info := &grpc.UnaryServerInfo{ 234 Server: srv, 235 FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", 236 } 237 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 238 return srv.(ErrorGroupServiceServer).GetGroup(ctx, req.(*GetGroupRequest)) 239 } 240 return interceptor(ctx, in, info, handler) 241} 242 243func _ErrorGroupService_UpdateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 244 in := new(UpdateGroupRequest) 245 if err := dec(in); err != nil { 246 return nil, err 247 } 248 if interceptor == nil { 249 return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, in) 250 } 251 info := &grpc.UnaryServerInfo{ 252 Server: srv, 253 FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", 254 } 255 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 256 return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, req.(*UpdateGroupRequest)) 257 } 258 return interceptor(ctx, in, info, handler) 259} 260 261var _ErrorGroupService_serviceDesc = grpc.ServiceDesc{ 262 ServiceName: "google.devtools.clouderrorreporting.v1beta1.ErrorGroupService", 263 HandlerType: (*ErrorGroupServiceServer)(nil), 264 Methods: []grpc.MethodDesc{ 265 { 266 MethodName: "GetGroup", 267 Handler: _ErrorGroupService_GetGroup_Handler, 268 }, 269 { 270 MethodName: "UpdateGroup", 271 Handler: _ErrorGroupService_UpdateGroup_Handler, 272 }, 273 }, 274 Streams: []grpc.StreamDesc{}, 275 Metadata: "google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", 276} 277