// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Sync protocol datatype extension for compare.

// 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: compare_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)
)

// A Compare sync entity, containing sufficient data to enable all data
// acquisition for rendering the Compare experience.
type CompareSpecifics struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// The primary key for local storage.
	Uuid *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	// Tracks when this entity was created.
	CreationTimeUnixEpochMicros *int64 `protobuf:"varint,2,opt,name=creation_time_unix_epoch_micros,json=creationTimeUnixEpochMicros" json:"creation_time_unix_epoch_micros,omitempty"`
	// Tracks when this entity was last modified.
	UpdateTimeUnixEpochMicros *int64 `protobuf:"varint,3,opt,name=update_time_unix_epoch_micros,json=updateTimeUnixEpochMicros" json:"update_time_unix_epoch_micros,omitempty"`
	// The name of the comparison group.
	Name *string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
	// The list of product URLs that constitute this comparison group.
	Data []*ComparisonData `protobuf:"bytes,5,rep,name=data" json:"data,omitempty"`
}

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

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

func (*CompareSpecifics) ProtoMessage() {}

func (x *CompareSpecifics) ProtoReflect() protoreflect.Message {
	mi := &file_compare_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 CompareSpecifics.ProtoReflect.Descriptor instead.
func (*CompareSpecifics) Descriptor() ([]byte, []int) {
	return file_compare_specifics_proto_rawDescGZIP(), []int{0}
}

func (x *CompareSpecifics) GetUuid() string {
	if x != nil && x.Uuid != nil {
		return *x.Uuid
	}
	return ""
}

func (x *CompareSpecifics) GetCreationTimeUnixEpochMicros() int64 {
	if x != nil && x.CreationTimeUnixEpochMicros != nil {
		return *x.CreationTimeUnixEpochMicros
	}
	return 0
}

func (x *CompareSpecifics) GetUpdateTimeUnixEpochMicros() int64 {
	if x != nil && x.UpdateTimeUnixEpochMicros != nil {
		return *x.UpdateTimeUnixEpochMicros
	}
	return 0
}

func (x *CompareSpecifics) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

func (x *CompareSpecifics) GetData() []*ComparisonData {
	if x != nil {
		return x.Data
	}
	return nil
}

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

	// The URL of the item in the comparison.
	Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
}

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

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

func (*ComparisonData) ProtoMessage() {}

func (x *ComparisonData) ProtoReflect() protoreflect.Message {
	mi := &file_compare_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 ComparisonData.ProtoReflect.Descriptor instead.
func (*ComparisonData) Descriptor() ([]byte, []int) {
	return file_compare_specifics_proto_rawDescGZIP(), []int{1}
}

func (x *ComparisonData) GetUrl() string {
	if x != nil && x.Url != nil {
		return *x.Url
	}
	return ""
}

var File_compare_specifics_proto protoreflect.FileDescriptor

var file_compare_specifics_proto_rawDesc = []byte{
	0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 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, 0xef, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x53, 0x70,
	0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18,
	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x44, 0x0a, 0x1f, 0x63,
	0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x6e, 0x69,
	0x78, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x02,
	0x20, 0x01, 0x28, 0x03, 0x52, 0x1b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69,
	0x6d, 0x65, 0x55, 0x6e, 0x69, 0x78, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x69, 0x63, 0x72, 0x6f,
	0x73, 0x12, 0x40, 0x0a, 0x1d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
	0x5f, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6d, 0x69, 0x63, 0x72,
	0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
	0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x78, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4d, 0x69, 0x63,
	0x72, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
	0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62, 0x2e,
	0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04,
	0x64, 0x61, 0x74, 0x61, 0x22, 0x22, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73,
	0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20,
	0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 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_compare_specifics_proto_rawDescOnce sync.Once
	file_compare_specifics_proto_rawDescData = file_compare_specifics_proto_rawDesc
)

func file_compare_specifics_proto_rawDescGZIP() []byte {
	file_compare_specifics_proto_rawDescOnce.Do(func() {
		file_compare_specifics_proto_rawDescData = protoimpl.X.CompressGZIP(file_compare_specifics_proto_rawDescData)
	})
	return file_compare_specifics_proto_rawDescData
}

var file_compare_specifics_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_compare_specifics_proto_goTypes = []interface{}{
	(*CompareSpecifics)(nil), // 0: sync_pb.CompareSpecifics
	(*ComparisonData)(nil),   // 1: sync_pb.ComparisonData
}
var file_compare_specifics_proto_depIdxs = []int32{
	1, // 0: sync_pb.CompareSpecifics.data:type_name -> sync_pb.ComparisonData
	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_compare_specifics_proto_init() }
func file_compare_specifics_proto_init() {
	if File_compare_specifics_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_compare_specifics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*CompareSpecifics); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_compare_specifics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ComparisonData); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_compare_specifics_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_compare_specifics_proto_goTypes,
		DependencyIndexes: file_compare_specifics_proto_depIdxs,
		MessageInfos:      file_compare_specifics_proto_msgTypes,
	}.Build()
	File_compare_specifics_proto = out.File
	file_compare_specifics_proto_rawDesc = nil
	file_compare_specifics_proto_goTypes = nil
	file_compare_specifics_proto_depIdxs = nil
}
