blob: c056e139e150666d3dbc862c924a516c3e8ec2a4 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/machine-db/api/crimson/v1/switches.proto
package crimson
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 switch in the database.
type Switch struct {
// The name of this switch. Uniquely identifies this switch.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A description of this switch.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The number of ports this switch has.
Ports int32 `protobuf:"varint,3,opt,name=ports,proto3" json:"ports,omitempty"`
// The datacenter this switch belongs to.
Datacenter string `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
// The rack this switch belongs to.
Rack string `protobuf:"bytes,5,opt,name=rack,proto3" json:"rack,omitempty"`
// The state of this switch.
State v1.State `protobuf:"varint,6,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Switch) Reset() { *m = Switch{} }
func (m *Switch) String() string { return proto.CompactTextString(m) }
func (*Switch) ProtoMessage() {}
func (*Switch) Descriptor() ([]byte, []int) {
return fileDescriptor_535029af2494c6cd, []int{0}
}
func (m *Switch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Switch.Unmarshal(m, b)
}
func (m *Switch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Switch.Marshal(b, m, deterministic)
}
func (m *Switch) XXX_Merge(src proto.Message) {
xxx_messageInfo_Switch.Merge(m, src)
}
func (m *Switch) XXX_Size() int {
return xxx_messageInfo_Switch.Size(m)
}
func (m *Switch) XXX_DiscardUnknown() {
xxx_messageInfo_Switch.DiscardUnknown(m)
}
var xxx_messageInfo_Switch proto.InternalMessageInfo
func (m *Switch) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Switch) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Switch) GetPorts() int32 {
if m != nil {
return m.Ports
}
return 0
}
func (m *Switch) GetDatacenter() string {
if m != nil {
return m.Datacenter
}
return ""
}
func (m *Switch) GetRack() string {
if m != nil {
return m.Rack
}
return ""
}
func (m *Switch) GetState() v1.State {
if m != nil {
return m.State
}
return v1.State_STATE_UNSPECIFIED
}
// A request to list switches in the database.
type ListSwitchesRequest struct {
// The names of switches to retrieve.
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// The datacenters to filter retrieved switches on.
Datacenters []string `protobuf:"bytes,2,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
// The racks to filter retrieved switches on.
Racks []string `protobuf:"bytes,3,rep,name=racks,proto3" json:"racks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSwitchesRequest) Reset() { *m = ListSwitchesRequest{} }
func (m *ListSwitchesRequest) String() string { return proto.CompactTextString(m) }
func (*ListSwitchesRequest) ProtoMessage() {}
func (*ListSwitchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_535029af2494c6cd, []int{1}
}
func (m *ListSwitchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSwitchesRequest.Unmarshal(m, b)
}
func (m *ListSwitchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSwitchesRequest.Marshal(b, m, deterministic)
}
func (m *ListSwitchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSwitchesRequest.Merge(m, src)
}
func (m *ListSwitchesRequest) XXX_Size() int {
return xxx_messageInfo_ListSwitchesRequest.Size(m)
}
func (m *ListSwitchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListSwitchesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListSwitchesRequest proto.InternalMessageInfo
func (m *ListSwitchesRequest) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
func (m *ListSwitchesRequest) GetDatacenters() []string {
if m != nil {
return m.Datacenters
}
return nil
}
func (m *ListSwitchesRequest) GetRacks() []string {
if m != nil {
return m.Racks
}
return nil
}
// A response containing a list of switches in the database.
type ListSwitchesResponse struct {
// The switches matching the request.
Switches []*Switch `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSwitchesResponse) Reset() { *m = ListSwitchesResponse{} }
func (m *ListSwitchesResponse) String() string { return proto.CompactTextString(m) }
func (*ListSwitchesResponse) ProtoMessage() {}
func (*ListSwitchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_535029af2494c6cd, []int{2}
}
func (m *ListSwitchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSwitchesResponse.Unmarshal(m, b)
}
func (m *ListSwitchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSwitchesResponse.Marshal(b, m, deterministic)
}
func (m *ListSwitchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSwitchesResponse.Merge(m, src)
}
func (m *ListSwitchesResponse) XXX_Size() int {
return xxx_messageInfo_ListSwitchesResponse.Size(m)
}
func (m *ListSwitchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListSwitchesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListSwitchesResponse proto.InternalMessageInfo
func (m *ListSwitchesResponse) GetSwitches() []*Switch {
if m != nil {
return m.Switches
}
return nil
}
func init() {
proto.RegisterType((*Switch)(nil), "crimson.Switch")
proto.RegisterType((*ListSwitchesRequest)(nil), "crimson.ListSwitchesRequest")
proto.RegisterType((*ListSwitchesResponse)(nil), "crimson.ListSwitchesResponse")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/machine-db/api/crimson/v1/switches.proto", fileDescriptor_535029af2494c6cd)
}
var fileDescriptor_535029af2494c6cd = []byte{
// 294 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0xc1, 0x4e, 0xc4, 0x20,
0x10, 0x0d, 0xbb, 0xdb, 0xea, 0xb2, 0x51, 0x13, 0xdc, 0x03, 0xf1, 0x60, 0x9a, 0x7a, 0x69, 0x62,
0x84, 0xb8, 0xde, 0x4c, 0x3c, 0x79, 0xf5, 0x44, 0xbf, 0x80, 0xa5, 0x64, 0x4b, 0x14, 0xa8, 0x40,
0xf5, 0xab, 0xfc, 0x47, 0x03, 0x74, 0x37, 0xf5, 0xe6, 0x6d, 0xe6, 0xbd, 0x99, 0xf7, 0x5e, 0x66,
0xe0, 0xcb, 0xc1, 0x12, 0xd1, 0x3b, 0xab, 0xd5, 0xa8, 0x89, 0x75, 0x07, 0xfa, 0x31, 0x0a, 0x45,
0x35, 0x17, 0xbd, 0x32, 0xf2, 0xa1, 0xdb, 0x53, 0x3e, 0x28, 0x2a, 0x9c, 0xd2, 0xde, 0x1a, 0xfa,
0xf5, 0x48, 0xfd, 0xb7, 0x0a, 0xa2, 0x97, 0x9e, 0x0c, 0xce, 0x06, 0x8b, 0xce, 0x26, 0xea, 0xe6,
0xf9, 0x5f, 0x3a, 0x56, 0xeb, 0x49, 0x26, 0xf0, 0x70, 0x14, 0xa9, 0x7f, 0x00, 0x2c, 0xdb, 0xa4,
0x8b, 0x10, 0x5c, 0x19, 0xae, 0x25, 0x06, 0x15, 0x68, 0xd6, 0x2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