Package com.google.protobuf
Interface TypeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Type,Type.Builder
public interface TypeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetEdition()The source edition string, only valid when syntax is SYNTAX_EDITIONS.com.google.protobuf.ByteStringgetEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.FieldgetFields(int index)The list of fields.intgetFieldsCount()The list of fields.java.util.List<Field>getFieldsList()The list of fields.FieldOrBuildergetFieldsOrBuilder(int index)The list of fields.java.util.List<? extends FieldOrBuilder>getFieldsOrBuilderList()The list of fields.java.lang.StringgetName()The fully qualified message name.com.google.protobuf.ByteStringgetNameBytes()The fully qualified message name.java.lang.StringgetOneofs(int index)The list of types appearing in `oneof` definitions in this type.com.google.protobuf.ByteStringgetOneofsBytes(int index)The list of types appearing in `oneof` definitions in this type.intgetOneofsCount()The list of types appearing in `oneof` definitions in this type.java.util.List<java.lang.String>getOneofsList()The list of types appearing in `oneof` definitions in this type.OptiongetOptions(int index)The protocol buffer options.intgetOptionsCount()The protocol buffer options.java.util.List<Option>getOptionsList()The protocol buffer options.OptionOrBuildergetOptionsOrBuilder(int index)The protocol buffer options.java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()The protocol buffer options.SourceContextgetSourceContext()The source context.SourceContextOrBuildergetSourceContextOrBuilder()The source context.SyntaxgetSyntax()The source syntax.intgetSyntaxValue()The source syntax.booleanhasSourceContext()The source context.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
The fully qualified message name.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The fully qualified message name.
string name = 1;- Returns:
- The bytes for name.
-
getFieldsList
java.util.List<Field> getFieldsList()
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFields
Field getFields(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFieldsCount
int getFieldsCount()
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFieldsOrBuilderList
java.util.List<? extends FieldOrBuilder> getFieldsOrBuilderList()
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getFieldsOrBuilder
FieldOrBuilder getFieldsOrBuilder(int index)
The list of fields.
repeated .google.protobuf.Field fields = 2;
-
getOneofsList
java.util.List<java.lang.String> getOneofsList()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Returns:
- A list containing the oneofs.
-
getOneofsCount
int getOneofsCount()
The list of types appearing in `oneof` definitions in this type.
repeated string oneofs = 3;- Returns:
- The count of oneofs.
-
getOneofs
java.lang.String getOneofs(int index)
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
com.google.protobuf.ByteString getOneofsBytes(int index)
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
java.util.List<Option> getOptionsList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptions
Option getOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptionsCount
int getOptionsCount()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptionsOrBuilderList
java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 4;
-
getOptionsOrBuilder
OptionOrBuilder getOptionsOrBuilder(int index)
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
Syntax getSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 6;- Returns:
- The syntax.
-
getEdition
java.lang.String getEdition()
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 7;- Returns:
- The edition.
-
getEditionBytes
com.google.protobuf.ByteString getEditionBytes()
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 7;- Returns:
- The bytes for edition.
-
-