// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: MPL-2.0

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: controller/api/services/v1/authtokens_service.proto

package services

import (
	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
	authtokens "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/authtokens"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	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)
)

type GetAuthTokenRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetAuthTokenRequest) Reset() {
	*x = GetAuthTokenRequest{}
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetAuthTokenRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetAuthTokenRequest) ProtoMessage() {}

func (x *GetAuthTokenRequest) ProtoReflect() protoreflect.Message {
	mi := &file_controller_api_services_v1_authtokens_service_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)
}

// Deprecated: Use GetAuthTokenRequest.ProtoReflect.Descriptor instead.
func (*GetAuthTokenRequest) Descriptor() ([]byte, []int) {
	return file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP(), []int{0}
}

func (x *GetAuthTokenRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

type GetAuthTokenResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Item          *authtokens.AuthToken  `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetAuthTokenResponse) Reset() {
	*x = GetAuthTokenResponse{}
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetAuthTokenResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetAuthTokenResponse) ProtoMessage() {}

func (x *GetAuthTokenResponse) ProtoReflect() protoreflect.Message {
	mi := &file_controller_api_services_v1_authtokens_service_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)
}

// Deprecated: Use GetAuthTokenResponse.ProtoReflect.Descriptor instead.
func (*GetAuthTokenResponse) Descriptor() ([]byte, []int) {
	return file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP(), []int{1}
}

func (x *GetAuthTokenResponse) GetItem() *authtokens.AuthToken {
	if x != nil {
		return x.Item
	}
	return nil
}

type ListAuthTokensRequest struct {
	state     protoimpl.MessageState `protogen:"open.v1"`
	ScopeId   string                 `protobuf:"bytes,1,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public"`     // @gotags: `class:"public"`
	Recursive bool                   `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"`
	// You can specify that the filter should only return items that match.
	// Refer to [filter expressions](https://developer.hashicorp.com/boundary/docs/concepts/filtering) for more information.
	Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"`
	// An opaque token that Boundary uses to continue an existing iteration or
	// request updated items. If you do not specify a token, pagination
	// starts from the beginning. To learn more about list pagination
	// in Boundary, refer to [list pagination](https://developer.hashicorp.com/boundary/docs/api-clients/api/pagination).
	ListToken string `protobuf:"bytes,40,opt,name=list_token,proto3" json:"list_token,omitempty" class:"public"` // @gotags: `class:"public"`
	// The maximum size of a page in this iteration.
	// If you do not set a page size, Boundary uses the configured default page size.
	// If the page_size is greater than the default page size configured,
	// Boundary truncates the page size to this number.
	PageSize      uint32 `protobuf:"varint,50,opt,name=page_size,proto3" json:"page_size,omitempty" class:"public"` // @gotags: `class:"public"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListAuthTokensRequest) Reset() {
	*x = ListAuthTokensRequest{}
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListAuthTokensRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListAuthTokensRequest) ProtoMessage() {}

func (x *ListAuthTokensRequest) ProtoReflect() protoreflect.Message {
	mi := &file_controller_api_services_v1_authtokens_service_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)
}

// Deprecated: Use ListAuthTokensRequest.ProtoReflect.Descriptor instead.
func (*ListAuthTokensRequest) Descriptor() ([]byte, []int) {
	return file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP(), []int{2}
}

func (x *ListAuthTokensRequest) GetScopeId() string {
	if x != nil {
		return x.ScopeId
	}
	return ""
}

func (x *ListAuthTokensRequest) GetRecursive() bool {
	if x != nil {
		return x.Recursive
	}
	return false
}

