@ -117,6 +117,124 @@ func (x *Resource) GetMemoId() int32 {
return 0
}
type CreateResourceRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Filename string ` protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty" `
ExternalLink string ` protobuf:"bytes,2,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty" `
Type string ` protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty" `
MemoId * int32 ` protobuf:"varint,4,opt,name=memo_id,json=memoId,proto3,oneof" json:"memo_id,omitempty" `
}
func ( x * CreateResourceRequest ) Reset ( ) {
* x = CreateResourceRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * CreateResourceRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * CreateResourceRequest ) ProtoMessage ( ) { }
func ( x * CreateResourceRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 1 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.
func ( * CreateResourceRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
func ( x * CreateResourceRequest ) GetFilename ( ) string {
if x != nil {
return x . Filename
}
return ""
}
func ( x * CreateResourceRequest ) GetExternalLink ( ) string {
if x != nil {
return x . ExternalLink
}
return ""
}
func ( x * CreateResourceRequest ) GetType ( ) string {
if x != nil {
return x . Type
}
return ""
}
func ( x * CreateResourceRequest ) GetMemoId ( ) int32 {
if x != nil && x . MemoId != nil {
return * x . MemoId
}
return 0
}
type CreateResourceResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Resource * Resource ` protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty" `
}
func ( x * CreateResourceResponse ) Reset ( ) {
* x = CreateResourceResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * CreateResourceResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * CreateResourceResponse ) ProtoMessage ( ) { }
func ( x * CreateResourceResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 2 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use CreateResourceResponse.ProtoReflect.Descriptor instead.
func ( * CreateResourceResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
func ( x * CreateResourceResponse ) GetResource ( ) * Resource {
if x != nil {
return x . Resource
}
return nil
}
type ListResourcesRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
@ -126,7 +244,7 @@ type ListResourcesRequest struct {
func ( x * ListResourcesRequest ) Reset ( ) {
* x = ListResourcesRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 1 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -139,7 +257,7 @@ func (x *ListResourcesRequest) String() string {
func ( * ListResourcesRequest ) ProtoMessage ( ) { }
func ( x * ListResourcesRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 1 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 3 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -152,7 +270,7 @@ func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListResourcesRequest.ProtoReflect.Descriptor instead.
func ( * ListResourcesRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 1 }
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 3 }
}
type ListResourcesResponse struct {
@ -166,7 +284,7 @@ type ListResourcesResponse struct {
func ( x * ListResourcesResponse ) Reset ( ) {
* x = ListResourcesResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 2 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 4 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -179,7 +297,7 @@ func (x *ListResourcesResponse) String() string {
func ( * ListResourcesResponse ) ProtoMessage ( ) { }
func ( x * ListResourcesResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 2 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 4 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -192,7 +310,7 @@ func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListResourcesResponse.ProtoReflect.Descriptor instead.
func ( * ListResourcesResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 2 }
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 4 }
}
func ( x * ListResourcesResponse ) GetResources ( ) [ ] * Resource {
@ -202,6 +320,116 @@ func (x *ListResourcesResponse) GetResources() []*Resource {
return nil
}
type UpdateResourceRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Id int32 ` protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" `
Resource * Resource ` protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty" `
UpdateMask [ ] string ` protobuf:"bytes,3,rep,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty" `
}
func ( x * UpdateResourceRequest ) Reset ( ) {
* x = UpdateResourceRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 5 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * UpdateResourceRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * UpdateResourceRequest ) ProtoMessage ( ) { }
func ( x * UpdateResourceRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 5 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.
func ( * UpdateResourceRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 5 }
}
func ( x * UpdateResourceRequest ) GetId ( ) int32 {
if x != nil {
return x . Id
}
return 0
}
func ( x * UpdateResourceRequest ) GetResource ( ) * Resource {
if x != nil {
return x . Resource
}
return nil
}
func ( x * UpdateResourceRequest ) GetUpdateMask ( ) [ ] string {
if x != nil {
return x . UpdateMask
}
return nil
}
type UpdateResourceResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Resource * Resource ` protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty" `
}
func ( x * UpdateResourceResponse ) Reset ( ) {
* x = UpdateResourceResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * UpdateResourceResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * UpdateResourceResponse ) ProtoMessage ( ) { }
func ( x * UpdateResourceResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 6 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use UpdateResourceResponse.ProtoReflect.Descriptor instead.
func ( * UpdateResourceResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
func ( x * UpdateResourceResponse ) GetResource ( ) * Resource {
if x != nil {
return x . Resource
}
return nil
}
type DeleteResourceRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
@ -213,7 +441,7 @@ type DeleteResourceRequest struct {
func ( x * DeleteResourceRequest ) Reset ( ) {
* x = DeleteResourceRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 3 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -226,7 +454,7 @@ func (x *DeleteResourceRequest) String() string {
func ( * DeleteResourceRequest ) ProtoMessage ( ) { }
func ( x * DeleteResourceRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 3 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 7 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -239,7 +467,7 @@ func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.
func ( * DeleteResourceRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 3 }
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
func ( x * DeleteResourceRequest ) GetId ( ) int32 {
@ -258,7 +486,7 @@ type DeleteResourceResponse struct {
func ( x * DeleteResourceResponse ) Reset ( ) {
* x = DeleteResourceResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_api_v2_resource_service_proto_msgTypes [ 4 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -271,7 +499,7 @@ func (x *DeleteResourceResponse) String() string {
func ( * DeleteResourceResponse ) ProtoMessage ( ) { }
func ( x * DeleteResourceResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_api_v2_resource_service_proto_msgTypes [ 4 ]
mi := & file_api_v2_resource_service_proto_msgTypes [ 8 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -284,7 +512,7 @@ func (x *DeleteResourceResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteResourceResponse.ProtoReflect.Descriptor instead.
func ( * DeleteResourceResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 4 }
return file_api_v2_resource_service_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
var File_api_v2_resource_service_proto protoreflect . FileDescriptor
@ -313,45 +541,88 @@ var file_api_v2_resource_service_proto_rawDesc = []byte{
0x52 , 0x04 , 0x73 , 0x69 , 0x7a , 0x65 , 0x12 , 0x1c , 0x0a , 0x07 , 0x6d , 0x65 , 0x6d , 0x6f , 0x5f , 0x69 ,
0x64 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x05 , 0x48 , 0x00 , 0x52 , 0x06 , 0x6d , 0x65 , 0x6d , 0x6f , 0x49 ,
0x64 , 0x88 , 0x01 , 0x01 , 0x42 , 0x0a , 0x0a , 0x08 , 0x5f , 0x6d , 0x65 , 0x6d , 0x6f , 0x5f , 0x69 , 0x64 ,
0x22 , 0x16 , 0x0a , 0x14 , 0x4c , 0x69 , 0x73 , 0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 ,
0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x22 , 0x4d , 0x0a , 0x15 , 0x4c , 0x69 , 0x73 , 0x74 ,
0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 ,
0x65 , 0x12 , 0x34 , 0x0a , 0x09 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x18 , 0x01 ,
0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x16 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 ,
0x2e , 0x76 , 0x32 , 0x2e , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x09 , 0x72 , 0x65 ,
0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x22 , 0x27 , 0x0a , 0x15 , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 ,
0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 ,
0x12 , 0x0e , 0x0a , 0x02 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x02 , 0x69 , 0x64 ,
0x22 , 0x18 , 0x0a , 0x16 , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 ,
0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x32 , 0x89 , 0x02 , 0x0a , 0x0f , 0x52 ,
0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x53 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x12 , 0x73 ,
0x0a , 0x0d , 0x4c , 0x69 , 0x73 , 0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x12 ,
0x22 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x4c ,
0x69 , 0x73 , 0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x1a , 0x23 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e ,
0x76 , 0x32 , 0x2e , 0x4c , 0x69 , 0x73 , 0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 ,
0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x19 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x13 ,
0x12 , 0x11 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x32 , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 ,
0x63 , 0x65 , 0x73 , 0x12 , 0x80 , 0x01 , 0x0a , 0x0e , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 ,
0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x12 , 0x23 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 ,
0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f ,
0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x24 , 0x2e , 0x6d , 0x65 ,
0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 ,
0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 ,
0x65 , 0x22 , 0x23 , 0xda , 0x41 , 0x02 , 0x69 , 0x64 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x18 , 0x12 , 0x16 ,
0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x32 , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 ,
0x73 , 0x2f , 0x7b , 0x69 , 0x64 , 0x7d , 0x42 , 0xac , 0x01 , 0x0a , 0x10 , 0x63 , 0x6f , 0x6d , 0x2e , 0x6d ,
0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x42 , 0x14 , 0x52 , 0x65 , 0x73 ,
0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x53 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x50 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x50 , 0x01 , 0x5a , 0x30 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f ,
0x75 , 0x73 , 0x65 , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2f , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2f , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x67 , 0x65 , 0x6e , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x32 , 0x3b ,
0x61 , 0x70 , 0x69 , 0x76 , 0x32 , 0xa2 , 0x02 , 0x03 , 0x4d , 0x41 , 0x58 , 0xaa , 0x02 , 0x0c , 0x4d , 0x65 ,
0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x70 , 0x69 , 0x2e , 0x56 , 0x32 , 0xca , 0x02 , 0x0c , 0x4d , 0x65 , 0x6d ,
0x6f , 0x73 , 0x5c , 0x41 , 0x70 , 0x69 , 0x5c , 0x56 , 0x32 , 0xe2 , 0x02 , 0x18 , 0x4d , 0x65 , 0x6d , 0x6f ,
0x73 , 0x5c , 0x41 , 0x70 , 0x69 , 0x5c , 0x56 , 0x32 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 ,
0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 , 0x0e , 0x4d , 0x65 , 0x6d , 0x6f , 0x73 , 0x3a , 0x3a , 0x41 , 0x70 ,
0x69 , 0x3a , 0x3a , 0x56 , 0x32 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x22 , 0x96 , 0x01 , 0x0a , 0x15 , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 ,
0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x1a , 0x0a , 0x08 , 0x66 , 0x69 ,
0x6c , 0x65 , 0x6e , 0x61 , 0x6d , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x66 , 0x69 ,
0x6c , 0x65 , 0x6e , 0x61 , 0x6d , 0x65 , 0x12 , 0x23 , 0x0a , 0x0d , 0x65 , 0x78 , 0x74 , 0x65 , 0x72 , 0x6e ,
0x61 , 0x6c , 0x5f , 0x6c , 0x69 , 0x6e , 0x6b , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x65 ,
0x78 , 0x74 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6c , 0x4c , 0x69 , 0x6e , 0x6b , 0x12 , 0x12 , 0x0a , 0x04 , 0x74 ,
0x79 , 0x70 , 0x65 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x12 ,
0x1c , 0x0a , 0x07 , 0x6d , 0x65 , 0x6d , 0x6f , 0x5f , 0x69 , 0x64 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x05 ,
0x48 , 0x00 , 0x52 , 0x06 , 0x6d , 0x65 , 0x6d , 0x6f , 0x49 , 0x64 , 0x88 , 0x01 , 0x01 , 0x42 , 0x0a , 0x0a ,
0x08 , 0x5f , 0x6d , 0x65 , 0x6d , 0x6f , 0x5f , 0x69 , 0x64 , 0x22 , 0x4c , 0x0a , 0x16 , 0x43 , 0x72 , 0x65 ,
0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x12 , 0x32 , 0x0a , 0x08 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x18 ,
0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x16 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 ,
0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x08 , 0x72 ,
0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x22 , 0x16 , 0x0a , 0x14 , 0x4c , 0x69 , 0x73 , 0x74 , 0x52 ,
0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x22 ,
0x4d , 0x0a , 0x15 , 0x4c , 0x69 , 0x73 , 0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 ,
0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x34 , 0x0a , 0x09 , 0x72 , 0x65 , 0x73 , 0x6f ,
0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x16 , 0x2e , 0x6d , 0x65 ,
0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 ,
0x72 , 0x63 , 0x65 , 0x52 , 0x09 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x22 , 0x7c ,
0x0a , 0x15 , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 ,
0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x0e , 0x0a , 0x02 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 ,
0x01 , 0x28 , 0x05 , 0x52 , 0x02 , 0x69 , 0x64 , 0x12 , 0x32 , 0x0a , 0x08 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 ,
0x72 , 0x63 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x16 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f ,
0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 ,
0x65 , 0x52 , 0x08 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x12 , 0x1f , 0x0a , 0x0b , 0x75 ,
0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x5f , 0x6d , 0x61 , 0x73 , 0x6b , 0x18 , 0x03 , 0x20 , 0x03 , 0x28 , 0x09 ,
0x52 , 0x0a , 0x75 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x4d , 0x61 , 0x73 , 0x6b , 0x22 , 0x4c , 0x0a , 0x16 ,
0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 ,
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x32 , 0x0a , 0x08 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 ,
0x63 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x16 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 ,
0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 ,
0x52 , 0x08 , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x22 , 0x27 , 0x0a , 0x15 , 0x44 , 0x65 ,
0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x12 , 0x0e , 0x0a , 0x02 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 ,
0x02 , 0x69 , 0x64 , 0x22 , 0x18 , 0x0a , 0x16 , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 ,
0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x32 , 0x84 , 0x04 ,
0x0a , 0x0f , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x53 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 ,
0x65 , 0x12 , 0x76 , 0x0a , 0x0e , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 ,
0x72 , 0x63 , 0x65 , 0x12 , 0x23 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e ,
0x76 , 0x32 , 0x2e , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 ,
0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x24 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 ,
0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 ,
0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x19 ,
0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x13 , 0x22 , 0x11 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x32 , 0x2f ,
0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x12 , 0x73 , 0x0a , 0x0d , 0x4c , 0x69 , 0x73 ,
0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x12 , 0x22 , 0x2e , 0x6d , 0x65 , 0x6d ,
0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x4c , 0x69 , 0x73 , 0x74 , 0x52 , 0x65 ,
0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x23 ,
0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x4c , 0x69 ,
0x73 , 0x74 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x22 , 0x19 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x13 , 0x12 , 0x11 , 0x2f , 0x61 , 0x70 ,
0x69 , 0x2f , 0x76 , 0x32 , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x12 , 0x80 ,
0x01 , 0x0a , 0x0e , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 ,
0x65 , 0x12 , 0x23 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 ,
0x2e , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 ,
0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x24 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 ,
0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f ,
0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x23 , 0xda , 0x41 ,
0x02 , 0x69 , 0x64 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x18 , 0x1a , 0x16 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f ,
0x76 , 0x32 , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x2f , 0x7b , 0x69 , 0x64 ,
0x7d , 0x12 , 0x80 , 0x01 , 0x0a , 0x0e , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f ,
0x75 , 0x72 , 0x63 , 0x65 , 0x12 , 0x23 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 ,
0x2e , 0x76 , 0x32 , 0x2e , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 ,
0x63 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x24 , 0x2e , 0x6d , 0x65 , 0x6d , 0x6f ,
0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x2e , 0x44 , 0x65 , 0x6c , 0x65 , 0x74 , 0x65 , 0x52 ,
0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 ,
0x23 , 0xda , 0x41 , 0x02 , 0x69 , 0x64 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x18 , 0x12 , 0x16 , 0x2f , 0x61 ,
0x70 , 0x69 , 0x2f , 0x76 , 0x32 , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x73 , 0x2f ,
0x7b , 0x69 , 0x64 , 0x7d , 0x42 , 0xac , 0x01 , 0x0a , 0x10 , 0x63 , 0x6f , 0x6d , 0x2e , 0x6d , 0x65 , 0x6d ,
0x6f , 0x73 , 0x2e , 0x61 , 0x70 , 0x69 , 0x2e , 0x76 , 0x32 , 0x42 , 0x14 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 ,
0x72 , 0x63 , 0x65 , 0x53 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 ,
0x01 , 0x5a , 0x30 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x75 , 0x73 ,
0x65 , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2f , 0x6d , 0x65 , 0x6d , 0x6f , 0x73 , 0x2f , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x2f , 0x67 , 0x65 , 0x6e , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x32 , 0x3b , 0x61 , 0x70 ,
0x69 , 0x76 , 0x32 , 0xa2 , 0x02 , 0x03 , 0x4d , 0x41 , 0x58 , 0xaa , 0x02 , 0x0c , 0x4d , 0x65 , 0x6d , 0x6f ,
0x73 , 0x2e , 0x41 , 0x70 , 0x69 , 0x2e , 0x56 , 0x32 , 0xca , 0x02 , 0x0c , 0x4d , 0x65 , 0x6d , 0x6f , 0x73 ,
0x5c , 0x41 , 0x70 , 0x69 , 0x5c , 0x56 , 0x32 , 0xe2 , 0x02 , 0x18 , 0x4d , 0x65 , 0x6d , 0x6f , 0x73 , 0x5c ,
0x41 , 0x70 , 0x69 , 0x5c , 0x56 , 0x32 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 , 0x64 , 0x61 ,
0x74 , 0x61 , 0xea , 0x02 , 0x0e , 0x4d , 0x65 , 0x6d , 0x6f , 0x73 , 0x3a , 0x3a , 0x41 , 0x70 , 0x69 , 0x3a ,
0x3a , 0x56 , 0x32 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
@ -366,27 +637,38 @@ func file_api_v2_resource_service_proto_rawDescGZIP() []byte {
return file_api_v2_resource_service_proto_rawDescData
}
var file_api_v2_resource_service_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 5 )
var file_api_v2_resource_service_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 9 )
var file_api_v2_resource_service_proto_goTypes = [ ] interface { } {
( * Resource ) ( nil ) , // 0: memos.api.v2.Resource
( * ListResourcesRequest ) ( nil ) , // 1: memos.api.v2.ListResourcesRequest
( * ListResourcesResponse ) ( nil ) , // 2: memos.api.v2.ListResourcesResponse
( * DeleteResourceRequest ) ( nil ) , // 3: memos.api.v2.DeleteResourceRequest
( * DeleteResourceResponse ) ( nil ) , // 4: memos.api.v2.DeleteResourceResponse
( * timestamppb . Timestamp ) ( nil ) , // 5: google.protobuf.Timestamp
( * CreateResourceRequest ) ( nil ) , // 1: memos.api.v2.CreateResourceRequest
( * CreateResourceResponse ) ( nil ) , // 2: memos.api.v2.CreateResourceResponse
( * ListResourcesRequest ) ( nil ) , // 3: memos.api.v2.ListResourcesRequest
( * ListResourcesResponse ) ( nil ) , // 4: memos.api.v2.ListResourcesResponse
( * UpdateResourceRequest ) ( nil ) , // 5: memos.api.v2.UpdateResourceRequest
( * UpdateResourceResponse ) ( nil ) , // 6: memos.api.v2.UpdateResourceResponse
( * DeleteResourceRequest ) ( nil ) , // 7: memos.api.v2.DeleteResourceRequest
( * DeleteResourceResponse ) ( nil ) , // 8: memos.api.v2.DeleteResourceResponse
( * timestamppb . Timestamp ) ( nil ) , // 9: google.protobuf.Timestamp
}
var file_api_v2_resource_service_proto_depIdxs = [ ] int32 {
5 , // 0: memos.api.v2.Resource.created_ts:type_name -> google.protobuf.Timestamp
0 , // 1: memos.api.v2.ListResourcesResponse.resources:type_name -> memos.api.v2.Resource
1 , // 2: memos.api.v2.ResourceService.ListResources:input_type -> memos.api.v2.ListResourcesRequest
3 , // 3: memos.api.v2.ResourceService.DeleteResource:input_type -> memos.api.v2.DeleteResourceRequest
2 , // 4: memos.api.v2.ResourceService.ListResources:output_type -> memos.api.v2.ListResourcesResponse
4 , // 5: memos.api.v2.ResourceService.DeleteResource:output_type -> memos.api.v2.DeleteResourceResponse
4 , // [4:6] is the sub-list for method output_type
2 , // [2:4] 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
9 , // 0: memos.api.v2.Resource.created_ts:type_name -> google.protobuf.Timestamp
0 , // 1: memos.api.v2.CreateResourceResponse.resource:type_name -> memos.api.v2.Resource
0 , // 2: memos.api.v2.ListResourcesResponse.resources:type_name -> memos.api.v2.Resource
0 , // 3: memos.api.v2.UpdateResourceRequest.resource:type_name -> memos.api.v2.Resource
0 , // 4: memos.api.v2.UpdateResourceResponse.resource:type_name -> memos.api.v2.Resource
1 , // 5: memos.api.v2.ResourceService.CreateResource:input_type -> memos.api.v2.CreateResourceRequest
3 , // 6: memos.api.v2.ResourceService.ListResources:input_type -> memos.api.v2.ListResourcesRequest
5 , // 7: memos.api.v2.ResourceService.UpdateResource:input_type -> memos.api.v2.UpdateResourceRequest
7 , // 8: memos.api.v2.ResourceService.DeleteResource:input_type -> memos.api.v2.DeleteResourceRequest
2 , // 9: memos.api.v2.ResourceService.CreateResource:output_type -> memos.api.v2.CreateResourceResponse
4 , // 10: memos.api.v2.ResourceService.ListResources:output_type -> memos.api.v2.ListResourcesResponse
6 , // 11: memos.api.v2.ResourceService.UpdateResource:output_type -> memos.api.v2.UpdateResourceResponse
8 , // 12: memos.api.v2.ResourceService.DeleteResource:output_type -> memos.api.v2.DeleteResourceResponse
9 , // [9:13] is the sub-list for method output_type
5 , // [5:9] is the sub-list for method input_type
5 , // [5:5] is the sub-list for extension type_name
5 , // [5:5] is the sub-list for extension extendee
0 , // [0:5] is the sub-list for field type_name
}
func init ( ) { file_api_v2_resource_service_proto_init ( ) }
@ -408,7 +690,7 @@ func file_api_v2_resource_service_proto_init() {
}
}
file_api_v2_resource_service_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * ListResources Request) ; i {
switch v := v . ( * CreateResource Request) ; i {
case 0 :
return & v . state
case 1 :
@ -420,7 +702,7 @@ func file_api_v2_resource_service_proto_init() {
}
}
file_api_v2_resource_service_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * ListResources Response) ; i {
switch v := v . ( * CreateResource Response) ; i {
case 0 :
return & v . state
case 1 :
@ -432,7 +714,7 @@ func file_api_v2_resource_service_proto_init() {
}
}
file_api_v2_resource_service_proto_msgTypes [ 3 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * DeleteResource Request) ; i {
switch v := v . ( * ListResources Request) ; i {
case 0 :
return & v . state
case 1 :
@ -444,6 +726,54 @@ func file_api_v2_resource_service_proto_init() {
}
}
file_api_v2_resource_service_proto_msgTypes [ 4 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * ListResourcesResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_api_v2_resource_service_proto_msgTypes [ 5 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * UpdateResourceRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_api_v2_resource_service_proto_msgTypes [ 6 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * UpdateResourceResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_api_v2_resource_service_proto_msgTypes [ 7 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * DeleteResourceRequest ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_api_v2_resource_service_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * DeleteResourceResponse ) ; i {
case 0 :
return & v . state
@ -457,13 +787,14 @@ func file_api_v2_resource_service_proto_init() {
}
}
file_api_v2_resource_service_proto_msgTypes [ 0 ] . OneofWrappers = [ ] interface { } { }
file_api_v2_resource_service_proto_msgTypes [ 1 ] . OneofWrappers = [ ] interface { } { }
type x struct { }
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_api_v2_resource_service_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 5 ,
NumMessages : 9 ,
NumExtensions : 0 ,
NumServices : 1 ,
} ,