| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/monitoring/v3/notification_service.proto |
| |
| package monitoring |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| empty "github.com/golang/protobuf/ptypes/empty" |
| _ "github.com/golang/protobuf/ptypes/struct" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| field_mask "google.golang.org/genproto/protobuf/field_mask" |
| 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 |
| |
| // The `ListNotificationChannelDescriptors` request. |
| type ListNotificationChannelDescriptorsRequest struct { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *ListNotificationChannelDescriptorsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListNotificationChannelDescriptorsRequest.Merge(m, 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_7e2bcd7194b305fe, []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 (m *ListNotificationChannelDescriptorsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListNotificationChannelDescriptorsResponse.Merge(m, 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 { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *GetNotificationChannelDescriptorRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetNotificationChannelDescriptorRequest.Merge(m, 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 { |
| // Required. 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"` |
| // Required. 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_7e2bcd7194b305fe, []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 (m *CreateNotificationChannelRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CreateNotificationChannelRequest.Merge(m, 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 { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *ListNotificationChannelsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListNotificationChannelsRequest.Merge(m, 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_7e2bcd7194b305fe, []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 (m *ListNotificationChannelsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListNotificationChannelsResponse.Merge(m, 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 { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *GetNotificationChannelRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetNotificationChannelRequest.Merge(m, 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"` |
| // Required. 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_7e2bcd7194b305fe, []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 (m *UpdateNotificationChannelRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_UpdateNotificationChannelRequest.Merge(m, 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 { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *DeleteNotificationChannelRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DeleteNotificationChannelRequest.Merge(m, 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 { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *SendNotificationChannelVerificationCodeRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_SendNotificationChannelVerificationCodeRequest.Merge(m, 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 { |
| // Required. 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_7e2bcd7194b305fe, []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 (m *GetNotificationChannelVerificationCodeRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetNotificationChannelVerificationCodeRequest.Merge(m, 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_7e2bcd7194b305fe, []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 (m *GetNotificationChannelVerificationCodeResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetNotificationChannelVerificationCodeResponse.Merge(m, 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 { |
| // Required. The notification channel to verify. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. 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_7e2bcd7194b305fe, []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 (m *VerifyNotificationChannelRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_VerifyNotificationChannelRequest.Merge(m, 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") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/monitoring/v3/notification_service.proto", fileDescriptor_7e2bcd7194b305fe) |
| } |
| |
| var fileDescriptor_7e2bcd7194b305fe = []byte{ |
| // 1210 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x41, 0x6f, 0xdc, 0x44, |
| 0x14, 0xd6, 0xec, 0x26, 0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, 0xef, 0xc0, 0x64, 0xb4, 0xf9, 0x8e, 0x6a, 0x36, 0x69, 0xdb, 0x9a, 0x77, 0x9b, |
| 0x06, 0xaf, 0x53, 0xaf, 0x35, 0x37, 0xc8, 0xbd, 0x1b, 0x2b, 0x83, 0xab, 0xe2, 0x11, 0xc3, 0xaa, |
| 0x7e, 0x87, 0xa0, 0x60, 0xd2, 0x56, 0x2c, 0x51, 0xd5, 0x42, 0x94, 0xa9, 0x70, 0xfe, 0x5a, 0xf7, |
| 0xef, 0xc5, 0x3a, 0xfa, 0xf8, 0x9d, 0x70, 0x47, 0x83, 0x36, 0x0d, 0xa7, 0xa1, 0x50, 0xaf, 0xa1, |
| 0x36, 0x88, 0x23, 0x6e, 0x8d, 0xda, 0x0d, 0x7c, 0xf2, 0x1f, 0x58, 0xcb, 0xdd, 0xaf, 0xe7, 0xb9, |
| 0xd2, 0xdd, 0xe0, 0x80, 0x15, 0x1f, 0xab, 0x72, 0xaf, 0x1b, 0x78, 0xb3, 0x72, 0xd8, 0x31, 0x6e, |
| 0x09, 0xe3, 0x56, 0xd7, 0xb8, 0xb5, 0x59, 0xd9, 0x1e, 0x13, 0x41, 0x2a, 0xff, 0x05, 0x00, 0x00, |
| 0xff, 0xff, 0x4f, 0x09, 0xed, 0xc9, 0xde, 0x13, 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 |
| |
| // 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.ClientConnInterface |
| } |
| |
| func NewNotificationChannelServiceClient(cc grpc.ClientConnInterface) NotificationChannelServiceClient { |
| return ¬ificationChannelServiceClient{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) |
| } |
| |
| // UnimplementedNotificationChannelServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedNotificationChannelServiceServer struct { |
| } |
| |
| func (*UnimplementedNotificationChannelServiceServer) ListNotificationChannelDescriptors(ctx context.Context, req *ListNotificationChannelDescriptorsRequest) (*ListNotificationChannelDescriptorsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListNotificationChannelDescriptors not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) GetNotificationChannelDescriptor(ctx context.Context, req *GetNotificationChannelDescriptorRequest) (*NotificationChannelDescriptor, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetNotificationChannelDescriptor not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) ListNotificationChannels(ctx context.Context, req *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListNotificationChannels not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) GetNotificationChannel(ctx context.Context, req *GetNotificationChannelRequest) (*NotificationChannel, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetNotificationChannel not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) CreateNotificationChannel(ctx context.Context, req *CreateNotificationChannelRequest) (*NotificationChannel, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CreateNotificationChannel not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) UpdateNotificationChannel(ctx context.Context, req *UpdateNotificationChannelRequest) (*NotificationChannel, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateNotificationChannel not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) DeleteNotificationChannel(ctx context.Context, req *DeleteNotificationChannelRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeleteNotificationChannel not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) SendNotificationChannelVerificationCode(ctx context.Context, req *SendNotificationChannelVerificationCodeRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SendNotificationChannelVerificationCode not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) GetNotificationChannelVerificationCode(ctx context.Context, req *GetNotificationChannelVerificationCodeRequest) (*GetNotificationChannelVerificationCodeResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetNotificationChannelVerificationCode not implemented") |
| } |
| func (*UnimplementedNotificationChannelServiceServer) VerifyNotificationChannel(ctx context.Context, req *VerifyNotificationChannelRequest) (*NotificationChannel, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method VerifyNotificationChannel not implemented") |
| } |
| |
| 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", |
| } |