// 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.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.31.0
// 	protoc        v3.6.1
// source: power_bookmark_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)
)

// PowerType is persisted to disk and therefore shouldn't be reoderered or
// changed.
// Should keep the field numbers of PowerType in sync with the ones in
// entity above.
type PowerBookmarkSpecifics_PowerType int32

const (
	// All powers should have type so this should be unused.
	PowerBookmarkSpecifics_POWER_TYPE_UNSPECIFIED PowerBookmarkSpecifics_PowerType = 0
	// Used for testing.
	PowerBookmarkSpecifics_POWER_TYPE_MOCK PowerBookmarkSpecifics_PowerType = 1
	// Used for notes.
	PowerBookmarkSpecifics_POWER_TYPE_NOTE PowerBookmarkSpecifics_PowerType = 2
)

// Enum value maps for PowerBookmarkSpecifics_PowerType.
var (
	PowerBookmarkSpecifics_PowerType_name = map[int32]string{
		0: "POWER_TYPE_UNSPECIFIED",
		1: "POWER_TYPE_MOCK",
		2: "POWER_TYPE_NOTE",
	}
	PowerBookmarkSpecifics_PowerType_value = map[string]int32{
		"POWER_TYPE_UNSPECIFIED": 0,
		"POWER_TYPE_MOCK":        1,
		"POWER_TYPE_NOTE":        2,
	}
)

func (x PowerBookmarkSpecifics_PowerType) Enum() *PowerBookmarkSpecifics_PowerType {
	p := new(PowerBookmarkSpecifics_PowerType)
	*p = x
	return p
}

func (x PowerBookmarkSpecifics_PowerType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PowerBookmarkSpecifics_PowerType) Descriptor() protoreflect.EnumDescriptor {
	return file_power_bookmark_specifics_proto_enumTypes[0].Descriptor()
}

func (PowerBookmarkSpecifics_PowerType) Type() protoreflect.EnumType {
	return &file_power_bookmark_specifics_proto_enumTypes[0]
}

func (x PowerBookmarkSpecifics_PowerType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Do not use.
func (x *PowerBookmarkSpecifics_PowerType) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = PowerBookmarkSpecifics_PowerType(num)
	return nil
}

// Deprecated: Use PowerBookmarkSpecifics_PowerType.Descriptor instead.
func (PowerBookmarkSpecifics_PowerType) EnumDescriptor() ([]byte, []int) {
	return file_power_bookmark_specifics_proto_rawDescGZIP(), []int{1, 0}
}

// Data structure dedicated to each power type.
// Should keep the field numbers of specifics in sync with the ones in PowerType
// below.
type PowerEntity struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Types that are assignable to Entity:
	//	*PowerEntity_NoteEntity
	Entity isPowerEntity_Entity `protobuf_oneof:"entity"`
}

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

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

func (*PowerEntity) ProtoMessage() {}

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

func (m *PowerEntity) GetEntity() isPowerEntity_Entity {
	if m != nil {
		return m.Entity
	}
	return nil
}

func (x *PowerEntity) GetNoteEntity() *NoteEntity {
	if x, ok := x.GetEntity().(*PowerEntity_NoteEntity); ok {
		return x.NoteEntity
	}
	return nil
}

type isPowerEntity_Entity interface {
	isPowerEntity_Entity()
}

type PowerEntity_NoteEntity struct {
	// Used for notes.
	NoteEntity *NoteEntity `protobuf:"bytes,2,opt,name=note_entity,json=noteEntity,oneof"`
}

func (*PowerEntity_NoteEntity) isPowerEntity_Entity() {}

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

	// required
	Guid *string `protobuf:"bytes,1,opt,name=guid" json:"guid,omitempty"`
	// required
	Url *string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
	// required
	PowerType *PowerBookmarkSpecifics_PowerType `protobuf:"varint,3,opt,name=power_type,json=powerType,enum=sync_pb.PowerBookmarkSpecifics_PowerType" json:"power_type,omitempty"`
	// required
	CreationTimeUsec *int64 `protobuf:"varint,4,opt,name=creation_time_usec,json=creationTimeUsec" json:"creation_time_usec,omitempty"`
	// required
	UpdateTimeUsec *int64 `protobuf:"varint,5,opt,name=update_time_usec,json=updateTimeUsec" json:"update_time_usec,omitempty"`
	// required
	PowerEntity *PowerEntity `protobuf:"bytes,100,opt,name=power_entity,json=powerEntity" json:"power_entity,omitempty"`
}

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

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

func (*PowerBookmarkSpecifics) ProtoMessage() {}

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

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

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

func (x *PowerBookmarkSpecifics) GetPowerType() PowerBookmarkSpecifics_PowerType {
	if x != nil && x.PowerType != nil {
		return *x.PowerType
	}
	return PowerBookmarkSpecifics_POWER_TYPE_UNSPECIFIED
}

