public static final class UnittestCustomOptions.Aggregate extends com.google.protobuf.GeneratedMessage implements UnittestCustomOptions.AggregateOrBuilder
protobuf_unittest.Aggregate
A helper type used to test aggregate option parsing
Modifier and Type | Class and Description |
---|---|
static class |
UnittestCustomOptions.Aggregate.Builder
Protobuf type
protobuf_unittest.Aggregate |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
FILE_FIELD_NUMBER |
static int |
I_FIELD_NUMBER |
static int |
MSET_FIELD_NUMBER |
static com.google.protobuf.GeneratedMessage.GeneratedExtension<DescriptorProtos.FileOptions,UnittestCustomOptions.Aggregate> |
nested
extend .google.protobuf.FileOptions { ... |
static int |
NESTED_FIELD_NUMBER |
static com.google.protobuf.Parser<UnittestCustomOptions.Aggregate> |
PARSER |
static int |
S_FIELD_NUMBER |
static int |
SUB_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
static UnittestCustomOptions.Aggregate |
getDefaultInstance() |
UnittestCustomOptions.Aggregate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DescriptorProtos.FileOptions |
getFile()
optional .google.protobuf.FileOptions file = 4; |
DescriptorProtos.FileOptionsOrBuilder |
getFileOrBuilder()
optional .google.protobuf.FileOptions file = 4; |
int |
getI()
optional int32 i = 1; |
UnittestCustomOptions.AggregateMessageSet |
getMset()
optional .protobuf_unittest.AggregateMessageSet mset = 5; |
UnittestCustomOptions.AggregateMessageSetOrBuilder |
getMsetOrBuilder()
optional .protobuf_unittest.AggregateMessageSet mset = 5; |
com.google.protobuf.Parser<UnittestCustomOptions.Aggregate> |
getParserForType() |
java.lang.String |
getS()
optional string s = 2; |
com.google.protobuf.ByteString |
getSBytes()
optional string s = 2; |
int |
getSerializedSize() |
UnittestCustomOptions.Aggregate |
getSub()
optional .protobuf_unittest.Aggregate sub = 3; |
UnittestCustomOptions.AggregateOrBuilder |
getSubOrBuilder()
optional .protobuf_unittest.Aggregate sub = 3; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFile()
optional .google.protobuf.FileOptions file = 4; |
boolean |
hasI()
optional int32 i = 1; |
boolean |
hasMset()
optional .protobuf_unittest.AggregateMessageSet mset = 5; |
boolean |
hasS()
optional string s = 2; |
boolean |
hasSub()
optional .protobuf_unittest.Aggregate sub = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UnittestCustomOptions.Aggregate.Builder |
newBuilder() |
static UnittestCustomOptions.Aggregate.Builder |
newBuilder(UnittestCustomOptions.Aggregate prototype) |
UnittestCustomOptions.Aggregate.Builder |
newBuilderForType() |
protected UnittestCustomOptions.Aggregate.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static UnittestCustomOptions.Aggregate |
parseDelimitedFrom(java.io.InputStream input) |
static UnittestCustomOptions.Aggregate |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestCustomOptions.Aggregate |
parseFrom(byte[] data) |
static UnittestCustomOptions.Aggregate |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestCustomOptions.Aggregate |
parseFrom(com.google.protobuf.ByteString data) |
static UnittestCustomOptions.Aggregate |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestCustomOptions.Aggregate |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UnittestCustomOptions.Aggregate |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UnittestCustomOptions.Aggregate |
parseFrom(java.io.InputStream input) |
static UnittestCustomOptions.Aggregate |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UnittestCustomOptions.Aggregate.Builder |
toBuilder() |
protected java.lang.Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<UnittestCustomOptions.Aggregate> PARSER
public static final int I_FIELD_NUMBER
public static final int S_FIELD_NUMBER
public static final int SUB_FIELD_NUMBER
public static final int FILE_FIELD_NUMBER
public static final int MSET_FIELD_NUMBER
public static final int NESTED_FIELD_NUMBER
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<DescriptorProtos.FileOptions,UnittestCustomOptions.Aggregate> nested
extend .google.protobuf.FileOptions { ... }
public static UnittestCustomOptions.Aggregate getDefaultInstance()
public UnittestCustomOptions.Aggregate getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<UnittestCustomOptions.Aggregate> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasI()
optional int32 i = 1;
hasI
in interface UnittestCustomOptions.AggregateOrBuilder
public int getI()
optional int32 i = 1;
getI
in interface UnittestCustomOptions.AggregateOrBuilder
public boolean hasS()
optional string s = 2;
hasS
in interface UnittestCustomOptions.AggregateOrBuilder
public java.lang.String getS()
optional string s = 2;
getS
in interface UnittestCustomOptions.AggregateOrBuilder
public com.google.protobuf.ByteString getSBytes()
optional string s = 2;
getSBytes
in interface UnittestCustomOptions.AggregateOrBuilder
public boolean hasSub()
optional .protobuf_unittest.Aggregate sub = 3;
A nested object
hasSub
in interface UnittestCustomOptions.AggregateOrBuilder
public UnittestCustomOptions.Aggregate getSub()
optional .protobuf_unittest.Aggregate sub = 3;
A nested object
getSub
in interface UnittestCustomOptions.AggregateOrBuilder
public UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder()
optional .protobuf_unittest.Aggregate sub = 3;
A nested object
getSubOrBuilder
in interface UnittestCustomOptions.AggregateOrBuilder
public boolean hasFile()
optional .google.protobuf.FileOptions file = 4;
To test the parsing of extensions inside aggregate values
hasFile
in interface UnittestCustomOptions.AggregateOrBuilder
public DescriptorProtos.FileOptions getFile()
optional .google.protobuf.FileOptions file = 4;
To test the parsing of extensions inside aggregate values
getFile
in interface UnittestCustomOptions.AggregateOrBuilder
public DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder()
optional .google.protobuf.FileOptions file = 4;
To test the parsing of extensions inside aggregate values
getFileOrBuilder
in interface UnittestCustomOptions.AggregateOrBuilder
public boolean hasMset()
optional .protobuf_unittest.AggregateMessageSet mset = 5;
An embedded message set
hasMset
in interface UnittestCustomOptions.AggregateOrBuilder
public UnittestCustomOptions.AggregateMessageSet getMset()
optional .protobuf_unittest.AggregateMessageSet mset = 5;
An embedded message set
getMset
in interface UnittestCustomOptions.AggregateOrBuilder
public UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder()
optional .protobuf_unittest.AggregateMessageSet mset = 5;
An embedded message set
getMsetOrBuilder
in interface UnittestCustomOptions.AggregateOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
java.io.ObjectStreamException
public static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestCustomOptions.Aggregate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestCustomOptions.Aggregate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static UnittestCustomOptions.Aggregate parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UnittestCustomOptions.Aggregate parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UnittestCustomOptions.Aggregate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UnittestCustomOptions.Aggregate parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UnittestCustomOptions.Aggregate.Builder newBuilder()
public UnittestCustomOptions.Aggregate.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static UnittestCustomOptions.Aggregate.Builder newBuilder(UnittestCustomOptions.Aggregate prototype)
public UnittestCustomOptions.Aggregate.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected UnittestCustomOptions.Aggregate.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage