A C D E F G H I L M N O P R S T U V 
All Classes All Packages

A

addToList(List<Object>, Object) - Method in class com.squareup.protoparser.ProtoSchemaParser
Adds an object or objects to a List.
allowAlias - Variable in class com.squareup.protoparser.EnumType
 
allowAlias() - Method in class com.squareup.protoparser.EnumType
True if allowing multiple values to have the same tag.
anonymous(String) - Static method in class com.squareup.protoparser.EnumType.Value
Used to represent enums values where we just know the name.
appendDocumentation(StringBuilder, String) - Static method in class com.squareup.protoparser.Utils
 
appendIndented(StringBuilder, String) - Static method in class com.squareup.protoparser.Utils
 

C

column() - Method in class com.squareup.protoparser.ProtoSchemaParser
 
com.squareup.protoparser - package com.squareup.protoparser
 
Context() - Constructor for enum com.squareup.protoparser.ProtoSchemaParser.Context
 

D

data - Variable in class com.squareup.protoparser.ProtoSchemaParser
The entire document.
dependencies - Variable in class com.squareup.protoparser.ProtoFile
 
dependencies - Variable in class com.squareup.protoparser.ProtoSchemaParser
Imported files.
documentation - Variable in class com.squareup.protoparser.EnumType
 
documentation - Variable in class com.squareup.protoparser.EnumType.Value
 
documentation - Variable in class com.squareup.protoparser.ExtendDeclaration
 
documentation - Variable in class com.squareup.protoparser.Extensions
 
documentation - Variable in class com.squareup.protoparser.MessageType
 
documentation - Variable in class com.squareup.protoparser.MessageType.Field
 
documentation - Variable in class com.squareup.protoparser.Service
 
documentation - Variable in class com.squareup.protoparser.Service.Method
 

E

end - Variable in class com.squareup.protoparser.Extensions
 
ENUM - com.squareup.protoparser.ProtoSchemaParser.Context
 
EnumType - Class in com.squareup.protoparser
An enumerated type declaration.
EnumType(String, String, String, List<Option>, List<EnumType.Value>) - Constructor for class com.squareup.protoparser.EnumType
 
EnumType.Value - Class in com.squareup.protoparser
An enum constant.
equals(Object) - Method in class com.squareup.protoparser.EnumType
 
equals(Object) - Method in class com.squareup.protoparser.EnumType.Value
 
equals(Object) - Method in class com.squareup.protoparser.ExtendDeclaration
 
equals(Object) - Method in class com.squareup.protoparser.Extensions
 
equals(Object) - Method in class com.squareup.protoparser.MessageType
 
equals(Object) - Method in class com.squareup.protoparser.MessageType.Field
 
equals(Object) - Method in class com.squareup.protoparser.Option
 
equals(Object) - Method in class com.squareup.protoparser.ProtoFile
 
equals(Object) - Method in class com.squareup.protoparser.Service
 
equals(Object) - Method in class com.squareup.protoparser.Service.Method
 
escape(String) - Static method in class com.squareup.protoparser.Option
 
EXTEND - com.squareup.protoparser.ProtoSchemaParser.Context
 
ExtendDeclaration - Class in com.squareup.protoparser
 
ExtendDeclaration(String, String, String, List<MessageType.Field>) - Constructor for class com.squareup.protoparser.ExtendDeclaration
 
extendDeclarations - Variable in class com.squareup.protoparser.ProtoFile
 
extendDeclarations - Variable in class com.squareup.protoparser.ProtoSchemaParser
Declared 'extend's.
extensions - Variable in class com.squareup.protoparser.MessageType
 
Extensions - Class in com.squareup.protoparser
 
Extensions(String, int, int) - Constructor for class com.squareup.protoparser.Extensions
 

F

Field(MessageType.Label, String, String, int, String, List<Option>) - Constructor for class com.squareup.protoparser.MessageType.Field
 
fields - Variable in class com.squareup.protoparser.ExtendDeclaration
 
fields - Variable in class com.squareup.protoparser.MessageType
 
FILE - com.squareup.protoparser.ProtoSchemaParser.Context
 
fileName - Variable in class com.squareup.protoparser.ProtoFile
 
fileName - Variable in class com.squareup.protoparser.ProtoSchemaParser
The path to the .proto file.
fileToCharArray(File) - Static method in class com.squareup.protoparser.ProtoSchemaParser
 
findByName(List<Option>, String) - Static method in class com.squareup.protoparser.Option
Return the option with the specified name from the supplied list or null.
formatName() - Method in class com.squareup.protoparser.Option
 
formatOptionList(StringBuilder, List<Option>) - Static method in class com.squareup.protoparser.Option
 
fqname - Variable in class com.squareup.protoparser.EnumType
 
fqname - Variable in class com.squareup.protoparser.ExtendDeclaration
 
fqname - Variable in class com.squareup.protoparser.MessageType
 
fqname - Variable in class com.squareup.protoparser.Service
 

G

getDefault() - Method in class com.squareup.protoparser.MessageType.Field
Returns the default option value or null.
getDependencies() - Method in class com.squareup.protoparser.ProtoFile
 
getDocumentation() - Method in class com.squareup.protoparser.EnumType
 
getDocumentation() - Method in class com.squareup.protoparser.EnumType.Value
 
getDocumentation() - Method in class com.squareup.protoparser.ExtendDeclaration
 
getDocumentation() - Method in class com.squareup.protoparser.Extensions
 
getDocumentation() - Method in class com.squareup.protoparser.MessageType.Field
 
getDocumentation() - Method in class com.squareup.protoparser.MessageType
 
getDocumentation() - Method in class com.squareup.protoparser.Service
 
getDocumentation() - Method in class com.squareup.protoparser.Service.Method
 
getDocumentation() - Method in interface com.squareup.protoparser.Type
 
getEnd() - Method in class com.squareup.protoparser.Extensions
 
getExtendDeclarations() - Method in class com.squareup.protoparser.ProtoFile
 
getExtensions() - Method in class com.squareup.protoparser.MessageType
 
getFields() - Method in class com.squareup.protoparser.ExtendDeclaration
 
getFields() - Method in class com.squareup.protoparser.MessageType
 
getFileName() - Method in class com.squareup.protoparser.ProtoFile
 
getFullyQualifiedName() - Method in class com.squareup.protoparser.EnumType
 
getFullyQualifiedName() - Method in class com.squareup.protoparser.ExtendDeclaration
 
getFullyQualifiedName() - Method in class com.squareup.protoparser.MessageType
 
getFullyQualifiedName() - Method in class com.squareup.protoparser.Service
 
getFullyQualifiedName() - Method in interface com.squareup.protoparser.Type
 
getLabel() - Method in class com.squareup.protoparser.MessageType.Field
 
getMethods() - Method in class com.squareup.protoparser.Service
 
getName() - Method in class com.squareup.protoparser.EnumType
 
getName() - Method in class com.squareup.protoparser.EnumType.Value
 
getName() - Method in class com.squareup.protoparser.ExtendDeclaration
 
getName() - Method in class com.squareup.protoparser.MessageType.Field
 
getName() - Method in class com.squareup.protoparser.MessageType
 
getName() - Method in class com.squareup.protoparser.Option
 
getName() - Method in class com.squareup.protoparser.Service
 
getName() - Method in class com.squareup.protoparser.Service.Method
 
getName() - Method in interface com.squareup.protoparser.Type
 
getNestedTypes() - Method in class com.squareup.protoparser.EnumType
 
getNestedTypes() - Method in class com.squareup.protoparser.MessageType
 
getNestedTypes() - Method in interface com.squareup.protoparser.Type
 
getOptions() - Method in class com.squareup.protoparser.EnumType
 
getOptions() - Method in class com.squareup.protoparser.EnumType.Value
 
getOptions() - Method in class com.squareup.protoparser.MessageType.Field
 
getOptions() - Method in class com.squareup.protoparser.MessageType
 
getOptions() - Method in class com.squareup.protoparser.ProtoFile
 
getOptions() - Method in class com.squareup.protoparser.Service
 
getOptions() - Method in class com.squareup.protoparser.Service.Method
 
getOptions() - Method in interface com.squareup.protoparser.Type
 
getPackageName() - Method in class com.squareup.protoparser.ProtoFile
 
getPublicDependencies() - Method in class com.squareup.protoparser.ProtoFile
 
getRequestType() - Method in class com.squareup.protoparser.Service.Method
 
getResponseType() - Method in class com.squareup.protoparser.Service.Method
 
getServices() - Method in class com.squareup.protoparser.ProtoFile
 
getStart() - Method in class com.squareup.protoparser.Extensions
 
getTag() - Method in class com.squareup.protoparser.EnumType.Value
 
getTag() - Method in class com.squareup.protoparser.MessageType.Field
 
