public static final class TestProtos.TestStruct
extends com.google.protobuf.GeneratedMessage
Modifier and Type | Class and Description |
---|---|
static class |
TestProtos.TestStruct.Builder |
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.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
VALUE1_FIELD_NUMBER |
static int |
VALUE2_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
static TestProtos.TestStruct |
getDefaultInstance() |
TestProtos.TestStruct |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getSerializedSize() |
int |
getValue1() |
TestProtos.TestStruct |
getValue2() |
boolean |
hasValue1() |
boolean |
hasValue2() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TestProtos.TestStruct.Builder |
newBuilder() |
static TestProtos.TestStruct.Builder |
newBuilder(TestProtos.TestStruct prototype) |
TestProtos.TestStruct.Builder |
newBuilderForType() |
static TestProtos.TestStruct |
parseDelimitedFrom(InputStream input) |
static TestProtos.TestStruct |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TestProtos.TestStruct |
parseFrom(byte[] data) |
static TestProtos.TestStruct |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TestProtos.TestStruct |
parseFrom(com.google.protobuf.ByteString data) |
static TestProtos.TestStruct |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TestProtos.TestStruct |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TestProtos.TestStruct |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TestProtos.TestStruct |
parseFrom(InputStream input) |
static TestProtos.TestStruct |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TestProtos.TestStruct.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, newGeneratedExtension, newRepeatedGeneratedExtension
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int VALUE1_FIELD_NUMBER
public static final int VALUE2_FIELD_NUMBER
public static TestProtos.TestStruct getDefaultInstance()
public TestProtos.TestStruct getDefaultInstanceForType()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public boolean hasValue1()
public int getValue1()
public boolean hasValue2()
public TestProtos.TestStruct getValue2()
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLite
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
public static TestProtos.TestStruct parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TestProtos.TestStruct parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TestProtos.TestStruct parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TestProtos.TestStruct parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TestProtos.TestStruct parseFrom(InputStream input) throws IOException
IOException
public static TestProtos.TestStruct parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TestProtos.TestStruct parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TestProtos.TestStruct parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TestProtos.TestStruct parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TestProtos.TestStruct parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TestProtos.TestStruct.Builder newBuilder()
public TestProtos.TestStruct.Builder newBuilderForType()
public static TestProtos.TestStruct.Builder newBuilder(TestProtos.TestStruct prototype)
public TestProtos.TestStruct.Builder toBuilder()