| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: go.chromium.org/luci/machine-db/api/config/v1/vlans.proto |
| |
| package config |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| v1 "go.chromium.org/luci/machine-db/api/common/v1" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // A VLAN to store in the database. |
| type VLAN struct { |
| // The ID of this VLAN. Must be unique. |
| Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` |
| // An alias for this VLAN. |
| Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` |
| // The block of IPv4 addresses belonging to this VLAN. |
| CidrBlock string `protobuf:"bytes,3,opt,name=cidr_block,json=cidrBlock,proto3" json:"cidr_block,omitempty"` |
| // The state of this VLAN. |
| State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.State" json:"state,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *VLAN) Reset() { *m = VLAN{} } |
| func (m *VLAN) String() string { return proto.CompactTextString(m) } |
| func (*VLAN) ProtoMessage() {} |
| func (*VLAN) Descriptor() ([]byte, []int) { |
| return fileDescriptor_bb654d86333e52aa, []int{0} |
| } |
| |
| func (m *VLAN) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_VLAN.Unmarshal(m, b) |
| } |
| func (m *VLAN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_VLAN.Marshal(b, m, deterministic) |
| } |
| func (m *VLAN) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_VLAN.Merge(m, src) |
| } |
| func (m *VLAN) XXX_Size() int { |
| return xxx_messageInfo_VLAN.Size(m) |
| } |
| func (m *VLAN) XXX_DiscardUnknown() { |
| xxx_messageInfo_VLAN.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_VLAN proto.InternalMessageInfo |
| |
| func (m *VLAN) GetId() int64 { |
| if m != nil { |
| return m.Id |
| } |
| return 0 |
| } |
| |
| func (m *VLAN) GetAlias() string { |
| if m != nil { |
| return m.Alias |
| } |
| return "" |
| } |
| |
| func (m *VLAN) GetCidrBlock() string { |
| if m != nil { |
| return m.CidrBlock |
| } |
| return "" |
| } |
| |
| func (m *VLAN) GetState() v1.State { |
| if m != nil { |
| return m.State |
| } |
| return v1.State_STATE_UNSPECIFIED |
| } |
| |
| // A list of VLANs. |
| type VLANs struct { |
| // A list of VLANs. |
| Vlan []*VLAN `protobuf:"bytes,1,rep,name=vlan,proto3" json:"vlan,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *VLANs) Reset() { *m = VLANs{} } |
| func (m *VLANs) String() string { return proto.CompactTextString(m) } |
| func (*VLANs) ProtoMessage() {} |
| func (*VLANs) Descriptor() ([]byte, []int) { |
| return fileDescriptor_bb654d86333e52aa, []int{1} |
| } |
| |
| func (m *VLANs) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_VLANs.Unmarshal(m, b) |
| } |
| func (m *VLANs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_VLANs.Marshal(b, m, deterministic) |
| } |
| func (m *VLANs) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_VLANs.Merge(m, src) |
| } |
| func (m *VLANs) XXX_Size() int { |
| return xxx_messageInfo_VLANs.Size(m) |
| } |
| func (m *VLANs) XXX_DiscardUnknown() { |
| xxx_messageInfo_VLANs.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_VLANs proto.InternalMessageInfo |
| |
| func (m *VLANs) GetVlan() []*VLAN { |
| if m != nil { |
| return m.Vlan |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*VLAN)(nil), "config.VLAN") |
| proto.RegisterType((*VLANs)(nil), "config.VLANs") |
| } |
| |
| func init() { |
| proto.RegisterFile("go.chromium.org/luci/machine-db/api/config/v1/vlans.proto", fileDescriptor_bb654d86333e52aa) |
| } |
| |
| var fileDescriptor_bb654d86333e52aa = []byte{ |
| // 224 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x8f, 0x3f, 0x4b, 0x04, 0x31, |
| 0x10, 0x47, 0xc9, 0xfe, 0x39, 0xb8, 0x51, 0xaf, 0x08, 0x16, 0x41, 0x10, 0xc2, 0xd9, 0xac, 0x85, |
| 0x09, 0x9e, 0x95, 0x76, 0x5a, 0x8b, 0xc5, 0x0a, 0xb6, 0x92, 0xcd, 0x9e, 0x7b, 0x83, 0x9b, 0x9d, |
| 0x25, 0xd9, 0xbb, 0xcf, 0x2f, 0x49, 0xfc, 0x00, 0x57, 0xe6, 0x3d, 0x78, 0x93, 0x1f, 0x3c, 0x0f, |
| 0xa4, 0xec, 0xc1, 0x93, 0xc3, 0xa3, 0x53, 0xe4, 0x07, 0x3d, 0x1e, 0x2d, 0x6a, 0x67, 0xec, 0x01, |
| 0xa7, 0xfd, 0x43, 0xdf, 0x69, 0x33, 0xa3, 0xb6, 0x34, 0xfd, 0xe0, 0xa0, 0x4f, 0x8f, 0xfa, 0x34, |
| 0x9a, 0x29, 0xa8, 0xd9, 0xd3, 0x42, 0x7c, 0x95, 0xf1, 0xcd, 0xcb, 0x79, 0x09, 0xe7, 0x68, 0x8a, |
| 0x89, 0xb0, 0x98, 0x65, 0xff, 0xdf, 0xd8, 0xce, 0x50, 0x7d, 0xbd, 0xbf, 0x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