blob: e0393930d1f943136d0969da7ecdfeb93fa0d61f [file] [log] [blame]
// Copyright 2018 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.0
// source: go.chromium.org/luci/machine-db/api/common/v1/states.proto
package common
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// State is an enumeration of possible states a resource may be in.
// When adding a state here, choose a name that results in no common prefixes
// between any two states, then update prefix-matching in prefixes.go.
type State int32
const (
// Resource state unspecified.
State_STATE_UNSPECIFIED State = 0
// Resource is not allocated.
State_FREE State = 1
// Resource is allocated for future use.
State_PRERELEASE State = 2
// Resource is allocated and currently used in production.
State_SERVING State = 3
// Resource is allocated and currently used for testing.
State_TEST State = 4
// Resource is undergoing repairs.
State_REPAIR State = 5
// Resource is allocated but unused.
State_DECOMMISSIONED State = 6
)
// Enum value maps for State.
var (
State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "FREE",
2: "PRERELEASE",
3: "SERVING",
4: "TEST",
5: "REPAIR",
6: "DECOMMISSIONED",
}
State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"FREE": 1,
"PRERELEASE": 2,
"SERVING": 3,
"TEST": 4,
"REPAIR": 5,
"DECOMMISSIONED": 6,
}
)
func (x State) Enum() *State {
p := new(State)
*p = x
return p
}
func (x State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (State) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_enumTypes[0].Descriptor()
}
func (State) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_enumTypes[0]
}
func (x State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use State.Descriptor instead.
func (State) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescGZIP(), []int{0}
}
var File_go_chromium_org_luci_machine_db_api_common_v1_states_proto protoreflect.FileDescriptor
var file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDesc = []byte{
0x0a, 0x3a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2d, 0x64,
0x62, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f,
0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2a, 0x6f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a,
0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x52, 0x45, 0x45, 0x10, 0x01, 0x12, 0x0e,
0x0a, 0x0a, 0x50, 0x52, 0x45, 0x52, 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x10, 0x02, 0x12, 0x0b,
0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x54,
0x45, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x50, 0x41, 0x49, 0x52, 0x10,
0x05, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f,
0x4e, 0x45, 0x44, 0x10, 0x06, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f,
0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x2d, 0x64, 0x62, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d,
0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescOnce sync.Once
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescData = file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDesc
)
func file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescGZIP() []byte {
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescOnce.Do(func() {
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescData)
})
return file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDescData
}
var file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_goTypes = []interface{}{
(State)(0), // 0: common.State
}
var file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_init() }
func file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_init() {
if File_go_chromium_org_luci_machine_db_api_common_v1_states_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_goTypes,
DependencyIndexes: file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_depIdxs,
EnumInfos: file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_enumTypes,
}.Build()
File_go_chromium_org_luci_machine_db_api_common_v1_states_proto = out.File
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_rawDesc = nil
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_goTypes = nil
file_go_chromium_org_luci_machine_db_api_common_v1_states_proto_depIdxs = nil
}