// Code generated by protoc-gen-goext. DO NOT EDIT.

package vpc

import (
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
)

func (m *SecurityGroup) SetId(v string) {
	m.Id = v
}

func (m *SecurityGroup) SetFolderId(v string) {
	m.FolderId = v
}

func (m *SecurityGroup) SetCreatedAt(v *timestamp.Timestamp) {
	m.CreatedAt = v
}

func (m *SecurityGroup) SetName(v string) {
	m.Name = v
}

func (m *SecurityGroup) SetDescription(v string) {
	m.Description = v
}

func (m *SecurityGroup) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *SecurityGroup) SetNetworkId(v string) {
	m.NetworkId = v
}

func (m *SecurityGroup) SetStatus(v SecurityGroup_Status) {
	m.Status = v
}

func (m *SecurityGroup) SetRules(v []*SecurityGroupRule) {
	m.Rules = v
}

func (m *SecurityGroup) SetDefaultForNetwork(v bool) {
	m.DefaultForNetwork = v
}

type SecurityGroupRule_Target = isSecurityGroupRule_Target

func (m *SecurityGroupRule) SetTarget(v SecurityGroupRule_Target) {
	m.Target = v
}

func (m *SecurityGroupRule) SetId(v string) {
	m.Id = v
}

func (m *SecurityGroupRule) SetDescription(v string) {
	m.Description = v
}

func (m *SecurityGroupRule) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *SecurityGroupRule) SetDirection(v SecurityGroupRule_Direction) {
	m.Direction = v
}

func (m *SecurityGroupRule) SetPorts(v *PortRange) {
	m.Ports = v
}

func (m *SecurityGroupRule) SetProtocolName(v string) {
	m.ProtocolName = v
}

func (m *SecurityGroupRule) SetProtocolNumber(v int64) {
	m.ProtocolNumber = v
}

func (m *SecurityGroupRule) SetCidrBlocks(v *CidrBlocks) {
	m.Target = &SecurityGroupRule_CidrBlocks{
		CidrBlocks: v,
	}
}

func (m *SecurityGroupRule) SetSecurityGroupId(v string) {
	m.Target = &SecurityGroupRule_SecurityGroupId{
		SecurityGroupId: v,
	}
}

func (m *SecurityGroupRule) SetPredefinedTarget(v string) {
	m.Target = &SecurityGroupRule_PredefinedTarget{
		PredefinedTarget: v,
	}
}

func (m *PortRange) SetFromPort(v int64) {
	m.FromPort = v
}

func (m *PortRange) SetToPort(v int64) {
	m.ToPort = v
}

func (m *CidrBlocks) SetV4CidrBlocks(v []string) {
	m.V4CidrBlocks = v
}

func (m *CidrBlocks) SetV6CidrBlocks(v []string) {
	m.V6CidrBlocks = v
}
