// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
// 	protoc        v3.19.4
// source: core/vm/protoc/relationship.proto

package protoc

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 RelationType int32

const (
	RelationType_AddRelation RelationType = 0
	RelationType_DelRelation RelationType = 1
)

// Enum value maps for RelationType.
var (
	RelationType_name = map[int32]string{
		0: "AddRelation",
		1: "DelRelation",
	}
	RelationType_value = map[string]int32{
		"AddRelation": 0,
		"DelRelation": 1,
	}
)

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

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

func (RelationType) Descriptor() protoreflect.EnumDescriptor {
	return file_core_vm_protoc_relationship_proto_enumTypes[0].Descriptor()
}

func (RelationType) Type() protoreflect.EnumType {
	return &file_core_vm_protoc_relationship_proto_enumTypes[0]
}

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

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

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

	OwnerAddress    string       `protobuf:"bytes,1,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
	ContractAddress string       `protobuf:"bytes,2,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"`
	Type            RelationType `protobuf:"varint,3,opt,name=type,proto3,enum=proto.RelationType" json:"type,omitempty"`
	Relations       []string     `protobuf:"bytes,4,rep,name=relations,proto3" json:"relations,omitempty"`
}

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

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

func (*RelationInfo) ProtoMessage() {}

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

func (x *RelationInfo) GetOwnerAddress() string {
	if x != nil {
		return x.OwnerAddress
	}
	return ""
}

func (x *RelationInfo) GetContractAddress() string {
	if x != nil {
		return x.ContractAddress
	}
	return ""
}

func (x *RelationInfo) GetType() RelationType {
	if x != nil {
		return x.Type
	}
	return RelationType_AddRelation
}

func (x *RelationInfo) GetRelations() []string {
	if x != nil {
		return x.Relations
	}
	return nil
}

var File_core_vm_protoc_relationship_proto protoreflect.FileDescriptor

var file_core_vm_protoc_relationship_proto_rawDesc = []byte{
	0x0a, 0x21, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
	0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x0c, 0x52,
	0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x6f,
	0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
	0x28, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65,
	0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61,
	0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, 0x70,
	0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
	0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
	0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
	0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
	0x2a, 0x30, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65,
	0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10,
	0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
	0x10, 0x01, 0x42, 0x10, 0x5a, 0x0e, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x6d, 0x2f, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_core_vm_protoc_relationship_proto_rawDescOnce sync.Once
	file_core_vm_protoc_relationship_proto_rawDescData = file_core_vm_protoc_relationship_proto_rawDesc
)

func file_core_vm_protoc_relationship_proto_rawDescGZIP() []byte {
	file_core_vm_protoc_relationship_proto_rawDescOnce.Do(func() {
		file_core_vm_protoc_relationship_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_vm_protoc_relationship_proto_rawDescData)
	})
	return file_core_vm_protoc_relationship_proto_rawDescData
}

var file_core_vm_protoc_relationship_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_core_vm_protoc_relationship_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_core_vm_protoc_relationship_proto_goTypes = []interface{}{
	(RelationType)(0),    // 0: proto.RelationType
	(*RelationInfo)(nil), // 1: proto.RelationInfo
}
var file_core_vm_protoc_relationship_proto_depIdxs = []int32{
	0, // 0: proto.RelationInfo.type:type_name -> proto.RelationType
	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_core_vm_protoc_relationship_proto_init() }
func file_core_vm_protoc_relationship_proto_init() {
	if File_core_vm_protoc_relationship_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_core_vm_protoc_relationship_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*RelationInfo); 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_core_vm_protoc_relationship_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_core_vm_protoc_relationship_proto_goTypes,
		DependencyIndexes: file_core_vm_protoc_relationship_proto_depIdxs,
		EnumInfos:         file_core_vm_protoc_relationship_proto_enumTypes,
		MessageInfos:      file_core_vm_protoc_relationship_proto_msgTypes,
	}.Build()
	File_core_vm_protoc_relationship_proto = out.File
	file_core_vm_protoc_relationship_proto_rawDesc = nil
	file_core_vm_protoc_relationship_proto_goTypes = nil
	file_core_vm_protoc_relationship_proto_depIdxs = nil
}
