// Code generated by protoc-gen-go-hashpb. DO NOT EDIT.
// protoc-gen-go-hashpb v0.4.2

package statev1

import (
	protowire "google.golang.org/protobuf/encoding/protowire"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	hash "hash"
	unsafe "unsafe"
)

func cerbos_state_v1_TelemetryState_hashpb_sum(m *TelemetryState, hasher hash.Hash, ignore map[string]struct{}) {
	if _, ok := ignore["cerbos.state.v1.TelemetryState.uuid"]; !ok {
		_, _ = hasher.Write(protowire.AppendVarint(nil, uint64(len(m.GetUuid()))))
		_, _ = hasher.Write(unsafe.Slice(unsafe.StringData(m.GetUuid()), len(m.GetUuid())))
	}
	if _, ok := ignore["cerbos.state.v1.TelemetryState.last_timestamp"]; !ok {
		if m.GetLastTimestamp() != nil {
			google_protobuf_Timestamp_hashpb_sum(m.GetLastTimestamp(), hasher, ignore)
		}
	}
}

func google_protobuf_Timestamp_hashpb_sum(m *timestamppb.Timestamp, hasher hash.Hash, ignore map[string]struct{}) {
	if _, ok := ignore["google.protobuf.Timestamp.seconds"]; !ok {
		_, _ = hasher.Write(protowire.AppendVarint(nil, uint64(m.GetSeconds())))
	}
	if _, ok := ignore["google.protobuf.Timestamp.nanos"]; !ok {
		_, _ = hasher.Write(protowire.AppendVarint(nil, uint64(m.GetNanos())))
	}
}
