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

package mcrv1

// PolicyRule represents a policy rule.
type PolicyRule struct {
	Id           int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`               //nolint:revive,stylecheck // proto field name
	Priority     int32    `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	Description  string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Effect       string   `protobuf:"bytes,4,opt,name=effect,proto3" json:"effect,omitempty"`
	Roles        []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
	AccountTypes []string `protobuf:"bytes,6,rep,name=account_types,json=accountTypes,proto3" json:"account_types,omitempty"`
	SubjectUuid  string   `protobuf:"bytes,7,opt,name=subject_uuid,json=subjectUuid,proto3" json:"subject_uuid,omitempty"` //nolint:revive,stylecheck // proto field name
	Actions      []string `protobuf:"bytes,8,rep,name=actions,proto3" json:"actions,omitempty"`
	Repositories []string `protobuf:"bytes,9,rep,name=repositories,proto3" json:"repositories,omitempty"`
	Enabled      bool     `protobuf:"varint,10,opt,name=enabled,proto3" json:"enabled,omitempty"`
	CreatedBy    string   `protobuf:"bytes,11,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	CreatedAt    string   `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    string   `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
}

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

func (x *PolicyRule) GetPriority() int32 {
	if x != nil {
		return x.Priority
	}
	return 0
}

func (x *PolicyRule) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *PolicyRule) GetEffect() string {
	if x != nil {
		return x.Effect
	}
	return ""
}

func (x *PolicyRule) GetRoles() []string {
	if x != nil {
		return x.Roles
	}
	return nil
}

func (x *PolicyRule) GetAccountTypes() []string {
	if x != nil {
		return x.AccountTypes
	}
	return nil
}

func (x *PolicyRule) GetSubjectUuid() string {
	if x != nil {
		return x.SubjectUuid
	}
	return ""
}

func (x *PolicyRule) GetActions() []string {
	if x != nil {
		return x.Actions
	}
	return nil
}

func (x *PolicyRule) GetRepositories() []string {
	if x != nil {
		return x.Repositories
	}
	return nil
}

func (x *PolicyRule) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

func (x *PolicyRule) GetCreatedBy() string {
	if x != nil {
		return x.CreatedBy
	}
	return ""
}

func (x *PolicyRule) GetCreatedAt() string {
	if x != nil {
		return x.CreatedAt
	}
	return ""
}

func (x *PolicyRule) GetUpdatedAt() string {
	if x != nil {
		return x.UpdatedAt
	}
	return ""
}

// ListPolicyRulesRequest is the request message for ListPolicyRules.
type ListPolicyRulesRequest struct {
	Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

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

// ListPolicyRulesResponse is the response message for ListPolicyRules.
type ListPolicyRulesResponse struct {
	Rules []*PolicyRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
}

func (x *ListPolicyRulesResponse) GetRules() []*PolicyRule {
	if x != nil {
		return x.Rules
	}
	return nil
}

// CreatePolicyRuleRequest is the request message for CreatePolicyRule.
type CreatePolicyRuleRequest struct {
	Priority     int32    `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"`
	Description  string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Effect       string   `protobuf:"bytes,3,opt,name=effect,proto3" json:"effect,omitempty"`
	Roles        []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
	AccountTypes []string `protobuf:"bytes,5,rep,name=account_types,json=accountTypes,proto3" json:"account_types,omitempty"`
	SubjectUuid  string   `protobuf:"bytes,6,opt,name=subject_uuid,json=subjectUuid,proto3" json:"subject_uuid,omitempty"` //nolint:revive,stylecheck // proto field name
	Actions      []string `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
	Repositories []string `protobuf:"bytes,8,rep,name=repositories,proto3" json:"repositories,omitempty"`
	Enabled      bool     `protobuf:"varint,9,opt,name=enabled,proto3" json:"enabled,omitempty"`
}

func (x *CreatePolicyRuleRequest) GetPriority() int32 {
	if x != nil {
		return x.Priority
	}
	return 0
}

func (x *CreatePolicyRuleRequest) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *CreatePolicyRuleRequest) GetEffect() string {
	if x != nil {
		return x.Effect
	}
	return ""
}

func (x *CreatePolicyRuleRequest) GetRoles() []string {
	if x != nil {
		return x.Roles
	}
	return nil
}

func (x *CreatePolicyRuleRequest) GetAccountTypes() []string {
	if x != nil {
		return x.AccountTypes
	}
	return nil
}

func (x *CreatePolicyRuleRequest) GetSubjectUuid() string {
	if x != nil {
		return x.SubjectUuid
	}
	return ""
}

func (x *CreatePolicyRuleRequest) GetActions() []string {
	if x != nil {
		return x.Actions
	}
	return nil
}

func (x *CreatePolicyRuleRequest) GetRepositories() []string {
	if x != nil {
		return x.Repositories
	}
	return nil
}

func (x *CreatePolicyRuleRequest) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

// GetPolicyRuleRequest is the request message for GetPolicyRule.
type GetPolicyRuleRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //nolint:revive,stylecheck // proto field name
}

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

// UpdatePolicyRuleRequest is the request message for UpdatePolicyRule.
type UpdatePolicyRuleRequest struct {
	Id           int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`               //nolint:revive,stylecheck // proto field name
	Priority     int32    `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	Description  string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Effect       string   `protobuf:"bytes,4,opt,name=effect,proto3" json:"effect,omitempty"`
	Roles        []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
	AccountTypes []string `protobuf:"bytes,6,rep,name=account_types,json=accountTypes,proto3" json:"account_types,omitempty"`
	SubjectUuid  string   `protobuf:"bytes,7,opt,name=subject_uuid,json=subjectUuid,proto3" json:"subject_uuid,omitempty"` //nolint:revive,stylecheck // proto field name
	Actions      []string `protobuf:"bytes,8,rep,name=actions,proto3" json:"actions,omitempty"`
	Repositories []string `protobuf:"bytes,9,rep,name=repositories,proto3" json:"repositories,omitempty"`
	Enabled      bool     `protobuf:"varint,10,opt,name=enabled,proto3" json:"enabled,omitempty"`
	UpdateMask   []string `protobuf:"bytes,11,rep,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}

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

func (x *UpdatePolicyRuleRequest) GetPriority() int32 {
	if x != nil {
		return x.Priority
	}
	return 0
}

func (x *UpdatePolicyRuleRequest) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *UpdatePolicyRuleRequest) GetEffect() string {
	if x != nil {
		return x.Effect
	}
	return ""
}

func (x *UpdatePolicyRuleRequest) GetRoles() []string {
	if x != nil {
		return x.Roles
	}
	return nil
}

func (x *UpdatePolicyRuleRequest) GetAccountTypes() []string {
	if x != nil {
		return x.AccountTypes
	}
	return nil
}

func (x *UpdatePolicyRuleRequest) GetSubjectUuid() string {
	if x != nil {
		return x.SubjectUuid
	}
	return ""
}

func (x *UpdatePolicyRuleRequest) GetActions() []string {
	if x != nil {
		return x.Actions
	}
	return nil
}

func (x *UpdatePolicyRuleRequest) GetRepositories() []string {
	if x != nil {
		return x.Repositories
	}
	return nil
}

func (x *UpdatePolicyRuleRequest) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

func (x *UpdatePolicyRuleRequest) GetUpdateMask() []string {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

// DeletePolicyRuleRequest is the request message for DeletePolicyRule.
type DeletePolicyRuleRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //nolint:revive,stylecheck // proto field name
}

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

// DeletePolicyRuleResponse is the response message for DeletePolicyRule.
type DeletePolicyRuleResponse struct{}
