public final class MessageType extends Type
Modifier and Type | Method and Description |
---|---|
String |
documentation() |
Field |
extensionField(String qualifiedName)
Returns the field with the qualified name
qualifiedName , or null if this type has no
such field. |
com.google.common.collect.ImmutableList<Field> |
extensionFields() |
com.google.common.collect.ImmutableList<com.squareup.wire.schema.Extensions> |
extensions() |
Field |
field(int tag)
Returns the field tagged
tag , or null if this type has no such field. |
Field |
field(String name)
Returns the field named
name , or null if this type has no such field. |
com.google.common.collect.ImmutableList<Field> |
fields() |
com.google.common.collect.ImmutableList<Field> |
fieldsAndOneOfFields() |
com.google.common.collect.ImmutableList<Field> |
getRequiredFields() |
Location |
location() |
com.google.common.collect.ImmutableList<Type> |
nestedTypes() |
com.google.common.collect.ImmutableList<OneOf> |
oneOfs() |
Options |
options() |
ProtoType |
type() |
public String documentation()
documentation
in class Type
public com.google.common.collect.ImmutableList<Type> nestedTypes()
nestedTypes
in class Type
public com.google.common.collect.ImmutableList<Field> fields()
public com.google.common.collect.ImmutableList<Field> extensionFields()
public com.google.common.collect.ImmutableList<Field> getRequiredFields()
public com.google.common.collect.ImmutableList<Field> fieldsAndOneOfFields()
public Field field(String name)
name
, or null if this type has no such field.public Field extensionField(String qualifiedName)
qualifiedName
, or null if this type has no
such field.public Field field(int tag)
tag
, or null if this type has no such field.public com.google.common.collect.ImmutableList<OneOf> oneOfs()
public com.google.common.collect.ImmutableList<com.squareup.wire.schema.Extensions> extensions()
Copyright © 2013–2016 Square, Inc.. All rights reserved.