getType() - Method in class com.squareup.protoparser.MessageType.Field
Returns the type of this field.
getTypes() - Method in class com.squareup.protoparser.ProtoFile
 
getValue() - Method in class com.squareup.protoparser.Option
 
getValues() - Method in class com.squareup.protoparser.EnumType
 

H

hashCode() - Method in class com.squareup.protoparser.EnumType
 
hashCode() - Method in class com.squareup.protoparser.EnumType.Value
 
hashCode() - Method in class com.squareup.protoparser.ExtendDeclaration
 
hashCode() - Method in class com.squareup.protoparser.Extensions
 
hashCode() - Method in class com.squareup.protoparser.MessageType.Field
 
hashCode() - Method in class com.squareup.protoparser.MessageType
 
hashCode() - Method in class com.squareup.protoparser.Option
 
hashCode() - Method in class com.squareup.protoparser.ProtoFile
 
hashCode() - Method in class com.squareup.protoparser.Service
 
hashCode() - Method in class com.squareup.protoparser.Service.Method
 
hexDigit(char) - Method in class com.squareup.protoparser.ProtoSchemaParser
 

I

isDeprecated() - Method in class com.squareup.protoparser.MessageType.Field
Returns true when the deprecated option is present and set to true.
isPacked() - Method in class com.squareup.protoparser.MessageType.Field
Returns true when the packed option is present and set to true.
isParenthesized - Variable in class com.squareup.protoparser.Option
 
isScalarType(String) - Static method in class com.squareup.protoparser.ScalarTypes
Returns true if the supplied type is scalar.
isValidTag(int) - Static method in class com.squareup.protoparser.ProtoFile
True if the supplied value is in the valid tag range and not reserved.

L

label - Variable in class com.squareup.protoparser.MessageType.Field
 
Label() - Constructor for enum com.squareup.protoparser.MessageType.Label
 
line - Variable in class com.squareup.protoparser.ProtoSchemaParser
The number of newline characters encountered thus far.
line() - Method in class com.squareup.protoparser.ProtoSchemaParser
 
lineStart - Variable in class com.squareup.protoparser.ProtoSchemaParser
The index of the most recent newline character.

M

MAX_TAG_VALUE - Static variable in class com.squareup.protoparser.ProtoFile
 
MESSAGE - com.squareup.protoparser.ProtoSchemaParser.Context
 
MessageType - Class in com.squareup.protoparser
 
MessageType(String, String, String, List<MessageType.Field>, List<Type>, List<Extensions>, List<Option>) - Constructor for class com.squareup.protoparser.MessageType
 
MessageType.Field - Class in com.squareup.protoparser
 
MessageType.Label - Enum in com.squareup.protoparser
 
Method(String, String, String, String, List<Option>) - Constructor for class com.squareup.protoparser.Service.Method
 
methods - Variable in class com.squareup.protoparser.Service
 
MIN_TAG_VALUE - Static variable in class com.squareup.protoparser.ProtoFile
 

N

name - Variable in class com.squareup.protoparser.EnumType
 
name - Variable in class com.squareup.protoparser.EnumType.Value
 
name - Variable in class com.squareup.protoparser.ExtendDeclaration
 
name - Variable in class com.squareup.protoparser.MessageType.Field
 
name - Variable in class com.squareup.protoparser.MessageType
 
name - Variable in class com.squareup.protoparser.Option
 
name - Variable in class com.squareup.protoparser.Service.Method
 
name - Variable in class com.squareup.protoparser.Service
 
nestedTypes - Variable in class com.squareup.protoparser.MessageType
 
newline() - Method in class com.squareup.protoparser.ProtoSchemaParser
Call this every time a '\n' is encountered.

O

Option - Class in com.squareup.protoparser
 
Option(String, Object) - Constructor for class com.squareup.protoparser.Option
 
Option(String, Object, boolean) - Constructor for class com.squareup.protoparser.Option
 
OPTIONAL - com.squareup.protoparser.MessageType.Label
 
options - Variable in class com.squareup.protoparser.EnumType
 
options - Variable in class com.squareup.protoparser.EnumType.Value
 
options - Variable in class com.squareup.protoparser.MessageType.Field
 
options - Variable in class com.squareup.protoparser.MessageType
 
options - Variable in class com.squareup.protoparser.ProtoFile
 
options - Variable in class com.squareup.protoparser.ProtoSchemaParser
Global options.
options - Variable in class com.squareup.protoparser.Service.Method
 
options - Variable in class com.squareup.protoparser.Service
 
