Browse Source

adjust filer.proto

pull/4608/head
chrislu 2 years ago
parent
commit
f8aa5ea844
  1. 2
      other/java/client/src/main/proto/filer.proto
  2. 2
      weed/pb/filer.proto
  3. 18
      weed/pb/filer_pb/filer.pb.go

2
other/java/client/src/main/proto/filer.proto

@ -447,8 +447,8 @@ message LockRequest {
}
message LockResponse {
string renew_token = 1;
string moved_to = 2;
string error = 3;
string moved_to = 4;
}
message UnlockRequest {
string name = 1;

2
weed/pb/filer.proto

@ -447,8 +447,8 @@ message LockRequest {
}
message LockResponse {
string renew_token = 1;
string moved_to = 2;
string error = 3;
string moved_to = 4;
}
message UnlockRequest {
string name = 1;

18
weed/pb/filer_pb/filer.pb.go

@ -3689,8 +3689,8 @@ type LockResponse struct {
unknownFields protoimpl.UnknownFields
RenewToken string `protobuf:"bytes,1,opt,name=renew_token,json=renewToken,proto3" json:"renew_token,omitempty"`
MovedTo string `protobuf:"bytes,2,opt,name=moved_to,json=movedTo,proto3" json:"moved_to,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
MovedTo string `protobuf:"bytes,4,opt,name=moved_to,json=movedTo,proto3" json:"moved_to,omitempty"`
}
func (x *LockResponse) Reset() {
@ -3732,16 +3732,16 @@ func (x *LockResponse) GetRenewToken() string {
return ""
}
func (x *LockResponse) GetError() string {
func (x *LockResponse) GetMovedTo() string {
if x != nil {
return x.Error
return x.MovedTo
}
return ""
}
func (x *LockResponse) GetMovedTo() string {
func (x *LockResponse) GetError() string {
if x != nil {
return x.MovedTo
return x.Error
}
return ""
}
@ -4699,10 +4699,10 @@ var file_filer_proto_rawDesc = []byte{
0x4d, 0x6f, 0x76, 0x65, 0x64, 0x22, 0x60, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x65,
0x77, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08,
0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x22, 0x5f, 0x0a, 0x0d, 0x55, 0x6e, 0x6c, 0x6f, 0x63,
0x77, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f,
0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54,
0x6f, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x5f, 0x0a, 0x0d, 0x55, 0x6e, 0x6c, 0x6f, 0x63,
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,

Loading…
Cancel
Save