// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: external/iam/v2/request/tokens.proto

package request

import (
	_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	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 CreateTokenReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique ID. Cannot be changed.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name for the token.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Active state. Defaults to true.
	// If set to false, token will not be authenticated or authorized.
	Active *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=active,proto3" json:"active,omitempty"`
	// Unique value for the token; if omitted the system will generate this.
	Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// List of projects this token belongs to.
	Projects      []string `protobuf:"bytes,5,rep,name=projects,proto3" json:"projects,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateTokenReq) ProtoMessage() {}

func (x *CreateTokenReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_tokens_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 CreateTokenReq.ProtoReflect.Descriptor instead.
func (*CreateTokenReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_tokens_proto_rawDescGZIP(), []int{0}
}

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

func (x *CreateTokenReq) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *CreateTokenReq) GetActive() *wrapperspb.BoolValue {
	if x != nil {
		return x.Active
	}
	return nil
}

func (x *CreateTokenReq) GetValue() string {
	if x != nil {
		return x.Value
	}
	return ""
}

func (x *CreateTokenReq) GetProjects() []string {
	if x != nil {
		return x.Projects
	}
	return nil
}

type GetTokenReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the token.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetTokenReq) ProtoMessage() {}

func (x *GetTokenReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_tokens_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 GetTokenReq.ProtoReflect.Descriptor instead.
func (*GetTokenReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_tokens_proto_rawDescGZIP(), []int{1}
}

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

type UpdateTokenReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique ID. Cannot be changed.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name for the token.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Active state. Defaults to true.
	// If set to false, token will not be authenticated or authorized.
	Active *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=active,proto3" json:"active,omitempty"`
	// List of projects this token belongs to.
	Projects      []string `protobuf:"bytes,5,rep,name=projects,proto3" json:"projects,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateTokenReq) ProtoMessage() {}

func (x *UpdateTokenReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_tokens_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 UpdateTokenReq.ProtoReflect.Descriptor instead.
func (*UpdateTokenReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_tokens_proto_rawDescGZIP(), []int{2}
}

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

func (x *UpdateTokenReq) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *UpdateTokenReq) GetActive() *wrapperspb.BoolValue {
	if x != nil {
		return x.Active
	}
	return nil
}

func (x *UpdateTokenReq) GetProjects() []string {
	if x != nil {
		return x.Projects
	}
	return nil
}

type DeleteTokenReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the token.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteTokenReq) ProtoMessage() {}

func (x *DeleteTokenReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_tokens_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 DeleteTokenReq.ProtoReflect.Descriptor instead.
func (*DeleteTokenReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_tokens_proto_rawDescGZIP(), []int{3}
}

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

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

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

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

func (*ListTokensReq) ProtoMessage() {}

func (x *ListTokensReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_tokens_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 ListTokensReq.ProtoReflect.Descriptor instead.
func (*ListTokensReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_tokens_proto_rawDescGZIP(), []int{4}
}

var File_external_iam_v2_request_tokens_proto protoreflect.FileDescriptor

const file_external_iam_v2_request_tokens_proto_rawDesc = "" +
	"\n" +
	"$external/iam/v2/request/tokens.proto\x12\x18chef.automate.api.iam.v2\x1a\x1egoogle/protobuf/wrappers.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\x91\x02\n" +
	"\x0eCreateTokenReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x122\n" +
	"\x06active\x18\x03 \x01(\v2\x1a.google.protobuf.BoolValueR\x06active\x12\x14\n" +
	"\x05value\x18\x04 \x01(\tR\x05value\x12\x1a\n" +
	"\bprojects\x18\x05 \x03(\tR\bprojects:u\x92Ar\n" +
	"\f\xd2\x01\x02id\xd2\x01\x04name2b\x12`{\"name\": \"token 1\", \"id\": \"token-1\", \"active\": true, \"projects\": [\"east-region\", \"west-region\"]}\"\x1d\n" +
	"\vGetTokenReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"\xf1\x01\n" +
	"\x0eUpdateTokenReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x122\n" +
	"\x06active\x18\x03 \x01(\v2\x1a.google.protobuf.BoolValueR\x06active\x12\x1a\n" +
	"\bprojects\x18\x05 \x03(\tR\bprojects:k\x92Ah\n" +
	"\a\xd2\x01\x04name2]\x12[{\"name\": \"updated token name\", \"active\": true, \"projects\": [\"east-region\", \"south-region\"]}\" \n" +
	"\x0eDeleteTokenReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"\x0f\n" +
	"\rListTokensReqB6Z4github.com/chef/automate/api/external/iam/v2/requestb\x06proto3"

var (
	file_external_iam_v2_request_tokens_proto_rawDescOnce sync.Once
	file_external_iam_v2_request_tokens_proto_rawDescData []byte
)

func file_external_iam_v2_request_tokens_proto_rawDescGZIP() []byte {
	file_external_iam_v2_request_tokens_proto_rawDescOnce.Do(func() {
		file_external_iam_v2_request_tokens_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_external_iam_v2_request_tokens_proto_rawDesc), len(file_external_iam_v2_request_tokens_proto_rawDesc)))
	})
	return file_external_iam_v2_request_tokens_proto_rawDescData
}

var file_external_iam_v2_request_tokens_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_external_iam_v2_request_tokens_proto_goTypes = []any{
	(*CreateTokenReq)(nil),       // 0: chef.automate.api.iam.v2.CreateTokenReq
	(*GetTokenReq)(nil),          // 1: chef.automate.api.iam.v2.GetTokenReq
	(*UpdateTokenReq)(nil),       // 2: chef.automate.api.iam.v2.UpdateTokenReq
	(*DeleteTokenReq)(nil),       // 3: chef.automate.api.iam.v2.DeleteTokenReq
	(*ListTokensReq)(nil),        // 4: chef.automate.api.iam.v2.ListTokensReq
	(*wrapperspb.BoolValue)(nil), // 5: google.protobuf.BoolValue
}
var file_external_iam_v2_request_tokens_proto_depIdxs = []int32{
	5, // 0: chef.automate.api.iam.v2.CreateTokenReq.active:type_name -> google.protobuf.BoolValue
	5, // 1: chef.automate.api.iam.v2.UpdateTokenReq.active:type_name -> google.protobuf.BoolValue
	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_external_iam_v2_request_tokens_proto_init() }
func file_external_iam_v2_request_tokens_proto_init() {
	if File_external_iam_v2_request_tokens_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_external_iam_v2_request_tokens_proto_rawDesc), len(file_external_iam_v2_request_tokens_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_external_iam_v2_request_tokens_proto_goTypes,
		DependencyIndexes: file_external_iam_v2_request_tokens_proto_depIdxs,
		MessageInfos:      file_external_iam_v2_request_tokens_proto_msgTypes,
	}.Build()
	File_external_iam_v2_request_tokens_proto = out.File
	file_external_iam_v2_request_tokens_proto_goTypes = nil
	file_external_iam_v2_request_tokens_proto_depIdxs = nil
}
