| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto |
| |
| package clouderrorreporting |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| ) |
| |
| // 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 |
| |
| // A request to return an individual group. |
| type GetGroupRequest struct { |
| // Required. The group resource name. Written as |
| // <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. |
| // Call |
| // <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> |
| // <code>groupStats.list</code></a> to return a list of groups belonging to |
| // this project. |
| // |
| // Example: <code>projects/my-project-123/groups/my-group</code> |
| GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} } |
| func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetGroupRequest) ProtoMessage() {} |
| func (*GetGroupRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_cada5d349d61e784, []int{0} |
| } |
| |
| func (m *GetGroupRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetGroupRequest.Unmarshal(m, b) |
| } |
| func (m *GetGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetGroupRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetGroupRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetGroupRequest.Merge(m, src) |
| } |
| func (m *GetGroupRequest) XXX_Size() int { |
| return xxx_messageInfo_GetGroupRequest.Size(m) |
| } |
| func (m *GetGroupRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetGroupRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetGroupRequest proto.InternalMessageInfo |
| |
| func (m *GetGroupRequest) GetGroupName() string { |
| if m != nil { |
| return m.GroupName |
| } |
| return "" |
| } |
| |
| // A request to replace the existing data for the given group. |
| type UpdateGroupRequest struct { |
| // Required. The group which replaces the resource on the server. |
| Group *ErrorGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} } |
| func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) } |
| func (*UpdateGroupRequest) ProtoMessage() {} |
| func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_cada5d349d61e784, []int{1} |
| } |
| |
| func (m *UpdateGroupRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_UpdateGroupRequest.Unmarshal(m, b) |
| } |
| func (m *UpdateGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_UpdateGroupRequest.Marshal(b, m, deterministic) |
| } |
| func (m *UpdateGroupRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_UpdateGroupRequest.Merge(m, src) |
| } |
| func (m *UpdateGroupRequest) XXX_Size() int { |
| return xxx_messageInfo_UpdateGroupRequest.Size(m) |
| } |
| func (m *UpdateGroupRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_UpdateGroupRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_UpdateGroupRequest proto.InternalMessageInfo |
| |
| func (m *UpdateGroupRequest) GetGroup() *ErrorGroup { |
| if m != nil { |
| return m.Group |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*GetGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest") |
| proto.RegisterType((*UpdateGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", fileDescriptor_cada5d349d61e784) |
| } |
| |
| var fileDescriptor_cada5d349d61e784 = []byte{ |
| // 502 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x3d, 0x6f, 0xd3, 0x40, |
| 0x18, 0x96, 0x53, 0x81, 0xe8, 0x75, 0x40, 0x78, 0xe0, 0xc3, 0x42, 0x02, 0x85, 0x05, 0x5a, 0xf5, |
| 0x4e, 0x09, 0x42, 0xa0, 0xf2, 0x69, 0xa3, 0x2a, 0x1b, 0xaa, 0x02, 0x64, 0x40, 0x11, 0xd1, 0xc5, |
| 0x79, 0xeb, 0x18, 0xd9, 0x7e, 0x8f, 0xbb, 0x73, 0x32, 0x20, 0x16, 0xfe, 0x02, 0xff, 0x82, 0x7f, |
| 0xc1, 0x48, 0x47, 0xd8, 0x3a, 0x75, 0xe0, 0x47, 0xa0, 0xb2, 0x20, 0xdf, 0x39, 0x8d, 0x9b, 0x06, |
| 0x81, 0xb3, 0xde, 0xf3, 0xde, 0xf3, 0x75, 0xef, 0x91, 0xdd, 0x08, 0x31, 0x4a, 0x80, 0x8d, 0x60, |
| 0xa2, 0x11, 0x13, 0xc5, 0xc2, 0x04, 0xf3, 0x11, 0x48, 0x89, 0x52, 0x82, 0x40, 0xa9, 0xe3, 0x2c, |
| 0x62, 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b1, 0xd7, 0x0a, 0x8a, 0xcb, 0x07, 0xb3, 0xa9, 0xbe, 0x99, 0xea, 0x9f, 0x9e, 0xea, |
| 0xf7, 0xac, 0xc4, 0xf0, 0xbc, 0x71, 0x76, 0xf7, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x2f, |
| 0x47, 0xcc, 0xf7, 0x04, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion6 |
| |
| // ErrorGroupServiceClient is the client API for ErrorGroupService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type ErrorGroupServiceClient interface { |
| // Get the specified group. |
| GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) |
| // Replace the data for the specified group. |
| // Fails if the group does not exist. |
| UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) |
| } |
| |
| type errorGroupServiceClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewErrorGroupServiceClient(cc grpc.ClientConnInterface) ErrorGroupServiceClient { |
| return &errorGroupServiceClient{cc} |
| } |
| |
| func (c *errorGroupServiceClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) { |
| out := new(ErrorGroup) |
| err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *errorGroupServiceClient) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) { |
| out := new(ErrorGroup) |
| err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // ErrorGroupServiceServer is the server API for ErrorGroupService service. |
| type ErrorGroupServiceServer interface { |
| // Get the specified group. |
| GetGroup(context.Context, *GetGroupRequest) (*ErrorGroup, error) |
| // Replace the data for the specified group. |
| // Fails if the group does not exist. |
| UpdateGroup(context.Context, *UpdateGroupRequest) (*ErrorGroup, error) |
| } |
| |
| // UnimplementedErrorGroupServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedErrorGroupServiceServer struct { |
| } |
| |
| func (*UnimplementedErrorGroupServiceServer) GetGroup(ctx context.Context, req *GetGroupRequest) (*ErrorGroup, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetGroup not implemented") |
| } |
| func (*UnimplementedErrorGroupServiceServer) UpdateGroup(ctx context.Context, req *UpdateGroupRequest) (*ErrorGroup, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateGroup not implemented") |
| } |
| |
| func RegisterErrorGroupServiceServer(s *grpc.Server, srv ErrorGroupServiceServer) { |
| s.RegisterService(&_ErrorGroupService_serviceDesc, srv) |
| } |
| |
| func _ErrorGroupService_GetGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetGroupRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ErrorGroupServiceServer).GetGroup(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ErrorGroupServiceServer).GetGroup(ctx, req.(*GetGroupRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _ErrorGroupService_UpdateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateGroupRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, req.(*UpdateGroupRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _ErrorGroupService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.devtools.clouderrorreporting.v1beta1.ErrorGroupService", |
| HandlerType: (*ErrorGroupServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetGroup", |
| Handler: _ErrorGroupService_GetGroup_Handler, |
| }, |
| { |
| MethodName: "UpdateGroup", |
| Handler: _ErrorGroupService_UpdateGroup_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", |
| } |