// 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: note_entity.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 NoteEntity_TargetType int32

const (
	NoteEntity_TARGET_TYPE_UNSPECIFIED NoteEntity_TargetType = 0
	// Page target type makes the note global to the page. It does not associate
	// with any user selection.
	NoteEntity_TARGET_TYPE_PAGE NoteEntity_TargetType = 1
)

// Enum value maps for NoteEntity_TargetType.
var (
	NoteEntity_TargetType_name = map[int32]string{
		0: "TARGET_TYPE_UNSPECIFIED",
		1: "TARGET_TYPE_PAGE",
	}
	NoteEntity_TargetType_value = map[string]int32{
		"TARGET_TYPE_UNSPECIFIED": 0,
		"TARGET_TYPE_PAGE":        1,
	}
)

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

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

func (NoteEntity_TargetType) Descriptor() protoreflect.EnumDescriptor {
	return file_note_entity_proto_enumTypes[0].Descriptor()
}

func (NoteEntity_TargetType) Type() protoreflect.EnumType {
	return &file_note_entity_proto_enumTypes[0]
}

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

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

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

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

	// Plain text of the note.
	PlainText *string `protobuf:"bytes,1,opt,name=plain_text,json=plainText" json:"plain_text,omitempty"`
	// Rich text of the note. It will be used when plain_text is empty and the UI
	// supports rich text.
	RichText *string `protobuf:"bytes,2,opt,name=rich_text,json=richText" json:"rich_text,omitempty"`
	// required
	TargetType *NoteEntity_TargetType `protobuf:"varint,3,opt,name=target_type,json=targetType,enum=sync_pb.NoteEntity_TargetType" json:"target_type,omitempty"`
	// required
	CurrentNoteVersion *int32 `protobuf:"varint,4,opt,name=current_note_version,json=currentNoteVersion" json:"current_note_version,omitempty"`
}

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

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

func (*NoteEntity) ProtoMessage() {}

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

func (x *NoteEntity) GetPlainText() string {
	if x != nil && x.PlainText != nil {
		return *x.PlainText
	}
	return ""
}

func (x *NoteEntity) GetRichText() string {
	if x != nil && x.RichText != nil {
		return *x.RichText
	}
	return ""
}

func (x *NoteEntity) GetTargetType() NoteEntity_TargetType {
	if x != nil && x.TargetType != nil {
		return *x.TargetType
	}
	return NoteEntity_TARGET_TYPE_UNSPECIFIED
}

func (x *NoteEntity) GetCurrentNoteVersion() int32 {
	if x != nil && x.CurrentNoteVersion != nil {
		return *x.CurrentNoteVersion
	}
	return 0
}

var File_note_entity_proto protoreflect.FileDescriptor

var file_note_entity_proto_rawDesc = []byte{
	0x0a, 0x11, 0x6e, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x12, 0x07, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62, 0x22, 0xfc, 0x01, 0x0a,
	0x0a, 0x4e, 0x6f, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
	0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54, 0x65, 0x78, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x69,
	0x63, 0x68, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72,
	0x69, 0x63, 0x68, 0x54, 0x65, 0x78, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65,
	0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x73,
	0x79, 0x6e, 0x63, 0x5f, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74,
	0x79, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61,
	0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72,
	0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
	0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e,
	0x6f, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3f, 0x0a, 0x0a, 0x54, 0x61,
	0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x52, 0x47,
	0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
	0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f,
	0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x47, 0x45, 0x10, 0x01, 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_note_entity_proto_rawDescOnce sync.Once
	file_note_entity_proto_rawDescData = file_note_entity_proto_rawDesc
)

func file_note_entity_proto_rawDescGZIP() []byte {
	file_note_entity_proto_rawDescOnce.Do(func() {
		file_note_entity_proto_rawDescData = protoimpl.X.CompressGZIP(file_note_entity_proto_rawDescData)
	})
	return file_note_entity_proto_rawDescData
}

var file_note_entity_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_note_entity_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_note_entity_proto_goTypes = []interface{}{
	(NoteEntity_TargetType)(0), // 0: sync_pb.NoteEntity.TargetType
	(*NoteEntity)(nil),         // 1: sync_pb.NoteEntity
}
var file_note_entity_proto_depIdxs = []int32{
	0, // 0: sync_pb.NoteEntity.target_type:type_name -> sync_pb.NoteEntity.TargetType
	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_note_entity_proto_init() }
func file_note_entity_proto_init() {
	if File_note_entity_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_note_entity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*NoteEntity); 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_note_entity_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_note_entity_proto_goTypes,
		DependencyIndexes: file_note_entity_proto_depIdxs,
		EnumInfos:         file_note_entity_proto_enumTypes,
		MessageInfos:      file_note_entity_proto_msgTypes,
	}.Build()
	File_note_entity_proto = out.File
	file_note_entity_proto_rawDesc = nil
	file_note_entity_proto_goTypes = nil
	file_note_entity_proto_depIdxs = nil
}
