@ -6,223 +6,217 @@ package org.springframework.protobuf;
@@ -6,223 +6,217 @@ package org.springframework.protobuf;
/ * *
* Protobuf type { @code SecondMsg }
* /
@SuppressWarnings ( "serial" )
public final class SecondMsg extends
com . google . protobuf . GeneratedMessage
implements SecondMsgOrBuilder {
public final class SecondMsg extends
com . google . protobuf . GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:SecondMsg)
SecondMsgOrBuilder {
private static final long serialVersionUID = 0L ;
// Use SecondMsg.newBuilder() to construct.
private SecondMsg ( com . google . protobuf . GeneratedMessage . Builder < ? > builder ) {
private SecondMsg ( com . google . protobuf . GeneratedMessageV3 . Builder < ? > builder ) {
super ( builder ) ;
this . unknownFields = builder . getUnknownFields ( ) ;
}
private SecondMsg ( boolean noInit ) { this . unknownFields = com . google . protobuf . UnknownFieldSet . getDefaultInstance ( ) ; }
private static final SecondMsg defaultInstance ;
public static SecondMsg getDefaultInstance ( ) {
return defaultInstance ;
private SecondMsg ( ) {
}
public SecondMsg getDefaultInstanceForType ( ) {
return defaultInstance ;
@Override
@SuppressWarnings ( { "unused" } )
protected Object newInstance (
UnusedPrivateParameter unused ) {
return new SecondMsg ( ) ;
}
private final com . google . protobuf . UnknownFieldSet unknownFields ;
@java.lang.Override
public final com . google . protobuf . UnknownFieldSet
getUnknownFields ( ) {
return this . unknownFields ;
}
private SecondMsg (
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 8 : {
bitField0_ | = 0x00000001 ;
blah_ = input . readInt32 ( ) ;
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 org . springframework . protobuf . OuterSample . internal_static_SecondMsg_descriptor ;
return OuterSample . internal_static_SecondMsg_descriptor ;
}
protected com . google . protobuf . GeneratedMessage . FieldAccessorTable
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable ( ) {
return org . springframework . protobuf . OuterSample . internal_static_SecondMsg_fieldAccessorTable
return OuterSample . internal_static_SecondMsg_fieldAccessorTable
. ensureFieldAccessorsInitialized (
org . springframework . protobuf . SecondMsg . class , org . springframework . protobuf . SecondMsg . Builder . class ) ;
}
public static com . google . protobuf . Parser < SecondMsg > PARSER =
new com . google . protobuf . AbstractParser < SecondMsg > ( ) {
public SecondMsg parsePartialFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return new SecondMsg ( input , extensionRegistry ) ;
}
} ;
@java.lang.Override
public com . google . protobuf . Parser < SecondMsg > getParserForType ( ) {
return PARSER ;
SecondMsg . class , Builder . class ) ;
}
private int bitField0_ ;
// optional int32 blah = 1;
public static final int BLAH_FIELD_NUMBER = 1 ;
private int blah_ ;
private int blah_ = 0 ;
/ * *
* < code > optional int32 blah = 1 ; < / code >
* @return Whether the blah field is set .
* /
@Override
public boolean hasBlah ( ) {
return ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ;
return ( ( bitField0_ & 0x00000001 ) ! = 0 ) ;
}
/ * *
* < code > optional int32 blah = 1 ; < / code >
* @return The blah .
* /
@Override
public int getBlah ( ) {
return blah_ ;
}
private void initFields ( ) {
blah_ = 0 ;
}
private byte memoizedIsInitialized = - 1 ;
@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 ;
}
@Override
public void writeTo ( com . google . protobuf . CodedOutputStream output )
throws java . io . IOException {
getSerializedSize ( ) ;
if ( ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ) {
if ( ( ( bitField0_ & 0x00000001 ) ! = 0 ) ) {
output . writeInt32 ( 1 , blah_ ) ;
}
getUnknownFields ( ) . writeTo ( output ) ;
}
private int memoizedSerializedSize = - 1 ;
@Override
public int getSerializedSize ( ) {
int size = memoizedSerializedS ize ;
int size = memoizedSize ;
if ( size ! = - 1 ) return size ;
size = 0 ;
if ( ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ) {
if ( ( ( bitField0_ & 0x00000001 ) ! = 0 ) ) {
size + = com . google . protobuf . CodedOutputStream
. computeInt32Size ( 1 , blah_ ) ;
}
size + = getUnknownFields ( ) . getSerializedSize ( ) ;
memoizedSerializedS ize = size ;
memoizedSize = size ;
return size ;
}
private static final long serialVersionUID = 0L ;
@java.lang.Override
protected java . lang . Object writeReplace ( )
throws java . io . ObjectStreamException {
return super . writeReplace ( ) ;
@Override
public boolean equals ( final Object obj ) {
if ( obj = = this ) {
return true ;
}
if ( ! ( obj instanceof SecondMsg ) ) {
return super . equals ( obj ) ;
}
SecondMsg other = ( SecondMsg ) obj ;
if ( hasBlah ( ) ! = other . hasBlah ( ) ) return false ;
if ( hasBlah ( ) ) {
if ( getBlah ( )
! = other . getBlah ( ) ) return false ;
}
if ( ! getUnknownFields ( ) . equals ( other . getUnknownFields ( ) ) ) return false ;
return true ;
}
public static org . springframework . protobuf . SecondMsg parseFrom (
@Override
public int hashCode ( ) {
if ( memoizedHashCode ! = 0 ) {
return memoizedHashCode ;
}
int hash = 41 ;
hash = ( 19 * hash ) + getDescriptor ( ) . hashCode ( ) ;
if ( hasBlah ( ) ) {
hash = ( 37 * hash ) + BLAH_FIELD_NUMBER ;
hash = ( 53 * hash ) + getBlah ( ) ;
}
hash = ( 29 * hash ) + getUnknownFields ( ) . hashCode ( ) ;
memoizedHashCode = hash ;
return hash ;
}
public static SecondMsg parseFrom (
java . nio . ByteBuffer data )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data ) ;
}
public static SecondMsg parseFrom (
java . nio . ByteBuffer data ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data , extensionRegistry ) ;
}
public static SecondMsg parseFrom (
com . google . protobuf . ByteString data )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom (
public static SecondMsg parseFrom (
com . google . protobuf . ByteString data ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data , extensionRegistry ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom ( byte [ ] data )
public static SecondMsg parseFrom ( byte [ ] data )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom (
public static SecondMsg parseFrom (
byte [ ] data ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws com . google . protobuf . InvalidProtocolBufferException {
return PARSER . parseFrom ( data , extensionRegistry ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom ( java . io . InputStream input )
public static SecondMsg parseFrom ( java . io . InputStream input )
throws java . io . IOException {
return PARSER . parseFrom ( input ) ;
return com . google . protobuf . GeneratedMessageV3
. parseWithIOException ( PARSER , input ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom (
public static SecondMsg parseFrom (
java . io . InputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
return PARSER . parseFrom ( input , extensionRegistry ) ;
return com . google . protobuf . GeneratedMessageV3
. parseWithIOException ( PARSER , input , extensionRegistry ) ;
}
public static org . springframework . protobuf . SecondMsg parseDelimitedFrom ( java . io . InputStream input )
public static SecondMsg parseDelimitedFrom ( java . io . InputStream input )
throws java . io . IOException {
return PARSER . parseDelimitedFrom ( input ) ;
return com . google . protobuf . GeneratedMessageV3
. parseDelimitedWithIOException ( PARSER , input ) ;
}
public static org . springframework . protobuf . SecondMsg parseDelimitedFrom (
public static SecondMsg parseDelimitedFrom (
java . io . InputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
return PARSER . parseDelimitedFrom ( input , extensionRegistry ) ;
return com . google . protobuf . GeneratedMessageV3
. parseDelimitedWithIOException ( PARSER , input , extensionRegistry ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom (
public static SecondMsg parseFrom (
com . google . protobuf . CodedInputStream input )
throws java . io . IOException {
return PARSER . parseFrom ( input ) ;
return com . google . protobuf . GeneratedMessageV3
. parseWithIOException ( PARSER , input ) ;
}
public static org . springframework . protobuf . SecondMsg parseFrom (
public static SecondMsg parseFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
return PARSER . parseFrom ( input , extensionRegistry ) ;
return com . google . protobuf . GeneratedMessageV3
. parseWithIOException ( PARSER , input , extensionRegistry ) ;
}
public static Builder newBuilder ( ) { return Builder . create ( ) ; }
@Override
public Builder newBuilderForType ( ) { return newBuilder ( ) ; }
public static Builder newBuilder ( org . springframework . protobuf . SecondMsg prototype ) {
return newBuilder ( ) . mergeFrom ( prototype ) ;
public static Builder newBuilder ( ) {
return DEFAULT_INSTANCE . toBuilder ( ) ;
}
public static Builder newBuilder ( SecondMsg prototype ) {
return DEFAULT_INSTANCE . toBuilder ( ) . mergeFrom ( prototype ) ;
}
@Override
public Builder toBuilder ( ) {
return this = = DEFAULT_INSTANCE
? new Builder ( ) : new Builder ( ) . mergeFrom ( this ) ;
}
public Builder toBuilder ( ) { return newBuilder ( this ) ; }
@java.lang.Override
@Override
protected Builder newBuilderForType (
com . google . protobuf . GeneratedMessage . BuilderParent parent ) {
BuilderParent parent ) {
Builder builder = new Builder ( parent ) ;
return builder ;
}
@ -230,145 +224,205 @@ public final class SecondMsg extends
@@ -230,145 +224,205 @@ public final class SecondMsg extends
* Protobuf type { @code SecondMsg }
* /
public static final class Builder extends
com . google . protobuf . GeneratedMessage . Builder < Builder >
implements org . springframework . protobuf . SecondMsgOrBuilder {
com . google . protobuf . GeneratedMessageV3 . Builder < Builder > implements
// @@protoc_insertion_point(builder_implements:SecondMsg)
SecondMsgOrBuilder {
public static final com . google . protobuf . Descriptors . Descriptor
getDescriptor ( ) {
return org . springframework . protobuf . OuterSample . internal_static_SecondMsg_descriptor ;
return OuterSample . internal_static_SecondMsg_descriptor ;
}
protected com . google . protobuf . GeneratedMessage . FieldAccessorTable
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable ( ) {
return org . springframework . protobuf . OuterSample . internal_static_SecondMsg_fieldAccessorTable
return OuterSample . internal_static_SecondMsg_fieldAccessorTable
. ensureFieldAccessorsInitialized (
org . springframework . protobuf . SecondMsg . class , org . springframework . protobuf . SecondMsg . Builder . class ) ;
SecondMsg . class , Builder . class ) ;
}
// Construct using org.springframework.protobuf.SecondMsg.newBuilder()
private Builder ( ) {
maybeForceBuilderInitialization ( ) ;
}
private Builder (
com . google . protobuf . GeneratedMessage . BuilderParent parent ) {
BuilderParent parent ) {
super ( parent ) ;
maybeForceBuilderInitialization ( ) ;
}
private void maybeForceBuilderInitialization ( ) {
if ( com . google . protobuf . GeneratedMessage . alwaysUseFieldBuilders ) {
}
}
private static Builder create ( ) {
return new Builder ( ) ;
}
}
@Override
public Builder clear ( ) {
super . clear ( ) ;
bitField0_ = 0 ;
blah_ = 0 ;
bitField0_ = ( bitField0_ & ~ 0x00000001 ) ;
return this ;
}
public Builder clone ( ) {
return create ( ) . mergeFrom ( buildPartial ( ) ) ;
}
@Override
public com . google . protobuf . Descriptors . Descriptor
getDescriptorForType ( ) {
return org . springframework . protobuf . OuterSample . internal_static_SecondMsg_descriptor ;
return OuterSample . internal_static_SecondMsg_descriptor ;
}
public org . springframework . protobuf . SecondMsg getDefaultInstanceForType ( ) {
return org . springframework . protobuf . SecondMsg . getDefaultInstance ( ) ;
@Override
public SecondMsg getDefaultInstanceForType ( ) {
return SecondMsg . getDefaultInstance ( ) ;
}
public org . springframework . protobuf . SecondMsg build ( ) {
org . springframework . protobuf . SecondMsg result = buildPartial ( ) ;
@Override
public SecondMsg build ( ) {
SecondMsg result = buildPartial ( ) ;
if ( ! result . isInitialized ( ) ) {
throw newUninitializedMessageException ( result ) ;
}
return result ;
}
public org . springframework . protobuf . SecondMsg buildPartial ( ) {
org . springframework . protobuf . SecondMsg result = new org . springframework . protobuf . SecondMsg ( this ) ;
@Override
public SecondMsg buildPartial ( ) {
SecondMsg result = new SecondMsg ( this ) ;
if ( bitField0_ ! = 0 ) { buildPartial0 ( result ) ; }
onBuilt ( ) ;
return result ;
}
private void buildPartial0 ( SecondMsg result ) {
int from_bitField0_ = bitField0_ ;
int to_bitField0_ = 0 ;
if ( ( ( from_bitField0_ & 0x00000001 ) = = 0x00000001 ) ) {
if ( ( ( from_bitField0_ & 0x00000001 ) ! = 0 ) ) {
result . blah_ = blah_ ;
to_bitField0_ | = 0x00000001 ;
}
result . blah_ = blah_ ;
result . bitField0_ = to_bitField0_ ;
onBuilt ( ) ;
return result ;
result . bitField0_ | = to_bitField0_ ;
}
@Override
public Builder clone ( ) {
return super . clone ( ) ;
}
@Override
public Builder setField (
com . google . protobuf . Descriptors . FieldDescriptor field ,
Object value ) {
return super . setField ( field , value ) ;
}
@Override
public Builder clearField (
com . google . protobuf . Descriptors . FieldDescriptor field ) {
return super . clearField ( field ) ;
}
@Override
public Builder clearOneof (
com . google . protobuf . Descriptors . OneofDescriptor oneof ) {
return super . clearOneof ( oneof ) ;
}
@Override
public Builder setRepeatedField (
com . google . protobuf . Descriptors . FieldDescriptor field ,
int index , Object value ) {
return super . setRepeatedField ( field , index , value ) ;
}
@Override
public Builder addRepeatedField (
com . google . protobuf . Descriptors . FieldDescriptor field ,
Object value ) {
return super . addRepeatedField ( field , value ) ;
}
@Override
public Builder mergeFrom ( com . google . protobuf . Message other ) {
if ( other instanceof org . springframework . protobuf . SecondMsg ) {
return mergeFrom ( ( org . springframework . protobuf . SecondMsg ) other ) ;
if ( other instanceof SecondMsg ) {
return mergeFrom ( ( SecondMsg ) other ) ;
} else {
super . mergeFrom ( other ) ;
return this ;
}
}
public Builder mergeFrom ( org . springframework . protobuf . SecondMsg other ) {
if ( other = = org . springframework . protobuf . SecondMsg . getDefaultInstance ( ) ) return this ;
public Builder mergeFrom ( SecondMsg other ) {
if ( other = = SecondMsg . getDefaultInstance ( ) ) return this ;
if ( other . hasBlah ( ) ) {
setBlah ( other . getBlah ( ) ) ;
}
this . mergeUnknownFields ( other . getUnknownFields ( ) ) ;
onChanged ( ) ;
return this ;
}
@Override
public final boolean isInitialized ( ) {
return true ;
}
@Override
public Builder mergeFrom (
com . google . protobuf . CodedInputStream input ,
com . google . protobuf . ExtensionRegistryLite extensionRegistry )
throws java . io . IOException {
org . springframework . protobuf . SecondMsg parsedMessage = null ;
if ( extensionRegistry = = null ) {
throw new NullPointerException ( ) ;
}
try {
parsedMessage = PARSER . parsePartialFrom ( input , extensionRegistry ) ;
boolean done = false ;
while ( ! done ) {
int tag = input . readTag ( ) ;
switch ( tag ) {
case 0 :
done = true ;
break ;
case 8 : {
blah_ = input . readInt32 ( ) ;
bitField0_ | = 0x00000001 ;
break ;
} // case 8
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 = ( org . springframework . protobuf . SecondMsg ) e . getUnfinishedMessage ( ) ;
throw e ;
throw e . unwrapIOException ( ) ;
} finally {
if ( parsedMessage ! = null ) {
mergeFrom ( parsedMessage ) ;
}
}
onChanged ( ) ;
} // finally
return this ;
}
private int bitField0_ ;
// optional int32 blah = 1;
private int blah_ ;
/ * *
* < code > optional int32 blah = 1 ; < / code >
* @return Whether the blah field is set .
* /
@Override
public boolean hasBlah ( ) {
return ( ( bitField0_ & 0x00000001 ) = = 0x00000001 ) ;
return ( ( bitField0_ & 0x00000001 ) ! = 0 ) ;
}
/ * *
* < code > optional int32 blah = 1 ; < / code >
* @return The blah .
* /
@Override
public int getBlah ( ) {
return blah_ ;
}
/ * *
* < code > optional int32 blah = 1 ; < / code >
* @param value The blah to set .
* @return This builder for chaining .
* /
public Builder setBlah ( int value ) {
bitField0_ | = 0x00000001 ;
blah_ = value ;
bitField0_ | = 0x00000001 ;
onChanged ( ) ;
return this ;
}
/ * *
* < code > optional int32 blah = 1 ; < / code >
* @return This builder for chaining .
* /
public Builder clearBlah ( ) {
bitField0_ = ( bitField0_ & ~ 0x00000001 ) ;
@ -376,15 +430,67 @@ public final class SecondMsg extends
@@ -376,15 +430,67 @@ public final class SecondMsg extends
onChanged ( ) ;
return this ;
}
@Override
public final Builder setUnknownFields (
final com . google . protobuf . UnknownFieldSet unknownFields ) {
return super . setUnknownFields ( unknownFields ) ;
}
@Override
public final Builder mergeUnknownFields (
final com . google . protobuf . UnknownFieldSet unknownFields ) {
return super . mergeUnknownFields ( unknownFields ) ;
}
// @@protoc_insertion_point(builder_scope:SecondMsg)
}
// @@protoc_insertion_point(class_scope:SecondMsg)
private static final SecondMsg DEFAULT_INSTANCE ;
static {
defaultInstance = new SecondMsg ( true ) ;
defaultInstance . initFields ( ) ;
DEFAULT_INSTANCE = new SecondMsg ( ) ;
}
public static SecondMsg getDefaultInstance ( ) {
return DEFAULT_INSTANCE ;
}
@Deprecated public static final com . google . protobuf . Parser < SecondMsg >
PARSER = new com . google . protobuf . AbstractParser < SecondMsg > ( ) {
@Override
public SecondMsg 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 < SecondMsg > parser ( ) {
return PARSER ;
}
@Override
public com . google . protobuf . Parser < SecondMsg > getParserForType ( ) {
return PARSER ;
}
@Override
public SecondMsg getDefaultInstanceForType ( ) {
return DEFAULT_INSTANCE ;
}
// @@protoc_insertion_point(class_scope:SecondMsg)
}