go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/swarming/proto/config/realms.pb.go (about)

     1  // Copyright 2020 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.31.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/swarming/proto/config/realms.proto
    10  
    11  package configpb
    12  
    13  import (
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  // Realm permissions used in Swarming.
    28  // The enums are converted to string names using get_permission_name
    29  // in server/realms.py
    30  // NEXT_ID: 12
    31  type RealmPermission int32
    32  
    33  const (
    34  	RealmPermission_REALM_PERMISSION_UNSPECIFIED RealmPermission = 0
    35  	// Permission 'swarming.pools.createTask'
    36  	// This is required to create a task in the pool.
    37  	// It will be checked at the new task API.
    38  	RealmPermission_REALM_PERMISSION_POOLS_CREATE_TASK RealmPermission = 1
    39  	// Permission 'swarming.pools.listTasks'
    40  	// This is required to list/count tasks in the pool.
    41  	// It will be checked at tasks list/count APIs.
    42  	RealmPermission_REALM_PERMISSION_POOLS_LIST_TASKS RealmPermission = 4
    43  	// Permission 'swarming.pools.cancelTask'
    44  	// This is required to cancel a task in the pool.
    45  	// It will be checked at task cancel APIs.
    46  	RealmPermission_REALM_PERMISSION_POOLS_CANCEL_TASK RealmPermission = 5
    47  	// Permission 'swarming.pools.createBot'
    48  	// This is required to create a bot in the pool.
    49  	// It will be checked at bot bootstrap, bot code APIs.
    50  	RealmPermission_REALM_PERMISSION_POOLS_CREATE_BOT RealmPermission = 6
    51  	// Permission 'swarming.pools.listBots'
    52  	// This is required to list/count bots in the pool.
    53  	// It will be checked at bots list/count APIs.
    54  	RealmPermission_REALM_PERMISSION_POOLS_LIST_BOTS RealmPermission = 7
    55  	// Permission 'swarming.pools.terminateBot'
    56  	// This is required to terminate a bot in the pool.
    57  	// It will be checked at bot terminate API.
    58  	RealmPermission_REALM_PERMISSION_POOLS_TERMINATE_BOT RealmPermission = 8
    59  	// Permission 'swarming.pools.deleteBot'
    60  	// This is required to delete a bot in the pool.
    61  	// It will be checked at bot delete API.
    62  	RealmPermission_REALM_PERMISSION_POOLS_DELETE_BOT RealmPermission = 9
    63  	// Permission 'swarming.tasks.createInRealm'
    64  	// This is required to create a task in the realm.
    65  	// It will be checked at the new task API.
    66  	RealmPermission_REALM_PERMISSION_TASKS_CREATE_IN_REALM RealmPermission = 2
    67  	// Permission 'swarming.tasks.actAs'
    68  	// This is required to use a task service account in the realm.
    69  	// It will be checked at the new task API.
    70  	RealmPermission_REALM_PERMISSION_TASKS_ACT_AS RealmPermission = 3
    71  	// Permission 'swarming.tasks.get'
    72  	// This is required to get task request, result, outputs.
    73  	// It will be checked at task request, result, stdout GET APIs.
    74  	RealmPermission_REALM_PERMISSION_TASKS_GET RealmPermission = 10
    75  	// Permission 'swarming.tasks.cancel'
    76  	// This is required to cancel a task.
    77  	// It will be checked at task cancel API.
    78  	RealmPermission_REALM_PERMISSION_TASKS_CANCEL RealmPermission = 11
    79  )
    80  
    81  // Enum value maps for RealmPermission.
    82  var (
    83  	RealmPermission_name = map[int32]string{
    84  		0:  "REALM_PERMISSION_UNSPECIFIED",
    85  		1:  "REALM_PERMISSION_POOLS_CREATE_TASK",
    86  		4:  "REALM_PERMISSION_POOLS_LIST_TASKS",
    87  		5:  "REALM_PERMISSION_POOLS_CANCEL_TASK",
    88  		6:  "REALM_PERMISSION_POOLS_CREATE_BOT",
    89  		7:  "REALM_PERMISSION_POOLS_LIST_BOTS",
    90  		8:  "REALM_PERMISSION_POOLS_TERMINATE_BOT",
    91  		9:  "REALM_PERMISSION_POOLS_DELETE_BOT",
    92  		2:  "REALM_PERMISSION_TASKS_CREATE_IN_REALM",
    93  		3:  "REALM_PERMISSION_TASKS_ACT_AS",
    94  		10: "REALM_PERMISSION_TASKS_GET",
    95  		11: "REALM_PERMISSION_TASKS_CANCEL",
    96  	}
    97  	RealmPermission_value = map[string]int32{
    98  		"REALM_PERMISSION_UNSPECIFIED":           0,
    99  		"REALM_PERMISSION_POOLS_CREATE_TASK":     1,
   100  		"REALM_PERMISSION_POOLS_LIST_TASKS":      4,
   101  		"REALM_PERMISSION_POOLS_CANCEL_TASK":     5,
   102  		"REALM_PERMISSION_POOLS_CREATE_BOT":      6,
   103  		"REALM_PERMISSION_POOLS_LIST_BOTS":       7,
   104  		"REALM_PERMISSION_POOLS_TERMINATE_BOT":   8,
   105  		"REALM_PERMISSION_POOLS_DELETE_BOT":      9,
   106  		"REALM_PERMISSION_TASKS_CREATE_IN_REALM": 2,
   107  		"REALM_PERMISSION_TASKS_ACT_AS":          3,
   108  		"REALM_PERMISSION_TASKS_GET":             10,
   109  		"REALM_PERMISSION_TASKS_CANCEL":          11,
   110  	}
   111  )
   112  
   113  func (x RealmPermission) Enum() *RealmPermission {
   114  	p := new(RealmPermission)
   115  	*p = x
   116  	return p
   117  }
   118  
   119  func (x RealmPermission) String() string {
   120  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   121  }
   122  
   123  func (RealmPermission) Descriptor() protoreflect.EnumDescriptor {
   124  	return file_go_chromium_org_luci_swarming_proto_config_realms_proto_enumTypes[0].Descriptor()
   125  }
   126  
   127  func (RealmPermission) Type() protoreflect.EnumType {
   128  	return &file_go_chromium_org_luci_swarming_proto_config_realms_proto_enumTypes[0]
   129  }
   130  
   131  func (x RealmPermission) Number() protoreflect.EnumNumber {
   132  	return protoreflect.EnumNumber(x)
   133  }
   134  
   135  // Deprecated: Use RealmPermission.Descriptor instead.
   136  func (RealmPermission) EnumDescriptor() ([]byte, []int) {
   137  	return file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescGZIP(), []int{0}
   138  }
   139  
   140  var File_go_chromium_org_luci_swarming_proto_config_realms_proto protoreflect.FileDescriptor
   141  
   142  var file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDesc = []byte{
   143  	0x0a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   144  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f,
   145  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x72, 0x65, 0x61,
   146  	0x6c, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x73, 0x77, 0x61, 0x72, 0x6d,
   147  	0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2a, 0xda, 0x03, 0x0a, 0x0f, 0x52,
   148  	0x65, 0x61, 0x6c, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20,
   149  	0x0a, 0x1c, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49,
   150  	0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
   151  	0x12, 0x26, 0x0a, 0x22, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53,
   152  	0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x53, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54,
   153  	0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x41, 0x4c,
   154  	0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f,
   155  	0x4c, 0x53, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x53, 0x10, 0x04, 0x12,
   156  	0x26, 0x0a, 0x22, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53,
   157  	0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c,
   158  	0x5f, 0x54, 0x41, 0x53, 0x4b, 0x10, 0x05, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x41, 0x4c, 0x4d,
   159  	0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f, 0x4c,
   160  	0x53, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x42, 0x4f, 0x54, 0x10, 0x06, 0x12, 0x24,
   161  	0x0a, 0x20, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49,
   162  	0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x53, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x42, 0x4f,
   163  	0x54, 0x53, 0x10, 0x07, 0x12, 0x28, 0x0a, 0x24, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45,
   164  	0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x53, 0x5f, 0x54,
   165  	0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x5f, 0x42, 0x4f, 0x54, 0x10, 0x08, 0x12, 0x25,
   166  	0x0a, 0x21, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49,
   167  	0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x53, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f,
   168  	0x42, 0x4f, 0x54, 0x10, 0x09, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50,
   169  	0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x53, 0x5f,
   170  	0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x10,
   171  	0x02, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49,
   172  	0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x5f,
   173  	0x41, 0x53, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45,
   174  	0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x53, 0x5f, 0x47,
   175  	0x45, 0x54, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x41, 0x4c, 0x4d, 0x5f, 0x50, 0x45,
   176  	0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x53, 0x5f, 0x43,
   177  	0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, 0x0b, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68,
   178  	0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f,
   179  	0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63,
   180  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x62, 0x06,
   181  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   182  }
   183  
   184  var (
   185  	file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescOnce sync.Once
   186  	file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescData = file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDesc
   187  )
   188  
   189  func file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescGZIP() []byte {
   190  	file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescOnce.Do(func() {
   191  		file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescData)
   192  	})
   193  	return file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDescData
   194  }
   195  
   196  var file_go_chromium_org_luci_swarming_proto_config_realms_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   197  var file_go_chromium_org_luci_swarming_proto_config_realms_proto_goTypes = []interface{}{
   198  	(RealmPermission)(0), // 0: swarming.config.RealmPermission
   199  }
   200  var file_go_chromium_org_luci_swarming_proto_config_realms_proto_depIdxs = []int32{
   201  	0, // [0:0] is the sub-list for method output_type
   202  	0, // [0:0] is the sub-list for method input_type
   203  	0, // [0:0] is the sub-list for extension type_name
   204  	0, // [0:0] is the sub-list for extension extendee
   205  	0, // [0:0] is the sub-list for field type_name
   206  }
   207  
   208  func init() { file_go_chromium_org_luci_swarming_proto_config_realms_proto_init() }
   209  func file_go_chromium_org_luci_swarming_proto_config_realms_proto_init() {
   210  	if File_go_chromium_org_luci_swarming_proto_config_realms_proto != nil {
   211  		return
   212  	}
   213  	type x struct{}
   214  	out := protoimpl.TypeBuilder{
   215  		File: protoimpl.DescBuilder{
   216  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   217  			RawDescriptor: file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDesc,
   218  			NumEnums:      1,
   219  			NumMessages:   0,
   220  			NumExtensions: 0,
   221  			NumServices:   0,
   222  		},
   223  		GoTypes:           file_go_chromium_org_luci_swarming_proto_config_realms_proto_goTypes,
   224  		DependencyIndexes: file_go_chromium_org_luci_swarming_proto_config_realms_proto_depIdxs,
   225  		EnumInfos:         file_go_chromium_org_luci_swarming_proto_config_realms_proto_enumTypes,
   226  	}.Build()
   227  	File_go_chromium_org_luci_swarming_proto_config_realms_proto = out.File
   228  	file_go_chromium_org_luci_swarming_proto_config_realms_proto_rawDesc = nil
   229  	file_go_chromium_org_luci_swarming_proto_config_realms_proto_goTypes = nil
   230  	file_go_chromium_org_luci_swarming_proto_config_realms_proto_depIdxs = nil
   231  }