Package com.google.protobuf
Interface TypeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
Type
,Type.Builder
-
Method Summary
Modifier and TypeMethodDescriptionstring edition = 7 [json_name = "edition"];
com.google.protobuf.ByteString
string edition = 7 [json_name = "edition"];
getFields
(int index) repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
int
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
getFieldsOrBuilder
(int index) repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
List
<? extends FieldOrBuilder> repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
getName()
string name = 1 [json_name = "name"];
com.google.protobuf.ByteString
string name = 1 [json_name = "name"];
getOneofs
(int index) repeated string oneofs = 3 [json_name = "oneofs"];
com.google.protobuf.ByteString
getOneofsBytes
(int index) repeated string oneofs = 3 [json_name = "oneofs"];
int
repeated string oneofs = 3 [json_name = "oneofs"];
repeated string oneofs = 3 [json_name = "oneofs"];
getOptions
(int index) repeated .google.protobuf.Option options = 4 [json_name = "options"];
int
repeated .google.protobuf.Option options = 4 [json_name = "options"];
repeated .google.protobuf.Option options = 4 [json_name = "options"];
getOptionsOrBuilder
(int index) repeated .google.protobuf.Option options = 4 [json_name = "options"];
List
<? extends OptionOrBuilder> repeated .google.protobuf.Option options = 4 [json_name = "options"];
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
.google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
int
.google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
boolean
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()string name = 1 [json_name = "name"];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];
- Returns:
- The bytes for name.
-
getFieldsList
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFields
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsCount
int getFieldsCount()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsOrBuilderList
List<? extends FieldOrBuilder> getFieldsOrBuilderList()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsOrBuilder
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getOneofsList
repeated string oneofs = 3 [json_name = "oneofs"];
- Returns:
- A list containing the oneofs.
-
getOneofsCount
int getOneofsCount()repeated string oneofs = 3 [json_name = "oneofs"];
- Returns:
- The count of oneofs.
-
getOneofs
repeated string oneofs = 3 [json_name = "oneofs"];
- Parameters:
index
- The index of the element to return.- Returns:
- The oneofs at the given index.
-
getOneofsBytes
com.google.protobuf.ByteString getOneofsBytes(int index) repeated string oneofs = 3 [json_name = "oneofs"];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the oneofs at the given index.
-
getOptionsList
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptions
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsCount
int getOptionsCount()repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsOrBuilderList
List<? extends OptionOrBuilder> getOptionsOrBuilderList()repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsOrBuilder
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
hasSourceContext
boolean hasSourceContext().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
SourceContext getSourceContext().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
- Returns:
- The sourceContext.
-
getSourceContextOrBuilder
SourceContextOrBuilder getSourceContextOrBuilder().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
-
getSyntaxValue
int getSyntaxValue().google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
Syntax getSyntax().google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
- Returns:
- The syntax.
-
getEdition
String getEdition()string edition = 7 [json_name = "edition"];
- Returns:
- The edition.
-
getEditionBytes
com.google.protobuf.ByteString getEditionBytes()string edition = 7 [json_name = "edition"];
- Returns:
- The bytes for edition.
-