// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.5 // protoc (unknown) // source: svc/token/v1/service.proto package tokenv1 import ( v1 "github.com/humanlogio/api/go/types/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" 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 GenerateEnvironmentTokenRequest struct { state protoimpl.MessageState `protogen:"open.v1"` EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Roles []v1.EnvironmentRole `protobuf:"varint,3,rep,packed,name=roles,proto3,enum=types.v1.EnvironmentRole" json:"roles,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GenerateEnvironmentTokenRequest) Reset() { *x = GenerateEnvironmentTokenRequest{} mi := &file_svc_token_v1_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GenerateEnvironmentTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GenerateEnvironmentTokenRequest) ProtoMessage() {} func (x *GenerateEnvironmentTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_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 GenerateEnvironmentTokenRequest.ProtoReflect.Descriptor instead. func (*GenerateEnvironmentTokenRequest) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{0} } func (x *GenerateEnvironmentTokenRequest) GetEnvironmentId() int64 { if x != nil { return x.EnvironmentId } return 0 } func (x *GenerateEnvironmentTokenRequest) GetExpiresAt() *timestamppb.Timestamp { if x != nil { return x.ExpiresAt } return nil } func (x *GenerateEnvironmentTokenRequest) GetRoles() []v1.EnvironmentRole { if x != nil { return x.Roles } return nil } type GenerateEnvironmentTokenResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Token *v1.EnvironmentToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GenerateEnvironmentTokenResponse) Reset() { *x = GenerateEnvironmentTokenResponse{} mi := &file_svc_token_v1_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GenerateEnvironmentTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GenerateEnvironmentTokenResponse) ProtoMessage() {} func (x *GenerateEnvironmentTokenResponse) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_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 GenerateEnvironmentTokenResponse.ProtoReflect.Descriptor instead. func (*GenerateEnvironmentTokenResponse) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{1} } func (x *GenerateEnvironmentTokenResponse) GetToken() *v1.EnvironmentToken { if x != nil { return x.Token } return nil } type RevokeEnvironmentTokenRequest struct { state protoimpl.MessageState `protogen:"open.v1"` EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` TokenId int64 `protobuf:"varint,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RevokeEnvironmentTokenRequest) Reset() { *x = RevokeEnvironmentTokenRequest{} mi := &file_svc_token_v1_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RevokeEnvironmentTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RevokeEnvironmentTokenRequest) ProtoMessage() {} func (x *RevokeEnvironmentTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_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 RevokeEnvironmentTokenRequest.ProtoReflect.Descriptor instead. func (*RevokeEnvironmentTokenRequest) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{2} } func (x *RevokeEnvironmentTokenRequest) GetEnvironmentId() int64 { if x != nil { return x.EnvironmentId } return 0 } func (x *RevokeEnvironmentTokenRequest) GetTokenId() int64 { if x != nil { return x.TokenId } return 0 } type RevokeEnvironmentTokenResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RevokeEnvironmentTokenResponse) Reset() { *x = RevokeEnvironmentTokenResponse{} mi := &file_svc_token_v1_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RevokeEnvironmentTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RevokeEnvironmentTokenResponse) ProtoMessage() {} func (x *RevokeEnvironmentTokenResponse) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_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 RevokeEnvironmentTokenResponse.ProtoReflect.Descriptor instead. func (*RevokeEnvironmentTokenResponse) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{3} } type GetEnvironmentTokenRequest struct { state protoimpl.MessageState `protogen:"open.v1"` EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` TokenId int64 `protobuf:"varint,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetEnvironmentTokenRequest) Reset() { *x = GetEnvironmentTokenRequest{} mi := &file_svc_token_v1_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetEnvironmentTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetEnvironmentTokenRequest) ProtoMessage() {} func (x *GetEnvironmentTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_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 GetEnvironmentTokenRequest.ProtoReflect.Descriptor instead. func (*GetEnvironmentTokenRequest) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{4} } func (x *GetEnvironmentTokenRequest) GetEnvironmentId() int64 { if x != nil { return x.EnvironmentId } return 0 } func (x *GetEnvironmentTokenRequest) GetTokenId() int64 { if x != nil { return x.TokenId } return 0 } type GetEnvironmentTokenResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Token *v1.EnvironmentToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetEnvironmentTokenResponse) Reset() { *x = GetEnvironmentTokenResponse{} mi := &file_svc_token_v1_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetEnvironmentTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetEnvironmentTokenResponse) ProtoMessage() {} func (x *GetEnvironmentTokenResponse) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_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 GetEnvironmentTokenResponse.ProtoReflect.Descriptor instead. func (*GetEnvironmentTokenResponse) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{5} } func (x *GetEnvironmentTokenResponse) GetToken() *v1.EnvironmentToken { if x != nil { return x.Token } return nil } type ListEnvironmentTokenRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Cursor *v1.Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` EnvironmentId int64 `protobuf:"varint,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListEnvironmentTokenRequest) Reset() { *x = ListEnvironmentTokenRequest{} mi := &file_svc_token_v1_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListEnvironmentTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListEnvironmentTokenRequest) ProtoMessage() {} func (x *ListEnvironmentTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_service_proto_msgTypes[6] 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 ListEnvironmentTokenRequest.ProtoReflect.Descriptor instead. func (*ListEnvironmentTokenRequest) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{6} } func (x *ListEnvironmentTokenRequest) GetCursor() *v1.Cursor { if x != nil { return x.Cursor } return nil } func (x *ListEnvironmentTokenRequest) GetLimit() int32 { if x != nil { return x.Limit } return 0 } func (x *ListEnvironmentTokenRequest) GetEnvironmentId() int64 { if x != nil { return x.EnvironmentId } return 0 } type ListEnvironmentTokenResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"` Items []*ListEnvironmentTokenResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListEnvironmentTokenResponse) Reset() { *x = ListEnvironmentTokenResponse{} mi := &file_svc_token_v1_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListEnvironmentTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListEnvironmentTokenResponse) ProtoMessage() {} func (x *ListEnvironmentTokenResponse) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_service_proto_msgTypes[7] 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 ListEnvironmentTokenResponse.ProtoReflect.Descriptor instead. func (*ListEnvironmentTokenResponse) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{7} } func (x *ListEnvironmentTokenResponse) GetNext() *v1.Cursor { if x != nil { return x.Next } return nil } func (x *ListEnvironmentTokenResponse) GetItems() []*ListEnvironmentTokenResponse_ListItem { if x != nil { return x.Items } return nil } type ListEnvironmentTokenResponse_ListItem struct { state protoimpl.MessageState `protogen:"open.v1"` Token *v1.EnvironmentToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListEnvironmentTokenResponse_ListItem) Reset() { *x = ListEnvironmentTokenResponse_ListItem{} mi := &file_svc_token_v1_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListEnvironmentTokenResponse_ListItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListEnvironmentTokenResponse_ListItem) ProtoMessage() {} func (x *ListEnvironmentTokenResponse_ListItem) ProtoReflect() protoreflect.Message { mi := &file_svc_token_v1_service_proto_msgTypes[8] 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 ListEnvironmentTokenResponse_ListItem.ProtoReflect.Descriptor instead. func (*ListEnvironmentTokenResponse_ListItem) Descriptor() ([]byte, []int) { return file_svc_token_v1_service_proto_rawDescGZIP(), []int{7, 0} } func (x *ListEnvironmentTokenResponse_ListItem) GetToken() *v1.EnvironmentToken { if x != nil { return x.Token } return nil } var File_svc_token_v1_service_proto protoreflect.FileDescriptor var file_svc_token_v1_service_proto_rawDesc = string([]byte{ 0x0a, 0x1a, 0x73, 0x76, 0x63, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x20, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x61, 0x0a, 0x1d, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x1e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xcd, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x49, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x3c, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x30, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xe1, 0x03, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x18, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x16, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x28, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xa5, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x76, 0x63, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x76, 0x63, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x76, 0x63, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x76, 0x63, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( file_svc_token_v1_service_proto_rawDescOnce sync.Once file_svc_token_v1_service_proto_rawDescData []byte ) func file_svc_token_v1_service_proto_rawDescGZIP() []byte { file_svc_token_v1_service_proto_rawDescOnce.Do(func() { file_svc_token_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_svc_token_v1_service_proto_rawDesc), len(file_svc_token_v1_service_proto_rawDesc))) }) return file_svc_token_v1_service_proto_rawDescData } var file_svc_token_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_svc_token_v1_service_proto_goTypes = []any{ (*GenerateEnvironmentTokenRequest)(nil), // 0: svc.token.v1.GenerateEnvironmentTokenRequest (*GenerateEnvironmentTokenResponse)(nil), // 1: svc.token.v1.GenerateEnvironmentTokenResponse (*RevokeEnvironmentTokenRequest)(nil), // 2: svc.token.v1.RevokeEnvironmentTokenRequest (*RevokeEnvironmentTokenResponse)(nil), // 3: svc.token.v1.RevokeEnvironmentTokenResponse (*GetEnvironmentTokenRequest)(nil), // 4: svc.token.v1.GetEnvironmentTokenRequest (*GetEnvironmentTokenResponse)(nil), // 5: svc.token.v1.GetEnvironmentTokenResponse (*ListEnvironmentTokenRequest)(nil), // 6: svc.token.v1.ListEnvironmentTokenRequest (*ListEnvironmentTokenResponse)(nil), // 7: svc.token.v1.ListEnvironmentTokenResponse (*ListEnvironmentTokenResponse_ListItem)(nil), // 8: svc.token.v1.ListEnvironmentTokenResponse.ListItem (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp (v1.EnvironmentRole)(0), // 10: types.v1.EnvironmentRole (*v1.EnvironmentToken)(nil), // 11: types.v1.EnvironmentToken (*v1.Cursor)(nil), // 12: types.v1.Cursor } var file_svc_token_v1_service_proto_depIdxs = []int32{ 9, // 0: svc.token.v1.GenerateEnvironmentTokenRequest.expires_at:type_name -> google.protobuf.Timestamp 10, // 1: svc.token.v1.GenerateEnvironmentTokenRequest.roles:type_name -> types.v1.EnvironmentRole 11, // 2: svc.token.v1.GenerateEnvironmentTokenResponse.token:type_name -> types.v1.EnvironmentToken 11, // 3: svc.token.v1.GetEnvironmentTokenResponse.token:type_name -> types.v1.EnvironmentToken 12, // 4: svc.token.v1.ListEnvironmentTokenRequest.cursor:type_name -> types.v1.Cursor 12, // 5: svc.token.v1.ListEnvironmentTokenResponse.next:type_name -> types.v1.Cursor 8, // 6: svc.token.v1.ListEnvironmentTokenResponse.items:type_name -> svc.token.v1.ListEnvironmentTokenResponse.ListItem 11, // 7: svc.token.v1.ListEnvironmentTokenResponse.ListItem.token:type_name -> types.v1.EnvironmentToken 0, // 8: svc.token.v1.TokenService.GenerateEnvironmentToken:input_type -> svc.token.v1.GenerateEnvironmentTokenRequest 2, // 9: svc.token.v1.TokenService.RevokeEnvironmentToken:input_type -> svc.token.v1.RevokeEnvironmentTokenRequest 4, // 10: svc.token.v1.TokenService.GetEnvironmentToken:input_type -> svc.token.v1.GetEnvironmentTokenRequest 6, // 11: svc.token.v1.TokenService.ListEnvironmentToken:input_type -> svc.token.v1.ListEnvironmentTokenRequest 1, // 12: svc.token.v1.TokenService.GenerateEnvironmentToken:output_type -> svc.token.v1.GenerateEnvironmentTokenResponse 3, // 13: svc.token.v1.TokenService.RevokeEnvironmentToken:output_type -> svc.token.v1.RevokeEnvironmentTokenResponse 5, // 14: svc.token.v1.TokenService.GetEnvironmentToken:output_type -> svc.token.v1.GetEnvironmentTokenResponse 7, // 15: svc.token.v1.TokenService.ListEnvironmentToken:output_type -> svc.token.v1.ListEnvironmentTokenResponse 12, // [12:16] is the sub-list for method output_type 8, // [8:12] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_svc_token_v1_service_proto_init() } func file_svc_token_v1_service_proto_init() { if File_svc_token_v1_service_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_token_v1_service_proto_rawDesc), len(file_svc_token_v1_service_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 1, }, GoTypes: file_svc_token_v1_service_proto_goTypes, DependencyIndexes: file_svc_token_v1_service_proto_depIdxs, MessageInfos: file_svc_token_v1_service_proto_msgTypes, }.Build() File_svc_token_v1_service_proto = out.File file_svc_token_v1_service_proto_goTypes = nil file_svc_token_v1_service_proto_depIdxs = nil }