Interface TypeOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
Type, Type.Builder
-
Method Summary
Modifier and TypeMethodDescriptionThe source edition string, only valid when syntax is SYNTAX_EDITIONS.The source edition string, only valid when syntax is SYNTAX_EDITIONS.getFields(int index) The list of fields.intThe list of fields.The list of fields.getFieldsOrBuilder(int index) The list of fields.List<? extends FieldOrBuilder> The list of fields.getName()The fully qualified message name.The fully qualified message name.getOneofs(int index) The list of types appearing in `oneof` definitions in this type.getOneofsBytes(int index) The list of types appearing in `oneof` definitions in this type.intThe list of types appearing in `oneof` definitions in this type.The list of types appearing in `oneof` definitions in this type.getOptions(int index) The protocol buffer options.intThe protocol buffer options.The protocol buffer options.getOptionsOrBuilder(int index) The protocol buffer options.List<? extends OptionOrBuilder> The protocol buffer options.The source context.The source context.The source syntax.intThe source syntax.booleanThe source context.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getName
-
getNameBytes
ByteString getNameBytes()The fully qualified message name.
string name = 1;- Returns:
- The bytes for name.
-
getFieldsList
-
getFields
The list of fields.
repeated .google.protobuf.Field fields = 2; -
getFieldsCount
int getFieldsCount()The list of fields.
repeated .google.protobuf.Field fields = 2; -
getFieldsOrBuilderList
List<? extends FieldOrBuilder> getFieldsOrBuilderList()The list of fields.
repeated .google.protobuf.Field fields = 2; -
getFieldsOrBuilder
The list of fields.
repeated .google.protobuf.Field fields = 2; -
getOneofsList
-
getOneofsCount
int getOneofsCount()The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Returns:
- The count of oneofs.
-
getOneofs
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Parameters:
index- The index of the element to return.- Returns:
- The oneofs at the given index.
-
getOneofsBytes
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the oneofs at the given index.
-
getOptionsList
-
getOptions
The protocol buffer options.
repeated .google.protobuf.Option options = 4; -
getOptionsCount
int getOptionsCount()The protocol buffer options.
repeated .google.protobuf.Option options = 4; -
getOptionsOrBuilderList
List<? extends OptionOrBuilder> getOptionsOrBuilderList()The protocol buffer options.
repeated .google.protobuf.Option options = 4; -
getOptionsOrBuilder
The protocol buffer options.
repeated .google.protobuf.Option options = 4; -
hasSourceContext
boolean hasSourceContext()The source context.
.google.protobuf.SourceContext source_context = 5;- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
SourceContext getSourceContext()The source context.
.google.protobuf.SourceContext source_context = 5;- Returns:
- The sourceContext.
-
getSourceContextOrBuilder
SourceContextOrBuilder getSourceContextOrBuilder()The source context.
.google.protobuf.SourceContext source_context = 5; -
getSyntaxValue
int getSyntaxValue()The source syntax.
.google.protobuf.Syntax syntax = 6;- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
-
getEdition
String getEdition()The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 7;- Returns:
- The edition.
-
getEditionBytes
ByteString getEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 7;- Returns:
- The bytes for edition.
-