github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/gen/proto/go/userpreferences/v1/assist.pb.go (about)

     1  // Copyright 2023 Gravitational, Inc
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.34.0
    18  // 	protoc        (unknown)
    19  // source: teleport/userpreferences/v1/assist.proto
    20  
    21  package userpreferencesv1
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // AssistViewMode is the way the assistant is displayed.
    38  type AssistViewMode int32
    39  
    40  const (
    41  	AssistViewMode_ASSIST_VIEW_MODE_UNSPECIFIED AssistViewMode = 0
    42  	// DOCKED is the assistant is docked to the right hand side of the screen.
    43  	AssistViewMode_ASSIST_VIEW_MODE_DOCKED AssistViewMode = 1
    44  	// POPUP is the assistant is displayed as a popup.
    45  	AssistViewMode_ASSIST_VIEW_MODE_POPUP AssistViewMode = 2
    46  	// POPUP_EXPANDED is the assistant is displayed as a popup and expanded.
    47  	AssistViewMode_ASSIST_VIEW_MODE_POPUP_EXPANDED AssistViewMode = 3
    48  	// POPUP_EXPANDED_SIDEBAR_VISIBLE is the assistant is displayed as a popup and expanded with the sidebar visible.
    49  	AssistViewMode_ASSIST_VIEW_MODE_POPUP_EXPANDED_SIDEBAR_VISIBLE AssistViewMode = 4
    50  )
    51  
    52  // Enum value maps for AssistViewMode.
    53  var (
    54  	AssistViewMode_name = map[int32]string{
    55  		0: "ASSIST_VIEW_MODE_UNSPECIFIED",
    56  		1: "ASSIST_VIEW_MODE_DOCKED",
    57  		2: "ASSIST_VIEW_MODE_POPUP",
    58  		3: "ASSIST_VIEW_MODE_POPUP_EXPANDED",
    59  		4: "ASSIST_VIEW_MODE_POPUP_EXPANDED_SIDEBAR_VISIBLE",
    60  	}
    61  	AssistViewMode_value = map[string]int32{
    62  		"ASSIST_VIEW_MODE_UNSPECIFIED":                    0,
    63  		"ASSIST_VIEW_MODE_DOCKED":                         1,
    64  		"ASSIST_VIEW_MODE_POPUP":                          2,
    65  		"ASSIST_VIEW_MODE_POPUP_EXPANDED":                 3,
    66  		"ASSIST_VIEW_MODE_POPUP_EXPANDED_SIDEBAR_VISIBLE": 4,
    67  	}
    68  )
    69  
    70  func (x AssistViewMode) Enum() *AssistViewMode {
    71  	p := new(AssistViewMode)
    72  	*p = x
    73  	return p
    74  }
    75  
    76  func (x AssistViewMode) String() string {
    77  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    78  }
    79  
    80  func (AssistViewMode) Descriptor() protoreflect.EnumDescriptor {
    81  	return file_teleport_userpreferences_v1_assist_proto_enumTypes[0].Descriptor()
    82  }
    83  
    84  func (AssistViewMode) Type() protoreflect.EnumType {
    85  	return &file_teleport_userpreferences_v1_assist_proto_enumTypes[0]
    86  }
    87  
    88  func (x AssistViewMode) Number() protoreflect.EnumNumber {
    89  	return protoreflect.EnumNumber(x)
    90  }
    91  
    92  // Deprecated: Use AssistViewMode.Descriptor instead.
    93  func (AssistViewMode) EnumDescriptor() ([]byte, []int) {
    94  	return file_teleport_userpreferences_v1_assist_proto_rawDescGZIP(), []int{0}
    95  }
    96  
    97  // AssistUserPreferences is the user preferences for Assist.
    98  type AssistUserPreferences struct {
    99  	state         protoimpl.MessageState
   100  	sizeCache     protoimpl.SizeCache
   101  	unknownFields protoimpl.UnknownFields
   102  
   103  	// preferredLogins is an array of the logins a user would prefer to use when running a command, ordered by preference.
   104  	PreferredLogins []string `protobuf:"bytes,1,rep,name=preferred_logins,json=preferredLogins,proto3" json:"preferred_logins,omitempty"`
   105  	// viewMode is the way the assistant is displayed.
   106  	ViewMode AssistViewMode `protobuf:"varint,2,opt,name=view_mode,json=viewMode,proto3,enum=teleport.userpreferences.v1.AssistViewMode" json:"view_mode,omitempty"`
   107  }
   108  
   109  func (x *AssistUserPreferences) Reset() {
   110  	*x = AssistUserPreferences{}
   111  	if protoimpl.UnsafeEnabled {
   112  		mi := &file_teleport_userpreferences_v1_assist_proto_msgTypes[0]
   113  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   114  		ms.StoreMessageInfo(mi)
   115  	}
   116  }
   117  
   118  func (x *AssistUserPreferences) String() string {
   119  	return protoimpl.X.MessageStringOf(x)
   120  }
   121  
   122  func (*AssistUserPreferences) ProtoMessage() {}
   123  
   124  func (x *AssistUserPreferences) ProtoReflect() protoreflect.Message {
   125  	mi := &file_teleport_userpreferences_v1_assist_proto_msgTypes[0]
   126  	if protoimpl.UnsafeEnabled && x != nil {
   127  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   128  		if ms.LoadMessageInfo() == nil {
   129  			ms.StoreMessageInfo(mi)
   130  		}
   131  		return ms
   132  	}
   133  	return mi.MessageOf(x)
   134  }
   135  
   136  // Deprecated: Use AssistUserPreferences.ProtoReflect.Descriptor instead.
   137  func (*AssistUserPreferences) Descriptor() ([]byte, []int) {
   138  	return file_teleport_userpreferences_v1_assist_proto_rawDescGZIP(), []int{0}
   139  }
   140  
   141  func (x *AssistUserPreferences) GetPreferredLogins() []string {
   142  	if x != nil {
   143  		return x.PreferredLogins
   144  	}
   145  	return nil
   146  }
   147  
   148  func (x *AssistUserPreferences) GetViewMode() AssistViewMode {
   149  	if x != nil {
   150  		return x.ViewMode
   151  	}
   152  	return AssistViewMode_ASSIST_VIEW_MODE_UNSPECIFIED
   153  }
   154  
   155  var File_teleport_userpreferences_v1_assist_proto protoreflect.FileDescriptor
   156  
   157  var file_teleport_userpreferences_v1_assist_proto_rawDesc = []byte{
   158  	0x0a, 0x28, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70,
   159  	0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x73,
   160  	0x73, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x74, 0x65, 0x6c, 0x65,
   161  	0x70, 0x6f, 0x72, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
   162  	0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x8c, 0x01, 0x0a, 0x15, 0x41, 0x73, 0x73, 0x69,
   163  	0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
   164  	0x73, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c,
   165  	0x6f, 0x67, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65,
   166  	0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x48, 0x0a, 0x09,
   167  	0x76, 0x69, 0x65, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
   168  	0x2b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70,
   169  	0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73,
   170  	0x73, 0x69, 0x73, 0x74, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x76, 0x69,
   171  	0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x2a, 0xc5, 0x01, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x69, 0x73,
   172  	0x74, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x53, 0x53,
   173  	0x49, 0x53, 0x54, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e,
   174  	0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x41,
   175  	0x53, 0x53, 0x49, 0x53, 0x54, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f,
   176  	0x44, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x49,
   177  	0x53, 0x54, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x4f, 0x50,
   178  	0x55, 0x50, 0x10, 0x02, 0x12, 0x23, 0x0a, 0x1f, 0x41, 0x53, 0x53, 0x49, 0x53, 0x54, 0x5f, 0x56,
   179  	0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x4f, 0x50, 0x55, 0x50, 0x5f, 0x45,
   180  	0x58, 0x50, 0x41, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x33, 0x0a, 0x2f, 0x41, 0x53, 0x53,
   181  	0x49, 0x53, 0x54, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x4f,
   182  	0x50, 0x55, 0x50, 0x5f, 0x45, 0x58, 0x50, 0x41, 0x4e, 0x44, 0x45, 0x44, 0x5f, 0x53, 0x49, 0x44,
   183  	0x45, 0x42, 0x41, 0x52, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x04, 0x42, 0x59,
   184  	0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61,
   185  	0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70,
   186  	0x6f, 0x72, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   187  	0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
   188  	0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66,
   189  	0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   190  	0x33,
   191  }
   192  
   193  var (
   194  	file_teleport_userpreferences_v1_assist_proto_rawDescOnce sync.Once
   195  	file_teleport_userpreferences_v1_assist_proto_rawDescData = file_teleport_userpreferences_v1_assist_proto_rawDesc
   196  )
   197  
   198  func file_teleport_userpreferences_v1_assist_proto_rawDescGZIP() []byte {
   199  	file_teleport_userpreferences_v1_assist_proto_rawDescOnce.Do(func() {
   200  		file_teleport_userpreferences_v1_assist_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_userpreferences_v1_assist_proto_rawDescData)
   201  	})
   202  	return file_teleport_userpreferences_v1_assist_proto_rawDescData
   203  }
   204  
   205  var file_teleport_userpreferences_v1_assist_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   206  var file_teleport_userpreferences_v1_assist_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   207  var file_teleport_userpreferences_v1_assist_proto_goTypes = []interface{}{
   208  	(AssistViewMode)(0),           // 0: teleport.userpreferences.v1.AssistViewMode
   209  	(*AssistUserPreferences)(nil), // 1: teleport.userpreferences.v1.AssistUserPreferences
   210  }
   211  var file_teleport_userpreferences_v1_assist_proto_depIdxs = []int32{
   212  	0, // 0: teleport.userpreferences.v1.AssistUserPreferences.view_mode:type_name -> teleport.userpreferences.v1.AssistViewMode
   213  	1, // [1:1] is the sub-list for method output_type
   214  	1, // [1:1] is the sub-list for method input_type
   215  	1, // [1:1] is the sub-list for extension type_name
   216  	1, // [1:1] is the sub-list for extension extendee
   217  	0, // [0:1] is the sub-list for field type_name
   218  }
   219  
   220  func init() { file_teleport_userpreferences_v1_assist_proto_init() }
   221  func file_teleport_userpreferences_v1_assist_proto_init() {
   222  	if File_teleport_userpreferences_v1_assist_proto != nil {
   223  		return
   224  	}
   225  	if !protoimpl.UnsafeEnabled {
   226  		file_teleport_userpreferences_v1_assist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   227  			switch v := v.(*AssistUserPreferences); i {
   228  			case 0:
   229  				return &v.state
   230  			case 1:
   231  				return &v.sizeCache
   232  			case 2:
   233  				return &v.unknownFields
   234  			default:
   235  				return nil
   236  			}
   237  		}
   238  	}
   239  	type x struct{}
   240  	out := protoimpl.TypeBuilder{
   241  		File: protoimpl.DescBuilder{
   242  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   243  			RawDescriptor: file_teleport_userpreferences_v1_assist_proto_rawDesc,
   244  			NumEnums:      1,
   245  			NumMessages:   1,
   246  			NumExtensions: 0,
   247  			NumServices:   0,
   248  		},
   249  		GoTypes:           file_teleport_userpreferences_v1_assist_proto_goTypes,
   250  		DependencyIndexes: file_teleport_userpreferences_v1_assist_proto_depIdxs,
   251  		EnumInfos:         file_teleport_userpreferences_v1_assist_proto_enumTypes,
   252  		MessageInfos:      file_teleport_userpreferences_v1_assist_proto_msgTypes,
   253  	}.Build()
   254  	File_teleport_userpreferences_v1_assist_proto = out.File
   255  	file_teleport_userpreferences_v1_assist_proto_rawDesc = nil
   256  	file_teleport_userpreferences_v1_assist_proto_goTypes = nil
   257  	file_teleport_userpreferences_v1_assist_proto_depIdxs = nil
   258  }