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, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<UnittestCustomOptions.Aggregate> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasI()
optional int32 i = 1;hasI in interface UnittestCustomOptions.AggregateOrBuilderpublic int getI()
optional int32 i = 1;getI in interface UnittestCustomOptions.AggregateOrBuilderpublic boolean hasS()
optional string s = 2;hasS in interface UnittestCustomOptions.AggregateOrBuilderpublic java.lang.String getS()
optional string s = 2;getS in interface UnittestCustomOptions.AggregateOrBuilderpublic com.google.protobuf.ByteString getSBytes()
optional string s = 2;getSBytes in interface UnittestCustomOptions.AggregateOrBuilderpublic boolean hasSub()
optional .protobuf_unittest.Aggregate sub = 3;
A nested object
hasSub in interface UnittestCustomOptions.AggregateOrBuilderpublic UnittestCustomOptions.Aggregate getSub()
optional .protobuf_unittest.Aggregate sub = 3;
A nested object
getSub in interface UnittestCustomOptions.AggregateOrBuilderpublic UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder()
optional .protobuf_unittest.Aggregate sub = 3;
A nested object
getSubOrBuilder in interface UnittestCustomOptions.AggregateOrBuilderpublic boolean hasFile()
optional .google.protobuf.FileOptions file = 4;
To test the parsing of extensions inside aggregate values
hasFile in interface UnittestCustomOptions.AggregateOrBuilderpublic DescriptorProtos.FileOptions getFile()
optional .google.protobuf.FileOptions file = 4;
To test the parsing of extensions inside aggregate values
getFile in interface UnittestCustomOptions.AggregateOrBuilderpublic DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder()
optional .google.protobuf.FileOptions file = 4;
To test the parsing of extensions inside aggregate values
getFileOrBuilder in interface UnittestCustomOptions.AggregateOrBuilderpublic boolean hasMset()
optional .protobuf_unittest.AggregateMessageSet mset = 5;
An embedded message set
hasMset in interface UnittestCustomOptions.AggregateOrBuilderpublic UnittestCustomOptions.AggregateMessageSet getMset()
optional .protobuf_unittest.AggregateMessageSet mset = 5;
An embedded message set
getMset in interface UnittestCustomOptions.AggregateOrBuilderpublic UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder()
optional .protobuf_unittest.AggregateMessageSet mset = 5;
An embedded message set
getMsetOrBuilder in interface UnittestCustomOptions.AggregateOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessagejava.io.ObjectStreamExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UnittestCustomOptions.Aggregate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UnittestCustomOptions.Aggregate parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UnittestCustomOptions.Aggregate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UnittestCustomOptions.Aggregate.Builder newBuilder()
public UnittestCustomOptions.Aggregate.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static UnittestCustomOptions.Aggregate.Builder newBuilder(UnittestCustomOptions.Aggregate prototype)
public UnittestCustomOptions.Aggregate.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected UnittestCustomOptions.Aggregate.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessage