|
|
|
@ -144,8 +144,8 @@ public final class Msg extends |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String getFoo() { |
|
|
|
public String getFoo() { |
|
|
|
Object ref = foo_; |
|
|
|
Object ref = foo_; |
|
|
|
if (ref instanceof String) { |
|
|
|
if (ref instanceof String stringRef) { |
|
|
|
return (String) ref; |
|
|
|
return stringRef; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
com.google.protobuf.ByteString bs = |
|
|
|
com.google.protobuf.ByteString bs = |
|
|
|
(com.google.protobuf.ByteString) ref; |
|
|
|
(com.google.protobuf.ByteString) ref; |
|
|
|
@ -162,10 +162,9 @@ public final class Msg extends |
|
|
|
public com.google.protobuf.ByteString |
|
|
|
public com.google.protobuf.ByteString |
|
|
|
getFooBytes() { |
|
|
|
getFooBytes() { |
|
|
|
Object ref = foo_; |
|
|
|
Object ref = foo_; |
|
|
|
if (ref instanceof String) { |
|
|
|
if (ref instanceof String stringRef) { |
|
|
|
com.google.protobuf.ByteString b = |
|
|
|
com.google.protobuf.ByteString b = |
|
|
|
com.google.protobuf.ByteString.copyFromUtf8( |
|
|
|
com.google.protobuf.ByteString.copyFromUtf8(stringRef); |
|
|
|
(String) ref); |
|
|
|
|
|
|
|
foo_ = b; |
|
|
|
foo_ = b; |
|
|
|
return b; |
|
|
|
return b; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
@ -405,8 +404,8 @@ public final class Msg extends |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) { |
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) { |
|
|
|
if (other instanceof Msg) { |
|
|
|
if (other instanceof Msg msg) { |
|
|
|
return mergeFrom((Msg)other); |
|
|
|
return mergeFrom(msg); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
super.mergeFrom(other); |
|
|
|
super.mergeFrom(other); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
@ -463,13 +462,13 @@ public final class Msg extends |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String getFoo() { |
|
|
|
public String getFoo() { |
|
|
|
Object ref = foo_; |
|
|
|
Object ref = foo_; |
|
|
|
if (!(ref instanceof String)) { |
|
|
|
if (!(ref instanceof String stringRef)) { |
|
|
|
String s = ((com.google.protobuf.ByteString) ref) |
|
|
|
String s = ((com.google.protobuf.ByteString) ref) |
|
|
|
.toStringUtf8(); |
|
|
|
.toStringUtf8(); |
|
|
|
foo_ = s; |
|
|
|
foo_ = s; |
|
|
|
return s; |
|
|
|
return s; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return (String) ref; |
|
|
|
return stringRef; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -478,10 +477,9 @@ public final class Msg extends |
|
|
|
public com.google.protobuf.ByteString |
|
|
|
public com.google.protobuf.ByteString |
|
|
|
getFooBytes() { |
|
|
|
getFooBytes() { |
|
|
|
Object ref = foo_; |
|
|
|
Object ref = foo_; |
|
|
|
if (ref instanceof String) { |
|
|
|
if (ref instanceof String stringRef) { |
|
|
|
com.google.protobuf.ByteString b = |
|
|
|
com.google.protobuf.ByteString b = |
|
|
|
com.google.protobuf.ByteString.copyFromUtf8( |
|
|
|
com.google.protobuf.ByteString.copyFromUtf8(stringRef); |
|
|
|
(String) ref); |
|
|
|
|
|
|
|
foo_ = b; |
|
|
|
foo_ = b; |
|
|
|
return b; |
|
|
|
return b; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|