public class Interface extends ProtoElement
| Modifier and Type | Method and Description |
|---|---|
static Interface |
create(ProtoFile parent,
com.google.protobuf.DescriptorProtos.ServiceDescriptorProto proto,
java.lang.String path)
Creates a interface backed up by the given proto.
|
com.google.protobuf.Api |
getConfig()
Returns the api config.
|
com.google.common.collect.ImmutableList<Method> |
getMethods()
Returns the methods.
|
java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> |
getOptionFields()
Return this element's options from the proto.
|
com.google.protobuf.DescriptorProtos.ServiceDescriptorProto |
getProto()
Returns the underlying proto representation.
|
java.lang.Iterable<Method> |
getReachableMethods()
Returns the methods reachable with the active scoper.
|
boolean |
isDeprecated()
Returns true if this object represents something that is configured as deprecated.
|
Method |
lookupMethod(java.lang.String name)
Looks up a method by its name.
|
void |
setConfig(com.google.protobuf.Api config)
Sets the api config.
|
void |
setMethodByNameMap(com.google.common.collect.ImmutableMap<java.lang.String,Method> methodByName)
For setting the method-by-name map.
|
java.lang.String |
toString() |
getFile, getFullName, getLocation, getModel, getParent, getSimpleName, getSyntax, isReachableaddAttribute, getAttribute, getAttributeOrDefault, hasAttribute, putAttribute, removeAttributepublic static Interface create(ProtoFile parent, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto proto, java.lang.String path)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDeprecated()
isDeprecated in class ProtoElementpublic com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getProto()
public java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> getOptionFields()
ProtoElementgetOptionFields in class ProtoElementpublic com.google.common.collect.ImmutableList<Method> getMethods()
public java.lang.Iterable<Method> getReachableMethods()
@Nullable public Method lookupMethod(java.lang.String name)
public void setMethodByNameMap(com.google.common.collect.ImmutableMap<java.lang.String,Method> methodByName)
public com.google.protobuf.Api getConfig()
public void setConfig(com.google.protobuf.Api config)