func (x *PowerBookmarkSpecifics) GetCreationTimeUsec() int64 {
	if x != nil && x.CreationTimeUsec != nil {
		return *x.CreationTimeUsec
	}
	return 0
}

func (x *PowerBookmarkSpecifics) GetUpdateTimeUsec() int64 {
	if x != nil && x.UpdateTimeUsec != nil {
		return *x.UpdateTimeUsec
	}
	return 0
}

func (x *PowerBookmarkSpecifics) GetPowerEntity() *PowerEntity {
	if x != nil {
		return x.PowerEntity
	}
	return nil
}

var File_power_bookmark_specifics_proto protoreflect.FileDescriptor

var file_power_bookmark_specifics_proto_rawDesc = []byte{
	0x0a, 0x1e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x6f, 0x6b, 0x6d, 0x61, 0x72, 0x6b,
	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, 0x1a, 0x11, 0x6e, 0x6f, 0x74, 0x65, 0x5f,
	0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x0b,
	0x50, 0x6f, 0x77, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x6e,
	0x6f, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
	0x32, 0x13, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x45,
	0x6e, 0x74, 0x69, 0x74, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x45, 0x6e, 0x74,
	0x69, 0x74, 0x79, 0x42, 0x08, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xec, 0x02,
	0x0a, 0x16, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x6d, 0x61, 0x72, 0x6b, 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, 0x10, 0x0a, 0x03,
	0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x48,
	0x0a, 0x0a, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
	0x28, 0x0e, 0x32, 0x29, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x77,
	0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x6d, 0x61, 0x72, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66,
	0x69, 0x63, 0x73, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x70,
	0x6f, 0x77, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61,
	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x63, 0x18, 0x04,
	0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69,
	0x6d, 0x65, 0x55, 0x73, 0x65, 0x63, 0x12, 0x28, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
	0x52, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x63,
	0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
	0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62,
	0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x70, 0x6f,
	0x77, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x51, 0x0a, 0x09, 0x50, 0x6f, 0x77,
	0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f,
	0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
	0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,
	0x5f, 0x4d, 0x4f, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x4f, 0x57, 0x45, 0x52,
	0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x45, 0x10, 0x02, 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_power_bookmark_specifics_proto_rawDescOnce sync.Once
	file_power_bookmark_specifics_proto_rawDescData = file_power_bookmark_specifics_proto_rawDesc
)

func file_power_bookmark_specifics_proto_rawDescGZIP() []byte {
	file_power_bookmark_specifics_proto_rawDescOnce.Do(func() {
		file_power_bookmark_specifics_proto_rawDescData = protoimpl.X.CompressGZIP(file_power_bookmark_specifics_proto_rawDescData)
	})
	return file_power_bookmark_specifics_proto_rawDescData
}

var file_power_bookmark_specifics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_power_bookmark_specifics_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_power_bookmark_specifics_proto_goTypes = []interface{}{
	(PowerBookmarkSpecifics_PowerType)(0), // 0: sync_pb.PowerBookmarkSpecifics.PowerType
	(*PowerEntity)(nil),                   // 1: sync_pb.PowerEntity
	(*PowerBookmarkSpecifics)(nil),        // 2: sync_pb.PowerBookmarkSpecifics
	(*NoteEntity)(nil),                    // 3: sync_pb.NoteEntity
}
var file_power_bookmark_specifics_proto_depIdxs = []int32{
	3, // 0: sync_pb.PowerEntity.note_entity:type_name -> sync_pb.NoteEntity
	0, // 1: sync_pb.PowerBookmarkSpecifics.power_type:type_name -> sync_pb.PowerBookmarkSpecifics.PowerType
	1, // 2: sync_pb.PowerBookmarkSpecifics.power_entity:type_name -> sync_pb.PowerEntity
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_power_bookmark_specifics_proto_init() }
func file_power_bookmark_specifics_proto_init() {
	if File_power_bookmark_specifics_proto != nil {
		return
	}
	file_note_entity_proto_init()
	if !protoimpl.UnsafeEnabled {
		file_power_bookmark_specifics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PowerEntity); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_power_bookmark_specifics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PowerBookmarkSpecifics); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	file_power_bookmark_specifics_proto_msgTypes[0].OneofWrappers = []interface{}{
		(*PowerEntity_NoteEntity)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_power_bookmark_specifics_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_power_bookmark_specifics_proto_goTypes,
		DependencyIndexes: file_power_bookmark_specifics_proto_depIdxs,
		EnumInfos:         file_power_bookmark_specifics_proto_enumTypes,
		MessageInfos:      file_power_bookmark_specifics_proto_msgTypes,
	}.Build()
	File_power_bookmark_specifics_proto = out.File
	file_power_bookmark_specifics_proto_rawDesc = nil
	file_power_bookmark_specifics_proto_goTypes = nil
	file_power_bookmark_specifics_proto_depIdxs = nil
}
