Files
teleport/api/client/proto/requestable_roles.pb.go
T
rosstimothy 614fe26e4e Convert existing non-gogo codegen to the Hybrid API (#67267)
Contributes to https://github.com/gravitational/teleport/issues/66776.

All existing protos explicitly set to API_OPEN have been change to
API_HBYRID. The new codegen was performed via make grpc. There are no
other functional changes to the code to start consuming the Hybrid API
those will come later. The intent is to get all Hybrid codegen in and
backported to ease the transition.
2026-06-01 18:21:08 +00:00

412 lines
14 KiB
Go

// Copyright 2025 Gravitational, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: teleport/legacy/client/proto/requestable_roles.proto
// buf:lint:ignore PACKAGE_DIRECTORY_MATCH
// buf:lint:ignore PACKAGE_VERSION_SUFFIX
//go:build !protoopaque
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
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)
)
// ListRequestableRolesRequest is the request message for AuthService.ListRequestableRoles
type ListRequestableRolesRequest struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
// page_size is the maximum number of requestable roles to return per page.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// page_token is the next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter is the filtering options for the returned roles.
Filter *ListRequestableRolesRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListRequestableRolesRequest) Reset() {
*x = ListRequestableRolesRequest{}
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListRequestableRolesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRequestableRolesRequest) ProtoMessage() {}
func (x *ListRequestableRolesRequest) ProtoReflect() protoreflect.Message {
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *ListRequestableRolesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListRequestableRolesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListRequestableRolesRequest) GetFilter() *ListRequestableRolesRequest_Filter {
if x != nil {
return x.Filter
}
return nil
}
func (x *ListRequestableRolesRequest) SetPageSize(v int32) {
x.PageSize = v
}
func (x *ListRequestableRolesRequest) SetPageToken(v string) {
x.PageToken = v
}
func (x *ListRequestableRolesRequest) SetFilter(v *ListRequestableRolesRequest_Filter) {
x.Filter = v
}
func (x *ListRequestableRolesRequest) HasFilter() bool {
if x == nil {
return false
}
return x.Filter != nil
}
func (x *ListRequestableRolesRequest) ClearFilter() {
x.Filter = nil
}
type ListRequestableRolesRequest_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// page_size is the maximum number of requestable roles to return per page.
PageSize int32
// page_token is the next_page_token value returned from a previous List request, if any.
PageToken string
// filter is the filtering options for the returned roles.
Filter *ListRequestableRolesRequest_Filter
}
func (b0 ListRequestableRolesRequest_builder) Build() *ListRequestableRolesRequest {
m0 := &ListRequestableRolesRequest{}
b, x := &b0, m0
_, _ = b, x
x.PageSize = b.PageSize
x.PageToken = b.PageToken
x.Filter = b.Filter
return m0
}
// ListRequestableRolesResponse is the response message for AuthService.ListRequestableRoles
type ListRequestableRolesResponse struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
// roles is the requestable roles.
Roles []*ListRequestableRolesResponse_RequestableRole `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
// next_page_token is the next page token. If there are no more results, it will be empty.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListRequestableRolesResponse) Reset() {
*x = ListRequestableRolesResponse{}
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListRequestableRolesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRequestableRolesResponse) ProtoMessage() {}
func (x *ListRequestableRolesResponse) ProtoReflect() protoreflect.Message {
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *ListRequestableRolesResponse) GetRoles() []*ListRequestableRolesResponse_RequestableRole {
if x != nil {
return x.Roles
}
return nil
}
func (x *ListRequestableRolesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func (x *ListRequestableRolesResponse) SetRoles(v []*ListRequestableRolesResponse_RequestableRole) {
x.Roles = v
}
func (x *ListRequestableRolesResponse) SetNextPageToken(v string) {
x.NextPageToken = v
}
type ListRequestableRolesResponse_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// roles is the requestable roles.
Roles []*ListRequestableRolesResponse_RequestableRole
// next_page_token is the next page token. If there are no more results, it will be empty.
NextPageToken string
}
func (b0 ListRequestableRolesResponse_builder) Build() *ListRequestableRolesResponse {
m0 := &ListRequestableRolesResponse{}
b, x := &b0, m0
_, _ = b, x
x.Roles = b.Roles
x.NextPageToken = b.NextPageToken
return m0
}
// Filter is the type for the filtering options for the returned roles.
type ListRequestableRolesRequest_Filter struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
// a list of search keywords to match against resource field values, if specified
SearchKeywords []string `protobuf:"bytes,1,rep,name=search_keywords,json=searchKeywords,proto3" json:"search_keywords,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListRequestableRolesRequest_Filter) Reset() {
*x = ListRequestableRolesRequest_Filter{}
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListRequestableRolesRequest_Filter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRequestableRolesRequest_Filter) ProtoMessage() {}
func (x *ListRequestableRolesRequest_Filter) ProtoReflect() protoreflect.Message {
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *ListRequestableRolesRequest_Filter) GetSearchKeywords() []string {
if x != nil {
return x.SearchKeywords
}
return nil
}
func (x *ListRequestableRolesRequest_Filter) SetSearchKeywords(v []string) {
x.SearchKeywords = v
}
type ListRequestableRolesRequest_Filter_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// a list of search keywords to match against resource field values, if specified
SearchKeywords []string
}
func (b0 ListRequestableRolesRequest_Filter_builder) Build() *ListRequestableRolesRequest_Filter {
m0 := &ListRequestableRolesRequest_Filter{}
b, x := &b0, m0
_, _ = b, x
x.SearchKeywords = b.SearchKeywords
return m0
}
// RequestableRole is the type of a requestable role, containing only its name and description.
type ListRequestableRolesResponse_RequestableRole struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListRequestableRolesResponse_RequestableRole) Reset() {
*x = ListRequestableRolesResponse_RequestableRole{}
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListRequestableRolesResponse_RequestableRole) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRequestableRolesResponse_RequestableRole) ProtoMessage() {}
func (x *ListRequestableRolesResponse_RequestableRole) ProtoReflect() protoreflect.Message {
mi := &file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *ListRequestableRolesResponse_RequestableRole) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ListRequestableRolesResponse_RequestableRole) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *ListRequestableRolesResponse_RequestableRole) SetName(v string) {
x.Name = v
}
func (x *ListRequestableRolesResponse_RequestableRole) SetDescription(v string) {
x.Description = v
}
type ListRequestableRolesResponse_RequestableRole_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
Name string
Description string
}
func (b0 ListRequestableRolesResponse_RequestableRole_builder) Build() *ListRequestableRolesResponse_RequestableRole {
m0 := &ListRequestableRolesResponse_RequestableRole{}
b, x := &b0, m0
_, _ = b, x
x.Name = b.Name
x.Description = b.Description
return m0
}
var File_teleport_legacy_client_proto_requestable_roles_proto protoreflect.FileDescriptor
const file_teleport_legacy_client_proto_requestable_roles_proto_rawDesc = "" +
"\n" +
"4teleport/legacy/client/proto/requestable_roles.proto\x12\x05proto\"\xcf\x01\n" +
"\x1bListRequestableRolesRequest\x12\x1b\n" +
"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +
"\n" +
"page_token\x18\x02 \x01(\tR\tpageToken\x12A\n" +
"\x06filter\x18\x03 \x01(\v2).proto.ListRequestableRolesRequest.FilterR\x06filter\x1a1\n" +
"\x06Filter\x12'\n" +
"\x0fsearch_keywords\x18\x01 \x03(\tR\x0esearchKeywords\"\xda\x01\n" +
"\x1cListRequestableRolesResponse\x12I\n" +
"\x05roles\x18\x01 \x03(\v23.proto.ListRequestableRolesResponse.RequestableRoleR\x05roles\x12&\n" +
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x1aG\n" +
"\x0fRequestableRole\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
"\vdescription\x18\x02 \x01(\tR\vdescriptionB4Z2github.com/gravitational/teleport/api/client/protob\x06proto3"
var file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_teleport_legacy_client_proto_requestable_roles_proto_goTypes = []any{
(*ListRequestableRolesRequest)(nil), // 0: proto.ListRequestableRolesRequest
(*ListRequestableRolesResponse)(nil), // 1: proto.ListRequestableRolesResponse
(*ListRequestableRolesRequest_Filter)(nil), // 2: proto.ListRequestableRolesRequest.Filter
(*ListRequestableRolesResponse_RequestableRole)(nil), // 3: proto.ListRequestableRolesResponse.RequestableRole
}
var file_teleport_legacy_client_proto_requestable_roles_proto_depIdxs = []int32{
2, // 0: proto.ListRequestableRolesRequest.filter:type_name -> proto.ListRequestableRolesRequest.Filter
3, // 1: proto.ListRequestableRolesResponse.roles:type_name -> proto.ListRequestableRolesResponse.RequestableRole
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_teleport_legacy_client_proto_requestable_roles_proto_init() }
func file_teleport_legacy_client_proto_requestable_roles_proto_init() {
if File_teleport_legacy_client_proto_requestable_roles_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_teleport_legacy_client_proto_requestable_roles_proto_rawDesc), len(file_teleport_legacy_client_proto_requestable_roles_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_teleport_legacy_client_proto_requestable_roles_proto_goTypes,
DependencyIndexes: file_teleport_legacy_client_proto_requestable_roles_proto_depIdxs,
MessageInfos: file_teleport_legacy_client_proto_requestable_roles_proto_msgTypes,
}.Build()
File_teleport_legacy_client_proto_requestable_roles_proto = out.File
file_teleport_legacy_client_proto_requestable_roles_proto_goTypes = nil
file_teleport_legacy_client_proto_requestable_roles_proto_depIdxs = nil
}