+++ /dev/null
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// source: google/monitoring/v3/group_service.proto
-
-package monitoring
-
-import proto "github.com/golang/protobuf/proto"
-import fmt "fmt"
-import math "math"
-import _ "google.golang.org/genproto/googleapis/api/annotations"
-import google_api4 "google.golang.org/genproto/googleapis/api/monitoredres"
-import google_protobuf4 "github.com/golang/protobuf/ptypes/empty"
-
-import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
-)
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = proto.Marshal
-var _ = fmt.Errorf
-var _ = math.Inf
-
-// The `ListGroup` request.
-type ListGroupsRequest struct {
- // The project whose groups are to be listed. The format is
- // `"projects/{project_id_or_number}"`.
- Name string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"`
- // An optional filter consisting of a single group name. The filters limit the
- // groups returned based on their parent-child relationship with the specified
- // group. If no filter is specified, all groups are returned.
- //
- // Types that are valid to be assigned to Filter:
- // *ListGroupsRequest_ChildrenOfGroup
- // *ListGroupsRequest_AncestorsOfGroup
- // *ListGroupsRequest_DescendantsOfGroup
- Filter isListGroupsRequest_Filter `protobuf_oneof:"filter"`
- // A positive number that is the maximum number of results to return.
- PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
- // If this field is not empty then it must contain the `nextPageToken` value
- // returned by a previous call to this method. Using this field causes the
- // method to return additional results from the previous method call.
- PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
-}
-
-func (m *ListGroupsRequest) Reset() { *m = ListGroupsRequest{} }
-func (m *ListGroupsRequest) String() string { return proto.CompactTextString(m) }
-func (*ListGroupsRequest) ProtoMessage() {}
-func (*ListGroupsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
-
-type isListGroupsRequest_Filter interface {
- isListGroupsRequest_Filter()
-}
-
-type ListGroupsRequest_ChildrenOfGroup struct {
- ChildrenOfGroup string `protobuf:"bytes,2,opt,name=children_of_group,json=childrenOfGroup,oneof"`
-}
-type ListGroupsRequest_AncestorsOfGroup struct {
- AncestorsOfGroup string `protobuf:"bytes,3,opt,name=ancestors_of_group,json=ancestorsOfGroup,oneof"`
-}
-type ListGroupsRequest_DescendantsOfGroup struct {
- DescendantsOfGroup string `protobuf:"bytes,4,opt,name=descendants_of_group,json=descendantsOfGroup,oneof"`
-}
-
-func (*ListGroupsRequest_ChildrenOfGroup) isListGroupsRequest_Filter() {}
-func (*ListGroupsRequest_AncestorsOfGroup) isListGroupsRequest_Filter() {}
-func (*ListGroupsRequest_DescendantsOfGroup) isListGroupsRequest_Filter() {}
-
-func (m *ListGroupsRequest) GetFilter() isListGroupsRequest_Filter {
- if m != nil {
- return m.Filter
- }
- return nil
-}
-
-func (m *ListGroupsRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
-}
-
-func (m *ListGroupsRequest) GetChildrenOfGroup() string {
- if x, ok := m.GetFilter().(*ListGroupsRequest_ChildrenOfGroup); ok {
- return x.ChildrenOfGroup
- }
- return ""
-}
-
-func (m *ListGroupsRequest) GetAncestorsOfGroup() string {
- if x, ok := m.GetFilter().(*ListGroupsRequest_AncestorsOfGroup); ok {
- return x.AncestorsOfGroup
- }
- return ""
-}
-
-func (m *ListGroupsRequest) GetDescendantsOfGroup() string {
- if x, ok := m.GetFilter().(*ListGroupsRequest_DescendantsOfGroup); ok {
- return x.DescendantsOfGroup
- }
- return ""
-}
-
-func (m *ListGroupsRequest) GetPageSize() int32 {
- if m != nil {
- return m.PageSize
- }
- return 0
-}
-
-func (m *ListGroupsRequest) GetPageToken() string {
- if m != nil {
- return m.PageToken
- }
- return ""
-}
-
-// XXX_OneofFuncs is for the internal use of the proto package.
-func (*ListGroupsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
- return _ListGroupsRequest_OneofMarshaler, _ListGroupsRequest_OneofUnmarshaler, _ListGroupsRequest_OneofSizer, []interface{}{
- (*ListGroupsRequest_ChildrenOfGroup)(nil),
- (*ListGroupsRequest_AncestorsOfGroup)(nil),
- (*ListGroupsRequest_DescendantsOfGroup)(nil),
- }
-}
-
-func _ListGroupsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
- m := msg.(*ListGroupsRequest)
- // filter
- switch x := m.Filter.(type) {
- case *ListGroupsRequest_ChildrenOfGroup:
- b.EncodeVarint(2<<3 | proto.WireBytes)
- b.EncodeStringBytes(x.ChildrenOfGroup)
- case *ListGroupsRequest_AncestorsOfGroup:
- b.EncodeVarint(3<<3 | proto.WireBytes)
- b.EncodeStringBytes(x.AncestorsOfGroup)
- case *ListGroupsRequest_DescendantsOfGroup:
- b.EncodeVarint(4<<3 | proto.WireBytes)
- b.EncodeStringBytes(x.DescendantsOfGroup)
- case nil:
- default:
- return fmt.Errorf("ListGroupsRequest.Filter has unexpected type %T", x)
- }
- return nil
-}
-
-func _ListGroupsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
- m := msg.(*ListGroupsRequest)
- switch tag {
- case 2: // filter.children_of_group
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeStringBytes()
- m.Filter = &ListGroupsRequest_ChildrenOfGroup{x}
- return true, err
- case 3: // filter.ancestors_of_group
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeStringBytes()
- m.Filter = &ListGroupsRequest_AncestorsOfGroup{x}
- return true, err
- case 4: // filter.descendants_of_group
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeStringBytes()
- m.Filter = &ListGroupsRequest_DescendantsOfGroup{x}
- return true, err
- default:
- return false, nil
- }
-}
-
-func _ListGroupsRequest_OneofSizer(msg proto.Message) (n int) {
- m := msg.(*ListGroupsRequest)
- // filter
- switch x := m.Filter.(type) {
- case *ListGroupsRequest_ChildrenOfGroup:
- n += proto.SizeVarint(2<<3 | proto.WireBytes)
- n += proto.SizeVarint(uint64(len(x.ChildrenOfGroup)))
- n += len(x.ChildrenOfGroup)
- case *ListGroupsRequest_AncestorsOfGroup:
- n += proto.SizeVarint(3<<3 | proto.WireBytes)
- n += proto.SizeVarint(uint64(len(x.AncestorsOfGroup)))
- n += len(x.AncestorsOfGroup)
- case *ListGroupsRequest_DescendantsOfGroup:
- n += proto.SizeVarint(4<<3 | proto.WireBytes)
- n += proto.SizeVarint(uint64(len(x.DescendantsOfGroup)))
- n += len(x.DescendantsOfGroup)
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- return n
-}
-
-// The `ListGroups` response.
-type ListGroupsResponse struct {
- // The groups that match the specified filters.
- Group []*Group `protobuf:"bytes,1,rep,name=group" json:"group,omitempty"`
- // If there are more results than have been returned, then this field is set
- // to a non-empty value. To see the additional results,
- // use that value as `pageToken` in the next call to this method.
- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
-}
-
-func (m *ListGroupsResponse) Reset() { *m = ListGroupsResponse{} }
-func (m *ListGroupsResponse) String() string { return proto.CompactTextString(m) }
-func (*ListGroupsResponse) ProtoMessage() {}
-func (*ListGroupsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
-
-func (m *ListGroupsResponse) GetGroup() []*Group {
- if m != nil {
- return m.Group
- }
- return nil
-}
-
-func (m *ListGroupsResponse) GetNextPageToken() string {
- if m != nil {
- return m.NextPageToken
- }
- return ""
-}
-
-// The `GetGroup` request.
-type GetGroupRequest struct {
- // The group to retrieve. The format is
- // `"projects/{project_id_or_number}/groups/{group_id}"`.
- Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
-}
-
-func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} }
-func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) }
-func (*GetGroupRequest) ProtoMessage() {}
-func (*GetGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
-
-func (m *GetGroupRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
-}
-
-// The `CreateGroup` request.
-type CreateGroupRequest struct {
- // The project in which to create the group. The format is
- // `"projects/{project_id_or_number}"`.
- Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
- // A group definition. It is an error to define the `name` field because
- // the system assigns the name.
- Group *Group `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"`
- // If true, validate this request but do not create the group.
- ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly" json:"validate_only,omitempty"`
-}
-
-func (m *CreateGroupRequest) Reset() { *m = CreateGroupRequest{} }
-func (m *CreateGroupRequest) String() string { return proto.CompactTextString(m) }
-func (*CreateGroupRequest) ProtoMessage() {}
-func (*CreateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
-
-func (m *CreateGroupRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
-}
-
-func (m *CreateGroupRequest) GetGroup() *Group {
- if m != nil {
- return m.Group
- }
- return nil
-}
-
-func (m *CreateGroupRequest) GetValidateOnly() bool {
- if m != nil {
- return m.ValidateOnly
- }
- return false
-}
-
-// The `UpdateGroup` request.
-type UpdateGroupRequest struct {
- // The new definition of the group. All fields of the existing group,
- // excepting `name`, are replaced with the corresponding fields of this group.
- Group *Group `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"`
- // If true, validate this request but do not update the existing group.
- ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly" json:"validate_only,omitempty"`
-}
-
-func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} }
-func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) }
-func (*UpdateGroupRequest) ProtoMessage() {}
-func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
-
-func (m *UpdateGroupRequest) GetGroup() *Group {
- if m != nil {
- return m.Group
- }
- return nil
-}
-
-func (m *UpdateGroupRequest) GetValidateOnly() bool {
- if m != nil {
- return m.ValidateOnly
- }
- return false
-}
-
-// The `DeleteGroup` request. You can only delete a group if it has no children.
-type DeleteGroupRequest struct {
- // The group to delete. The format is
- // `"projects/{project_id_or_number}/groups/{group_id}"`.
- Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
-}
-
-func (m *DeleteGroupRequest) Reset() { *m = DeleteGroupRequest{} }
-func (m *DeleteGroupRequest) String() string { return proto.CompactTextString(m) }
-func (*DeleteGroupRequest) ProtoMessage() {}
-func (*DeleteGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
-
-func (m *DeleteGroupRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
-}
-
-// The `ListGroupMembers` request.
-type ListGroupMembersRequest struct {
- // The group whose members are listed. The format is
- // `"projects/{project_id_or_number}/groups/{group_id}"`.
- Name string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"`
- // A positive number that is the maximum number of results to return.
- PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
- // If this field is not empty then it must contain the `nextPageToken` value
- // returned by a previous call to this method. Using this field causes the
- // method to return additional results from the previous method call.
- PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
- // An optional [list filter](/monitoring/api/learn_more#filtering) describing
- // the members to be returned. The filter may reference the type, labels, and
- // metadata of monitored resources that comprise the group.
- // For example, to return only resources representing Compute Engine VM
- // instances, use this filter:
- //
- // resource.type = "gce_instance"
- Filter string `protobuf:"bytes,5,opt,name=filter" json:"filter,omitempty"`
- // An optional time interval for which results should be returned. Only
- // members that were part of the group during the specified interval are
- // included in the response. If no interval is provided then the group
- // membership over the last minute is returned.
- Interval *TimeInterval `protobuf:"bytes,6,opt,name=interval" json:"interval,omitempty"`
-}
-
-func (m *ListGroupMembersRequest) Reset() { *m = ListGroupMembersRequest{} }
-func (m *ListGroupMembersRequest) String() string { return proto.CompactTextString(m) }
-func (*ListGroupMembersRequest) ProtoMessage() {}
-func (*ListGroupMembersRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
-
-func (m *ListGroupMembersRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
-}
-
-func (m *ListGroupMembersRequest) GetPageSize() int32 {
- if m != nil {
- return m.PageSize
- }
- return 0
-}
-
-func (m *ListGroupMembersRequest) GetPageToken() string {
- if m != nil {
- return m.PageToken
- }
- return ""
-}
-
-func (m *ListGroupMembersRequest) GetFilter() string {
- if m != nil {
- return m.Filter
- }
- return ""
-}
-
-func (m *ListGroupMembersRequest) GetInterval() *TimeInterval {
- if m != nil {
- return m.Interval
- }
- return nil
-}
-
-// The `ListGroupMembers` response.
-type ListGroupMembersResponse struct {
- // A set of monitored resources in the group.
- Members []*google_api4.MonitoredResource `protobuf:"bytes,1,rep,name=members" json:"members,omitempty"`
- // If there are more results than have been returned, then this field is
- // set to a non-empty value. To see the additional results, use that value as
- // `pageToken` in the next call to this method.
- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
- // The total number of elements matching this request.
- TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize" json:"total_size,omitempty"`
-}
-
-func (m *ListGroupMembersResponse) Reset() { *m = ListGroupMembersResponse{} }
-func (m *ListGroupMembersResponse) String() string { return proto.CompactTextString(m) }
-func (*ListGroupMembersResponse) ProtoMessage() {}
-func (*ListGroupMembersResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
-
-func (m *ListGroupMembersResponse) GetMembers() []*google_api4.MonitoredResource {
- if m != nil {
- return m.Members
- }
- return nil
-}
-
-func (m *ListGroupMembersResponse) GetNextPageToken() string {
- if m != nil {
- return m.NextPageToken
- }
- return ""
-}
-
-func (m *ListGroupMembersResponse) GetTotalSize() int32 {
- if m != nil {
- return m.TotalSize
- }
- return 0
-}
-
-func init() {
- proto.RegisterType((*ListGroupsRequest)(nil), "google.monitoring.v3.ListGroupsRequest")
- proto.RegisterType((*ListGroupsResponse)(nil), "google.monitoring.v3.ListGroupsResponse")
- proto.RegisterType((*GetGroupRequest)(nil), "google.monitoring.v3.GetGroupRequest")
- proto.RegisterType((*CreateGroupRequest)(nil), "google.monitoring.v3.CreateGroupRequest")
- proto.RegisterType((*UpdateGroupRequest)(nil), "google.monitoring.v3.UpdateGroupRequest")
- proto.RegisterType((*DeleteGroupRequest)(nil), "google.monitoring.v3.DeleteGroupRequest")
- proto.RegisterType((*ListGroupMembersRequest)(nil), "google.monitoring.v3.ListGroupMembersRequest")
- proto.RegisterType((*ListGroupMembersResponse)(nil), "google.monitoring.v3.ListGroupMembersResponse")
-}
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ context.Context
-var _ grpc.ClientConn
-
-// 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.SupportPackageIsVersion4
-
-// Client API for GroupService service
-
-type GroupServiceClient interface {
- // Lists the existing groups.
- ListGroups(ctx context.Context, in *ListGroupsRequest, opts ...grpc.CallOption) (*ListGroupsResponse, error)
- // Gets a single group.
- GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*Group, error)
- // Creates a new group.
- CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*Group, error)
- // Updates an existing group.
- // You can change any group attributes except `name`.
- UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*Group, error)
- // Deletes an existing group.
- DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error)
- // Lists the monitored resources that are members of a group.
- ListGroupMembers(ctx context.Context, in *ListGroupMembersRequest, opts ...grpc.CallOption) (*ListGroupMembersResponse, error)
-}
-
-type groupServiceClient struct {
- cc *grpc.ClientConn
-}
-
-func NewGroupServiceClient(cc *grpc.ClientConn) GroupServiceClient {
- return &groupServiceClient{cc}
-}
-
-func (c *groupServiceClient) ListGroups(ctx context.Context, in *ListGroupsRequest, opts ...grpc.CallOption) (*ListGroupsResponse, error) {
- out := new(ListGroupsResponse)
- err := grpc.Invoke(ctx, "/google.monitoring.v3.GroupService/ListGroups", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *groupServiceClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*Group, error) {
- out := new(Group)
- err := grpc.Invoke(ctx, "/google.monitoring.v3.GroupService/GetGroup", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *groupServiceClient) CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*Group, error) {
- out := new(Group)
- err := grpc.Invoke(ctx, "/google.monitoring.v3.GroupService/CreateGroup", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *groupServiceClient) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*Group, error) {
- out := new(Group)
- err := grpc.Invoke(ctx, "/google.monitoring.v3.GroupService/UpdateGroup", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *groupServiceClient) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error) {
- out := new(google_protobuf4.Empty)
- err := grpc.Invoke(ctx, "/google.monitoring.v3.GroupService/DeleteGroup", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *groupServiceClient) ListGroupMembers(ctx context.Context, in *ListGroupMembersRequest, opts ...grpc.CallOption) (*ListGroupMembersResponse, error) {
- out := new(ListGroupMembersResponse)
- err := grpc.Invoke(ctx, "/google.monitoring.v3.GroupService/ListGroupMembers", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-// Server API for GroupService service
-
-type GroupServiceServer interface {
- // Lists the existing groups.
- ListGroups(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error)
- // Gets a single group.
- GetGroup(context.Context, *GetGroupRequest) (*Group, error)
- // Creates a new group.
- CreateGroup(context.Context, *CreateGroupRequest) (*Group, error)
- // Updates an existing group.
- // You can change any group attributes except `name`.
- UpdateGroup(context.Context, *UpdateGroupRequest) (*Group, error)
- // Deletes an existing group.
- DeleteGroup(context.Context, *DeleteGroupRequest) (*google_protobuf4.Empty, error)
- // Lists the monitored resources that are members of a group.
- ListGroupMembers(context.Context, *ListGroupMembersRequest) (*ListGroupMembersResponse, error)
-}
-
-func RegisterGroupServiceServer(s *grpc.Server, srv GroupServiceServer) {
- s.RegisterService(&_GroupService_serviceDesc, srv)
-}
-
-func _GroupService_ListGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListGroupsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GroupServiceServer).ListGroups(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.monitoring.v3.GroupService/ListGroups",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GroupServiceServer).ListGroups(ctx, req.(*ListGroupsRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _GroupService_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.(GroupServiceServer).GetGroup(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.monitoring.v3.GroupService/GetGroup",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GroupServiceServer).GetGroup(ctx, req.(*GetGroupRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _GroupService_CreateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateGroupRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GroupServiceServer).CreateGroup(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.monitoring.v3.GroupService/CreateGroup",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GroupServiceServer).CreateGroup(ctx, req.(*CreateGroupRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _GroupService_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.(GroupServiceServer).UpdateGroup(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.monitoring.v3.GroupService/UpdateGroup",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GroupServiceServer).UpdateGroup(ctx, req.(*UpdateGroupRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _GroupService_DeleteGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteGroupRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GroupServiceServer).DeleteGroup(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.monitoring.v3.GroupService/DeleteGroup",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GroupServiceServer).DeleteGroup(ctx, req.(*DeleteGroupRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _GroupService_ListGroupMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListGroupMembersRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GroupServiceServer).ListGroupMembers(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.monitoring.v3.GroupService/ListGroupMembers",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GroupServiceServer).ListGroupMembers(ctx, req.(*ListGroupMembersRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-var _GroupService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "google.monitoring.v3.GroupService",
- HandlerType: (*GroupServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ListGroups",
- Handler: _GroupService_ListGroups_Handler,
- },
- {
- MethodName: "GetGroup",
- Handler: _GroupService_GetGroup_Handler,
- },
- {
- MethodName: "CreateGroup",
- Handler: _GroupService_CreateGroup_Handler,
- },
- {
- MethodName: "UpdateGroup",
- Handler: _GroupService_UpdateGroup_Handler,
- },
- {
- MethodName: "DeleteGroup",
- Handler: _GroupService_DeleteGroup_Handler,
- },
- {
- MethodName: "ListGroupMembers",
- Handler: _GroupService_ListGroupMembers_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "google/monitoring/v3/group_service.proto",
-}
-
-func init() { proto.RegisterFile("google/monitoring/v3/group_service.proto", fileDescriptor2) }
-
-var fileDescriptor2 = []byte{
- // 818 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xdb, 0x46,
- 0x10, 0x2e, 0x2d, 0x59, 0x96, 0x46, 0x36, 0x6c, 0x2f, 0x0c, 0x57, 0xa0, 0x7f, 0xa0, 0xd2, 0x3f,
- 0x15, 0xdc, 0x9a, 0x44, 0xa5, 0x43, 0x81, 0x16, 0xf5, 0xc1, 0x6e, 0x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