Package com.google.protobuf
Interface TypeOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
Type,Type.Builder
public interface TypeOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldgetFields(int index)repeated .google.protobuf.Field fields = 2 [json_name = "fields"];intgetFieldsCount()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];java.util.List<Field>getFieldsList()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];FieldOrBuildergetFieldsOrBuilder(int index)repeated .google.protobuf.Field fields = 2 [json_name = "fields"];java.util.List<? extends FieldOrBuilder>getFieldsOrBuilderList()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];java.lang.StringgetName()string name = 1 [json_name = "name"];ByteStringgetNameBytes()string name = 1 [json_name = "name"];java.lang.StringgetOneofs(int index)repeated string oneofs = 3 [json_name = "oneofs"];ByteStringgetOneofsBytes(int index)repeated string oneofs = 3 [json_name = "oneofs"];intgetOneofsCount()repeated string oneofs = 3 [json_name = "oneofs"];java.util.List<java.lang.String>getOneofsList()repeated string oneofs = 3 [json_name = "oneofs"];OptiongetOptions(int index)repeated .google.protobuf.Option options = 4 [json_name = "options"];intgetOptionsCount()repeated .google.protobuf.Option options = 4 [json_name = "options"];java.util.List<Option>getOptionsList()repeated .google.protobuf.Option options = 4 [json_name = "options"];OptionOrBuildergetOptionsOrBuilder(int index)repeated .google.protobuf.Option options = 4 [json_name = "options"];java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()repeated .google.protobuf.Option options = 4 [json_name = "options"];SourceContextgetSourceContext().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];SourceContextOrBuildergetSourceContextOrBuilder().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];SyntaxgetSyntax().google.protobuf.Syntax syntax = 6 [json_name = "syntax"];intgetSyntaxValue().google.protobuf.Syntax syntax = 6 [json_name = "syntax"];booleanhasSourceContext().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 Detail
-
getName
java.lang.String getName()
string name = 1 [json_name = "name"];- Returns:
- The name.
-
getNameBytes
ByteString getNameBytes()
string name = 1 [json_name = "name"];- Returns:
- The bytes for name.
-
getFieldsList
java.util.List<Field> getFieldsList()
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFields
Field getFields(int index)
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsCount
int getFieldsCount()
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsOrBuilderList
java.util.List<? extends FieldOrBuilder> getFieldsOrBuilderList()
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsOrBuilder
FieldOrBuilder getFieldsOrBuilder(int index)
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getOneofsList
java.util.List<java.lang.String> 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
java.lang.String getOneofs(int index)
repeated string oneofs = 3 [json_name = "oneofs"];- Parameters:
index- The index of the element to return.- Returns:
- The oneofs at the given index.
-
getOneofsBytes
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
java.util.List<Option> getOptionsList()
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptions
Option getOptions(int index)
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsCount
int getOptionsCount()
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsOrBuilderList
java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsOrBuilder
OptionOrBuilder getOptionsOrBuilder(int index)
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.
-
-