// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: einride/example/freight/v1/site.proto

package freightv1

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	latlng "google.golang.org/genproto/googleapis/type/latlng"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 site is a node in a [shipper][einride.example.freight.v1.Shipper]'s
// transport network.
type Site struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The resource name of the site.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The creation timestamp of the site.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last update timestamp of the site.
	//
	// Updated when create/update/delete operation is performed.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The deletion timestamp of the site.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// The display name of the site.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The geographic location of the site.
	LatLng        *latlng.LatLng `protobuf:"bytes,6,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Site) Reset() {
	*x = Site{}
	mi := &file_einride_example_freight_v1_site_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Site) ProtoMessage() {}

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

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

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

func (x *Site) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *Site) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Site) GetDeleteTime() *timestamppb.Timestamp {
	if x != nil {
		return x.DeleteTime
	}
	return nil
}

func (x *Site) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

func (x *Site) GetLatLng() *latlng.LatLng {
	if x != nil {
		return x.LatLng
	}
	return nil
}

var File_einride_example_freight_v1_site_proto protoreflect.FileDescriptor

const file_einride_example_freight_v1_site_proto_rawDesc = "" +
	"\n" +
	"%einride/example/freight/v1/site.proto\x12\x1aeinride.example.freight.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18google/type/latlng.proto\"\x90\x03\n" +
	"\x04Site\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12A\n" +
	"\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +
	"createTime\x12A\n" +
	"\vupdate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +
	"updateTime\x12A\n" +
	"\vdelete_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +
	"deleteTime\x12'\n" +
	"\fdisplay_name\x18\x05 \x01(\tB\x04\xe2A\x01\x02R\vdisplayName\x12,\n" +
	"\alat_lng\x18\x06 \x01(\v2\x13.google.type.LatLngR\x06latLng:T\xeaAQ\n" +
	"!freight-example.einride.tech/Site\x12\x1fshippers/{shipper}/sites/{site}*\x05sites2\x04siteB\xfa\x01\n" +
	"\x1ecom.einride.example.freight.v1B\tSiteProtoP\x01ZBgo.einride.tech/aip/proto/gen/einride/example/freight/v1;freightv1\xa2\x02\x03EEF\xaa\x02\x1aEinride.Example.Freight.V1\xca\x02\x1aEinride\\Example\\Freight\\V1\xe2\x02&Einride\\Example\\Freight\\V1\\GPBMetadata\xea\x02\x1dEinride::Example::Freight::V1b\x06proto3"

var (
	file_einride_example_freight_v1_site_proto_rawDescOnce sync.Once
	file_einride_example_freight_v1_site_proto_rawDescData []byte
)

func file_einride_example_freight_v1_site_proto_rawDescGZIP() []byte {
	file_einride_example_freight_v1_site_proto_rawDescOnce.Do(func() {
		file_einride_example_freight_v1_site_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_einride_example_freight_v1_site_proto_rawDesc), len(file_einride_example_freight_v1_site_proto_rawDesc)))
	})
	return file_einride_example_freight_v1_site_proto_rawDescData
}

var file_einride_example_freight_v1_site_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_einride_example_freight_v1_site_proto_goTypes = []any{
	(*Site)(nil),                  // 0: einride.example.freight.v1.Site
	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
	(*latlng.LatLng)(nil),         // 2: google.type.LatLng
}
var file_einride_example_freight_v1_site_proto_depIdxs = []int32{
	1, // 0: einride.example.freight.v1.Site.create_time:type_name -> google.protobuf.Timestamp
	1, // 1: einride.example.freight.v1.Site.update_time:type_name -> google.protobuf.Timestamp
	1, // 2: einride.example.freight.v1.Site.delete_time:type_name -> google.protobuf.Timestamp
	2, // 3: einride.example.freight.v1.Site.lat_lng:type_name -> google.type.LatLng
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_einride_example_freight_v1_site_proto_init() }
func file_einride_example_freight_v1_site_proto_init() {
	if File_einride_example_freight_v1_site_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_einride_example_freight_v1_site_proto_rawDesc), len(file_einride_example_freight_v1_site_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_einride_example_freight_v1_site_proto_goTypes,
		DependencyIndexes: file_einride_example_freight_v1_site_proto_depIdxs,
		MessageInfos:      file_einride_example_freight_v1_site_proto_msgTypes,
	}.Build()
	File_einride_example_freight_v1_site_proto = out.File
	file_einride_example_freight_v1_site_proto_goTypes = nil
	file_einride_example_freight_v1_site_proto_depIdxs = nil
}