func (x *ListAuthTokensRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

func (x *ListAuthTokensRequest) GetListToken() string {
	if x != nil {
		return x.ListToken
	}
	return ""
}

func (x *ListAuthTokensRequest) GetPageSize() uint32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

type ListAuthTokensResponse struct {
	state protoimpl.MessageState  `protogen:"open.v1"`
	Items []*authtokens.AuthToken `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// The type of response, either "delta" or "complete".
	// Delta signifies that this is part of a paginated result
	// or an update to a previously completed pagination.
	// Complete signifies that it is the last page.
	ResponseType string `protobuf:"bytes,2,opt,name=response_type,proto3" json:"response_type,omitempty" class:"public"` // @gotags: `class:"public"`
	// An opaque token used to continue an existing pagination or
	// request updated items. Use this token in the next list request
	// to request the next page.
	ListToken string `protobuf:"bytes,3,opt,name=list_token,proto3" json:"list_token,omitempty" class:"public"` // @gotags: `class:"public"`
	// The name of the field which the items are sorted by.
	SortBy string `protobuf:"bytes,4,opt,name=sort_by,proto3" json:"sort_by,omitempty" class:"public"` // @gotags: `class:"public"`
	// The direction of the sort, either "asc" or "desc".
	SortDir string `protobuf:"bytes,5,opt,name=sort_dir,proto3" json:"sort_dir,omitempty" class:"public"` // @gotags: `class:"public"`
	// A list of item IDs that have been removed since they were returned
	// as part of a pagination. They should be dropped from any client cache.
	// This may contain items that are not known to the cache, if they were
	// created and deleted between listings.
	RemovedIds []string `protobuf:"bytes,6,rep,name=removed_ids,proto3" json:"removed_ids,omitempty" class:"public"` // @gotags: `class:"public"`
	// An estimate at the total items available. This may change during pagination.
	EstItemCount  uint32 `protobuf:"varint,7,opt,name=est_item_count,proto3" json:"est_item_count,omitempty" class:"public"` // @gotags: `class:"public"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListAuthTokensResponse) Reset() {
	*x = ListAuthTokensResponse{}
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListAuthTokensResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListAuthTokensResponse) ProtoMessage() {}

func (x *ListAuthTokensResponse) ProtoReflect() protoreflect.Message {
	mi := &file_controller_api_services_v1_authtokens_service_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)
}

// Deprecated: Use ListAuthTokensResponse.ProtoReflect.Descriptor instead.
func (*ListAuthTokensResponse) Descriptor() ([]byte, []int) {
	return file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP(), []int{3}
}

func (x *ListAuthTokensResponse) GetItems() []*authtokens.AuthToken {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *ListAuthTokensResponse) GetResponseType() string {
	if x != nil {
		return x.ResponseType
	}
	return ""
}

func (x *ListAuthTokensResponse) GetListToken() string {
	if x != nil {
		return x.ListToken
	}
	return ""
}

func (x *ListAuthTokensResponse) GetSortBy() string {
	if x != nil {
		return x.SortBy
	}
	return ""
}

func (x *ListAuthTokensResponse) GetSortDir() string {
	if x != nil {
		return x.SortDir
	}
	return ""
}

func (x *ListAuthTokensResponse) GetRemovedIds() []string {
	if x != nil {
		return x.RemovedIds
	}
	return nil
}

func (x *ListAuthTokensResponse) GetEstItemCount() uint32 {
	if x != nil {
		return x.EstItemCount
	}
	return 0
}

type DeleteAuthTokenRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteAuthTokenRequest) Reset() {
	*x = DeleteAuthTokenRequest{}
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteAuthTokenRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteAuthTokenRequest) ProtoMessage() {}

