blob: fb881f913de0fe5ec933778ecf713a90feba7f1a [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/monitoring/v3/notification_service.proto
package monitoring // import "google.golang.org/genproto/googleapis/monitoring/v3"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
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
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// The `ListNotificationChannelDescriptors` request.
type ListNotificationChannelDescriptorsRequest struct {
// The REST resource name of the parent from which to retrieve
// the notification channel descriptors. The expected syntax is:
//
// projects/[PROJECT_ID]
//
// Note that this names the parent container in which to look for the
// descriptors; to retrieve a single descriptor by name, use the
// [GetNotificationChannelDescriptor][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor]
// operation, instead.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// The maximum number of results to return in a single response. If
// not set to a positive number, a reasonable value will be chosen by the
// service.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// If non-empty, `page_token` must contain a value returned as the
// `next_page_token` in a previous response to request the next set
// of results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNotificationChannelDescriptorsRequest) Reset() {
*m = ListNotificationChannelDescriptorsRequest{}
}
func (m *ListNotificationChannelDescriptorsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNotificationChannelDescriptorsRequest) ProtoMessage() {}
func (*ListNotificationChannelDescriptorsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{0}
}
func (m *ListNotificationChannelDescriptorsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNotificationChannelDescriptorsRequest.Unmarshal(m, b)
}
func (m *ListNotificationChannelDescriptorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNotificationChannelDescriptorsRequest.Marshal(b, m, deterministic)
}
func (dst *ListNotificationChannelDescriptorsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNotificationChannelDescriptorsRequest.Merge(dst, src)
}
func (m *ListNotificationChannelDescriptorsRequest) XXX_Size() int {
return xxx_messageInfo_ListNotificationChannelDescriptorsRequest.Size(m)
}
func (m *ListNotificationChannelDescriptorsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListNotificationChannelDescriptorsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListNotificationChannelDescriptorsRequest proto.InternalMessageInfo
func (m *ListNotificationChannelDescriptorsRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ListNotificationChannelDescriptorsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListNotificationChannelDescriptorsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// The `ListNotificationChannelDescriptors` response.
type ListNotificationChannelDescriptorsResponse struct {
// The monitored resource descriptors supported for the specified
// project, optionally filtered.
ChannelDescriptors []*NotificationChannelDescriptor `protobuf:"bytes,1,rep,name=channel_descriptors,json=channelDescriptors,proto3" json:"channel_descriptors,omitempty"`
// If not empty, indicates that there may be more results that match
// the request. Use the value in the `page_token` field in a
// subsequent request to fetch the next set of results. If empty,
// all results have been returned.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNotificationChannelDescriptorsResponse) Reset() {
*m = ListNotificationChannelDescriptorsResponse{}
}
func (m *ListNotificationChannelDescriptorsResponse) String() string {
return proto.CompactTextString(m)
}
func (*ListNotificationChannelDescriptorsResponse) ProtoMessage() {}
func (*ListNotificationChannelDescriptorsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{1}
}
func (m *ListNotificationChannelDescriptorsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNotificationChannelDescriptorsResponse.Unmarshal(m, b)
}
func (m *ListNotificationChannelDescriptorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNotificationChannelDescriptorsResponse.Marshal(b, m, deterministic)
}
func (dst *ListNotificationChannelDescriptorsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNotificationChannelDescriptorsResponse.Merge(dst, src)
}
func (m *ListNotificationChannelDescriptorsResponse) XXX_Size() int {
return xxx_messageInfo_ListNotificationChannelDescriptorsResponse.Size(m)
}
func (m *ListNotificationChannelDescriptorsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListNotificationChannelDescriptorsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListNotificationChannelDescriptorsResponse proto.InternalMessageInfo
func (m *ListNotificationChannelDescriptorsResponse) GetChannelDescriptors() []*NotificationChannelDescriptor {
if m != nil {
return m.ChannelDescriptors
}
return nil
}
func (m *ListNotificationChannelDescriptorsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// The `GetNotificationChannelDescriptor` response.
type GetNotificationChannelDescriptorRequest struct {
// The channel type for which to execute the request. The format is
// `projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}`.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNotificationChannelDescriptorRequest) Reset() {
*m = GetNotificationChannelDescriptorRequest{}
}
func (m *GetNotificationChannelDescriptorRequest) String() string { return proto.CompactTextString(m) }
func (*GetNotificationChannelDescriptorRequest) ProtoMessage() {}
func (*GetNotificationChannelDescriptorRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{2}
}
func (m *GetNotificationChannelDescriptorRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNotificationChannelDescriptorRequest.Unmarshal(m, b)
}
func (m *GetNotificationChannelDescriptorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNotificationChannelDescriptorRequest.Marshal(b, m, deterministic)
}
func (dst *GetNotificationChannelDescriptorRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNotificationChannelDescriptorRequest.Merge(dst, src)
}
func (m *GetNotificationChannelDescriptorRequest) XXX_Size() int {
return xxx_messageInfo_GetNotificationChannelDescriptorRequest.Size(m)
}
func (m *GetNotificationChannelDescriptorRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetNotificationChannelDescriptorRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetNotificationChannelDescriptorRequest proto.InternalMessageInfo
func (m *GetNotificationChannelDescriptorRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The `CreateNotificationChannel` request.
type CreateNotificationChannelRequest struct {
// The project on which to execute the request. The format is:
//
// projects/[PROJECT_ID]
//
// Note that this names the container into which the channel will be
// written. This does not name the newly created channel. The resulting
// channel's name will have a normalized version of this field as a prefix,
// but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// The definition of the `NotificationChannel` to create.
NotificationChannel *NotificationChannel `protobuf:"bytes,2,opt,name=notification_channel,json=notificationChannel,proto3" json:"notification_channel,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateNotificationChannelRequest) Reset() { *m = CreateNotificationChannelRequest{} }
func (m *CreateNotificationChannelRequest) String() string { return proto.CompactTextString(m) }
func (*CreateNotificationChannelRequest) ProtoMessage() {}
func (*CreateNotificationChannelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{3}
}
func (m *CreateNotificationChannelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateNotificationChannelRequest.Unmarshal(m, b)
}
func (m *CreateNotificationChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateNotificationChannelRequest.Marshal(b, m, deterministic)
}
func (dst *CreateNotificationChannelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateNotificationChannelRequest.Merge(dst, src)
}
func (m *CreateNotificationChannelRequest) XXX_Size() int {
return xxx_messageInfo_CreateNotificationChannelRequest.Size(m)
}
func (m *CreateNotificationChannelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateNotificationChannelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateNotificationChannelRequest proto.InternalMessageInfo
func (m *CreateNotificationChannelRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CreateNotificationChannelRequest) GetNotificationChannel() *NotificationChannel {
if m != nil {
return m.NotificationChannel
}
return nil
}
// The `ListNotificationChannels` request.
type ListNotificationChannelsRequest struct {
// The project on which to execute the request. The format is
// `projects/[PROJECT_ID]`. That is, this names the container
// in which to look for the notification channels; it does not name a
// specific channel. To query a specific channel by REST resource name, use
// the
// [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation.
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// If provided, this field specifies the criteria that must be met by
// notification channels to be included in the response.
//
// For more details, see [sorting and
// filtering](/monitoring/api/v3/sorting-and-filtering).
Filter string `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
// A comma-separated list of fields by which to sort the result. Supports
// the same set of fields as in `filter`. Entries can be prefixed with
// a minus sign to sort in descending rather than ascending order.
//
// For more details, see [sorting and
// filtering](/monitoring/api/v3/sorting-and-filtering).
OrderBy string `protobuf:"bytes,7,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// The maximum number of results to return in a single response. If
// not set to a positive number, a reasonable value will be chosen by the
// service.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// If non-empty, `page_token` must contain a value returned as the
// `next_page_token` in a previous response to request the next set
// of results.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNotificationChannelsRequest) Reset() { *m = ListNotificationChannelsRequest{} }
func (m *ListNotificationChannelsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNotificationChannelsRequest) ProtoMessage() {}
func (*ListNotificationChannelsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{4}
}
func (m *ListNotificationChannelsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNotificationChannelsRequest.Unmarshal(m, b)
}
func (m *ListNotificationChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNotificationChannelsRequest.Marshal(b, m, deterministic)
}
func (dst *ListNotificationChannelsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNotificationChannelsRequest.Merge(dst, src)
}
func (m *ListNotificationChannelsRequest) XXX_Size() int {
return xxx_messageInfo_ListNotificationChannelsRequest.Size(m)
}
func (m *ListNotificationChannelsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListNotificationChannelsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListNotificationChannelsRequest proto.InternalMessageInfo
func (m *ListNotificationChannelsRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ListNotificationChannelsRequest) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func (m *ListNotificationChannelsRequest) GetOrderBy() string {
if m != nil {
return m.OrderBy
}
return ""
}
func (m *ListNotificationChannelsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListNotificationChannelsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// The `ListNotificationChannels` response.
type ListNotificationChannelsResponse struct {
// The notification channels defined for the specified project.
NotificationChannels []*NotificationChannel `protobuf:"bytes,3,rep,name=notification_channels,json=notificationChannels,proto3" json:"notification_channels,omitempty"`
// If not empty, indicates that there may be more results that match
// the request. Use the value in the `page_token` field in a
// subsequent request to fetch the next set of results. If empty,
// all results have been returned.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNotificationChannelsResponse) Reset() { *m = ListNotificationChannelsResponse{} }
func (m *ListNotificationChannelsResponse) String() string { return proto.CompactTextString(m) }
func (*ListNotificationChannelsResponse) ProtoMessage() {}
func (*ListNotificationChannelsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{5}
}
func (m *ListNotificationChannelsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNotificationChannelsResponse.Unmarshal(m, b)
}
func (m *ListNotificationChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNotificationChannelsResponse.Marshal(b, m, deterministic)
}
func (dst *ListNotificationChannelsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNotificationChannelsResponse.Merge(dst, src)
}
func (m *ListNotificationChannelsResponse) XXX_Size() int {
return xxx_messageInfo_ListNotificationChannelsResponse.Size(m)
}
func (m *ListNotificationChannelsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListNotificationChannelsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListNotificationChannelsResponse proto.InternalMessageInfo
func (m *ListNotificationChannelsResponse) GetNotificationChannels() []*NotificationChannel {
if m != nil {
return m.NotificationChannels
}
return nil
}
func (m *ListNotificationChannelsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// The `GetNotificationChannel` request.
type GetNotificationChannelRequest struct {
// The channel for which to execute the request. The format is
// `projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]`.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNotificationChannelRequest) Reset() { *m = GetNotificationChannelRequest{} }
func (m *GetNotificationChannelRequest) String() string { return proto.CompactTextString(m) }
func (*GetNotificationChannelRequest) ProtoMessage() {}
func (*GetNotificationChannelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{6}
}
func (m *GetNotificationChannelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNotificationChannelRequest.Unmarshal(m, b)
}
func (m *GetNotificationChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNotificationChannelRequest.Marshal(b, m, deterministic)
}
func (dst *GetNotificationChannelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNotificationChannelRequest.Merge(dst, src)
}
func (m *GetNotificationChannelRequest) XXX_Size() int {
return xxx_messageInfo_GetNotificationChannelRequest.Size(m)
}
func (m *GetNotificationChannelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetNotificationChannelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetNotificationChannelRequest proto.InternalMessageInfo
func (m *GetNotificationChannelRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The `UpdateNotificationChannel` request.
type UpdateNotificationChannelRequest struct {
// The fields to update.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// A description of the changes to be applied to the specified
// notification channel. The description must provide a definition for
// fields to be updated; the names of these fields should also be
// included in the `update_mask`.
NotificationChannel *NotificationChannel `protobuf:"bytes,3,opt,name=notification_channel,json=notificationChannel,proto3" json:"notification_channel,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateNotificationChannelRequest) Reset() { *m = UpdateNotificationChannelRequest{} }
func (m *UpdateNotificationChannelRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateNotificationChannelRequest) ProtoMessage() {}
func (*UpdateNotificationChannelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{7}
}
func (m *UpdateNotificationChannelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateNotificationChannelRequest.Unmarshal(m, b)
}
func (m *UpdateNotificationChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateNotificationChannelRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateNotificationChannelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateNotificationChannelRequest.Merge(dst, src)
}
func (m *UpdateNotificationChannelRequest) XXX_Size() int {
return xxx_messageInfo_UpdateNotificationChannelRequest.Size(m)
}
func (m *UpdateNotificationChannelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateNotificationChannelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateNotificationChannelRequest proto.InternalMessageInfo
func (m *UpdateNotificationChannelRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
func (m *UpdateNotificationChannelRequest) GetNotificationChannel() *NotificationChannel {
if m != nil {
return m.NotificationChannel
}
return nil
}
// The `DeleteNotificationChannel` request.
type DeleteNotificationChannelRequest struct {
// The channel for which to execute the request. The format is
// `projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]`.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// If true, the notification channel will be deleted regardless of its
// use in alert policies (the policies will be updated to remove the
// channel). If false, channels that are still referenced by an existing
// alerting policy will fail to be deleted in a delete operation.
Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteNotificationChannelRequest) Reset() { *m = DeleteNotificationChannelRequest{} }
func (m *DeleteNotificationChannelRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteNotificationChannelRequest) ProtoMessage() {}
func (*DeleteNotificationChannelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{8}
}
func (m *DeleteNotificationChannelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteNotificationChannelRequest.Unmarshal(m, b)
}
func (m *DeleteNotificationChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteNotificationChannelRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteNotificationChannelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteNotificationChannelRequest.Merge(dst, src)
}
func (m *DeleteNotificationChannelRequest) XXX_Size() int {
return xxx_messageInfo_DeleteNotificationChannelRequest.Size(m)
}
func (m *DeleteNotificationChannelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteNotificationChannelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteNotificationChannelRequest proto.InternalMessageInfo
func (m *DeleteNotificationChannelRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DeleteNotificationChannelRequest) GetForce() bool {
if m != nil {
return m.Force
}
return false
}
// The `SendNotificationChannelVerificationCode` request.
type SendNotificationChannelVerificationCodeRequest struct {
// The notification channel to which to send a verification code.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SendNotificationChannelVerificationCodeRequest) Reset() {
*m = SendNotificationChannelVerificationCodeRequest{}
}
func (m *SendNotificationChannelVerificationCodeRequest) String() string {
return proto.CompactTextString(m)
}
func (*SendNotificationChannelVerificationCodeRequest) ProtoMessage() {}
func (*SendNotificationChannelVerificationCodeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{9}
}
func (m *SendNotificationChannelVerificationCodeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendNotificationChannelVerificationCodeRequest.Unmarshal(m, b)
}
func (m *SendNotificationChannelVerificationCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendNotificationChannelVerificationCodeRequest.Marshal(b, m, deterministic)
}
func (dst *SendNotificationChannelVerificationCodeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendNotificationChannelVerificationCodeRequest.Merge(dst, src)
}
func (m *SendNotificationChannelVerificationCodeRequest) XXX_Size() int {
return xxx_messageInfo_SendNotificationChannelVerificationCodeRequest.Size(m)
}
func (m *SendNotificationChannelVerificationCodeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SendNotificationChannelVerificationCodeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SendNotificationChannelVerificationCodeRequest proto.InternalMessageInfo
func (m *SendNotificationChannelVerificationCodeRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The `GetNotificationChannelVerificationCode` request.
type GetNotificationChannelVerificationCodeRequest struct {
// The notification channel for which a verification code is to be generated
// and retrieved. This must name a channel that is already verified; if
// the specified channel is not verified, the request will fail.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The desired expiration time. If specified, the API will guarantee that
// the returned code will not be valid after the specified timestamp;
// however, the API cannot guarantee that the returned code will be
// valid for at least as long as the requested time (the API puts an upper
// bound on the amount of time for which a code may be valid). If omitted,
// a default expiration will be used, which may be less than the max
// permissible expiration (so specifying an expiration may extend the
// code's lifetime over omitting an expiration, even though the API does
// impose an upper limit on the maximum expiration that is permitted).
ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNotificationChannelVerificationCodeRequest) Reset() {
*m = GetNotificationChannelVerificationCodeRequest{}
}
func (m *GetNotificationChannelVerificationCodeRequest) String() string {
return proto.CompactTextString(m)
}
func (*GetNotificationChannelVerificationCodeRequest) ProtoMessage() {}
func (*GetNotificationChannelVerificationCodeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{10}
}
func (m *GetNotificationChannelVerificationCodeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNotificationChannelVerificationCodeRequest.Unmarshal(m, b)
}
func (m *GetNotificationChannelVerificationCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNotificationChannelVerificationCodeRequest.Marshal(b, m, deterministic)
}
func (dst *GetNotificationChannelVerificationCodeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNotificationChannelVerificationCodeRequest.Merge(dst, src)
}
func (m *GetNotificationChannelVerificationCodeRequest) XXX_Size() int {
return xxx_messageInfo_GetNotificationChannelVerificationCodeRequest.Size(m)
}
func (m *GetNotificationChannelVerificationCodeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetNotificationChannelVerificationCodeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetNotificationChannelVerificationCodeRequest proto.InternalMessageInfo
func (m *GetNotificationChannelVerificationCodeRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GetNotificationChannelVerificationCodeRequest) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
return nil
}
// The `GetNotificationChannelVerificationCode` request.
type GetNotificationChannelVerificationCodeResponse struct {
// The verification code, which may be used to verify other channels
// that have an equivalent identity (i.e. other channels of the same
// type with the same fingerprint such as other email channels with
// the same email address or other sms channels with the same number).
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// The expiration time associated with the code that was returned. If
// an expiration was provided in the request, this is the minimum of the
// requested expiration in the request and the max permitted expiration.
ExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNotificationChannelVerificationCodeResponse) Reset() {
*m = GetNotificationChannelVerificationCodeResponse{}
}
func (m *GetNotificationChannelVerificationCodeResponse) String() string {
return proto.CompactTextString(m)
}
func (*GetNotificationChannelVerificationCodeResponse) ProtoMessage() {}
func (*GetNotificationChannelVerificationCodeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{11}
}
func (m *GetNotificationChannelVerificationCodeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNotificationChannelVerificationCodeResponse.Unmarshal(m, b)
}
func (m *GetNotificationChannelVerificationCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNotificationChannelVerificationCodeResponse.Marshal(b, m, deterministic)
}
func (dst *GetNotificationChannelVerificationCodeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNotificationChannelVerificationCodeResponse.Merge(dst, src)
}
func (m *GetNotificationChannelVerificationCodeResponse) XXX_Size() int {
return xxx_messageInfo_GetNotificationChannelVerificationCodeResponse.Size(m)
}
func (m *GetNotificationChannelVerificationCodeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetNotificationChannelVerificationCodeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetNotificationChannelVerificationCodeResponse proto.InternalMessageInfo
func (m *GetNotificationChannelVerificationCodeResponse) GetCode() string {
if m != nil {
return m.Code
}
return ""
}
func (m *GetNotificationChannelVerificationCodeResponse) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
return nil
}
// The `VerifyNotificationChannel` request.
type VerifyNotificationChannelRequest struct {
// The notification channel to verify.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The verification code that was delivered to the channel as
// a result of invoking the `SendNotificationChannelVerificationCode` API
// method or that was retrieved from a verified channel via
// `GetNotificationChannelVerificationCode`. For example, one might have
// "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
// guaranteed that the code is valid UTF-8; one should not
// make any assumptions regarding the structure or format of the code).
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VerifyNotificationChannelRequest) Reset() { *m = VerifyNotificationChannelRequest{} }
func (m *VerifyNotificationChannelRequest) String() string { return proto.CompactTextString(m) }
func (*VerifyNotificationChannelRequest) ProtoMessage() {}
func (*VerifyNotificationChannelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notification_service_5eb7c3d594392714, []int{12}
}
func (m *VerifyNotificationChannelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VerifyNotificationChannelRequest.Unmarshal(m, b)
}
func (m *VerifyNotificationChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VerifyNotificationChannelRequest.Marshal(b, m, deterministic)
}
func (dst *VerifyNotificationChannelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_VerifyNotificationChannelRequest.Merge(dst, src)
}
func (m *VerifyNotificationChannelRequest) XXX_Size() int {
return xxx_messageInfo_VerifyNotificationChannelRequest.Size(m)
}
func (m *VerifyNotificationChannelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_VerifyNotificationChannelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_VerifyNotificationChannelRequest proto.InternalMessageInfo
func (m *VerifyNotificationChannelRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *VerifyNotificationChannelRequest) GetCode() string {
if m != nil {
return m.Code
}
return ""
}
func init() {
proto.RegisterType((*ListNotificationChannelDescriptorsRequest)(nil), "google.monitoring.v3.ListNotificationChannelDescriptorsRequest")
proto.RegisterType((*ListNotificationChannelDescriptorsResponse)(nil), "google.monitoring.v3.ListNotificationChannelDescriptorsResponse")
proto.RegisterType((*GetNotificationChannelDescriptorRequest)(nil), "google.monitoring.v3.GetNotificationChannelDescriptorRequest")
proto.RegisterType((*CreateNotificationChannelRequest)(nil), "google.monitoring.v3.CreateNotificationChannelRequest")
proto.RegisterType((*ListNotificationChannelsRequest)(nil), "google.monitoring.v3.ListNotificationChannelsRequest")
proto.RegisterType((*ListNotificationChannelsResponse)(nil), "google.monitoring.v3.ListNotificationChannelsResponse")
proto.RegisterType((*GetNotificationChannelRequest)(nil), "google.monitoring.v3.GetNotificationChannelRequest")
proto.RegisterType((*UpdateNotificationChannelRequest)(nil), "google.monitoring.v3.UpdateNotificationChannelRequest")
proto.RegisterType((*DeleteNotificationChannelRequest)(nil), "google.monitoring.v3.DeleteNotificationChannelRequest")
proto.RegisterType((*SendNotificationChannelVerificationCodeRequest)(nil), "google.monitoring.v3.SendNotificationChannelVerificationCodeRequest")
proto.RegisterType((*GetNotificationChannelVerificationCodeRequest)(nil), "google.monitoring.v3.GetNotificationChannelVerificationCodeRequest")
proto.RegisterType((*GetNotificationChannelVerificationCodeResponse)(nil), "google.monitoring.v3.GetNotificationChannelVerificationCodeResponse")
proto.RegisterType((*VerifyNotificationChannelRequest)(nil), "google.monitoring.v3.VerifyNotificationChannelRequest")
}
// 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
// NotificationChannelServiceClient is the client API for NotificationChannelService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NotificationChannelServiceClient interface {
// Lists the descriptors for supported channel types. The use of descriptors
// makes it possible for new channel types to be dynamically added.
ListNotificationChannelDescriptors(ctx context.Context, in *ListNotificationChannelDescriptorsRequest, opts ...grpc.CallOption) (*ListNotificationChannelDescriptorsResponse, error)
// Gets a single channel descriptor. The descriptor indicates which fields
// are expected / permitted for a notification channel of the given type.
GetNotificationChannelDescriptor(ctx context.Context, in *GetNotificationChannelDescriptorRequest, opts ...grpc.CallOption) (*NotificationChannelDescriptor, error)
// Lists the notification channels that have been created for the project.
ListNotificationChannels(ctx context.Context, in *ListNotificationChannelsRequest, opts ...grpc.CallOption) (*ListNotificationChannelsResponse, error)
// Gets a single notification channel. The channel includes the relevant
// configuration details with which the channel was created. However, the
// response may truncate or omit passwords, API keys, or other private key
// matter and thus the response may not be 100% identical to the information
// that was supplied in the call to the create method.
GetNotificationChannel(ctx context.Context, in *GetNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error)
// Creates a new notification channel, representing a single notification
// endpoint such as an email address, SMS number, or pagerduty service.
CreateNotificationChannel(ctx context.Context, in *CreateNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error)
// Updates a notification channel. Fields not specified in the field mask
// remain unchanged.
UpdateNotificationChannel(ctx context.Context, in *UpdateNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error)
// Deletes a notification channel.
DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Causes a verification code to be delivered to the channel. The code
// can then be supplied in `VerifyNotificationChannel` to verify the channel.
SendNotificationChannelVerificationCode(ctx context.Context, in *SendNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Requests a verification code for an already verified channel that can then
// be used in a call to VerifyNotificationChannel() on a different channel
// with an equivalent identity in the same or in a different project. This
// makes it possible to copy a channel between projects without requiring
// manual reverification of the channel. If the channel is not in the
// verified state, this method will fail (in other words, this may only be
// used if the SendNotificationChannelVerificationCode and
// VerifyNotificationChannel paths have already been used to put the given
// channel into the verified state).
//
// There is no guarantee that the verification codes returned by this method
// will be of a similar structure or form as the ones that are delivered
// to the channel via SendNotificationChannelVerificationCode; while
// VerifyNotificationChannel() will recognize both the codes delivered via
// SendNotificationChannelVerificationCode() and returned from
// GetNotificationChannelVerificationCode(), it is typically the case that
// the verification codes delivered via
// SendNotificationChannelVerificationCode() will be shorter and also
// have a shorter expiration (e.g. codes such as "G-123456") whereas
// GetVerificationCode() will typically return a much longer, websafe base
// 64 encoded string that has a longer expiration time.
GetNotificationChannelVerificationCode(ctx context.Context, in *GetNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*GetNotificationChannelVerificationCodeResponse, error)
// Verifies a `NotificationChannel` by proving receipt of the code
// delivered to the channel as a result of calling
// `SendNotificationChannelVerificationCode`.
VerifyNotificationChannel(ctx context.Context, in *VerifyNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error)
}
type notificationChannelServiceClient struct {
cc *grpc.ClientConn
}
func NewNotificationChannelServiceClient(cc *grpc.ClientConn) NotificationChannelServiceClient {
return &notificationChannelServiceClient{cc}
}
func (c *notificationChannelServiceClient) ListNotificationChannelDescriptors(ctx context.Context, in *ListNotificationChannelDescriptorsRequest, opts ...grpc.CallOption) (*ListNotificationChannelDescriptorsResponse, error) {
out := new(ListNotificationChannelDescriptorsResponse)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/ListNotificationChannelDescriptors", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) GetNotificationChannelDescriptor(ctx context.Context, in *GetNotificationChannelDescriptorRequest, opts ...grpc.CallOption) (*NotificationChannelDescriptor, error) {
out := new(NotificationChannelDescriptor)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelDescriptor", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) ListNotificationChannels(ctx context.Context, in *ListNotificationChannelsRequest, opts ...grpc.CallOption) (*ListNotificationChannelsResponse, error) {
out := new(ListNotificationChannelsResponse)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/ListNotificationChannels", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) GetNotificationChannel(ctx context.Context, in *GetNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error) {
out := new(NotificationChannel)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/GetNotificationChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) CreateNotificationChannel(ctx context.Context, in *CreateNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error) {
out := new(NotificationChannel)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/CreateNotificationChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) UpdateNotificationChannel(ctx context.Context, in *UpdateNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error) {
out := new(NotificationChannel)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/UpdateNotificationChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) SendNotificationChannelVerificationCode(ctx context.Context, in *SendNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) GetNotificationChannelVerificationCode(ctx context.Context, in *GetNotificationChannelVerificationCodeRequest, opts ...grpc.CallOption) (*GetNotificationChannelVerificationCodeResponse, error) {
out := new(GetNotificationChannelVerificationCodeResponse)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelVerificationCode", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *notificationChannelServiceClient) VerifyNotificationChannel(ctx context.Context, in *VerifyNotificationChannelRequest, opts ...grpc.CallOption) (*NotificationChannel, error) {
out := new(NotificationChannel)
err := c.cc.Invoke(ctx, "/google.monitoring.v3.NotificationChannelService/VerifyNotificationChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NotificationChannelServiceServer is the server API for NotificationChannelService service.
type NotificationChannelServiceServer interface {
// Lists the descriptors for supported channel types. The use of descriptors
// makes it possible for new channel types to be dynamically added.
ListNotificationChannelDescriptors(context.Context, *ListNotificationChannelDescriptorsRequest) (*ListNotificationChannelDescriptorsResponse, error)
// Gets a single channel descriptor. The descriptor indicates which fields
// are expected / permitted for a notification channel of the given type.
GetNotificationChannelDescriptor(context.Context, *GetNotificationChannelDescriptorRequest) (*NotificationChannelDescriptor, error)
// Lists the notification channels that have been created for the project.
ListNotificationChannels(context.Context, *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error)
// Gets a single notification channel. The channel includes the relevant
// configuration details with which the channel was created. However, the
// response may truncate or omit passwords, API keys, or other private key
// matter and thus the response may not be 100% identical to the information
// that was supplied in the call to the create method.
GetNotificationChannel(context.Context, *GetNotificationChannelRequest) (*NotificationChannel, error)
// Creates a new notification channel, representing a single notification
// endpoint such as an email address, SMS number, or pagerduty service.
CreateNotificationChannel(context.Context, *CreateNotificationChannelRequest) (*NotificationChannel, error)
// Updates a notification channel. Fields not specified in the field mask
// remain unchanged.
UpdateNotificationChannel(context.Context, *UpdateNotificationChannelRequest) (*NotificationChannel, error)
// Deletes a notification channel.
DeleteNotificationChannel(context.Context, *DeleteNotificationChannelRequest) (*empty.Empty, error)
// Causes a verification code to be delivered to the channel. The code
// can then be supplied in `VerifyNotificationChannel` to verify the channel.
SendNotificationChannelVerificationCode(context.Context, *SendNotificationChannelVerificationCodeRequest) (*empty.Empty, error)
// Requests a verification code for an already verified channel that can then
// be used in a call to VerifyNotificationChannel() on a different channel
// with an equivalent identity in the same or in a different project. This
// makes it possible to copy a channel between projects without requiring
// manual reverification of the channel. If the channel is not in the
// verified state, this method will fail (in other words, this may only be
// used if the SendNotificationChannelVerificationCode and
// VerifyNotificationChannel paths have already been used to put the given
// channel into the verified state).
//
// There is no guarantee that the verification codes returned by this method
// will be of a similar structure or form as the ones that are delivered
// to the channel via SendNotificationChannelVerificationCode; while
// VerifyNotificationChannel() will recognize both the codes delivered via
// SendNotificationChannelVerificationCode() and returned from
// GetNotificationChannelVerificationCode(), it is typically the case that
// the verification codes delivered via
// SendNotificationChannelVerificationCode() will be shorter and also
// have a shorter expiration (e.g. codes such as "G-123456") whereas
// GetVerificationCode() will typically return a much longer, websafe base
// 64 encoded string that has a longer expiration time.
GetNotificationChannelVerificationCode(context.Context, *GetNotificationChannelVerificationCodeRequest) (*GetNotificationChannelVerificationCodeResponse, error)
// Verifies a `NotificationChannel` by proving receipt of the code
// delivered to the channel as a result of calling
// `SendNotificationChannelVerificationCode`.
VerifyNotificationChannel(context.Context, *VerifyNotificationChannelRequest) (*NotificationChannel, error)
}
func RegisterNotificationChannelServiceServer(s *grpc.Server, srv NotificationChannelServiceServer) {
s.RegisterService(&_NotificationChannelService_serviceDesc, srv)
}
func _NotificationChannelService_ListNotificationChannelDescriptors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNotificationChannelDescriptorsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).ListNotificationChannelDescriptors(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/ListNotificationChannelDescriptors",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).ListNotificationChannelDescriptors(ctx, req.(*ListNotificationChannelDescriptorsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_GetNotificationChannelDescriptor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNotificationChannelDescriptorRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).GetNotificationChannelDescriptor(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelDescriptor",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).GetNotificationChannelDescriptor(ctx, req.(*GetNotificationChannelDescriptorRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_ListNotificationChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNotificationChannelsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).ListNotificationChannels(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/ListNotificationChannels",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).ListNotificationChannels(ctx, req.(*ListNotificationChannelsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_GetNotificationChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNotificationChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).GetNotificationChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/GetNotificationChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).GetNotificationChannel(ctx, req.(*GetNotificationChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_CreateNotificationChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNotificationChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).CreateNotificationChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/CreateNotificationChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).CreateNotificationChannel(ctx, req.(*CreateNotificationChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_UpdateNotificationChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNotificationChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).UpdateNotificationChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/UpdateNotificationChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).UpdateNotificationChannel(ctx, req.(*UpdateNotificationChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_DeleteNotificationChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNotificationChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).DeleteNotificationChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).DeleteNotificationChannel(ctx, req.(*DeleteNotificationChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_SendNotificationChannelVerificationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendNotificationChannelVerificationCodeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).SendNotificationChannelVerificationCode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).SendNotificationChannelVerificationCode(ctx, req.(*SendNotificationChannelVerificationCodeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_GetNotificationChannelVerificationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNotificationChannelVerificationCodeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).GetNotificationChannelVerificationCode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelVerificationCode",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).GetNotificationChannelVerificationCode(ctx, req.(*GetNotificationChannelVerificationCodeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NotificationChannelService_VerifyNotificationChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyNotificationChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NotificationChannelServiceServer).VerifyNotificationChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.monitoring.v3.NotificationChannelService/VerifyNotificationChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NotificationChannelServiceServer).VerifyNotificationChannel(ctx, req.(*VerifyNotificationChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
var _NotificationChannelService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.monitoring.v3.NotificationChannelService",
HandlerType: (*NotificationChannelServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListNotificationChannelDescriptors",
Handler: _NotificationChannelService_ListNotificationChannelDescriptors_Handler,
},
{
MethodName: "GetNotificationChannelDescriptor",
Handler: _NotificationChannelService_GetNotificationChannelDescriptor_Handler,
},
{
MethodName: "ListNotificationChannels",
Handler: _NotificationChannelService_ListNotificationChannels_Handler,
},
{
MethodName: "GetNotificationChannel",
Handler: _NotificationChannelService_GetNotificationChannel_Handler,
},
{
MethodName: "CreateNotificationChannel",
Handler: _NotificationChannelService_CreateNotificationChannel_Handler,
},
{
MethodName: "UpdateNotificationChannel",
Handler: _NotificationChannelService_UpdateNotificationChannel_Handler,
},
{
MethodName: "DeleteNotificationChannel",
Handler: _NotificationChannelService_DeleteNotificationChannel_Handler,
},
{
MethodName: "SendNotificationChannelVerificationCode",
Handler: _NotificationChannelService_SendNotificationChannelVerificationCode_Handler,
},
{
MethodName: "GetNotificationChannelVerificationCode",
Handler: _NotificationChannelService_GetNotificationChannelVerificationCode_Handler,
},
{
MethodName: "VerifyNotificationChannel",
Handler: _NotificationChannelService_VerifyNotificationChannel_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/monitoring/v3/notification_service.proto",
}
func init() {
proto.RegisterFile("google/monitoring/v3/notification_service.proto", fileDescriptor_notification_service_5eb7c3d594392714)
}
var fileDescriptor_notification_service_5eb7c3d594392714 = []byte{
// 1011 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x41, 0x6f, 0xdc, 0x44,
0x14, 0xd6, 0xec, 0x26, 0x69, 0xfa, 0x22, 0x04, 0x9a, 0x86, 0xc8, 0xbb, 0xa5, 0xaa, 0xe5, 0x43,
0x93, 0xae, 0x8a, 0x2d, 0xad, 0x4b, 0x84, 0x52, 0x52, 0xda, 0x64, 0xdb, 0x22, 0x48, 0x51, 0xb4,
0x29, 0x91, 0x40, 0x11, 0x2b, 0xc7, 0x7e, 0x6b, 0x4c, 0x76, 0x67, 0x8c, 0x3d, 0x89, 0x9a, 0x56,
0x95, 0x0a, 0x7f, 0x01, 0xfe, 0x00, 0x12, 0xa7, 0x1e, 0x10, 0x67, 0x50, 0x39, 0x23, 0xae, 0x08,
0xae, 0x5c, 0xe0, 0x7f, 0x20, 0x8f, 0xbd, 0xd9, 0xcd, 0x66, 0xbc, 0x6b, 0x37, 0xdc, 0x3c, 0xf3,
0xde, 0xbc, 0xf7, 0xbd, 0xef, 0x7d, 0x9e, 0x67, 0x83, 0xe5, 0x73, 0xee, 0xf7, 0xd0, 0xea, 0x73,
0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