public class Method extends ProtoElement
| Modifier and Type | Class and Description |
|---|---|
static class |
Method.MethodDescriptor
An adapter type for
DescriptorProtos.MethodDescriptorProto. |
| Modifier and Type | Method and Description |
|---|---|
static Method |
create(Interface parent,
com.google.protobuf.DescriptorProtos.MethodDescriptorProto proto,
java.lang.String path)
Creates a method with
DescriptorProtos.MethodDescriptorProto. |
Method.MethodDescriptor |
getDescriptor()
Returns the
Method.MethodDescriptor. |
MessageType |
getInputMessage()
Helper for getting the methods input message.
|
TypeRef |
getInputType()
Returns the input type.
|
java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> |
getOptionFields()
Return this element's options from the proto.
|
MessageType |
getOutputMessage()
Helper for getting the methods output message.
|
TypeRef |
getOutputType()
Returns the output type.
|
boolean |
getRequestStreaming()
Returns true if request is streamed.
|
boolean |
getResponseStreaming()
Returns true if response is streamed.
|
boolean |
isDeprecated()
Returns true if this object represents something that is configured as deprecated.
|
void |
setInputType(TypeRef inputType)
For setting the input type.
|
void |
setOutputType(TypeRef outputType)
For setting the output type.
|
java.lang.String |
toString() |
getFile, getFullName, getLocation, getModel, getParent, getSimpleName, getSyntax, isReachableaddAttribute, getAttribute, getAttributeOrDefault, hasAttribute, putAttribute, removeAttributepublic static Method create(Interface parent, com.google.protobuf.DescriptorProtos.MethodDescriptorProto proto, java.lang.String path)
DescriptorProtos.MethodDescriptorProto.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDeprecated()
isDeprecated in class ProtoElementpublic Method.MethodDescriptor getDescriptor()
Method.MethodDescriptor.public java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> getOptionFields()
getOptionFields in class ProtoElementpublic boolean getRequestStreaming()
public boolean getResponseStreaming()
public TypeRef getInputType()
public void setInputType(TypeRef inputType)
public TypeRef getOutputType()
public void setOutputType(TypeRef outputType)
public MessageType getInputMessage()
public MessageType getOutputMessage()