func (x *DeleteAuthTokenRequest) ProtoReflect() protoreflect.Message {
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteAuthTokenRequest.ProtoReflect.Descriptor instead.
func (*DeleteAuthTokenRequest) Descriptor() ([]byte, []int) {
	return file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP(), []int{4}
}

func (x *DeleteAuthTokenRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

type DeleteAuthTokenResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteAuthTokenResponse) Reset() {
	*x = DeleteAuthTokenResponse{}
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteAuthTokenResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteAuthTokenResponse) ProtoMessage() {}

func (x *DeleteAuthTokenResponse) ProtoReflect() protoreflect.Message {
	mi := &file_controller_api_services_v1_authtokens_service_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteAuthTokenResponse.ProtoReflect.Descriptor instead.
func (*DeleteAuthTokenResponse) Descriptor() ([]byte, []int) {
	return file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP(), []int{5}
}

var File_controller_api_services_v1_authtokens_service_proto protoreflect.FileDescriptor

const file_controller_api_services_v1_authtokens_service_proto_rawDesc = "" +
	"\n" +
	"3controller/api/services/v1/authtokens_service.proto\x12\x1acontroller.api.services.v1\x1a6controller/api/resources/authtokens/v1/authtoken.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"%\n" +
	"\x13GetAuthTokenRequest\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"]\n" +
	"\x14GetAuthTokenResponse\x12E\n" +
	"\x04item\x18\x01 \x01(\v21.controller.api.resources.authtokens.v1.AuthTokenR\x04item\"\xa7\x01\n" +
	"\x15ListAuthTokensRequest\x12\x1a\n" +
	"\bscope_id\x18\x01 \x01(\tR\bscope_id\x12\x1c\n" +
	"\trecursive\x18\x14 \x01(\bR\trecursive\x12\x16\n" +
	"\x06filter\x18\x1e \x01(\tR\x06filter\x12\x1e\n" +
	"\n" +
	"list_token\x18( \x01(\tR\n" +
	"list_token\x12\x1c\n" +
	"\tpage_size\x182 \x01(\rR\tpage_size\"\xa7\x02\n" +
	"\x16ListAuthTokensResponse\x12G\n" +
	"\x05items\x18\x01 \x03(\v21.controller.api.resources.authtokens.v1.AuthTokenR\x05items\x12$\n" +
	"\rresponse_type\x18\x02 \x01(\tR\rresponse_type\x12\x1e\n" +
	"\n" +
	"list_token\x18\x03 \x01(\tR\n" +
	"list_token\x12\x18\n" +
	"\asort_by\x18\x04 \x01(\tR\asort_by\x12\x1a\n" +
	"\bsort_dir\x18\x05 \x01(\tR\bsort_dir\x12 \n" +
	"\vremoved_ids\x18\x06 \x03(\tR\vremoved_ids\x12&\n" +
	"\x0eest_item_count\x18\a \x01(\rR\x0eest_item_count\"(\n" +
	"\x16DeleteAuthTokenRequest\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"\x19\n" +
	"\x17DeleteAuthTokenResponse2\xd5\x06\n" +
	"\x10AuthTokenService\x12\xb3\x01\n" +
	"\fGetAuthToken\x12/.controller.api.services.v1.GetAuthTokenRequest\x1a0.controller.api.services.v1.GetAuthTokenResponse\"@\x92A\x1b\x12\x19Gets a single Auth Token.\x82\xd3\xe4\x93\x02\x1cb\x04item\x12\x14/v1/auth-tokens/{id}\x12\xab\x01\n" +
	"\x0eListAuthTokens\x121.controller.api.services.v1.ListAuthTokensRequest\x1a2.controller.api.services.v1.ListAuthTokensResponse\"2\x92A\x18\x12\x16Lists all Auth Tokens.\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/auth-tokens\x12\xb3\x01\n" +
	"\x0fDeleteAuthToken\x122.controller.api.services.v1.DeleteAuthTokenRequest\x1a3.controller.api.services.v1.DeleteAuthTokenResponse\"7\x92A\x18\x12\x16Deletes an Auth Token.\x82\xd3\xe4\x93\x02\x16*\x14/v1/auth-tokens/{id}\x1a\xa6\x02\x92A\xa2\x02\n" +
	"\x12Auth token service\x12\x8b\x02The auth token service provides the ability to manage and retrieve auth tokens. An auth token serves as a temporary credential issued to a user after successful authentication. It grants the user access to Boundary's resources and capabilities for a limited duration.BMZKgithub.com/hashicorp/boundary/internal/gen/controller/api/services;servicesb\x06proto3"

var (
	file_controller_api_services_v1_authtokens_service_proto_rawDescOnce sync.Once
	file_controller_api_services_v1_authtokens_service_proto_rawDescData []byte
)

func file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP() []byte {
	file_controller_api_services_v1_authtokens_service_proto_rawDescOnce.Do(func() {
		file_controller_api_services_v1_authtokens_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_api_services_v1_authtokens_service_proto_rawDesc), len(file_controller_api_services_v1_authtokens_service_proto_rawDesc)))
	})
	return file_controller_api_services_v1_authtokens_service_proto_rawDescData
}