optionsAsMap(List<Option>) - Static method in class com.squareup.protoparser.Option
 

P

packageName - Variable in class com.squareup.protoparser.ProtoFile
 
packageName - Variable in class com.squareup.protoparser.ProtoSchemaParser
Output package name, or null if none yet encountered.
parse(File) - Static method in class com.squareup.protoparser.ProtoSchemaParser
Parse a .proto definition file.
parse(String, Reader) - Static method in class com.squareup.protoparser.ProtoSchemaParser
Parse a named .proto schema.
parse(String, String) - Static method in class com.squareup.protoparser.ProtoSchemaParser
Parse a named .proto schema.
parseAllowAlias(List<Option>) - Static method in class com.squareup.protoparser.EnumType
 
parseUtf8(String, InputStream) - Static method in class com.squareup.protoparser.ProtoSchemaParser
Parse a named .proto schema.
peekChar() - Method in class com.squareup.protoparser.ProtoSchemaParser
Peeks a non-whitespace character and returns it.
permitsExtensions() - Method in enum com.squareup.protoparser.ProtoSchemaParser.Context
 
permitsField() - Method in enum com.squareup.protoparser.ProtoSchemaParser.Context
 
permitsImport() - Method in enum com.squareup.protoparser.ProtoSchemaParser.Context
 
permitsPackage() - Method in enum com.squareup.protoparser.ProtoSchemaParser.Context
 
permitsRpc() - Method in enum com.squareup.protoparser.ProtoSchemaParser.Context
 
pos - Variable in class com.squareup.protoparser.ProtoSchemaParser
Our cursor within the document.
prefix - Variable in class com.squareup.protoparser.ProtoSchemaParser
The current package name + nested type names, separated by dots.
ProtoFile - Class in com.squareup.protoparser
A single .proto file.
ProtoFile(String, String, List<String>, List<String>, List<Type>, List<Service>, List<Option>, List<ExtendDeclaration>) - Constructor for class com.squareup.protoparser.ProtoFile
 
ProtoSchemaParser - Class in com.squareup.protoparser
Basic parser for .proto schema declarations.
ProtoSchemaParser(String, char[]) - Constructor for class com.squareup.protoparser.ProtoSchemaParser
 
ProtoSchemaParser.Context - Enum in com.squareup.protoparser
 
publicDependencies - Variable in class com.squareup.protoparser.ProtoFile
 
publicDependencies - Variable in class com.squareup.protoparser.ProtoSchemaParser
Public imported files.

R

readChar() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a non-whitespace character and returns it.
readComment() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a comment and returns its body.
readDeclaration(String, ProtoSchemaParser.Context) - Method in class com.squareup.protoparser.ProtoSchemaParser
 
