# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/notifications/v1/notificationsapi.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'


descriptor_data = "\n@google/shopping/merchant/notifications/v1/notificationsapi.proto\x12)google.shopping.merchant.notifications.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"o\n\"GetNotificationSubscriptionRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3merchantapi.googleapis.com/NotificationSubscription\"\xe1\x01\n%CreateNotificationSubscriptionRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33merchantapi.googleapis.com/NotificationSubscription\x12k\n\x19notification_subscription\x18\x02 \x01(\x0b\x32\x43.google.shopping.merchant.notifications.v1.NotificationSubscriptionB\x03\xe0\x41\x02\"\xc5\x01\n%UpdateNotificationSubscriptionRequest\x12k\n\x19notification_subscription\x18\x01 \x01(\x0b\x32\x43.google.shopping.merchant.notifications.v1.NotificationSubscriptionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"r\n%DeleteNotificationSubscriptionRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3merchantapi.googleapis.com/NotificationSubscription\"\x9a\x01\n$ListNotificationSubscriptionsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33merchantapi.googleapis.com/NotificationSubscription\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xa9\x01\n%ListNotificationSubscriptionsResponse\x12g\n\x1anotification_subscriptions\x18\x01 \x03(\x0b\x32\x43.google.shopping.merchant.notifications.v1.NotificationSubscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe6\x03\n\x18NotificationSubscription\x12\x1e\n\x14\x61ll_managed_accounts\x18\x03 \x01(\x08H\x00\x12\x18\n\x0etarget_account\x18\x04 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12s\n\x10registered_event\x18\x02 \x01(\x0e\x32Y.google.shopping.merchant.notifications.v1.NotificationSubscription.NotificationEventType\x12\x15\n\rcall_back_uri\x18\x05 \x01(\t\"[\n\x15NotificationEventType\x12\'\n#NOTIFICATION_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15PRODUCT_STATUS_CHANGE\x10\x01:\x82\x01\xea\x41\x7f\n3merchantapi.googleapis.com/NotificationSubscription\x12Haccounts/{account}/notificationsubscriptions/{notification_subscription}B\x0f\n\rinterested_in\"\x89\x01\n/GetNotificationSubscriptionHealthMetricsRequest\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@merchantapi.googleapis.com/NotificationSubscriptionHealthMetrics\"\xcd\x02\n%NotificationSubscriptionHealthMetrics\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12#\n\x1b\x61\x63knowledged_messages_count\x18\x02 \x01(\x03\x12\"\n\x1aundelivered_messages_count\x18\x03 \x01(\x03\x12\x32\n*oldest_unacknowledged_message_waiting_time\x18\x04 \x01(\x03:\x90\x01\xea\x41\x8c\x01\n@merchantapi.googleapis.com/NotificationSubscriptionHealthMetrics\x12Haccounts/{account}/notificationsubscriptions/{notification_subscription}2\xb2\x0e\n\x17NotificationsApiService\x12\x81\x02\n\x1bGetNotificationSubscription\x12M.google.shopping.merchant.notifications.v1.GetNotificationSubscriptionRequest\x1a\x43.google.shopping.merchant.notifications.v1.NotificationSubscription\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/notifications/v1/{name=accounts/*/notificationsubscriptions/*}\x12\xbf\x02\n\x1e\x43reateNotificationSubscription\x12P.google.shopping.merchant.notifications.v1.CreateNotificationSubscriptionRequest\x1a\x43.google.shopping.merchant.notifications.v1.NotificationSubscription\"\x85\x01\xda\x41 parent,notification_subscription\x82\xd3\xe4\x93\x02\\\"?/notifications/v1/{parent=accounts/*}/notificationsubscriptions:\x19notification_subscription\x12\xde\x02\n\x1eUpdateNotificationSubscription\x12P.google.shopping.merchant.notifications.v1.UpdateNotificationSubscriptionRequest\x1a\x43.google.shopping.merchant.notifications.v1.NotificationSubscription\"\xa4\x01\xda\x41%notification_subscription,update_mask\x82\xd3\xe4\x93\x02v2Y/notifications/v1/{notification_subscription.name=accounts/*/notificationsubscriptions/*}:\x19notification_subscription\x12\xda\x01\n\x1e\x44\x65leteNotificationSubscription\x12P.google.shopping.merchant.notifications.v1.DeleteNotificationSubscriptionRequest\x1a\x16.google.protobuf.Empty\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41*?/notifications/v1/{name=accounts/*/notificationsubscriptions/*}\x12\x94\x02\n\x1dListNotificationSubscriptions\x12O.google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsRequest\x1aP.google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/notifications/v1/{parent=accounts/*}/notificationsubscriptions\x12\xb2\x02\n(GetNotificationSubscriptionHealthMetrics\x12Z.google.shopping.merchant.notifications.v1.GetNotificationSubscriptionHealthMetricsRequest\x1aP.google.shopping.merchant.notifications.v1.NotificationSubscriptionHealthMetrics\"X\xda\x41\x04name\x82\xd3\xe4\x93\x02K\x12I/notifications/v1/{name=accounts/*/notificationsubscriptions/*}:getHealth\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xe6\x02\n-com.google.shopping.merchant.notifications.v1B\x15NotificationsApiProtoP\x01ZYcloud.google.com/go/shopping/merchant/notifications/apiv1/notificationspb;notificationspb\xaa\x02)Google.Shopping.Merchant.Notifications.V1\xca\x02)Google\\Shopping\\Merchant\\Notifications\\V1\xea\x02-Google::Shopping::Merchant::Notifications::V1\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Shopping
    module Merchant
      module Notifications
        module V1
          GetNotificationSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.GetNotificationSubscriptionRequest").msgclass
          CreateNotificationSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.CreateNotificationSubscriptionRequest").msgclass
          UpdateNotificationSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.UpdateNotificationSubscriptionRequest").msgclass
          DeleteNotificationSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.DeleteNotificationSubscriptionRequest").msgclass
          ListNotificationSubscriptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsRequest").msgclass
          ListNotificationSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsResponse").msgclass
          NotificationSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.NotificationSubscription").msgclass
          NotificationSubscription::NotificationEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.NotificationSubscription.NotificationEventType").enummodule
          GetNotificationSubscriptionHealthMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.GetNotificationSubscriptionHealthMetricsRequest").msgclass
          NotificationSubscriptionHealthMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.notifications.v1.NotificationSubscriptionHealthMetrics").msgclass
        end
      end
    end
  end
end