var file_controller_api_services_v1_authtokens_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_services_v1_authtokens_service_proto_goTypes = []any{
	(*GetAuthTokenRequest)(nil),     // 0: controller.api.services.v1.GetAuthTokenRequest
	(*GetAuthTokenResponse)(nil),    // 1: controller.api.services.v1.GetAuthTokenResponse
	(*ListAuthTokensRequest)(nil),   // 2: controller.api.services.v1.ListAuthTokensRequest
	(*ListAuthTokensResponse)(nil),  // 3: controller.api.services.v1.ListAuthTokensResponse
	(*DeleteAuthTokenRequest)(nil),  // 4: controller.api.services.v1.DeleteAuthTokenRequest
	(*DeleteAuthTokenResponse)(nil), // 5: controller.api.services.v1.DeleteAuthTokenResponse
	(*authtokens.AuthToken)(nil),    // 6: controller.api.resources.authtokens.v1.AuthToken
}
var file_controller_api_services_v1_authtokens_service_proto_depIdxs = []int32{
	6, // 0: controller.api.services.v1.GetAuthTokenResponse.item:type_name -> controller.api.resources.authtokens.v1.AuthToken
	6, // 1: controller.api.services.v1.ListAuthTokensResponse.items:type_name -> controller.api.resources.authtokens.v1.AuthToken
	0, // 2: controller.api.services.v1.AuthTokenService.GetAuthToken:input_type -> controller.api.services.v1.GetAuthTokenRequest
	2, // 3: controller.api.services.v1.AuthTokenService.ListAuthTokens:input_type -> controller.api.services.v1.ListAuthTokensRequest
	4, // 4: controller.api.services.v1.AuthTokenService.DeleteAuthToken:input_type -> controller.api.services.v1.DeleteAuthTokenRequest
	1, // 5: controller.api.services.v1.AuthTokenService.GetAuthToken:output_type -> controller.api.services.v1.GetAuthTokenResponse
	3, // 6: controller.api.services.v1.AuthTokenService.ListAuthTokens:output_type -> controller.api.services.v1.ListAuthTokensResponse
	5, // 7: controller.api.services.v1.AuthTokenService.DeleteAuthToken:output_type -> controller.api.services.v1.DeleteAuthTokenResponse
	5, // [5:8] is the sub-list for method output_type
	2, // [2:5] 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_controller_api_services_v1_authtokens_service_proto_init() }
func file_controller_api_services_v1_authtokens_service_proto_init() {
	if File_controller_api_services_v1_authtokens_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_api_services_v1_authtokens_service_proto_rawDesc), len(file_controller_api_services_v1_authtokens_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_controller_api_services_v1_authtokens_service_proto_goTypes,
		DependencyIndexes: file_controller_api_services_v1_authtokens_service_proto_depIdxs,
		MessageInfos:      file_controller_api_services_v1_authtokens_service_proto_msgTypes,
	}.Build()
	File_controller_api_services_v1_authtokens_service_proto = out.File
	file_controller_api_services_v1_authtokens_service_proto_goTypes = nil
	file_controller_api_services_v1_authtokens_service_proto_depIdxs = nil
}
