public static final class DescriptorProtos.MethodDescriptorProto extends GeneratedMessageimplements DescriptorProtos .MethodDescriptorProtoOrBuilder
google.protobuf.MethodDescriptorProto
Describes a method of a service.
| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos
Protobuf type
google.protobuf.MethodDescriptorProto
|
GeneratedMessage.BuilderParent , GeneratedMessage.ExtendableBuilder <MessageType extends GeneratedMessage.ExtendableMessage ,BuilderType extends GeneratedMessage.ExtendableBuilder >, GeneratedMessage.ExtendableMessage <MessageType extends GeneratedMessage.ExtendableMessage >, GeneratedMessage.ExtendableMessageOrBuilder <MessageType extends GeneratedMessage.ExtendableMessage >, GeneratedMessage.FieldAccessorTable , GeneratedMessage.GeneratedExtension <ContainingType extends Message,Type> | Modifier and Type | Field and Description |
|---|---|
static int |
INPUT_TYPE_FIELD_NUMBER
|
static int |
NAME_FIELD_NUMBER
|
static int |
OPTIONS_FIELD_NUMBER
|
static int |
OUTPUT_TYPE_FIELD_NUMBER
|
static Parser |
PARSER
|
alwaysUseFieldBuildersmemoizedHashCodegetAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static Parser<DescriptorProtos .MethodDescriptorProto > PARSER
public static final int NAME_FIELD_NUMBER
public static final int INPUT_TYPE_FIELD_NUMBER
public static final int OUTPUT_TYPE_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
public static DescriptorProtos.MethodDescriptorProto getDefaultInstance()
public DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance() method of generated message classes in that this method is an abstract method of the
MessageLite interface whereas
getDefaultInstance() is a static method of a specific class. They return the same thing.
public final UnknownFieldSetgetUnknownFields()
MessageOrBuilder
UnknownFieldSet for this message.
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage
public Parser<DescriptorProtos .MethodDescriptorProto > getParserForType()
MessageLite
public boolean hasName()
optional string name = 1;
public StringgetName()
optional string name = 1;
public ByteStringgetNameBytes()
optional string name = 1;
public boolean hasInputType()
optional string input_type = 2;
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
public StringgetInputType()
optional string input_type = 2;
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
public ByteStringgetInputTypeBytes()
optional string input_type = 2;
Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
public boolean hasOutputType()
optional string output_type = 3;
public StringgetOutputType()
optional string output_type = 3;
public ByteStringgetOutputTypeBytes()
optional string output_type = 3;
public boolean hasOptions()
optional .google.protobuf.MethodOptions options = 4;
public DescriptorProtos.MethodOptions getOptions()
optional .google.protobuf.MethodOptions options = 4;
public DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MethodOptions options = 4;
public final boolean isInitialized()
MessageLiteOrBuilder
public void writeTo(CodedOutputStreamoutput) throws IOException
MessageLite
output. This does not flush or close the stream.
writeTo in interface
MessageLite
writeTo in class
AbstractMessage
IOException
public int getSerializedSize()
MessageLite
protected ObjectwriteReplace() throws ObjectStreamException
GeneratedMessage
return super.writeReplace();
writeReplace in class
GeneratedMessage
ObjectStreamException
public static DescriptorProtos.MethodDescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MethodDescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MethodDescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MethodDescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MethodDescriptorProto parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.MethodDescriptorProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.MethodDescriptorProto parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.MethodDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.MethodDescriptorProto .Builder newBuilder()
public DescriptorProtos.MethodDescriptorProto .Builder newBuilderForType()
MessageLite
public static DescriptorProtos.MethodDescriptorProto .Builder newBuilder(DescriptorProtos .MethodDescriptorProto prototype)
public DescriptorProtos.MethodDescriptorProto .Builder toBuilder()
MessageLite
protected DescriptorProtos.MethodDescriptorProto .Builder newBuilderForType(GeneratedMessage .BuilderParent parent)