public static final class UnittestProto.TestOneof.Builder extends com.google.protobuf.GeneratedMessage.Builder<UnittestProto.TestOneof.Builder> implements UnittestProto.TestOneofOrBuilder
protobuf_unittest.TestOneof
Test oneofs.
Modifier and Type | Method and Description |
---|---|
UnittestProto.TestOneof |
build() |
UnittestProto.TestOneof |
buildPartial() |
UnittestProto.TestOneof.Builder |
clear() |
UnittestProto.TestOneof.Builder |
clearFoo() |
UnittestProto.TestOneof.Builder |
clearFooGroup()
optional group FooGroup = 4 { ... |
UnittestProto.TestOneof.Builder |
clearFooInt()
optional int32 foo_int = 1; |
UnittestProto.TestOneof.Builder |
clearFooMessage()
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
UnittestProto.TestOneof.Builder |
clearFooString()
optional string foo_string = 2; |
UnittestProto.TestOneof.Builder |
clone() |
UnittestProto.TestOneof |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
UnittestProto.TestOneof.FooCase |
getFooCase() |
UnittestProto.TestOneof.FooGroup |
getFooGroup()
optional group FooGroup = 4 { ... |
UnittestProto.TestOneof.FooGroup.Builder |
getFooGroupBuilder()
optional group FooGroup = 4 { ... |
UnittestProto.TestOneof.FooGroupOrBuilder |
getFooGroupOrBuilder()
optional group FooGroup = 4 { ... |
int |
getFooInt()
optional int32 foo_int = 1; |
UnittestProto.TestAllTypes |
getFooMessage()
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
UnittestProto.TestAllTypes.Builder |
getFooMessageBuilder()
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
UnittestProto.TestAllTypesOrBuilder |
getFooMessageOrBuilder()
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
java.lang.String |
getFooString()
optional string foo_string = 2; |
com.google.protobuf.ByteString |
getFooStringBytes()
optional string foo_string = 2; |
boolean |
hasFooGroup()
optional group FooGroup = 4 { ... |
boolean |
hasFooInt()
optional int32 foo_int = 1; |
boolean |
hasFooMessage()
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
boolean |
hasFooString()
optional string foo_string = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UnittestProto.TestOneof.Builder |
mergeFooGroup(UnittestProto.TestOneof.FooGroup value)
optional group FooGroup = 4 { ... |
UnittestProto.TestOneof.Builder |
mergeFooMessage(UnittestProto.TestAllTypes value)
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
UnittestProto.TestOneof.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UnittestProto.TestOneof.Builder |
mergeFrom(com.google.protobuf.Message other) |
UnittestProto.TestOneof.Builder |
mergeFrom(UnittestProto.TestOneof other) |
UnittestProto.TestOneof.Builder |
setFooGroup(UnittestProto.TestOneof.FooGroup.Builder builderForValue)
optional group FooGroup = 4 { ... |
UnittestProto.TestOneof.Builder |
setFooGroup(UnittestProto.TestOneof.FooGroup value)
optional group FooGroup = 4 { ... |
UnittestProto.TestOneof.Builder |
setFooInt(int value)
optional int32 foo_int = 1; |
UnittestProto.TestOneof.Builder |
setFooMessage(UnittestProto.TestAllTypes.Builder builderForValue)
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
UnittestProto.TestOneof.Builder |
setFooMessage(UnittestProto.TestAllTypes value)
optional .protobuf_unittest.TestAllTypes foo_message = 3; |
UnittestProto.TestOneof.Builder |
setFooString(java.lang.String value)
optional string foo_string = 2; |
UnittestProto.TestOneof.Builder |
setFooStringBytes(com.google.protobuf.ByteString value)
optional string foo_string = 2; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<UnittestProto.TestOneof.Builder>
public UnittestProto.TestOneof.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<UnittestProto.TestOneof.Builder>
public UnittestProto.TestOneof.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<UnittestProto.TestOneof.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<UnittestProto.TestOneof.Builder>
public UnittestProto.TestOneof getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public UnittestProto.TestOneof build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public UnittestProto.TestOneof buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public UnittestProto.TestOneof.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UnittestProto.TestOneof.Builder>
public UnittestProto.TestOneof.Builder mergeFrom(UnittestProto.TestOneof other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<UnittestProto.TestOneof.Builder>
public UnittestProto.TestOneof.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UnittestProto.TestOneof.Builder>
java.io.IOException
public UnittestProto.TestOneof.FooCase getFooCase()
public UnittestProto.TestOneof.Builder clearFoo()
public boolean hasFooInt()
optional int32 foo_int = 1;
hasFooInt
in interface UnittestProto.TestOneofOrBuilder
public int getFooInt()
optional int32 foo_int = 1;
getFooInt
in interface UnittestProto.TestOneofOrBuilder
public UnittestProto.TestOneof.Builder setFooInt(int value)
optional int32 foo_int = 1;
public UnittestProto.TestOneof.Builder clearFooInt()
optional int32 foo_int = 1;
public boolean hasFooString()
optional string foo_string = 2;
hasFooString
in interface UnittestProto.TestOneofOrBuilder
public java.lang.String getFooString()
optional string foo_string = 2;
getFooString
in interface UnittestProto.TestOneofOrBuilder
public com.google.protobuf.ByteString getFooStringBytes()
optional string foo_string = 2;
getFooStringBytes
in interface UnittestProto.TestOneofOrBuilder
public UnittestProto.TestOneof.Builder setFooString(java.lang.String value)
optional string foo_string = 2;
public UnittestProto.TestOneof.Builder clearFooString()
optional string foo_string = 2;
public UnittestProto.TestOneof.Builder setFooStringBytes(com.google.protobuf.ByteString value)
optional string foo_string = 2;
public boolean hasFooMessage()
optional .protobuf_unittest.TestAllTypes foo_message = 3;
hasFooMessage
in interface UnittestProto.TestOneofOrBuilder
public UnittestProto.TestAllTypes getFooMessage()
optional .protobuf_unittest.TestAllTypes foo_message = 3;
getFooMessage
in interface UnittestProto.TestOneofOrBuilder
public UnittestProto.TestOneof.Builder setFooMessage(UnittestProto.TestAllTypes value)
optional .protobuf_unittest.TestAllTypes foo_message = 3;
public UnittestProto.TestOneof.Builder setFooMessage(UnittestProto.TestAllTypes.Builder builderForValue)
optional .protobuf_unittest.TestAllTypes foo_message = 3;
public UnittestProto.TestOneof.Builder mergeFooMessage(UnittestProto.TestAllTypes value)
optional .protobuf_unittest.TestAllTypes foo_message = 3;
public UnittestProto.TestOneof.Builder clearFooMessage()
optional .protobuf_unittest.TestAllTypes foo_message = 3;
public UnittestProto.TestAllTypes.Builder getFooMessageBuilder()
optional .protobuf_unittest.TestAllTypes foo_message = 3;
public UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder()
optional .protobuf_unittest.TestAllTypes foo_message = 3;
getFooMessageOrBuilder
in interface UnittestProto.TestOneofOrBuilder
public boolean hasFooGroup()
optional group FooGroup = 4 { ... }
hasFooGroup
in interface UnittestProto.TestOneofOrBuilder
public UnittestProto.TestOneof.FooGroup getFooGroup()
optional group FooGroup = 4 { ... }
getFooGroup
in interface UnittestProto.TestOneofOrBuilder
public UnittestProto.TestOneof.Builder setFooGroup(UnittestProto.TestOneof.FooGroup value)
optional group FooGroup = 4 { ... }
public UnittestProto.TestOneof.Builder setFooGroup(UnittestProto.TestOneof.FooGroup.Builder builderForValue)
optional group FooGroup = 4 { ... }
public UnittestProto.TestOneof.Builder mergeFooGroup(UnittestProto.TestOneof.FooGroup value)
optional group FooGroup = 4 { ... }
public UnittestProto.TestOneof.Builder clearFooGroup()
optional group FooGroup = 4 { ... }
public UnittestProto.TestOneof.FooGroup.Builder getFooGroupBuilder()
optional group FooGroup = 4 { ... }
public UnittestProto.TestOneof.FooGroupOrBuilder getFooGroupOrBuilder()
optional group FooGroup = 4 { ... }
getFooGroupOrBuilder
in interface UnittestProto.TestOneofOrBuilder