github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/gen/proto/go/userpreferences/v1/theme.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/theme.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  // Theme is a frontend theme.
    38  type Theme int32
    39  
    40  const (
    41  	Theme_THEME_UNSPECIFIED Theme = 0
    42  	// THEME_LIGHT is the light theme.
    43  	Theme_THEME_LIGHT Theme = 1
    44  	// THEME_DARK is the dark theme.
    45  	Theme_THEME_DARK Theme = 2
    46  )
    47  
    48  // Enum value maps for Theme.
    49  var (
    50  	Theme_name = map[int32]string{
    51  		0: "THEME_UNSPECIFIED",
    52  		1: "THEME_LIGHT",
    53  		2: "THEME_DARK",
    54  	}
    55  	Theme_value = map[string]int32{
    56  		"THEME_UNSPECIFIED": 0,
    57  		"THEME_LIGHT":       1,
    58  		"THEME_DARK":        2,
    59  	}
    60  )
    61  
    62  func (x Theme) Enum() *Theme {
    63  	p := new(Theme)
    64  	*p = x
    65  	return p
    66  }
    67  
    68  func (x Theme) String() string {
    69  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    70  }
    71  
    72  func (Theme) Descriptor() protoreflect.EnumDescriptor {
    73  	return file_teleport_userpreferences_v1_theme_proto_enumTypes[0].Descriptor()
    74  }
    75  
    76  func (Theme) Type() protoreflect.EnumType {
    77  	return &file_teleport_userpreferences_v1_theme_proto_enumTypes[0]
    78  }
    79  
    80  func (x Theme) Number() protoreflect.EnumNumber {
    81  	return protoreflect.EnumNumber(x)
    82  }
    83  
    84  // Deprecated: Use Theme.Descriptor instead.
    85  func (Theme) EnumDescriptor() ([]byte, []int) {
    86  	return file_teleport_userpreferences_v1_theme_proto_rawDescGZIP(), []int{0}
    87  }
    88  
    89  var File_teleport_userpreferences_v1_theme_proto protoreflect.FileDescriptor
    90  
    91  var file_teleport_userpreferences_v1_theme_proto_rawDesc = []byte{
    92  	0x0a, 0x27, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70,
    93  	0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x68,
    94  	0x65, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x74, 0x65, 0x6c, 0x65, 0x70,
    95  	0x6f, 0x72, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
    96  	0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2a, 0x3f, 0x0a, 0x05, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x12,
    97  	0x15, 0x0a, 0x11, 0x54, 0x48, 0x45, 0x4d, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
    98  	0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x45, 0x4d, 0x45, 0x5f,
    99  	0x4c, 0x49, 0x47, 0x48, 0x54, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x48, 0x45, 0x4d, 0x45,
   100  	0x5f, 0x44, 0x41, 0x52, 0x4b, 0x10, 0x02, 0x42, 0x59, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75,
   101  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f,
   102  	0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x61, 0x70, 0x69,
   103  	0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x75, 0x73,
   104  	0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31,
   105  	0x3b, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
   106  	0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   107  }
   108  
   109  var (
   110  	file_teleport_userpreferences_v1_theme_proto_rawDescOnce sync.Once
   111  	file_teleport_userpreferences_v1_theme_proto_rawDescData = file_teleport_userpreferences_v1_theme_proto_rawDesc
   112  )
   113  
   114  func file_teleport_userpreferences_v1_theme_proto_rawDescGZIP() []byte {
   115  	file_teleport_userpreferences_v1_theme_proto_rawDescOnce.Do(func() {
   116  		file_teleport_userpreferences_v1_theme_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_userpreferences_v1_theme_proto_rawDescData)
   117  	})
   118  	return file_teleport_userpreferences_v1_theme_proto_rawDescData
   119  }
   120  
   121  var file_teleport_userpreferences_v1_theme_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   122  var file_teleport_userpreferences_v1_theme_proto_goTypes = []interface{}{
   123  	(Theme)(0), // 0: teleport.userpreferences.v1.Theme
   124  }
   125  var file_teleport_userpreferences_v1_theme_proto_depIdxs = []int32{
   126  	0, // [0:0] is the sub-list for method output_type
   127  	0, // [0:0] is the sub-list for method input_type
   128  	0, // [0:0] is the sub-list for extension type_name
   129  	0, // [0:0] is the sub-list for extension extendee
   130  	0, // [0:0] is the sub-list for field type_name
   131  }
   132  
   133  func init() { file_teleport_userpreferences_v1_theme_proto_init() }
   134  func file_teleport_userpreferences_v1_theme_proto_init() {
   135  	if File_teleport_userpreferences_v1_theme_proto != nil {
   136  		return
   137  	}
   138  	type x struct{}
   139  	out := protoimpl.TypeBuilder{
   140  		File: protoimpl.DescBuilder{
   141  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   142  			RawDescriptor: file_teleport_userpreferences_v1_theme_proto_rawDesc,
   143  			NumEnums:      1,
   144  			NumMessages:   0,
   145  			NumExtensions: 0,
   146  			NumServices:   0,
   147  		},
   148  		GoTypes:           file_teleport_userpreferences_v1_theme_proto_goTypes,
   149  		DependencyIndexes: file_teleport_userpreferences_v1_theme_proto_depIdxs,
   150  		EnumInfos:         file_teleport_userpreferences_v1_theme_proto_enumTypes,
   151  	}.Build()
   152  	File_teleport_userpreferences_v1_theme_proto = out.File
   153  	file_teleport_userpreferences_v1_theme_proto_rawDesc = nil
   154  	file_teleport_userpreferences_v1_theme_proto_goTypes = nil
   155  	file_teleport_userpreferences_v1_theme_proto_depIdxs = nil
   156  }