Documentation ¶
Index ¶
- Variables
- func RegisterAdvisoryNotificationsServiceServer(s *grpc.Server, srv AdvisoryNotificationsServiceServer)
- type AdvisoryNotificationsServiceClient
- type AdvisoryNotificationsServiceServer
- type Attachment
- func (*Attachment) Descriptor() ([]byte, []int)deprecated
- func (x *Attachment) GetCsv() *Csv
- func (m *Attachment) GetData() isAttachment_Data
- func (x *Attachment) GetDisplayName() string
- func (*Attachment) ProtoMessage()
- func (x *Attachment) ProtoReflect() protoreflect.Message
- func (x *Attachment) Reset()
- func (x *Attachment) String() string
- type Attachment_Csv
- type Csv
- type Csv_CsvRow
- type GetNotificationRequest
- func (*GetNotificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotificationRequest) GetLanguageCode() string
- func (x *GetNotificationRequest) GetName() string
- func (*GetNotificationRequest) ProtoMessage()
- func (x *GetNotificationRequest) ProtoReflect() protoreflect.Message
- func (x *GetNotificationRequest) Reset()
- func (x *GetNotificationRequest) String() string
- type GetSettingsRequest
- func (*GetSettingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSettingsRequest) GetName() string
- func (*GetSettingsRequest) ProtoMessage()
- func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message
- func (x *GetSettingsRequest) Reset()
- func (x *GetSettingsRequest) String() string
- type ListNotificationsRequest
- func (*ListNotificationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotificationsRequest) GetLanguageCode() string
- func (x *ListNotificationsRequest) GetPageSize() int32
- func (x *ListNotificationsRequest) GetPageToken() string
- func (x *ListNotificationsRequest) GetParent() string
- func (x *ListNotificationsRequest) GetView() NotificationView
- func (*ListNotificationsRequest) ProtoMessage()
- func (x *ListNotificationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListNotificationsRequest) Reset()
- func (x *ListNotificationsRequest) String() string
- type ListNotificationsResponse
- func (*ListNotificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotificationsResponse) GetNextPageToken() string
- func (x *ListNotificationsResponse) GetNotifications() []*Notification
- func (x *ListNotificationsResponse) GetTotalSize() int32
- func (*ListNotificationsResponse) ProtoMessage()
- func (x *ListNotificationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListNotificationsResponse) Reset()
- func (x *ListNotificationsResponse) String() string
- type LocalizationState
- func (LocalizationState) Descriptor() protoreflect.EnumDescriptor
- func (x LocalizationState) Enum() *LocalizationState
- func (LocalizationState) EnumDescriptor() ([]byte, []int)deprecated
- func (x LocalizationState) Number() protoreflect.EnumNumber
- func (x LocalizationState) String() string
- func (LocalizationState) Type() protoreflect.EnumType
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAttachments() []*Attachment
- func (x *Message) GetBody() *Message_Body
- func (x *Message) GetCreateTime() *timestamppb.Timestamp
- func (x *Message) GetLocalizationTime() *timestamppb.Timestamp
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Body
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetCreateTime() *timestamppb.Timestamp
- func (x *Notification) GetMessages() []*Message
- func (x *Notification) GetName() string
- func (x *Notification) GetNotificationType() NotificationType
- func (x *Notification) GetSubject() *Subject
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type NotificationSettings
- func (*NotificationSettings) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationSettings) GetEnabled() bool
- func (*NotificationSettings) ProtoMessage()
- func (x *NotificationSettings) ProtoReflect() protoreflect.Message
- func (x *NotificationSettings) Reset()
- func (x *NotificationSettings) String() string
- type NotificationType
- func (NotificationType) Descriptor() protoreflect.EnumDescriptor
- func (x NotificationType) Enum() *NotificationType
- func (NotificationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotificationType) Number() protoreflect.EnumNumber
- func (x NotificationType) String() string
- func (NotificationType) Type() protoreflect.EnumType
- type NotificationView
- func (NotificationView) Descriptor() protoreflect.EnumDescriptor
- func (x NotificationView) Enum() *NotificationView
- func (NotificationView) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotificationView) Number() protoreflect.EnumNumber
- func (x NotificationView) String() string
- func (NotificationView) Type() protoreflect.EnumType
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetEtag() string
- func (x *Settings) GetName() string
- func (x *Settings) GetNotificationSettings() map[string]*NotificationSettings
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- type Subject
- type Text
- func (*Text) Descriptor() ([]byte, []int)deprecated
- func (x *Text) GetEnText() string
- func (x *Text) GetLocalizationState() LocalizationState
- func (x *Text) GetLocalizedText() string
- func (*Text) ProtoMessage()
- func (x *Text) ProtoReflect() protoreflect.Message
- func (x *Text) Reset()
- func (x *Text) String() string
- type UnimplementedAdvisoryNotificationsServiceServer
- func (*UnimplementedAdvisoryNotificationsServiceServer) GetNotification(context.Context, *GetNotificationRequest) (*Notification, error)
- func (*UnimplementedAdvisoryNotificationsServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*Settings, error)
- func (*UnimplementedAdvisoryNotificationsServiceServer) ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error)
- func (*UnimplementedAdvisoryNotificationsServiceServer) UpdateSettings(context.Context, *UpdateSettingsRequest) (*Settings, error)
- type UpdateSettingsRequest
- func (*UpdateSettingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSettingsRequest) GetSettings() *Settings
- func (*UpdateSettingsRequest) ProtoMessage()
- func (x *UpdateSettingsRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSettingsRequest) Reset()
- func (x *UpdateSettingsRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( NotificationView_name = map[int32]string{ 0: "NOTIFICATION_VIEW_UNSPECIFIED", 1: "BASIC", 2: "FULL", } NotificationView_value = map[string]int32{ "NOTIFICATION_VIEW_UNSPECIFIED": 0, "BASIC": 1, "FULL": 2, } )
Enum value maps for NotificationView.
var ( LocalizationState_name = map[int32]string{ 0: "LOCALIZATION_STATE_UNSPECIFIED", 1: "LOCALIZATION_STATE_NOT_APPLICABLE", 2: "LOCALIZATION_STATE_PENDING", 3: "LOCALIZATION_STATE_COMPLETED", } LocalizationState_value = map[string]int32{ "LOCALIZATION_STATE_UNSPECIFIED": 0, "LOCALIZATION_STATE_NOT_APPLICABLE": 1, "LOCALIZATION_STATE_PENDING": 2, "LOCALIZATION_STATE_COMPLETED": 3, } )
Enum value maps for LocalizationState.
var ( NotificationType_name = map[int32]string{ 0: "NOTIFICATION_TYPE_UNSPECIFIED", 1: "NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY", 2: "NOTIFICATION_TYPE_SENSITIVE_ACTIONS", 3: "NOTIFICATION_TYPE_SECURITY_MSA", 4: "NOTIFICATION_TYPE_THREAT_HORIZONS", } NotificationType_value = map[string]int32{ "NOTIFICATION_TYPE_UNSPECIFIED": 0, "NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY": 1, "NOTIFICATION_TYPE_SENSITIVE_ACTIONS": 2, "NOTIFICATION_TYPE_SECURITY_MSA": 3, "NOTIFICATION_TYPE_THREAT_HORIZONS": 4, } )
Enum value maps for NotificationType.
var File_google_cloud_advisorynotifications_v1_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdvisoryNotificationsServiceServer ¶
func RegisterAdvisoryNotificationsServiceServer(s *grpc.Server, srv AdvisoryNotificationsServiceServer)
Types ¶
type AdvisoryNotificationsServiceClient ¶
type AdvisoryNotificationsServiceClient interface { // Lists notifications under a given parent. ListNotifications(ctx context.Context, in *ListNotificationsRequest, opts ...grpc.CallOption) (*ListNotificationsResponse, error) // Gets a notification. GetNotification(ctx context.Context, in *GetNotificationRequest, opts ...grpc.CallOption) (*Notification, error) // Get notification settings. GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*Settings, error) // Update notification settings. UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*Settings, error) }
AdvisoryNotificationsServiceClient is the client API for AdvisoryNotificationsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdvisoryNotificationsServiceClient ¶
func NewAdvisoryNotificationsServiceClient(cc grpc.ClientConnInterface) AdvisoryNotificationsServiceClient
type AdvisoryNotificationsServiceServer ¶
type AdvisoryNotificationsServiceServer interface { // Lists notifications under a given parent. ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error) // Gets a notification. GetNotification(context.Context, *GetNotificationRequest) (*Notification, error) // Get notification settings. GetSettings(context.Context, *GetSettingsRequest) (*Settings, error) // Update notification settings. UpdateSettings(context.Context, *UpdateSettingsRequest) (*Settings, error) }
AdvisoryNotificationsServiceServer is the server API for AdvisoryNotificationsService service.
type Attachment ¶
type Attachment struct { // Data type of the attachment. // // Types that are assignable to Data: // // *Attachment_Csv Data isAttachment_Data `protobuf_oneof:"data"` // The title of the attachment. DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
Attachment with specific information about the issue.
func (*Attachment) Descriptor
deprecated
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetCsv ¶
func (x *Attachment) GetCsv() *Csv
func (*Attachment) GetData ¶
func (m *Attachment) GetData() isAttachment_Data
func (*Attachment) GetDisplayName ¶
func (x *Attachment) GetDisplayName() string
func (*Attachment) ProtoMessage ¶
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect ¶
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset ¶
func (x *Attachment) Reset()
func (*Attachment) String ¶
func (x *Attachment) String() string
type Attachment_Csv ¶
type Attachment_Csv struct { // A CSV file attachment. Max size is 10 MB. Csv *Csv `protobuf:"bytes,2,opt,name=csv,proto3,oneof"` }
type Csv ¶
type Csv struct { // The list of headers for data columns in a CSV file. Headers []string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` // The list of data rows in a CSV file, as string arrays rather than as a // single comma-separated string. DataRows []*Csv_CsvRow `protobuf:"bytes,2,rep,name=data_rows,json=dataRows,proto3" json:"data_rows,omitempty"` // contains filtered or unexported fields }
A representation of a CSV file attachment, as a list of column headers and a list of data rows.
func (*Csv) Descriptor
deprecated
func (*Csv) GetDataRows ¶
func (x *Csv) GetDataRows() []*Csv_CsvRow
func (*Csv) GetHeaders ¶
func (*Csv) ProtoMessage ¶
func (*Csv) ProtoMessage()
func (*Csv) ProtoReflect ¶
func (x *Csv) ProtoReflect() protoreflect.Message
type Csv_CsvRow ¶
type Csv_CsvRow struct { // The data entries in a CSV file row, as a string array rather than a // single comma-separated string. Entries []string `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
A representation of a single data row in a CSV file.
func (*Csv_CsvRow) Descriptor
deprecated
func (*Csv_CsvRow) Descriptor() ([]byte, []int)
Deprecated: Use Csv_CsvRow.ProtoReflect.Descriptor instead.
func (*Csv_CsvRow) GetEntries ¶
func (x *Csv_CsvRow) GetEntries() []string
func (*Csv_CsvRow) ProtoMessage ¶
func (*Csv_CsvRow) ProtoMessage()
func (*Csv_CsvRow) ProtoReflect ¶
func (x *Csv_CsvRow) ProtoReflect() protoreflect.Message
func (*Csv_CsvRow) Reset ¶
func (x *Csv_CsvRow) Reset()
func (*Csv_CsvRow) String ¶
func (x *Csv_CsvRow) String() string
type GetNotificationRequest ¶
type GetNotificationRequest struct { // Required. A name of the notification to retrieve. // Format: // organizations/{organization}/locations/{location}/notifications/{notification} // or projects/{projects}/locations/{location}/notifications/{notification}. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // ISO code for requested localization language. If unset, will be // interpereted as "en". If the requested language is valid, but not supported // for this notification, English will be returned with an "Not applicable" // LocalizationState. If the ISO code is invalid (i.e. not a real language), // this RPC will throw an error. LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // contains filtered or unexported fields }
Request for fetching a notification.
func (*GetNotificationRequest) Descriptor
deprecated
func (*GetNotificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNotificationRequest.ProtoReflect.Descriptor instead.
func (*GetNotificationRequest) GetLanguageCode ¶
func (x *GetNotificationRequest) GetLanguageCode() string
func (*GetNotificationRequest) GetName ¶
func (x *GetNotificationRequest) GetName() string
func (*GetNotificationRequest) ProtoMessage ¶
func (*GetNotificationRequest) ProtoMessage()
func (*GetNotificationRequest) ProtoReflect ¶
func (x *GetNotificationRequest) ProtoReflect() protoreflect.Message
func (*GetNotificationRequest) Reset ¶
func (x *GetNotificationRequest) Reset()
func (*GetNotificationRequest) String ¶
func (x *GetNotificationRequest) String() string
type GetSettingsRequest ¶ added in v1.2.0
type GetSettingsRequest struct { // Required. The resource name of the settings to retrieve. // Format: // organizations/{organization}/locations/{location}/settings or // projects/{projects}/locations/{location}/settings. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request of GetSettings endpoint.
func (*GetSettingsRequest) Descriptor
deprecated
added in
v1.2.0
func (*GetSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.
func (*GetSettingsRequest) GetName ¶ added in v1.2.0
func (x *GetSettingsRequest) GetName() string
func (*GetSettingsRequest) ProtoMessage ¶ added in v1.2.0
func (*GetSettingsRequest) ProtoMessage()
func (*GetSettingsRequest) ProtoReflect ¶ added in v1.2.0
func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message
func (*GetSettingsRequest) Reset ¶ added in v1.2.0
func (x *GetSettingsRequest) Reset()
func (*GetSettingsRequest) String ¶ added in v1.2.0
func (x *GetSettingsRequest) String() string
type ListNotificationsRequest ¶
type ListNotificationsRequest struct { // Required. The parent, which owns this collection of notifications. // Must be of the form "organizations/{organization}/locations/{location}" // or "projects/{project}/locations/{location}". Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of notifications to return. The service may return // fewer than this value. If unspecified or equal to 0, at most 50 // notifications will be returned. The maximum value is 50; values above 50 // will be coerced to 50. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token returned from a previous request. // When paginating, all other parameters provided in the request // must match the call that returned the page token. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Specifies which parts of the notification resource should be returned // in the response. View NotificationView `protobuf:"varint,4,opt,name=view,proto3,enum=google.cloud.advisorynotifications.v1.NotificationView" json:"view,omitempty"` // ISO code for requested localization language. If unset, will be // interpereted as "en". If the requested language is valid, but not supported // for this notification, English will be returned with an "Not applicable" // LocalizationState. If the ISO code is invalid (i.e. not a real language), // this RPC will throw an error. LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // contains filtered or unexported fields }
Request for fetching all notifications for a given parent.
func (*ListNotificationsRequest) Descriptor
deprecated
func (*ListNotificationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotificationsRequest.ProtoReflect.Descriptor instead.
func (*ListNotificationsRequest) GetLanguageCode ¶
func (x *ListNotificationsRequest) GetLanguageCode() string
func (*ListNotificationsRequest) GetPageSize ¶
func (x *ListNotificationsRequest) GetPageSize() int32
func (*ListNotificationsRequest) GetPageToken ¶
func (x *ListNotificationsRequest) GetPageToken() string
func (*ListNotificationsRequest) GetParent ¶
func (x *ListNotificationsRequest) GetParent() string
func (*ListNotificationsRequest) GetView ¶
func (x *ListNotificationsRequest) GetView() NotificationView
func (*ListNotificationsRequest) ProtoMessage ¶
func (*ListNotificationsRequest) ProtoMessage()
func (*ListNotificationsRequest) ProtoReflect ¶
func (x *ListNotificationsRequest) ProtoReflect() protoreflect.Message
func (*ListNotificationsRequest) Reset ¶
func (x *ListNotificationsRequest) Reset()
func (*ListNotificationsRequest) String ¶
func (x *ListNotificationsRequest) String() string
type ListNotificationsResponse ¶
type ListNotificationsResponse struct { // List of notifications under a given parent. Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // Estimation of a total number of notifications. TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` // contains filtered or unexported fields }
Response of ListNotifications endpoint.
func (*ListNotificationsResponse) Descriptor
deprecated
func (*ListNotificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotificationsResponse.ProtoReflect.Descriptor instead.
func (*ListNotificationsResponse) GetNextPageToken ¶
func (x *ListNotificationsResponse) GetNextPageToken() string
func (*ListNotificationsResponse) GetNotifications ¶
func (x *ListNotificationsResponse) GetNotifications() []*Notification
func (*ListNotificationsResponse) GetTotalSize ¶
func (x *ListNotificationsResponse) GetTotalSize() int32
func (*ListNotificationsResponse) ProtoMessage ¶
func (*ListNotificationsResponse) ProtoMessage()
func (*ListNotificationsResponse) ProtoReflect ¶
func (x *ListNotificationsResponse) ProtoReflect() protoreflect.Message
func (*ListNotificationsResponse) Reset ¶
func (x *ListNotificationsResponse) Reset()
func (*ListNotificationsResponse) String ¶
func (x *ListNotificationsResponse) String() string
type LocalizationState ¶
type LocalizationState int32
Status of localized text.
const ( // Not used. LocalizationState_LOCALIZATION_STATE_UNSPECIFIED LocalizationState = 0 // Localization is not applicable for requested language. This can happen // when: // - The requested language was not supported by Advisory Notifications at the // time of localization (including notifications created before the // localization feature was launched). // - The requested language is English, so only the English text is returned. LocalizationState_LOCALIZATION_STATE_NOT_APPLICABLE LocalizationState = 1 // Localization for requested language is in progress, and not ready yet. LocalizationState_LOCALIZATION_STATE_PENDING LocalizationState = 2 // Localization for requested language is completed. LocalizationState_LOCALIZATION_STATE_COMPLETED LocalizationState = 3 )
func (LocalizationState) Descriptor ¶
func (LocalizationState) Descriptor() protoreflect.EnumDescriptor
func (LocalizationState) Enum ¶
func (x LocalizationState) Enum() *LocalizationState
func (LocalizationState) EnumDescriptor
deprecated
func (LocalizationState) EnumDescriptor() ([]byte, []int)
Deprecated: Use LocalizationState.Descriptor instead.
func (LocalizationState) Number ¶
func (x LocalizationState) Number() protoreflect.EnumNumber
func (LocalizationState) String ¶
func (x LocalizationState) String() string
func (LocalizationState) Type ¶
func (LocalizationState) Type() protoreflect.EnumType
type Message ¶
type Message struct { // The message content. Body *Message_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // The attachments to download. Attachments []*Attachment `protobuf:"bytes,2,rep,name=attachments,proto3" json:"attachments,omitempty"` // The Message creation timestamp. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time when Message was localized LocalizationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=localization_time,json=localizationTime,proto3" json:"localization_time,omitempty"` // contains filtered or unexported fields }
A message which contains notification details.
func (*Message) Descriptor
deprecated
func (*Message) GetAttachments ¶
func (x *Message) GetAttachments() []*Attachment
func (*Message) GetBody ¶
func (x *Message) GetBody() *Message_Body
func (*Message) GetCreateTime ¶
func (x *Message) GetCreateTime() *timestamppb.Timestamp
func (*Message) GetLocalizationTime ¶
func (x *Message) GetLocalizationTime() *timestamppb.Timestamp
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Body ¶
type Message_Body struct { // The text content of the message body. Text *Text `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
A message body containing text.
func (*Message_Body) Descriptor
deprecated
func (*Message_Body) Descriptor() ([]byte, []int)
Deprecated: Use Message_Body.ProtoReflect.Descriptor instead.
func (*Message_Body) GetText ¶
func (x *Message_Body) GetText() *Text
func (*Message_Body) ProtoMessage ¶
func (*Message_Body) ProtoMessage()
func (*Message_Body) ProtoReflect ¶
func (x *Message_Body) ProtoReflect() protoreflect.Message
func (*Message_Body) Reset ¶
func (x *Message_Body) Reset()
func (*Message_Body) String ¶
func (x *Message_Body) String() string
type Notification ¶
type Notification struct { // The resource name of the notification. // Format: // organizations/{organization}/locations/{location}/notifications/{notification} // or projects/{project}/locations/{location}/notifications/{notification}. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The subject line of the notification. Subject *Subject `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // A list of messages in the notification. Messages []*Message `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"` // Output only. Time the notification was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Type of notification NotificationType NotificationType `` /* 171-byte string literal not displayed */ // contains filtered or unexported fields }
A notification object for notifying customers about security and privacy issues.
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetCreateTime ¶
func (x *Notification) GetCreateTime() *timestamppb.Timestamp
func (*Notification) GetMessages ¶
func (x *Notification) GetMessages() []*Message
func (*Notification) GetName ¶
func (x *Notification) GetName() string
func (*Notification) GetNotificationType ¶ added in v0.2.0
func (x *Notification) GetNotificationType() NotificationType
func (*Notification) GetSubject ¶
func (x *Notification) GetSubject() *Subject
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
type NotificationSettings ¶ added in v1.2.0
type NotificationSettings struct { // Whether the associated NotificationType is enabled. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
Settings for each NotificationType.
func (*NotificationSettings) Descriptor
deprecated
added in
v1.2.0
func (*NotificationSettings) Descriptor() ([]byte, []int)
Deprecated: Use NotificationSettings.ProtoReflect.Descriptor instead.
func (*NotificationSettings) GetEnabled ¶ added in v1.2.0
func (x *NotificationSettings) GetEnabled() bool
func (*NotificationSettings) ProtoMessage ¶ added in v1.2.0
func (*NotificationSettings) ProtoMessage()
func (*NotificationSettings) ProtoReflect ¶ added in v1.2.0
func (x *NotificationSettings) ProtoReflect() protoreflect.Message
func (*NotificationSettings) Reset ¶ added in v1.2.0
func (x *NotificationSettings) Reset()
func (*NotificationSettings) String ¶ added in v1.2.0
func (x *NotificationSettings) String() string
type NotificationType ¶ added in v0.2.0
type NotificationType int32
Type of notification
const ( // Default type NotificationType_NOTIFICATION_TYPE_UNSPECIFIED NotificationType = 0 // Security and privacy advisory notifications NotificationType_NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY NotificationType = 1 // Sensitive action notifications NotificationType_NOTIFICATION_TYPE_SENSITIVE_ACTIONS NotificationType = 2 // General security MSA NotificationType_NOTIFICATION_TYPE_SECURITY_MSA NotificationType = 3 // Threat horizons MSA NotificationType_NOTIFICATION_TYPE_THREAT_HORIZONS NotificationType = 4 )
func (NotificationType) Descriptor ¶ added in v0.2.0
func (NotificationType) Descriptor() protoreflect.EnumDescriptor
func (NotificationType) Enum ¶ added in v0.2.0
func (x NotificationType) Enum() *NotificationType
func (NotificationType) EnumDescriptor
deprecated
added in
v0.2.0
func (NotificationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotificationType.Descriptor instead.
func (NotificationType) Number ¶ added in v0.2.0
func (x NotificationType) Number() protoreflect.EnumNumber
func (NotificationType) String ¶ added in v0.2.0
func (x NotificationType) String() string
func (NotificationType) Type ¶ added in v0.2.0
func (NotificationType) Type() protoreflect.EnumType
type NotificationView ¶
type NotificationView int32
Notification view.
const ( // Not specified, equivalent to BASIC. NotificationView_NOTIFICATION_VIEW_UNSPECIFIED NotificationView = 0 // Server responses only include title, creation time and Notification ID. // Note: for internal use responses also include the last update time, // the latest message text and whether notification has attachments. NotificationView_BASIC NotificationView = 1 // Include everything. NotificationView_FULL NotificationView = 2 )
func (NotificationView) Descriptor ¶
func (NotificationView) Descriptor() protoreflect.EnumDescriptor
func (NotificationView) Enum ¶
func (x NotificationView) Enum() *NotificationView
func (NotificationView) EnumDescriptor
deprecated
func (NotificationView) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotificationView.Descriptor instead.
func (NotificationView) Number ¶
func (x NotificationView) Number() protoreflect.EnumNumber
func (NotificationView) String ¶
func (x NotificationView) String() string
func (NotificationView) Type ¶
func (NotificationView) Type() protoreflect.EnumType
type Settings ¶ added in v1.2.0
type Settings struct { // Identifier. The resource name of the settings to retrieve. // Format: // organizations/{organization}/locations/{location}/settings or // projects/{projects}/locations/{location}/settings. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. Map of each notification type and its settings to get/set all // settings at once. The server will validate the value for each notification // type. NotificationSettings map[string]*NotificationSettings `` /* 209-byte string literal not displayed */ // Required. Fingerprint for optimistic concurrency returned in Get requests. // Must be provided for Update requests. If the value provided does not match // the value known to the server, ABORTED will be thrown, and the client // should retry the read-modify-write cycle. Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
Settings for Advisory Notifications.
func (*Settings) Descriptor
deprecated
added in
v1.2.0
func (*Settings) GetNotificationSettings ¶ added in v1.2.0
func (x *Settings) GetNotificationSettings() map[string]*NotificationSettings
func (*Settings) ProtoMessage ¶ added in v1.2.0
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶ added in v1.2.0
func (x *Settings) ProtoReflect() protoreflect.Message
type Subject ¶
type Subject struct { // The text content. Text *Text `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
A subject line of a notification.
func (*Subject) Descriptor
deprecated
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) ProtoReflect ¶
func (x *Subject) ProtoReflect() protoreflect.Message
type Text ¶
type Text struct { // The English copy. EnText string `protobuf:"bytes,1,opt,name=en_text,json=enText,proto3" json:"en_text,omitempty"` // The requested localized copy (if applicable). LocalizedText string `protobuf:"bytes,2,opt,name=localized_text,json=localizedText,proto3" json:"localized_text,omitempty"` // Status of the localization. LocalizationState LocalizationState `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
A text object containing the English text and its localized copies.
func (*Text) Descriptor
deprecated
func (*Text) GetLocalizationState ¶
func (x *Text) GetLocalizationState() LocalizationState
func (*Text) GetLocalizedText ¶
func (*Text) ProtoMessage ¶
func (*Text) ProtoMessage()
func (*Text) ProtoReflect ¶
func (x *Text) ProtoReflect() protoreflect.Message
type UnimplementedAdvisoryNotificationsServiceServer ¶
type UnimplementedAdvisoryNotificationsServiceServer struct { }
UnimplementedAdvisoryNotificationsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdvisoryNotificationsServiceServer) GetNotification ¶
func (*UnimplementedAdvisoryNotificationsServiceServer) GetNotification(context.Context, *GetNotificationRequest) (*Notification, error)
func (*UnimplementedAdvisoryNotificationsServiceServer) GetSettings ¶ added in v1.2.0
func (*UnimplementedAdvisoryNotificationsServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*Settings, error)
func (*UnimplementedAdvisoryNotificationsServiceServer) ListNotifications ¶
func (*UnimplementedAdvisoryNotificationsServiceServer) ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error)
func (*UnimplementedAdvisoryNotificationsServiceServer) UpdateSettings ¶ added in v1.2.0
func (*UnimplementedAdvisoryNotificationsServiceServer) UpdateSettings(context.Context, *UpdateSettingsRequest) (*Settings, error)
type UpdateSettingsRequest ¶ added in v1.2.0
type UpdateSettingsRequest struct { // Required. New settings. Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
Request of UpdateSettings endpoint.
func (*UpdateSettingsRequest) Descriptor
deprecated
added in
v1.2.0
func (*UpdateSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSettingsRequest.ProtoReflect.Descriptor instead.
func (*UpdateSettingsRequest) GetSettings ¶ added in v1.2.0
func (x *UpdateSettingsRequest) GetSettings() *Settings
func (*UpdateSettingsRequest) ProtoMessage ¶ added in v1.2.0
func (*UpdateSettingsRequest) ProtoMessage()
func (*UpdateSettingsRequest) ProtoReflect ¶ added in v1.2.0
func (x *UpdateSettingsRequest) ProtoReflect() protoreflect.Message
func (*UpdateSettingsRequest) Reset ¶ added in v1.2.0
func (x *UpdateSettingsRequest) Reset()
func (*UpdateSettingsRequest) String ¶ added in v1.2.0
func (x *UpdateSettingsRequest) String() string