// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// If you change or add any fields in this file, update proto_visitors.h and
// potentially proto_enum_conversions.{h, cc}.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.31.0
// 	protoc        v3.6.1
// source: autofill_wallet_usage_specifics.proto

package sync_pb

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type AutofillWalletUsageSpecifics struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// A unique ID identifying this item. Used as the client tag.
	Guid *string `protobuf:"bytes,1,opt,name=guid" json:"guid,omitempty"`
	// The type of usage data this entity is associated with.
	//
	// Types that are assignable to UsageDataType:
	//	*AutofillWalletUsageSpecifics_VirtualCardUsageData_
	UsageDataType isAutofillWalletUsageSpecifics_UsageDataType `protobuf_oneof:"usage_data_type"`
}

func (x *AutofillWalletUsageSpecifics) Reset() {
	*x = AutofillWalletUsageSpecifics{}
	if protoimpl.UnsafeEnabled {
		mi := &file_autofill_wallet_usage_specifics_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *AutofillWalletUsageSpecifics) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AutofillWalletUsageSpecifics) ProtoMessage() {}

func (x *AutofillWalletUsageSpecifics) ProtoReflect() protoreflect.Message {
	mi := &file_autofill_wallet_usage_specifics_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AutofillWalletUsageSpecifics.ProtoReflect.Descriptor instead.
func (*AutofillWalletUsageSpecifics) Descriptor() ([]byte, []int) {
	return file_autofill_wallet_usage_specifics_proto_rawDescGZIP(), []int{0}
}

func (x *AutofillWalletUsageSpecifics) GetGuid() string {
	if x != nil && x.Guid != nil {
		return *x.Guid
	}
	return ""
}

func (m *AutofillWalletUsageSpecifics) GetUsageDataType() isAutofillWalletUsageSpecifics_UsageDataType {
	if m != nil {
		return m.UsageDataType
	}
	return nil
}

func (x *AutofillWalletUsageSpecifics) GetVirtualCardUsageData() *AutofillWalletUsageSpecifics_VirtualCardUsageData {
	if x, ok := x.GetUsageDataType().(*AutofillWalletUsageSpecifics_VirtualCardUsageData_); ok {
		return x.VirtualCardUsageData
	}
	return nil
}

type isAutofillWalletUsageSpecifics_UsageDataType interface {
	isAutofillWalletUsageSpecifics_UsageDataType()
}

type AutofillWalletUsageSpecifics_VirtualCardUsageData_ struct {
	VirtualCardUsageData *AutofillWalletUsageSpecifics_VirtualCardUsageData `protobuf:"bytes,2,opt,name=virtual_card_usage_data,json=virtualCardUsageData,oneof"`
}

func (*AutofillWalletUsageSpecifics_VirtualCardUsageData_) isAutofillWalletUsageSpecifics_UsageDataType() {
}

type AutofillWalletUsageSpecifics_VirtualCardUsageData struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// The instrument id of the actual card that the virtual card is related to.
	InstrumentId *int64 `protobuf:"varint,1,opt,name=instrument_id,json=instrumentId" json:"instrument_id,omitempty"`
	// The last four of the virtual card number. This is tied to the usage
	// data because the virtual card number may vary depending on merchants.
	VirtualCardLastFour *string `protobuf:"bytes,2,opt,name=virtual_card_last_four,json=virtualCardLastFour" json:"virtual_card_last_four,omitempty"`
	// The url of the merchant where the virtual card is used.
	MerchantUrl *string `protobuf:"bytes,3,opt,name=merchant_url,json=merchantUrl" json:"merchant_url,omitempty"`
	// The merchant the usage data is related to on the Android platform.
	MerchantAppPackage *string `protobuf:"bytes,4,opt,name=merchant_app_package,json=merchantAppPackage" json:"merchant_app_package,omitempty"`
}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) Reset() {
	*x = AutofillWalletUsageSpecifics_VirtualCardUsageData{}
	if protoimpl.UnsafeEnabled {
		mi := &file_autofill_wallet_usage_specifics_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AutofillWalletUsageSpecifics_VirtualCardUsageData) ProtoMessage() {}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) ProtoReflect() protoreflect.Message {
	mi := &file_autofill_wallet_usage_specifics_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AutofillWalletUsageSpecifics_VirtualCardUsageData.ProtoReflect.Descriptor instead.
func (*AutofillWalletUsageSpecifics_VirtualCardUsageData) Descriptor() ([]byte, []int) {
	return file_autofill_wallet_usage_specifics_proto_rawDescGZIP(), []int{0, 0}
}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) GetInstrumentId() int64 {
	if x != nil && x.InstrumentId != nil {
		return *x.InstrumentId
	}
	return 0
}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) GetVirtualCardLastFour() string {
	if x != nil && x.VirtualCardLastFour != nil {
		return *x.VirtualCardLastFour
	}
	return ""
}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) GetMerchantUrl() string {
	if x != nil && x.MerchantUrl != nil {
		return *x.MerchantUrl
	}
	return ""
}