readDocumentation() - Method in class com.squareup.protoparser.ProtoSchemaParser
Like ProtoSchemaParser.skipWhitespace(boolean), but this returns a string containing all comment text.
readEnumType(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads an enumerated type declaration and returns it.
readerToCharArray(Reader) - Static method in class com.squareup.protoparser.ProtoSchemaParser
 
readExtend(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads an extend declaration.
readExtensions(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads extensions like "extensions 101;" or "extensions 101 to max;".
readField(String, String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads an field declaration and returns it.
readInt() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads an integer and returns it.
readList() - Method in class com.squareup.protoparser.ProtoSchemaParser
Returns a list of values.
readMap(char, char, char) - Method in class com.squareup.protoparser.ProtoSchemaParser
Returns a map of string keys and values.
readMessage(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a message declaration.
readName() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a (paren-wrapped), [square-wrapped] or naked symbol name.
readNumericEscape(int, int) - Method in class com.squareup.protoparser.ProtoSchemaParser
 
readOption(char) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a option containing a name, an '=' or ':', and a value.
readProtoFile() - Method in class com.squareup.protoparser.ProtoSchemaParser
 
readQuotedString() - Method in class com.squareup.protoparser.ProtoSchemaParser
 
readRpc(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads an rpc method and returns it.
readService(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a service declaration and returns it.
readString() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a quoted or unquoted string and returns it.
readValue() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a value that can be a map, list, string, number, boolean or enum.
readWord() - Method in class com.squareup.protoparser.ProtoSchemaParser
Reads a non-empty word and returns it.
REPEATED - com.squareup.protoparser.MessageType.Label
 
requestType - Variable in class com.squareup.protoparser.Service.Method
 
REQUIRED - com.squareup.protoparser.MessageType.Label
 
RESERVED_TAG_VALUE_END - Static variable in class com.squareup.protoparser.ProtoFile
 
RESERVED_TAG_VALUE_START - Static variable in class com.squareup.protoparser.ProtoFile
 
responseType - Variable in class com.squareup.protoparser.Service.Method
 
RPC - com.squareup.protoparser.ProtoSchemaParser.Context
 

S

SCALAR_TYPES - Static variable in class com.squareup.protoparser.ScalarTypes
 
ScalarTypes - Class in com.squareup.protoparser
Utilities for dealing with scalar types.
ScalarTypes() - Constructor for class com.squareup.protoparser.ScalarTypes
 
Service - Class in com.squareup.protoparser
 
Service(String, String, String, List<Option>, List<Service.Method>) - Constructor for class com.squareup.protoparser.Service
 
SERVICE - com.squareup.protoparser.ProtoSchemaParser.Context
 
Service.Method - Class in com.squareup.protoparser
 
services - Variable in class com.squareup.protoparser.ProtoFile
 
services - Variable in class com.squareup.protoparser.ProtoSchemaParser
Declared services.
skipWhitespace(boolean) - Method in class com.squareup.protoparser.ProtoSchemaParser
Skips whitespace characters and optionally comments.
start - Variable in class com.squareup.protoparser.Extensions
 
streamToCharArray(InputStream) - Static method in class com.squareup.protoparser.ProtoSchemaParser
 

T

tag - Variable in class com.squareup.protoparser.EnumType.Value
 
tag - Variable in class com.squareup.protoparser.MessageType.Field
 
toDeclaration() - Method in class com.squareup.protoparser.Option
 
toString() - Method in class com.squareup.protoparser.EnumType
 
toString() - Method in class com.squareup.protoparser.EnumType.Value
 
toString() - Method in class com.squareup.protoparser.ExtendDeclaration
 
toString() - Method in class com.squareup.protoparser.Extensions
 
toString() - Method in class com.squareup.protoparser.MessageType.Field
 
toString() - Method in class com.squareup.protoparser.MessageType
 
toString() - Method in class com.squareup.protoparser.Option
 
toString() - Method in class com.squareup.protoparser.ProtoFile
 
toString() - Method in class com.squareup.protoparser.Service.Method
 
toString() - Method in class com.squareup.protoparser.Service
 
type - Variable in class com.squareup.protoparser.MessageType.Field
 
Type - Interface in com.squareup.protoparser
A message type or enum type declaration.
TYPE_BOOL - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_BYTES - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_DOUBLE - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_FIXED_32 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_FIXED_64 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_FLOAT - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_INT_32 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_INT_64 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_SFIXED_32 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_SFIXED_64 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_SINT_32 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_SINT_64 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_STRING - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_UINT_32 - Static variable in class com.squareup.protoparser.ScalarTypes
 
TYPE_UINT_64 - Static variable in class com.squareup.protoparser.ScalarTypes
 
types - Variable in class com.squareup.protoparser.ProtoFile
 
types - Variable in class com.squareup.protoparser.ProtoSchemaParser
Declared message types and enum types.

U

unexpected(String) - Method in class com.squareup.protoparser.ProtoSchemaParser
 
UNKNOWN_TAG - Static variable in class com.squareup.protoparser.EnumType.Value
 
Utils - Class in com.squareup.protoparser
 
Utils() - Constructor for class com.squareup.protoparser.Utils
 

V

validateFieldTagUniqueness(String, List<MessageType.Field>) - Static method in class com.squareup.protoparser.MessageType
 
validateTagUniqueness(String, List<EnumType.Value>) - Static method in class com.squareup.protoparser.EnumType
 
validateValueUniquenessInScope(String, List<Type>) - Static method in class com.squareup.protoparser.EnumType
Though not mentioned in the spec, enum names use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.
value - Variable in class com.squareup.protoparser.Option
 
Value(String, int, String, List<Option>) - Constructor for class com.squareup.protoparser.EnumType.Value
 
valueOf(String) - Static method in enum com.squareup.protoparser.MessageType.Label
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.squareup.protoparser.ProtoSchemaParser.Context
Returns the enum constant of this type with the specified name.
values - Variable in class com.squareup.protoparser.EnumType
 
values() - Static method in enum com.squareup.protoparser.MessageType.Label
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.squareup.protoparser.ProtoSchemaParser.Context
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G H I L M N O P R S T U V 
All Classes All Packages