Constants
EssentialContactsService_CreateContact_FullMethodName, EssentialContactsService_UpdateContact_FullMethodName, EssentialContactsService_ListContacts_FullMethodName, EssentialContactsService_GetContact_FullMethodName, EssentialContactsService_DeleteContact_FullMethodName, EssentialContactsService_ComputeContacts_FullMethodName, EssentialContactsService_SendTestMessage_FullMethodName
const (
EssentialContactsService_CreateContact_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/CreateContact"
EssentialContactsService_UpdateContact_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/UpdateContact"
EssentialContactsService_ListContacts_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/ListContacts"
EssentialContactsService_GetContact_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/GetContact"
EssentialContactsService_DeleteContact_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/DeleteContact"
EssentialContactsService_ComputeContacts_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/ComputeContacts"
EssentialContactsService_SendTestMessage_FullMethodName = "/google.cloud.essentialcontacts.v1.EssentialContactsService/SendTestMessage"
)Variables
NotificationCategory_name, NotificationCategory_value
var (
NotificationCategory_name = map[int32]string{
0: "NOTIFICATION_CATEGORY_UNSPECIFIED",
2: "ALL",
3: "SUSPENSION",
5: "SECURITY",
6: "TECHNICAL",
7: "BILLING",
8: "LEGAL",
9: "PRODUCT_UPDATES",
10: "TECHNICAL_INCIDENTS",
}
NotificationCategory_value = map[string]int32{
"NOTIFICATION_CATEGORY_UNSPECIFIED": 0,
"ALL": 2,
"SUSPENSION": 3,
"SECURITY": 5,
"TECHNICAL": 6,
"BILLING": 7,
"LEGAL": 8,
"PRODUCT_UPDATES": 9,
"TECHNICAL_INCIDENTS": 10,
}
)Enum value maps for NotificationCategory.
ValidationState_name, ValidationState_value
var (
ValidationState_name = map[int32]string{
0: "VALIDATION_STATE_UNSPECIFIED",
1: "VALID",
2: "INVALID",
}
ValidationState_value = map[string]int32{
"VALIDATION_STATE_UNSPECIFIED": 0,
"VALID": 1,
"INVALID": 2,
}
)Enum value maps for ValidationState.
EssentialContactsService_ServiceDesc
var EssentialContactsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.essentialcontacts.v1.EssentialContactsService",
HandlerType: (*EssentialContactsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateContact",
Handler: _EssentialContactsService_CreateContact_Handler,
},
{
MethodName: "UpdateContact",
Handler: _EssentialContactsService_UpdateContact_Handler,
},
{
MethodName: "ListContacts",
Handler: _EssentialContactsService_ListContacts_Handler,
},
{
MethodName: "GetContact",
Handler: _EssentialContactsService_GetContact_Handler,
},
{
MethodName: "DeleteContact",
Handler: _EssentialContactsService_DeleteContact_Handler,
},
{
MethodName: "ComputeContacts",
Handler: _EssentialContactsService_ComputeContacts_Handler,
},
{
MethodName: "SendTestMessage",
Handler: _EssentialContactsService_SendTestMessage_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/essentialcontacts/v1/service.proto",
}EssentialContactsService_ServiceDesc is the grpc.ServiceDesc for EssentialContactsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_essentialcontacts_v1_enums_proto
var File_google_cloud_essentialcontacts_v1_enums_proto protoreflect.FileDescriptorFile_google_cloud_essentialcontacts_v1_service_proto
var File_google_cloud_essentialcontacts_v1_service_proto protoreflect.FileDescriptorFunctions
func RegisterEssentialContactsServiceServer
func RegisterEssentialContactsServiceServer(s grpc.ServiceRegistrar, srv EssentialContactsServiceServer)ComputeContactsRequest
type ComputeContactsRequest struct {
// Required. The name of the resource to compute contacts for.
// Format: organizations/{organization_id},
// folders/{folder_id} or projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The categories of notifications to compute contacts for. If ALL is included
// in this list, contacts subscribed to any notification category will be
// returned.
NotificationCategories []NotificationCategory `protobuf:"varint,6,rep,packed,name=notification_categories,json=notificationCategories,proto3,enum=google.cloud.essentialcontacts.v1.NotificationCategory" json:"notification_categories,omitempty"`
// Optional. The maximum number of results to return from this request.
// Non-positive values are ignored. The presence of `next_page_token` in the
// response indicates that more results might be available.
// If not specified, the default page_size is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. If present, retrieves the next batch of results from the
// preceding call to this method. `page_token` must be the value of
// `next_page_token` from the previous response. The values of other method
// parameters should be identical to those in the previous call.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for the ComputeContacts method.
func (*ComputeContactsRequest) Descriptor
func (*ComputeContactsRequest) Descriptor() ([]byte, []int)Deprecated: Use ComputeContactsRequest.ProtoReflect.Descriptor instead.
func (*ComputeContactsRequest) GetNotificationCategories
func (x *ComputeContactsRequest) GetNotificationCategories() []NotificationCategoryfunc (*ComputeContactsRequest) GetPageSize
func (x *ComputeContactsRequest) GetPageSize() int32func (*ComputeContactsRequest) GetPageToken
func (x *ComputeContactsRequest) GetPageToken() stringfunc (*ComputeContactsRequest) GetParent
func (x *ComputeContactsRequest) GetParent() stringfunc (*ComputeContactsRequest) ProtoMessage
func (*ComputeContactsRequest) ProtoMessage()func (*ComputeContactsRequest) ProtoReflect
func (x *ComputeContactsRequest) ProtoReflect() protoreflect.Messagefunc (*ComputeContactsRequest) Reset
func (x *ComputeContactsRequest) Reset()func (*ComputeContactsRequest) String
func (x *ComputeContactsRequest) String() stringComputeContactsResponse
type ComputeContactsResponse struct {
// All contacts for the resource that are subscribed to the specified
// notification categories, including contacts inherited from any parent
// resources.
Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
// If there are more results than those appearing in this response, then
// `next_page_token` is included. To get the next set of results, call this
// method again using the value of `next_page_token` as `page_token` and the
// rest of the parameters the same as the original request.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for the ComputeContacts method.
func (*ComputeContactsResponse) Descriptor
func (*ComputeContactsResponse) Descriptor() ([]byte, []int)Deprecated: Use ComputeContactsResponse.ProtoReflect.Descriptor instead.
func (*ComputeContactsResponse) GetContacts
func (x *ComputeContactsResponse) GetContacts() []*Contactfunc (*ComputeContactsResponse) GetNextPageToken
func (x *ComputeContactsResponse) GetNextPageToken() stringfunc (*ComputeContactsResponse) ProtoMessage
func (*ComputeContactsResponse) ProtoMessage()func (*ComputeContactsResponse) ProtoReflect
func (x *ComputeContactsResponse) ProtoReflect() protoreflect.Messagefunc (*ComputeContactsResponse) Reset
func (x *ComputeContactsResponse) Reset()func (*ComputeContactsResponse) String
func (x *ComputeContactsResponse) String() stringContact
type Contact struct {
// Output only. The identifier for the contact.
// Format: {resource_type}/{resource_id}/contacts/{contact_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The email address to send notifications to. The email address
// does not need to be a Google Account.
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// Required. The categories of notifications that the contact will receive
// communications for.
NotificationCategorySubscriptions []NotificationCategory `protobuf:"varint,3,rep,packed,name=notification_category_subscriptions,json=notificationCategorySubscriptions,proto3,enum=google.cloud.essentialcontacts.v1.NotificationCategory" json:"notification_category_subscriptions,omitempty"`
// Required. The preferred language for notifications, as a ISO 639-1 language
// code. See [Supported
// languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages)
// for a list of supported languages.
LanguageTag string `protobuf:"bytes,4,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
// Output only. The validity of the contact. A contact is considered valid if
// it is the correct recipient for notifications for a particular resource.
ValidationState ValidationState `protobuf:"varint,8,opt,name=validation_state,json=validationState,proto3,enum=google.cloud.essentialcontacts.v1.ValidationState" json:"validation_state,omitempty"`
// The last time the validation_state was updated, either manually or
// automatically. A contact is considered stale if its validation state was
// updated more than 1 year ago.
ValidateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=validate_time,json=validateTime,proto3" json:"validate_time,omitempty"`
// contains filtered or unexported fields
}A contact that will receive notifications from Google Cloud.
func (*Contact) Descriptor
Deprecated: Use Contact.ProtoReflect.Descriptor instead.
func (*Contact) GetEmail
func (*Contact) GetLanguageTag
func (*Contact) GetName
func (*Contact) GetNotificationCategorySubscriptions
func (x *Contact) GetNotificationCategorySubscriptions() []NotificationCategoryfunc (*Contact) GetValidateTime
func (x *Contact) GetValidateTime() *timestamppb.Timestampfunc (*Contact) GetValidationState
func (x *Contact) GetValidationState() ValidationStatefunc (*Contact) ProtoMessage
func (*Contact) ProtoMessage()func (*Contact) ProtoReflect
func (x *Contact) ProtoReflect() protoreflect.Messagefunc (*Contact) Reset
func (x *Contact) Reset()func (*Contact) String
CreateContactRequest
type CreateContactRequest struct {
// Required. The resource to save this contact for.
// Format: organizations/{organization_id}, folders/{folder_id} or
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The contact to create. Must specify an email address and language
// tag.
Contact *Contact `protobuf:"bytes,2,opt,name=contact,proto3" json:"contact,omitempty"`
// contains filtered or unexported fields
}Request message for the CreateContact method.
func (*CreateContactRequest) Descriptor
func (*CreateContactRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateContactRequest.ProtoReflect.Descriptor instead.
func (*CreateContactRequest) GetContact
func (x *CreateContactRequest) GetContact() *Contactfunc (*CreateContactRequest) GetParent
func (x *CreateContactRequest) GetParent() stringfunc (*CreateContactRequest) ProtoMessage
func (*CreateContactRequest) ProtoMessage()func (*CreateContactRequest) ProtoReflect
func (x *CreateContactRequest) ProtoReflect() protoreflect.Messagefunc (*CreateContactRequest) Reset
func (x *CreateContactRequest) Reset()func (*CreateContactRequest) String
func (x *CreateContactRequest) String() stringDeleteContactRequest
type DeleteContactRequest struct {
// Required. The name of the contact to delete.
// Format: organizations/{organization_id}/contacts/{contact_id},
// folders/{folder_id}/contacts/{contact_id} or
// projects/{project_id}/contacts/{contact_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for the DeleteContact method.
func (*DeleteContactRequest) Descriptor
func (*DeleteContactRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteContactRequest.ProtoReflect.Descriptor instead.
func (*DeleteContactRequest) GetName
func (x *DeleteContactRequest) GetName() stringfunc (*DeleteContactRequest) ProtoMessage
func (*DeleteContactRequest) ProtoMessage()func (*DeleteContactRequest) ProtoReflect
func (x *DeleteContactRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteContactRequest) Reset
func (x *DeleteContactRequest) Reset()func (*DeleteContactRequest) String
func (x *DeleteContactRequest) String() stringEssentialContactsServiceClient
type EssentialContactsServiceClient interface {
// Adds a new contact for a resource.
CreateContact(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*Contact, error)
// Updates a contact.
// Note: A contact's email address cannot be changed.
UpdateContact(ctx context.Context, in *UpdateContactRequest, opts ...grpc.CallOption) (*Contact, error)
// Lists the contacts that have been set on a resource.
ListContacts(ctx context.Context, in *ListContactsRequest, opts ...grpc.CallOption) (*ListContactsResponse, error)
// Gets a single contact.
GetContact(ctx context.Context, in *GetContactRequest, opts ...grpc.CallOption) (*Contact, error)
// Deletes a contact.
DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Lists all contacts for the resource that are subscribed to the
// specified notification categories, including contacts inherited from
// any parent resources.
ComputeContacts(ctx context.Context, in *ComputeContactsRequest, opts ...grpc.CallOption) (*ComputeContactsResponse, error)
// Allows a contact admin to send a test message to contact to verify that it
// has been configured correctly.
SendTestMessage(ctx context.Context, in *SendTestMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}EssentialContactsServiceClient is the client API for EssentialContactsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEssentialContactsServiceClient
func NewEssentialContactsServiceClient(cc grpc.ClientConnInterface) EssentialContactsServiceClientEssentialContactsServiceServer
type EssentialContactsServiceServer interface {
// Adds a new contact for a resource.
CreateContact(context.Context, *CreateContactRequest) (*Contact, error)
// Updates a contact.
// Note: A contact's email address cannot be changed.
UpdateContact(context.Context, *UpdateContactRequest) (*Contact, error)
// Lists the contacts that have been set on a resource.
ListContacts(context.Context, *ListContactsRequest) (*ListContactsResponse, error)
// Gets a single contact.
GetContact(context.Context, *GetContactRequest) (*Contact, error)
// Deletes a contact.
DeleteContact(context.Context, *DeleteContactRequest) (*emptypb.Empty, error)
// Lists all contacts for the resource that are subscribed to the
// specified notification categories, including contacts inherited from
// any parent resources.
ComputeContacts(context.Context, *ComputeContactsRequest) (*ComputeContactsResponse, error)
// Allows a contact admin to send a test message to contact to verify that it
// has been configured correctly.
SendTestMessage(context.Context, *SendTestMessageRequest) (*emptypb.Empty, error)
}EssentialContactsServiceServer is the server API for EssentialContactsService service. All implementations should embed UnimplementedEssentialContactsServiceServer for forward compatibility
GetContactRequest
type GetContactRequest struct {
// Required. The name of the contact to retrieve.
// Format: organizations/{organization_id}/contacts/{contact_id},
// folders/{folder_id}/contacts/{contact_id} or
// projects/{project_id}/contacts/{contact_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for the GetContact method.
func (*GetContactRequest) Descriptor
func (*GetContactRequest) Descriptor() ([]byte, []int)Deprecated: Use GetContactRequest.ProtoReflect.Descriptor instead.
func (*GetContactRequest) GetName
func (x *GetContactRequest) GetName() stringfunc (*GetContactRequest) ProtoMessage
func (*GetContactRequest) ProtoMessage()func (*GetContactRequest) ProtoReflect
func (x *GetContactRequest) ProtoReflect() protoreflect.Messagefunc (*GetContactRequest) Reset
func (x *GetContactRequest) Reset()func (*GetContactRequest) String
func (x *GetContactRequest) String() stringListContactsRequest
type ListContactsRequest struct {
// Required. The parent resource name.
// Format: organizations/{organization_id}, folders/{folder_id} or
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of results to return from this request.
// Non-positive values are ignored. The presence of `next_page_token` in the
// response indicates that more results might be available.
// If not specified, the default page_size is 100.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. If present, retrieves the next batch of results from the
// preceding call to this method. `page_token` must be the value of
// `next_page_token` from the previous response. The values of other method
// parameters should be identical to those in the previous call.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for the ListContacts method.
func (*ListContactsRequest) Descriptor
func (*ListContactsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListContactsRequest.ProtoReflect.Descriptor instead.
func (*ListContactsRequest) GetPageSize
func (x *ListContactsRequest) GetPageSize() int32func (*ListContactsRequest) GetPageToken
func (x *ListContactsRequest) GetPageToken() stringfunc (*ListContactsRequest) GetParent
func (x *ListContactsRequest) GetParent() stringfunc (*ListContactsRequest) ProtoMessage
func (*ListContactsRequest) ProtoMessage()func (*ListContactsRequest) ProtoReflect
func (x *ListContactsRequest) ProtoReflect() protoreflect.Messagefunc (*ListContactsRequest) Reset
func (x *ListContactsRequest) Reset()func (*ListContactsRequest) String
func (x *ListContactsRequest) String() stringListContactsResponse
type ListContactsResponse struct {
// The contacts for the specified resource.
Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
// If there are more results than those appearing in this response, then
// `next_page_token` is included. To get the next set of results, call this
// method again using the value of `next_page_token` as `page_token` and the
// rest of the parameters the same as the original request.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for the ListContacts method.
func (*ListContactsResponse) Descriptor
func (*ListContactsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListContactsResponse.ProtoReflect.Descriptor instead.
func (*ListContactsResponse) GetContacts
func (x *ListContactsResponse) GetContacts() []*Contactfunc (*ListContactsResponse) GetNextPageToken
func (x *ListContactsResponse) GetNextPageToken() stringfunc (*ListContactsResponse) ProtoMessage
func (*ListContactsResponse) ProtoMessage()func (*ListContactsResponse) ProtoReflect
func (x *ListContactsResponse) ProtoReflect() protoreflect.Messagefunc (*ListContactsResponse) Reset
func (x *ListContactsResponse) Reset()func (*ListContactsResponse) String
func (x *ListContactsResponse) String() stringNotificationCategory
type NotificationCategory int32The notification categories that an essential contact can be subscribed to. Each notification will be categorized by the sender into one of the following categories. All contacts that are subscribed to that category will receive the notification.
NotificationCategory_NOTIFICATION_CATEGORY_UNSPECIFIED, NotificationCategory_ALL, NotificationCategory_SUSPENSION, NotificationCategory_SECURITY, NotificationCategory_TECHNICAL, NotificationCategory_BILLING, NotificationCategory_LEGAL, NotificationCategory_PRODUCT_UPDATES, NotificationCategory_TECHNICAL_INCIDENTS
const (
// Notification category is unrecognized or unspecified.
NotificationCategory_NOTIFICATION_CATEGORY_UNSPECIFIED NotificationCategory = 0
// All notifications related to the resource, including notifications
// pertaining to categories added in the future.
NotificationCategory_ALL NotificationCategory = 2
// Notifications related to imminent account suspension.
NotificationCategory_SUSPENSION NotificationCategory = 3
// Notifications related to security/privacy incidents, notifications, and
// vulnerabilities.
NotificationCategory_SECURITY NotificationCategory = 5
// Notifications related to technical events and issues such as outages,
// errors, or bugs.
NotificationCategory_TECHNICAL NotificationCategory = 6
// Notifications related to billing and payments notifications, price updates,
// errors, or credits.
NotificationCategory_BILLING NotificationCategory = 7
// Notifications related to enforcement actions, regulatory compliance, or
// government notices.
NotificationCategory_LEGAL NotificationCategory = 8
// Notifications related to new versions, product terms updates, or
// deprecations.
NotificationCategory_PRODUCT_UPDATES NotificationCategory = 9
// Child category of TECHNICAL. If assigned, technical incident notifications
// will go to these contacts instead of TECHNICAL.
NotificationCategory_TECHNICAL_INCIDENTS NotificationCategory = 10
)func (NotificationCategory) Descriptor
func (NotificationCategory) Descriptor() protoreflect.EnumDescriptorfunc (NotificationCategory) Enum
func (x NotificationCategory) Enum() *NotificationCategoryfunc (NotificationCategory) EnumDescriptor
func (NotificationCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use NotificationCategory.Descriptor instead.
func (NotificationCategory) Number
func (x NotificationCategory) Number() protoreflect.EnumNumberfunc (NotificationCategory) String
func (x NotificationCategory) String() stringfunc (NotificationCategory) Type
func (NotificationCategory) Type() protoreflect.EnumTypeSendTestMessageRequest
type SendTestMessageRequest struct {
// Required. The list of names of the contacts to send a test message to.
// Format: organizations/{organization_id}/contacts/{contact_id},
// folders/{folder_id}/contacts/{contact_id} or
// projects/{project_id}/contacts/{contact_id}
Contacts []string `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
// Required. The name of the resource to send the test message for. All
// contacts must either be set directly on this resource or inherited from
// another resource that is an ancestor of this one. Format:
// organizations/{organization_id}, folders/{folder_id} or
// projects/{project_id}
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
// Required. The notification category to send the test message for. All
// contacts must be subscribed to this category.
NotificationCategory NotificationCategory `protobuf:"varint,3,opt,name=notification_category,json=notificationCategory,proto3,enum=google.cloud.essentialcontacts.v1.NotificationCategory" json:"notification_category,omitempty"`
// contains filtered or unexported fields
}Request message for the SendTestMessage method.
func (*SendTestMessageRequest) Descriptor
func (*SendTestMessageRequest) Descriptor() ([]byte, []int)Deprecated: Use SendTestMessageRequest.ProtoReflect.Descriptor instead.
func (*SendTestMessageRequest) GetContacts
func (x *SendTestMessageRequest) GetContacts() []stringfunc (*SendTestMessageRequest) GetNotificationCategory
func (x *SendTestMessageRequest) GetNotificationCategory() NotificationCategoryfunc (*SendTestMessageRequest) GetResource
func (x *SendTestMessageRequest) GetResource() stringfunc (*SendTestMessageRequest) ProtoMessage
func (*SendTestMessageRequest) ProtoMessage()func (*SendTestMessageRequest) ProtoReflect
func (x *SendTestMessageRequest) ProtoReflect() protoreflect.Messagefunc (*SendTestMessageRequest) Reset
func (x *SendTestMessageRequest) Reset()func (*SendTestMessageRequest) String
func (x *SendTestMessageRequest) String() stringUnimplementedEssentialContactsServiceServer
type UnimplementedEssentialContactsServiceServer struct {
}UnimplementedEssentialContactsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedEssentialContactsServiceServer) ComputeContacts
func (UnimplementedEssentialContactsServiceServer) ComputeContacts(context.Context, *ComputeContactsRequest) (*ComputeContactsResponse, error)func (UnimplementedEssentialContactsServiceServer) CreateContact
func (UnimplementedEssentialContactsServiceServer) CreateContact(context.Context, *CreateContactRequest) (*Contact, error)func (UnimplementedEssentialContactsServiceServer) DeleteContact
func (UnimplementedEssentialContactsServiceServer) DeleteContact(context.Context, *DeleteContactRequest) (*emptypb.Empty, error)func (UnimplementedEssentialContactsServiceServer) GetContact
func (UnimplementedEssentialContactsServiceServer) GetContact(context.Context, *GetContactRequest) (*Contact, error)func (UnimplementedEssentialContactsServiceServer) ListContacts
func (UnimplementedEssentialContactsServiceServer) ListContacts(context.Context, *ListContactsRequest) (*ListContactsResponse, error)func (UnimplementedEssentialContactsServiceServer) SendTestMessage
func (UnimplementedEssentialContactsServiceServer) SendTestMessage(context.Context, *SendTestMessageRequest) (*emptypb.Empty, error)func (UnimplementedEssentialContactsServiceServer) UpdateContact
func (UnimplementedEssentialContactsServiceServer) UpdateContact(context.Context, *UpdateContactRequest) (*Contact, error)UnsafeEssentialContactsServiceServer
type UnsafeEssentialContactsServiceServer interface {
// contains filtered or unexported methods
}UnsafeEssentialContactsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EssentialContactsServiceServer will result in compilation errors.
UpdateContactRequest
type UpdateContactRequest struct {
// Required. The contact resource to replace the existing saved contact. Note:
// the email address of the contact cannot be modified.
Contact *Contact `protobuf:"bytes,2,opt,name=contact,proto3" json:"contact,omitempty"`
// Optional. The update mask applied to the resource. For the `FieldMask`
// definition, see
// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for the UpdateContact method.
func (*UpdateContactRequest) Descriptor
func (*UpdateContactRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateContactRequest.ProtoReflect.Descriptor instead.
func (*UpdateContactRequest) GetContact
func (x *UpdateContactRequest) GetContact() *Contactfunc (*UpdateContactRequest) GetUpdateMask
func (x *UpdateContactRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateContactRequest) ProtoMessage
func (*UpdateContactRequest) ProtoMessage()func (*UpdateContactRequest) ProtoReflect
func (x *UpdateContactRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateContactRequest) Reset
func (x *UpdateContactRequest) Reset()func (*UpdateContactRequest) String
func (x *UpdateContactRequest) String() stringValidationState
type ValidationState int32A contact's validation state indicates whether or not it is the correct contact to be receiving notifications for a particular resource.
ValidationState_VALIDATION_STATE_UNSPECIFIED, ValidationState_VALID, ValidationState_INVALID
const (
// The validation state is unknown or unspecified.
ValidationState_VALIDATION_STATE_UNSPECIFIED ValidationState = 0
// The contact is marked as valid. This is usually done manually by the
// contact admin. All new contacts begin in the valid state.
ValidationState_VALID ValidationState = 1
// The contact is considered invalid. This may become the state if the
// contact's email is found to be unreachable.
ValidationState_INVALID ValidationState = 2
)func (ValidationState) Descriptor
func (ValidationState) Descriptor() protoreflect.EnumDescriptorfunc (ValidationState) Enum
func (x ValidationState) Enum() *ValidationStatefunc (ValidationState) EnumDescriptor
func (ValidationState) EnumDescriptor() ([]byte, []int)Deprecated: Use ValidationState.Descriptor instead.
func (ValidationState) Number
func (x ValidationState) Number() protoreflect.EnumNumberfunc (ValidationState) String
func (x ValidationState) String() stringfunc (ValidationState) Type
func (ValidationState) Type() protoreflect.EnumType