Package com.google.protobuf
Interface DescriptorProtos.OneofDescriptorProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
DescriptorProtos.OneofDescriptorProto,DescriptorProtos.OneofDescriptorProto.Builder
- Enclosing class:
- DescriptorProtos
public static interface DescriptorProtos.OneofDescriptorProtoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()optional string name = 1 [json_name = "name"];com.google.protobuf.ByteStringoptional string name = 1 [json_name = "name"];optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];booleanhasName()optional string name = 1 [json_name = "name"];booleanoptional .google.protobuf.OneofOptions options = 2 [json_name = "options"];Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasName
boolean hasName()optional string name = 1 [json_name = "name"];- Returns:
- Whether the name field is set.
-
getName
String getName()optional string name = 1 [json_name = "name"];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()optional string name = 1 [json_name = "name"];- Returns:
- The bytes for name.
-
hasOptions
boolean hasOptions()optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];- Returns:
- Whether the options field is set.
-
getOptions
DescriptorProtos.OneofOptions getOptions()optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];- Returns:
- The options.
-