func (x *AutofillWalletUsageSpecifics_VirtualCardUsageData) GetMerchantAppPackage() string {
	if x != nil && x.MerchantAppPackage != nil {
		return *x.MerchantAppPackage
	}
	return ""
}

var File_autofill_wallet_usage_specifics_proto protoreflect.FileDescriptor

var file_autofill_wallet_usage_specifics_proto_rawDesc = []byte{
	0x0a, 0x25, 0x61, 0x75, 0x74, 0x6f, 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x65,
	0x74, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63,
	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62,
	0x22, 0x82, 0x03, 0x0a, 0x1c, 0x41, 0x75, 0x74, 0x6f, 0x66, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x6c,
	0x6c, 0x65, 0x74, 0x55, 0x73, 0x61, 0x67, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63,
	0x73, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x04, 0x67, 0x75, 0x69, 0x64, 0x12, 0x73, 0x0a, 0x17, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c,
	0x5f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61,
	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62,
	0x2e, 0x41, 0x75, 0x74, 0x6f, 0x66, 0x69, 0x6c, 0x6c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55,
	0x73, 0x61, 0x67, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x69,
	0x72, 0x74, 0x75, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61,
	0x74, 0x61, 0x48, 0x00, 0x52, 0x14, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x43, 0x61, 0x72,
	0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x1a, 0xc5, 0x01, 0x0a, 0x14, 0x56,
	0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44,
	0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e,
	0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74,
	0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x76, 0x69, 0x72, 0x74,
	0x75, 0x61, 0x6c, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, 0x6f,
	0x75, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61,
	0x6c, 0x43, 0x61, 0x72, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x46, 0x6f, 0x75, 0x72, 0x12, 0x21, 0x0a,
	0x0c, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20,
	0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x55, 0x72, 0x6c,
	0x12, 0x30, 0x0a, 0x14, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70,
	0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12,
	0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x50, 0x61, 0x63, 0x6b, 0x61,
	0x67, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61,
	0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x36, 0x0a, 0x25, 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x68, 0x72,
	0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73,
	0x2e, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x03,
	0x50, 0x01, 0x5a, 0x09, 0x2e, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62,
}

var (
	file_autofill_wallet_usage_specifics_proto_rawDescOnce sync.Once
	file_autofill_wallet_usage_specifics_proto_rawDescData = file_autofill_wallet_usage_specifics_proto_rawDesc
)

func file_autofill_wallet_usage_specifics_proto_rawDescGZIP() []byte {
	file_autofill_wallet_usage_specifics_proto_rawDescOnce.Do(func() {
		file_autofill_wallet_usage_specifics_proto_rawDescData = protoimpl.X.CompressGZIP(file_autofill_wallet_usage_specifics_proto_rawDescData)
	})
	return file_autofill_wallet_usage_specifics_proto_rawDescData
}

var file_autofill_wallet_usage_specifics_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_autofill_wallet_usage_specifics_proto_goTypes = []interface{}{
	(*AutofillWalletUsageSpecifics)(nil),                      // 0: sync_pb.AutofillWalletUsageSpecifics
	(*AutofillWalletUsageSpecifics_VirtualCardUsageData)(nil), // 1: sync_pb.AutofillWalletUsageSpecifics.VirtualCardUsageData
}
var file_autofill_wallet_usage_specifics_proto_depIdxs = []int32{
	1, // 0: sync_pb.AutofillWalletUsageSpecifics.virtual_card_usage_data:type_name -> sync_pb.AutofillWalletUsageSpecifics.VirtualCardUsageData
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_autofill_wallet_usage_specifics_proto_init() }
func file_autofill_wallet_usage_specifics_proto_init() {
	if File_autofill_wallet_usage_specifics_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_autofill_wallet_usage_specifics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*AutofillWalletUsageSpecifics); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_autofill_wallet_usage_specifics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*AutofillWalletUsageSpecifics_VirtualCardUsageData); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	file_autofill_wallet_usage_specifics_proto_msgTypes[0].OneofWrappers = []interface{}{
		(*AutofillWalletUsageSpecifics_VirtualCardUsageData_)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_autofill_wallet_usage_specifics_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_autofill_wallet_usage_specifics_proto_goTypes,
		DependencyIndexes: file_autofill_wallet_usage_specifics_proto_depIdxs,
		MessageInfos:      file_autofill_wallet_usage_specifics_proto_msgTypes,
	}.Build()
	File_autofill_wallet_usage_specifics_proto = out.File
	file_autofill_wallet_usage_specifics_proto_rawDesc = nil
	file_autofill_wallet_usage_specifics_proto_goTypes = nil
	file_autofill_wallet_usage_specifics_proto_depIdxs = nil
}
