// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mcr/v1/audit.proto

package mcrv1

// AuditEvent represents an audit log entry.
type AuditEvent struct {
	Id        int64             `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`               //nolint:revive,stylecheck // proto field name
	EventTime string            `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
	EventType string            `protobuf:"bytes,3,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	ActorId   string            `protobuf:"bytes,4,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`       //nolint:revive,stylecheck // proto field name
	Repository string           `protobuf:"bytes,5,opt,name=repository,proto3" json:"repository,omitempty"`
	Digest    string            `protobuf:"bytes,6,opt,name=digest,proto3" json:"digest,omitempty"`
	IpAddress string            `protobuf:"bytes,7,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` //nolint:revive,stylecheck // proto field name
	Details   map[string]string `protobuf:"bytes,8,rep,name=details,proto3" json:"details,omitempty"`
}

func (x *AuditEvent) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *AuditEvent) GetEventTime() string {
	if x != nil {
		return x.EventTime
	}
	return ""
}

func (x *AuditEvent) GetEventType() string {
	if x != nil {
		return x.EventType
	}
	return ""
}

func (x *AuditEvent) GetActorId() string {
	if x != nil {
		return x.ActorId
	}
	return ""
}

func (x *AuditEvent) GetRepository() string {
	if x != nil {
		return x.Repository
	}
	return ""
}

func (x *AuditEvent) GetDigest() string {
	if x != nil {
		return x.Digest
	}
	return ""
}

func (x *AuditEvent) GetIpAddress() string {
	if x != nil {
		return x.IpAddress
	}
	return ""
}

func (x *AuditEvent) GetDetails() map[string]string {
	if x != nil {
		return x.Details
	}
	return nil
}

// ListAuditEventsRequest is the request message for ListAuditEvents.
type ListAuditEventsRequest struct {
	Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	EventType  string             `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	ActorId    string             `protobuf:"bytes,3,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"` //nolint:revive,stylecheck // proto field name
	Repository string             `protobuf:"bytes,4,opt,name=repository,proto3" json:"repository,omitempty"`
	Since      string             `protobuf:"bytes,5,opt,name=since,proto3" json:"since,omitempty"`
	Until      string             `protobuf:"bytes,6,opt,name=until,proto3" json:"until,omitempty"`
}

func (x *ListAuditEventsRequest) GetPagination() *PaginationRequest {
	if x != nil {
		return x.Pagination
	}
	return nil
}

func (x *ListAuditEventsRequest) GetEventType() string {
	if x != nil {
		return x.EventType
	}
	return ""
}

func (x *ListAuditEventsRequest) GetActorId() string {
	if x != nil {
		return x.ActorId
	}
	return ""
}

func (x *ListAuditEventsRequest) GetRepository() string {
	if x != nil {
		return x.Repository
	}
	return ""
}

func (x *ListAuditEventsRequest) GetSince() string {
	if x != nil {
		return x.Since
	}
	return ""
}

func (x *ListAuditEventsRequest) GetUntil() string {
	if x != nil {
		return x.Until
	}
	return ""
}

// ListAuditEventsResponse is the response message for ListAuditEvents.
type ListAuditEventsResponse struct {
	Events []*AuditEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
}

func (x *ListAuditEventsResponse) GetEvents() []*AuditEvent {
	if x != nil {
		return x.Events
	}
	return nil
}
