blob: b6cddaa95e139103a0291451a71ca77259ef9924 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: test_platform/multibot/leader_transitions.proto
package multibot
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)
)
type LeaderTransitionMessage_LeaderState int32
const (
LeaderTransitionMessage_STATE_UNDEFINED LeaderTransitionMessage_LeaderState = 0
// Leader task has started executing and scheduling followers.
LeaderTransitionMessage_STATE_SCHEDULING LeaderTransitionMessage_LeaderState = 16
// Leader task is executing prejob work
LeaderTransitionMessage_STATE_RUNNING_PREJOB LeaderTransitionMessage_LeaderState = 32
// Leader task is waiting and collection host info from follower tasks
LeaderTransitionMessage_STATE_WAITING_FOR_FOLLOWERS LeaderTransitionMessage_LeaderState = 48
// Leader task is sending 'Payload Ready' messages to followers. It will
// automatically enter this state when it has gathered all host info and
// automatically exits it after sending the message.
LeaderTransitionMessage_STATE_NOTIFYING_FOLLOWERS LeaderTransitionMessage_LeaderState = 64
// Leader task is running payload; followers are waiting.
LeaderTransitionMessage_STATE_RUNNING_PAYLOAD LeaderTransitionMessage_LeaderState = 80
// Leader task is running any necessary cleanup, after which it will
// terminate.
LeaderTransitionMessage_STATE_CLEANING LeaderTransitionMessage_LeaderState = 96
)
// Enum value maps for LeaderTransitionMessage_LeaderState.
var (
LeaderTransitionMessage_LeaderState_name = map[int32]string{
0: "STATE_UNDEFINED",
16: "STATE_SCHEDULING",
32: "STATE_RUNNING_PREJOB",
48: "STATE_WAITING_FOR_FOLLOWERS",
64: "STATE_NOTIFYING_FOLLOWERS",
80: "STATE_RUNNING_PAYLOAD",
96: "STATE_CLEANING",
}
LeaderTransitionMessage_LeaderState_value = map[string]int32{
"STATE_UNDEFINED": 0,
"STATE_SCHEDULING": 16,
"STATE_RUNNING_PREJOB": 32,
"STATE_WAITING_FOR_FOLLOWERS": 48,
"STATE_NOTIFYING_FOLLOWERS": 64,
"STATE_RUNNING_PAYLOAD": 80,
"STATE_CLEANING": 96,
}
)
func (x LeaderTransitionMessage_LeaderState) Enum() *LeaderTransitionMessage_LeaderState {
p := new(LeaderTransitionMessage_LeaderState)
*p = x
return p
}
func (x LeaderTransitionMessage_LeaderState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LeaderTransitionMessage_LeaderState) Descriptor() protoreflect.EnumDescriptor {
return file_test_platform_multibot_leader_transitions_proto_enumTypes[0].Descriptor()
}
func (LeaderTransitionMessage_LeaderState) Type() protoreflect.EnumType {
return &file_test_platform_multibot_leader_transitions_proto_enumTypes[0]
}
func (x LeaderTransitionMessage_LeaderState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LeaderTransitionMessage_LeaderState.Descriptor instead.
func (LeaderTransitionMessage_LeaderState) EnumDescriptor() ([]byte, []int) {
return file_test_platform_multibot_leader_transitions_proto_rawDescGZIP(), []int{0, 0}
}
// LeaderTransitionMessage is used internally by the leader for all state
// transitions
type LeaderTransitionMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NewState LeaderTransitionMessage_LeaderState `protobuf:"varint,1,opt,name=new_state,json=newState,proto3,enum=test_platform.multibot.LeaderTransitionMessage_LeaderState" json:"new_state,omitempty"`
// Used only for the Waiting for Followers steps, contains the number of
// followers still required and all gathered info for the ones already seen
FollowerGathering *FollowersState `protobuf:"bytes,2,opt,name=follower_gathering,json=followerGathering,proto3" json:"follower_gathering,omitempty"`
}
func (x *LeaderTransitionMessage) Reset() {
*x = LeaderTransitionMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_test_platform_multibot_leader_transitions_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeaderTransitionMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeaderTransitionMessage) ProtoMessage() {}
func (x *LeaderTransitionMessage) ProtoReflect() protoreflect.Message {
mi := &file_test_platform_multibot_leader_transitions_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LeaderTransitionMessage.ProtoReflect.Descriptor instead.
func (*LeaderTransitionMessage) Descriptor() ([]byte, []int) {
return file_test_platform_multibot_leader_transitions_proto_rawDescGZIP(), []int{0}
}
func (x *LeaderTransitionMessage) GetNewState() LeaderTransitionMessage_LeaderState {
if x != nil {
return x.NewState
}
return LeaderTransitionMessage_STATE_UNDEFINED
}
func (x *LeaderTransitionMessage) GetFollowerGathering() *FollowersState {
if x != nil {
return x.FollowerGathering
}
return nil
}
// State of followers still needed and information about those already retrieved
type FollowersState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Number of follower tasks the leader is still waiting for
WaitingForFollowers int32 `protobuf:"varint,1,opt,name=waiting_for_followers,json=waitingForFollowers,proto3" json:"waiting_for_followers,omitempty"`
FollowersHeard *HostInfoStore `protobuf:"bytes,2,opt,name=followers_heard,json=followersHeard,proto3" json:"followers_heard,omitempty"`
}
func (x *FollowersState) Reset() {
*x = FollowersState{}
if protoimpl.UnsafeEnabled {
mi := &file_test_platform_multibot_leader_transitions_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FollowersState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FollowersState) ProtoMessage() {}
func (x *FollowersState) ProtoReflect() protoreflect.Message {
mi := &file_test_platform_multibot_leader_transitions_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FollowersState.ProtoReflect.Descriptor instead.
func (*FollowersState) Descriptor() ([]byte, []int) {
return file_test_platform_multibot_leader_transitions_proto_rawDescGZIP(), []int{1}
}
func (x *FollowersState) GetWaitingForFollowers() int32 {
if x != nil {
return x.WaitingForFollowers
}
return 0
}
func (x *FollowersState) GetFollowersHeard() *HostInfoStore {
if x != nil {
return x.FollowersHeard
}
return nil
}
var File_test_platform_multibot_leader_transitions_proto protoreflect.FileDescriptor
var file_test_platform_multibot_leader_transitions_proto_rawDesc = []byte{
0x0a, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f,
0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f,
0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x16, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x1a, 0x23, 0x74, 0x65, 0x73, 0x74, 0x5f,
0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f,
0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e,
0x03, 0x0a, 0x17, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x6e, 0x65,
0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e,
0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x6d, 0x75,
0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61,
0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c,
0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53,
0x74, 0x61, 0x74, 0x65, 0x12, 0x55, 0x0a, 0x12, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72,
0x5f, 0x67, 0x61, 0x74, 0x68, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x26, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
0x65, 0x72, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x11, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
0x65, 0x72, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xc1, 0x01, 0x0a, 0x0b,
0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x53,
0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00,
0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55,
0x4c, 0x49, 0x4e, 0x47, 0x10, 0x10, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f,
0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x52, 0x45, 0x4a, 0x4f, 0x42, 0x10, 0x20,
0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e,
0x47, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x46, 0x4f, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x52, 0x53, 0x10,
0x30, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46,
0x59, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x4f, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x52, 0x53, 0x10, 0x40,
0x12, 0x19, 0x0a, 0x15, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e,
0x47, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x50, 0x12, 0x12, 0x0a, 0x0e, 0x53,
0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4c, 0x45, 0x41, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x60, 0x22,
0x94, 0x01, 0x0a, 0x0e, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x53, 0x74, 0x61,
0x74, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x6f,
0x72, 0x5f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x13, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x6f, 0x72, 0x46, 0x6f, 0x6c,
0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x12, 0x4e, 0x0a, 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
0x65, 0x72, 0x73, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x66,
0x6f, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72,
0x73, 0x48, 0x65, 0x61, 0x72, 0x64, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_test_platform_multibot_leader_transitions_proto_rawDescOnce sync.Once
file_test_platform_multibot_leader_transitions_proto_rawDescData = file_test_platform_multibot_leader_transitions_proto_rawDesc
)
func file_test_platform_multibot_leader_transitions_proto_rawDescGZIP() []byte {
file_test_platform_multibot_leader_transitions_proto_rawDescOnce.Do(func() {
file_test_platform_multibot_leader_transitions_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_platform_multibot_leader_transitions_proto_rawDescData)
})
return file_test_platform_multibot_leader_transitions_proto_rawDescData
}
var file_test_platform_multibot_leader_transitions_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_test_platform_multibot_leader_transitions_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_test_platform_multibot_leader_transitions_proto_goTypes = []interface{}{
(LeaderTransitionMessage_LeaderState)(0), // 0: test_platform.multibot.LeaderTransitionMessage.LeaderState
(*LeaderTransitionMessage)(nil), // 1: test_platform.multibot.LeaderTransitionMessage
(*FollowersState)(nil), // 2: test_platform.multibot.FollowersState
(*HostInfoStore)(nil), // 3: test_platform.multibot.HostInfoStore
}
var file_test_platform_multibot_leader_transitions_proto_depIdxs = []int32{
0, // 0: test_platform.multibot.LeaderTransitionMessage.new_state:type_name -> test_platform.multibot.LeaderTransitionMessage.LeaderState
2, // 1: test_platform.multibot.LeaderTransitionMessage.follower_gathering:type_name -> test_platform.multibot.FollowersState
3, // 2: test_platform.multibot.FollowersState.followers_heard:type_name -> test_platform.multibot.HostInfoStore
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_test_platform_multibot_leader_transitions_proto_init() }
func file_test_platform_multibot_leader_transitions_proto_init() {
if File_test_platform_multibot_leader_transitions_proto != nil {
return
}
file_test_platform_multibot_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_test_platform_multibot_leader_transitions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LeaderTransitionMessage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_test_platform_multibot_leader_transitions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FollowersState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_test_platform_multibot_leader_transitions_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_test_platform_multibot_leader_transitions_proto_goTypes,
DependencyIndexes: file_test_platform_multibot_leader_transitions_proto_depIdxs,
EnumInfos: file_test_platform_multibot_leader_transitions_proto_enumTypes,
MessageInfos: file_test_platform_multibot_leader_transitions_proto_msgTypes,
}.Build()
File_test_platform_multibot_leader_transitions_proto = out.File
file_test_platform_multibot_leader_transitions_proto_rawDesc = nil
file_test_platform_multibot_leader_transitions_proto_goTypes = nil
file_test_platform_multibot_leader_transitions_proto_depIdxs = nil
}