@ -1,155 +1,73 @@
@@ -1,155 +1,73 @@
/ *
* Copyright 2002 - 2022 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* https : //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an "AS IS" BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: sample.proto
// Protobuf Java Version: 4.27.0
package org.springframework.web.reactive.protobuf ;
/ * *
* Protobuf type { @code Msg }
* /
@SuppressWarnings ( "serial" )
public final class Msg extends
com . google . protobuf . GeneratedMessage
implements MsgOrBuilder {
public final class Msg extends
com . google . protobuf . GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Msg)
MsgOrBuilder {
private static final long serialVersionUID = 0L ;
static {
com . google . protobuf . RuntimeVersion . validateProtobufGencodeVersion (
com . google . protobuf . RuntimeVersion . RuntimeDomain . PUBLIC ,
/* major= */ 4 ,
/* minor= */ 27 ,
/* patch= */ 0 ,
/* suffix= */ "" ,
Msg . class . getName ( ) ) ;
}
// Use Msg.newBuilder() to construct.
private Msg ( com . google . protobuf . GeneratedMessage . Builder < ? > builder ) {
super ( builder ) ;
this . unknownFields = builder . getUnknownFields ( ) ;
}
private Msg ( boolean noInit ) { this . unknownFields = com . google . protobuf . UnknownFieldSet . getDefaultInstance ( ) ; }
private static final Msg defaultInstance ;
public static Msg getDefaultInstance ( ) {
return defaultInstance ;
}
public Msg getDefaultInstanceForType ( ) {
return defaultInstance ;
private Msg ( ) {
foo_ = "" ;
}
private final com . google . protobuf . UnknownFieldSet unknownFields ;
@Override
public final com . google . protobuf . UnknownFieldSet
getUnknownFields ( ) {
return this . unknownFields ;
}
private Msg (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
initFields ( ) ;
@SuppressWarnings ( "unused" )
int mutable_bitField0_ = 0 ;
com . google . protobuf . UnknownFieldSet . Builder unknownFields =
com . google . protobuf . UnknownFieldSet . newBuilder ( ) ;
try {
boolean done = false ;
while ( ! done ) {
int tag = input . readTag ( ) ;
switch ( tag ) {
case 0 :
done = true ;
break ;
default : {
if ( ! parseUnknownField ( input , unknownFields ,
extensionRegistry , tag ) ) {
done = true ;
}
break ;
}
case 10 : {
bitField0_ | = 0x00000001 ;
foo_ = input . readBytes ( ) ;
break ;
}
case 18 : {
SecondMsg . Builder subBuilder = null ;
if ( ( ( bitField0_ & 0x00000002 ) = = 0x00000002 ) ) {
subBuilder = blah_ . toBuilder ( ) ;
}
blah_ = input . readMessage ( SecondMsg . PARSER , extensionRegistry ) ;
if ( subBuilder ! = null ) {
subBuilder . mergeFrom ( blah_ ) ;
blah_ = subBuilder . buildPartial ( ) ;
}
bitField0_ | = 0x00000002 ;
break ;
}
}
}
} catch ( com . google . protobuf . InvalidProtocolBufferException e ) {
throw e . setUnfinishedMessage ( this ) ;
} catch ( java . io . IOException e ) {
throw new com . google . protobuf . InvalidProtocolBufferException (
e . getMessage ( ) ) . setUnfinishedMessage ( this ) ;
} finally {
this . unknownFields = unknownFields . build ( ) ;
makeExtensionsImmutable ( ) ;
}
}
public static final com . google . protobuf . Descriptors . Descriptor
getDescriptor ( ) {
return OuterSample . internal_static_Msg_descriptor ;
return org . springframework . web . reactive . protobuf . OuterSample . internal_static_Msg_descriptor ;
}
@java.lang.Override
protected com . google . protobuf . GeneratedMessage . FieldAccessorTable
internalGetFieldAccessorTable ( ) {
return OuterSample . internal_static_Msg_fieldAccessorTable
return org . springframework . web . reactive . protobuf . OuterSample . internal_static_Msg_fieldAccessorTable
. ensureFieldAccessorsInitialized (
Msg . class , Msg . Builder . class ) ;
}
public static com . google . protobuf . Parser < Msg > PARSER =
new com . google . protobuf . AbstractParser < Msg > ( ) {
public Msg parsePartialFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return new Msg ( input , extensionRegistry ) ;
}
} ;
@Override
public com . google . protobuf . Parser < Msg > getParserForType ( ) {
return PARSER ;
org . springframework . web . reactive . protobuf . Msg . class , org . springframework . web . reactive . protobuf . Msg . Builder . class ) ;
}
private int bitField0_ ;
// optional string foo = 1;
public static final int FOO_FIELD_NUMBER = 1 ;
private Object foo_ ;
@SuppressWarnings ( "serial" )
private volatile java . lang . Object foo_ = "" ;
/ * *
* < code > optional string foo = 1 ; < / code >
* @return Whether the foo field is set .
* /
@java.lang.Override
public boolean hasFoo ( ) {
return ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ;
return ( ( bitField0_ & 0x00000001 ) ! = 0 ) ;
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @return The foo .
* /
public String getFoo ( ) {
Object ref = foo_ ;
if ( ref instanceof String ) {
return ( String ) ref ;
@java.lang.Override
public java . lang . String getFoo ( ) {
java . lang . Object ref = foo_ ;
if ( ref instanceof java . lang . String ) {
return ( java . lang . String ) ref ;
} else {
com . google . protobuf . ByteString bs =
com . google . protobuf . ByteString bs =
( com . google . protobuf . ByteString ) ref ;
String s = bs . toStringUtf8 ( ) ;
java . lang . String s = bs . toStringUtf8 ( ) ;
if ( bs . isValidUtf8 ( ) ) {
foo_ = s ;
}
@ -158,14 +76,16 @@ public final class Msg extends
@@ -158,14 +76,16 @@ public final class Msg extends
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @return The bytes for foo .
* /
@java.lang.Override
public com . google . protobuf . ByteString
getFooBytes ( ) {
Object ref = foo_ ;
if ( ref instanceof String ) {
com . google . protobuf . ByteString b =
java . lang . Object ref = foo_ ;
if ( ref instanceof java . lang . String ) {
com . google . protobuf . ByteString b =
com . google . protobuf . ByteString . copyFromUtf8 (
( String ) ref ) ;
( java . lang . String ) ref ) ;
foo_ = b ;
return b ;
} else {
@ -173,140 +93,204 @@ public final class Msg extends
@@ -173,140 +93,204 @@ public final class Msg extends
}
}
// optional .SecondMsg blah = 2;
public static final int BLAH_FIELD_NUMBER = 2 ;
private SecondMsg blah_ ;
private org . springframework . web . reactive . protobuf . SecondMsg blah_ ;
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* @return Whether the blah field is set .
* /
@java.lang.Override
public boolean hasBlah ( ) {
return ( ( bitField0_ & 0x00000002 ) = = 0x00000002 ) ;
return ( ( bitField0_ & 0x00000002 ) ! = 0 ) ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* @return The blah .
* /
public SecondMsg getBlah ( ) {
return blah_ ;
@java.lang.Override
public org . springframework . web . reactive . protobuf . SecondMsg getBlah ( ) {
return blah_ = = null ? org . springframework . web . reactive . protobuf . SecondMsg . getDefaultInstance ( ) : blah_ ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public SecondMsgOrBuilder getBlahOrBuilder ( ) {
return blah_ ;
@java.lang.Override
public org . springframework . web . reactive . protobuf . SecondMsgOrBuilder getBlahOrBuilder ( ) {
return blah_ = = null ? org . springframework . web . reactive . protobuf . SecondMsg . getDefaultInstance ( ) : blah_ ;
}
private void initFields ( ) {
foo_ = "" ;
blah_ = SecondMsg . getDefaultInstance ( ) ;
}
private byte memoizedIsInitialized = - 1 ;
@java.lang.Override
public final boolean isInitialized ( ) {
byte isInitialized = memoizedIsInitialized ;
if ( isInitialized ! = - 1 ) return isInitialized = = 1 ;
if ( isInitialized = = 1 ) return true ;
if ( isInitialized = = 0 ) return false ;
memoizedIsInitialized = 1 ;
return true ;
}
@java.lang.Override
public void writeTo ( com . google . protobuf . CodedOutputStream output )
throws java . io . IOException {
getSerializedSize ( ) ;
if ( ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ) {
output . writeBytes ( 1 , getFooBytes ( ) ) ;
if ( ( ( bitField0_ & 0x00000001 ) ! = 0 ) ) {
com . google . protobuf . GeneratedMessage . writeString ( output , 1 , foo_ ) ;
}
if ( ( ( bitField0_ & 0x00000002 ) = = 0x00000002 ) ) {
output . writeMessage ( 2 , blah_ ) ;
if ( ( ( bitField0_ & 0x00000002 ) ! = 0 ) ) {
output . writeMessage ( 2 , getBlah ( ) ) ;
}
getUnknownFields ( ) . writeTo ( output ) ;
}
private int memoizedSerializedSize = - 1 ;
@java.lang.Override
public int getSerializedSize ( ) {
int size = memoizedSerializedS ize ;
int size = memoizedSize ;
if ( size ! = - 1 ) return size ;
size = 0 ;
if ( ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ) {
size + = com . google . protobuf . CodedOutputStream
. computeBytesSize ( 1 , getFooBytes ( ) ) ;
if ( ( ( bitField0_ & 0x00000001 ) ! = 0 ) ) {
size + = com . google . protobuf . GeneratedMessage . computeStringSize ( 1 , foo_ ) ;
}
if ( ( ( bitField0_ & 0x00000002 ) = = 0x00000002 ) ) {
if ( ( ( bitField0_ & 0x00000002 ) ! = 0 ) ) {
size + = com . google . protobuf . CodedOutputStream
. computeMessageSize ( 2 , blah_ ) ;
. computeMessageSize ( 2 , getBlah ( ) ) ;
}
size + = getUnknownFields ( ) . getSerializedSize ( ) ;
memoizedSerializedS ize = size ;
memoizedSize = size ;
return size ;
}
private static final long serialVersionUID = 0L ;
@Override
protected Object writeReplace ( )
throws java . io . ObjectStreamException {
return super . writeReplace ( ) ;
@java.lang.Override
public boolean equals ( final java . lang . Object obj ) {
if ( obj = = this ) {
return true ;
}
if ( ! ( obj instanceof org . springframework . web . reactive . protobuf . Msg ) ) {
return super . equals ( obj ) ;
}
org . springframework . web . reactive . protobuf . Msg other = ( org . springframework . web . reactive . protobuf . Msg ) obj ;
if ( hasFoo ( ) ! = other . hasFoo ( ) ) return false ;
if ( hasFoo ( ) ) {
if ( ! getFoo ( )
. equals ( other . getFoo ( ) ) ) return false ;
}
if ( hasBlah ( ) ! = other . hasBlah ( ) ) return false ;
if ( hasBlah ( ) ) {
if ( ! getBlah ( )
. equals ( other . getBlah ( ) ) ) return false ;
}
if ( ! getUnknownFields ( ) . equals ( other . getUnknownFields ( ) ) ) return false ;
return true ;
}
@java.lang.Override
public int hashCode ( ) {
if ( memoizedHashCode ! = 0 ) {
return memoizedHashCode ;
}
int hash = 41 ;
hash = ( 19 * hash ) + getDescriptor ( ) . hashCode ( ) ;
if ( hasFoo ( ) ) {
hash = ( 37 * hash ) + FOO_FIELD_NUMBER ;
hash = ( 53 * hash ) + getFoo ( ) . hashCode ( ) ;
}
if ( hasBlah ( ) ) {
hash = ( 37 * hash ) + BLAH_FIELD_NUMBER ;
hash = ( 53 * hash ) + getBlah ( ) . hashCode ( ) ;
}
hash = ( 29 * hash ) + getUnknownFields ( ) . hashCode ( ) ;
memoizedHashCode = hash ;
return hash ;
}
public static Msg parseFrom (
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
java . nio . ByteBuffer data )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data ) ;
}
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
java . nio . ByteBuffer data ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data , extensionRegistry ) ;
}
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
com . google . protobuf . ByteString data )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data ) ;
}
public static Msg parseFrom (
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
com . google . protobuf . ByteString data ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data , extensionRegistry ) ;
}
public static Msg parseFrom ( byte [ ] data )
public static org . springframework . web . reactive . protobuf . Msg parseFrom ( byte [ ] data )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data ) ;
}
public static Msg parseFrom (
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
byte [ ] data ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data , extensionRegistry ) ;
}
public static Msg parseFrom ( java . io . InputStream input )
public static org . springframework . web . reactive . protobuf . Msg parseFrom ( java . io . InputStream input )
throws java . io . IOException {
return PARSER . parseFrom ( input ) ;
return com . google . protobuf . GeneratedMessage
. parseWithIOException ( PARSER , input ) ;
}
public static Msg parseFrom (
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
java . io . InputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
return PARSER . parseFrom ( input , extensionRegistry ) ;
return com . google . protobuf . GeneratedMessage
. parseWithIOException ( PARSER , input , extensionRegistry ) ;
}
public static Msg parseDelimitedFrom ( java . io . InputStream input )
public static org . springframework . web . reactive . protobuf . Msg parseDelimitedFrom ( java . io . InputStream input )
throws java . io . IOException {
return PARSER . parseDelimitedFrom ( input ) ;
return com . google . protobuf . GeneratedMessage
. parseDelimitedWithIOException ( PARSER , input ) ;
}
public static Msg parseDelimitedFrom (
public static org . springframework . web . reactive . protobuf . Msg parseDelimitedFrom (
java . io . InputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
return PARSER . parseDelimitedFrom ( input , extensionRegistry ) ;
return com . google . protobuf . GeneratedMessage
. parseDelimitedWithIOException ( PARSER , input , extensionRegistry ) ;
}
public static Msg parseFrom (
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
com . google . protobuf . CodedInputStream input )
throws java . io . IOException {
return PARSER . parseFrom ( input ) ;
return com . google . protobuf . GeneratedMessage
. parseWithIOException ( PARSER , input ) ;
}
public static Msg parseFrom (
public static org . springframework . web . reactive . protobuf . Msg parseFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
return PARSER . parseFrom ( input , extensionRegistry ) ;
return com . google . protobuf . GeneratedMessage
. parseWithIOException ( PARSER , input , extensionRegistry ) ;
}
public static Builder newBuilder ( ) { return Builder . create ( ) ; }
@java.lang.Override
public Builder newBuilderForType ( ) { return newBuilder ( ) ; }
public static Builder newBuilder ( Msg prototype ) {
return newBuilder ( ) . mergeFrom ( prototype ) ;
public static Builder newBuilder ( ) {
return DEFAULT_INSTANCE . toBuilder ( ) ;
}
public static Builder newBuilder ( org . springframework . web . reactive . protobuf . Msg prototype ) {
return DEFAULT_INSTANCE . toBuilder ( ) . mergeFrom ( prototype ) ;
}
@java.lang.Override
public Builder toBuilder ( ) {
return this = = DEFAULT_INSTANCE
? new Builder ( ) : new Builder ( ) . mergeFrom ( this ) ;
}
public Builder toBuilder ( ) { return newBuilder ( this ) ; }
@Override
@java.lang. Override
protected Builder newBuilderForType (
com . google . protobuf . GeneratedMessage . BuilderParent parent ) {
Builder builder = new Builder ( parent ) ;
@ -316,21 +300,23 @@ public final class Msg extends
@@ -316,21 +300,23 @@ public final class Msg extends
* Protobuf type { @code Msg }
* /
public static final class Builder extends
com . google . protobuf . GeneratedMessage . Builder < Builder >
implements MsgOrBuilder {
com . google . protobuf . GeneratedMessage . Builder < Builder > implements
// @@protoc_insertion_point(builder_implements:Msg)
org . springframework . web . reactive . protobuf . MsgOrBuilder {
public static final com . google . protobuf . Descriptors . Descriptor
getDescriptor ( ) {
return OuterSample . internal_static_Msg_descriptor ;
return org . springframework . web . reactive . protobuf . OuterSample . internal_static_Msg_descriptor ;
}
@java.lang.Override
protected com . google . protobuf . GeneratedMessage . FieldAccessorTable
internalGetFieldAccessorTable ( ) {
return OuterSample . internal_static_Msg_fieldAccessorTable
return org . springframework . web . reactive . protobuf . OuterSample . internal_static_Msg_fieldAccessorTable
. ensureFieldAccessorsInitialized (
Msg . class , Msg . Builder . class ) ;
org . springframework . web . reactive . protobuf . Msg . class , org . springframework . web . reactive . protobuf . Msg . Builder . class ) ;
}
// Construct using org.springframework.protobuf.Msg.newBuilder()
// Construct using org.springframework.web.reactive. protobuf.Msg.newBuilder()
private Builder ( ) {
maybeForceBuilderInitialization ( ) ;
}
@ -341,147 +327,180 @@ public final class Msg extends
@@ -341,147 +327,180 @@ public final class Msg extends
maybeForceBuilderInitialization ( ) ;
}
private void maybeForceBuilderInitialization ( ) {
if ( com . google . protobuf . GeneratedMessage . alwaysUseFieldBuilders ) {
if ( com . google . protobuf . GeneratedMessage
. alwaysUseFieldBuilders ) {
getBlahFieldBuilder ( ) ;
}
}
private static Builder create ( ) {
return new Builder ( ) ;
}
@java.lang.Override
public Builder clear ( ) {
super . clear ( ) ;
bitField0_ = 0 ;
foo_ = "" ;
bitField0_ = ( bitField0_ & ~ 0x00000001 ) ;
if ( blahBuilder_ = = null ) {
blah_ = SecondMsg . getDefaultInstance ( ) ;
} else {
blahBuilder_ . clear ( ) ;
blah_ = null ;
if ( blahBuilder_ ! = null ) {
blahBuilder_ . dispose ( ) ;
blahBuilder_ = null ;
}
bitField0_ = ( bitField0_ & ~ 0x00000002 ) ;
return this ;
}
public Builder clone ( ) {
return create ( ) . mergeFrom ( buildPartial ( ) ) ;
}
@java.lang.Override
public com . google . protobuf . Descriptors . Descriptor
getDescriptorForType ( ) {
return OuterSample . internal_static_Msg_descriptor ;
return org . springframework . web . reactive . protobuf . OuterSample . internal_static_Msg_descriptor ;
}
public Msg getDefaultInstanceForType ( ) {
return Msg . getDefaultInstance ( ) ;
@java.lang.Override
public org . springframework . web . reactive . protobuf . Msg getDefaultInstanceForType ( ) {
return org . springframework . web . reactive . protobuf . Msg . getDefaultInstance ( ) ;
}
public Msg build ( ) {
Msg result = buildPartial ( ) ;
@java.lang.Override
public org . springframework . web . reactive . protobuf . Msg build ( ) {
org . springframework . web . reactive . protobuf . Msg result = buildPartial ( ) ;
if ( ! result . isInitialized ( ) ) {
throw newUninitializedMessageException ( result ) ;
}
return result ;
}
public Msg buildPartial ( ) {
Msg result = new Msg ( this ) ;
@java.lang.Override
public org . springframework . web . reactive . protobuf . Msg buildPartial ( ) {
org . springframework . web . reactive . protobuf . Msg result = new org . springframework . web . reactive . protobuf . Msg ( this ) ;
if ( bitField0_ ! = 0 ) { buildPartial0 ( result ) ; }
onBuilt ( ) ;
return result ;
}
private void buildPartial0 ( org . springframework . web . reactive . protobuf . Msg result ) {
int from_bitField0_ = bitField0_ ;
int to_bitField0_ = 0 ;
if ( ( ( from_bitField0_ & 0x00000001 ) = = 0x00000001 ) ) {
if ( ( ( from_bitField0_ & 0x00000001 ) ! = 0 ) ) {
result . foo_ = foo_ ;
to_bitField0_ | = 0x00000001 ;
}
result . foo_ = foo_ ;
if ( ( ( from_bitField0_ & 0x00000002 ) = = 0x00000002 ) ) {
if ( ( ( from_bitField0_ & 0x00000002 ) ! = 0 ) ) {
result . blah_ = blahBuilder_ = = null
? blah_
: blahBuilder_ . build ( ) ;
to_bitField0_ | = 0x00000002 ;
}
if ( blahBuilder_ = = null ) {
result . blah_ = blah_ ;
} else {
result . blah_ = blahBuilder_ . build ( ) ;
}
result . bitField0_ = to_bitField0_ ;
onBuilt ( ) ;
return result ;
result . bitField0_ | = to_bitField0_ ;
}
@java.lang.Override
public Builder mergeFrom ( com . google . protobuf . Message other ) {
if ( other instanceof Msg ) {
return mergeFrom ( ( Msg ) other ) ;
if ( other instanceof org . springframework . web . reactive . protobuf . Msg ) {
return mergeFrom ( ( org . springframework . web . reactive . protobuf . Msg ) other ) ;
} else {
super . mergeFrom ( other ) ;
return this ;
}
}
public Builder mergeFrom ( Msg other ) {
if ( other = = Msg . getDefaultInstance ( ) ) return this ;
public Builder mergeFrom ( org . springframework . web . reactive . protobuf . Msg other ) {
if ( other = = org . springframework . web . reactive . protobuf . Msg . getDefaultInstance ( ) ) return this ;
if ( other . hasFoo ( ) ) {
bitField0_ | = 0x00000001 ;
foo_ = other . foo_ ;
bitField0_ | = 0x00000001 ;
onChanged ( ) ;
}
if ( other . hasBlah ( ) ) {
mergeBlah ( other . getBlah ( ) ) ;
}
this . mergeUnknownFields ( other . getUnknownFields ( ) ) ;
onChanged ( ) ;
return this ;
}
@java.lang.Override
public final boolean isInitialized ( ) {
return true ;
}
@java.lang.Override
public Builder mergeFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
Msg parsedMessage = null ;
if ( extensionRegistry = = null ) {
throw new java . lang . NullPointerException ( ) ;
}
try {
parsedMessage = PARSER . parsePartialFrom ( input , extensionRegistry ) ;
boolean done = false ;
while ( ! done ) {
int tag = input . readTag ( ) ;
switch ( tag ) {
case 0 :
done = true ;
break ;
case 10 : {
foo_ = input . readBytes ( ) ;
bitField0_ | = 0x00000001 ;
break ;
} // case 10
case 18 : {
input . readMessage (
getBlahFieldBuilder ( ) . getBuilder ( ) ,
extensionRegistry ) ;
bitField0_ | = 0x00000002 ;
break ;
} // case 18
default : {
if ( ! super . parseUnknownField ( input , extensionRegistry , tag ) ) {
done = true ; // was an endgroup tag
}
break ;
} // default:
} // switch (tag)
} // while (!done)
} catch ( com . google . protobuf . InvalidProtocolBufferException e ) {
parsedMessage = ( Msg ) e . getUnfinishedMessage ( ) ;
throw e ;
throw e . unwrapIOException ( ) ;
} finally {
if ( parsedMessage ! = null ) {
mergeFrom ( parsedMessage ) ;
}
}
onChanged ( ) ;
} // finally
return this ;
}
private int bitField0_ ;
// optional string foo = 1;
private Object foo_ = "" ;
private java . lang . Object foo_ = "" ;
/ * *
* < code > optional string foo = 1 ; < / code >
* @return Whether the foo field is set .
* /
public boolean hasFoo ( ) {
return ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ;
return ( ( bitField0_ & 0x00000001 ) ! = 0 ) ;
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @return The foo .
* /
public String getFoo ( ) {
Object ref = foo_ ;
if ( ! ( ref instanceof String ) ) {
String s = ( ( com . google . protobuf . ByteString ) ref )
. toStringUtf8 ( ) ;
foo_ = s ;
public java . lang . String getFoo ( ) {
java . lang . Object ref = foo_ ;
if ( ! ( ref instanceof java . lang . String ) ) {
com . google . protobuf . ByteString bs =
( com . google . protobuf . ByteString ) ref ;
java . lang . String s = bs . toStringUtf8 ( ) ;
if ( bs . isValidUtf8 ( ) ) {
foo_ = s ;
}
return s ;
} else {
return ( String ) ref ;
return ( java . lang . String ) ref ;
}
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @return The bytes for foo .
* /
public com . google . protobuf . ByteString
getFooBytes ( ) {
Object ref = foo_ ;
java . lang . Object ref = foo_ ;
if ( ref instanceof String ) {
com . google . protobuf . ByteString b =
com . google . protobuf . ByteString b =
com . google . protobuf . ByteString . copyFromUtf8 (
( String ) ref ) ;
( java . lang . String ) ref ) ;
foo_ = b ;
return b ;
} else {
@ -490,57 +509,58 @@ public final class Msg extends
@@ -490,57 +509,58 @@ public final class Msg extends
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @param value The foo to set .
* @return This builder for chaining .
* /
public Builder setFoo (
String value ) {
if ( value = = null ) {
throw new NullPointerException ( ) ;
}
bitField0_ | = 0x00000001 ;
java . lang . String value ) {
if ( value = = null ) { throw new NullPointerException ( ) ; }
foo_ = value ;
bitField0_ | = 0x00000001 ;
onChanged ( ) ;
return this ;
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @return This builder for chaining .
* /
public Builder clearFoo ( ) {
bitField0_ = ( bitField0_ & ~ 0x00000001 ) ;
foo_ = getDefaultInstance ( ) . getFoo ( ) ;
bitField0_ = ( bitField0_ & ~ 0x00000001 ) ;
onChanged ( ) ;
return this ;
}
/ * *
* < code > optional string foo = 1 ; < / code >
* @param value The bytes for foo to set .
* @return This builder for chaining .
* /
public Builder setFooBytes (
com . google . protobuf . ByteString value ) {
if ( value = = null ) {
throw new NullPointerException ( ) ;
}
bitField0_ | = 0x00000001 ;
if ( value = = null ) { throw new NullPointerException ( ) ; }
foo_ = value ;
bitField0_ | = 0x00000001 ;
onChanged ( ) ;
return this ;
}
// optional .SecondMsg blah = 2;
private SecondMsg blah_ = SecondMsg . getDefaultInstance ( ) ;
private org . springframework . web . reactive . protobuf . SecondMsg blah_ ;
private com . google . protobuf . SingleFieldBuilder <
SecondMsg , SecondMsg . Builder ,
SecondMsgOrBuilder > blahBuilder_ ;
org . springframework . web . reactive . protobuf . SecondMsg , org . springframework . web . reactive . protobuf . SecondMsg . Builder , org . springframework . web . reactive . protobuf . SecondMsgOrBuilder > blahBuilder_ ;
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* @return Whether the blah field is set .
* /
public boolean hasBlah ( ) {
return ( ( bitField0_ & 0x00000002 ) = = 0x00000002 ) ;
return ( ( bitField0_ & 0x00000002 ) ! = 0 ) ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* @return The blah .
* /
public SecondMsg getBlah ( ) {
public org . springframework . web . reactive . protobuf . SecondMsg getBlah ( ) {
if ( blahBuilder_ = = null ) {
return blah_ ;
return blah_ = = null ? org . springframework . web . reactive . protobuf . SecondMsg . getDefaultInstance ( ) : blah_ ;
} else {
return blahBuilder_ . getMessage ( ) ;
}
@ -548,69 +568,71 @@ public final class Msg extends
@@ -548,69 +568,71 @@ public final class Msg extends
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public Builder setBlah ( SecondMsg value ) {
public Builder setBlah ( org . springframework . web . reactive . protobuf . SecondMsg value ) {
if ( blahBuilder_ = = null ) {
if ( value = = null ) {
throw new NullPointerException ( ) ;
}
blah_ = value ;
onChanged ( ) ;
} else {
blahBuilder_ . setMessage ( value ) ;
}
bitField0_ | = 0x00000002 ;
onChanged ( ) ;
return this ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public Builder setBlah (
SecondMsg . Builder builderForValue ) {
org . springframework . web . reactive . protobuf . SecondMsg . Builder builderForValue ) {
if ( blahBuilder_ = = null ) {
blah_ = builderForValue . build ( ) ;
onChanged ( ) ;
} else {
blahBuilder_ . setMessage ( builderForValue . build ( ) ) ;
}
bitField0_ | = 0x00000002 ;
onChanged ( ) ;
return this ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public Builder mergeBlah ( SecondMsg value ) {
public Builder mergeBlah ( org . springframework . web . reactive . protobuf . SecondMsg value ) {
if ( blahBuilder_ = = null ) {
if ( ( ( bitField0_ & 0x00000002 ) = = 0x00000002 ) & &
blah_ ! = SecondMsg . getDefaultInstance ( ) ) {
blah_ =
SecondMsg . newBuilder ( blah_ ) . mergeFrom ( value ) . buildPartial ( ) ;
if ( ( ( bitField0_ & 0x00000002 ) ! = 0 ) & &
blah_ ! = null & &
blah_ ! = org . springframework . web . reactive . protobuf . SecondMsg . getDefaultInstance ( ) ) {
getBlahBuilder ( ) . mergeFrom ( value ) ;
} else {
blah_ = value ;
}
onChanged ( ) ;
} else {
blahBuilder_ . mergeFrom ( value ) ;
}
bitField0_ | = 0x00000002 ;
if ( blah_ ! = null ) {
bitField0_ | = 0x00000002 ;
onChanged ( ) ;
}
return this ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public Builder clearBlah ( ) {
if ( blahBuilder_ = = null ) {
blah_ = SecondMsg . getDefaultInstance ( ) ;
onChanged ( ) ;
} else {
blahBuilder_ . clear ( ) ;
}
bitField0_ = ( bitField0_ & ~ 0x00000002 ) ;
blah_ = null ;
if ( blahBuilder_ ! = null ) {
blahBuilder_ . dispose ( ) ;
blahBuilder_ = null ;
}
onChanged ( ) ;
return this ;
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public SecondMsg . Builder getBlahBuilder ( ) {
public org . springframework . web . reactive . protobuf . SecondMsg . Builder getBlahBuilder ( ) {
bitField0_ | = 0x00000002 ;
onChanged ( ) ;
return getBlahFieldBuilder ( ) . getBuilder ( ) ;
@ -618,25 +640,26 @@ public final class Msg extends
@@ -618,25 +640,26 @@ public final class Msg extends
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
public SecondMsgOrBuilder getBlahOrBuilder ( ) {
public org . springframework . web . reactive . protobuf . SecondMsgOrBuilder getBlahOrBuilder ( ) {
if ( blahBuilder_ ! = null ) {
return blahBuilder_ . getMessageOrBuilder ( ) ;
} else {
return blah_ ;
return blah_ = = null ?
org . springframework . web . reactive . protobuf . SecondMsg . getDefaultInstance ( ) : blah_ ;
}
}
/ * *
* < code > optional . SecondMsg blah = 2 ; < / code >
* /
private com . google . protobuf . SingleFieldBuilder <
SecondMsg , SecondMsg . Builder ,
SecondMsgOrBuilder >
org . springframework . web . reactive . protobuf . SecondMsg , org . springframework . web . reactive . protobuf . SecondMsg . Builder , org . springframework . web . reactive . protobuf . SecondMsgOrBuilder >
getBlahFieldBuilder ( ) {
if ( blahBuilder_ = = null ) {
blahBuilder_ = new com . google . protobuf . SingleFieldBuilder < > (
blah_ ,
getParentForChildren ( ) ,
isClean ( ) ) ;
blahBuilder_ = new com . google . protobuf . SingleFieldBuilder <
org . springframework . web . reactive . protobuf . SecondMsg , org . springframework . web . reactive . protobuf . SecondMsg . Builder , org . springframework . web . reactive . protobuf . SecondMsgOrBuilder > (
getBlah ( ) ,
getParentForChildren ( ) ,
isClean ( ) ) ;
blah_ = null ;
}
return blahBuilder_ ;
@ -645,11 +668,51 @@ public final class Msg extends
@@ -645,11 +668,51 @@ public final class Msg extends
// @@protoc_insertion_point(builder_scope:Msg)
}
// @@protoc_insertion_point(class_scope:Msg)
private static final org . springframework . web . reactive . protobuf . Msg DEFAULT_INSTANCE ;
static {
defaultInstance = new Msg ( true ) ;
defaultInstance . initFields ( ) ;
DEFAULT_INSTANCE = new org . springframework . web . reactive . protobuf . Msg ( ) ;
}
public static org . springframework . web . reactive . protobuf . Msg getDefaultInstance ( ) {
return DEFAULT_INSTANCE ;
}
private static final com . google . protobuf . Parser < Msg >
PARSER = new com . google . protobuf . AbstractParser < Msg > ( ) {
@java.lang.Override
public Msg parsePartialFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
Builder builder = newBuilder ( ) ;
try {
builder . mergeFrom ( input , extensionRegistry ) ;
} catch ( com . google . protobuf . InvalidProtocolBufferException e ) {
throw e . setUnfinishedMessage ( builder . buildPartial ( ) ) ;
} catch ( com . google . protobuf . UninitializedMessageException e ) {
throw e . asInvalidProtocolBufferException ( ) . setUnfinishedMessage ( builder . buildPartial ( ) ) ;
} catch ( java . io . IOException e ) {
throw new com . google . protobuf . InvalidProtocolBufferException ( e )
. setUnfinishedMessage ( builder . buildPartial ( ) ) ;
}
return builder . buildPartial ( ) ;
}
} ;
public static com . google . protobuf . Parser < Msg > parser ( ) {
return PARSER ;
}
@java.lang.Override
public com . google . protobuf . Parser < Msg > getParserForType ( ) {
return PARSER ;
}
@java.lang.Override
public org . springframework . web . reactive . protobuf . Msg getDefaultInstanceForType ( ) {
return DEFAULT_INSTANCE ;
}
// @@protoc_insertion_point(class_scope:Msg)
}