Top Description Inners Fields Constructors Methods
com.google.protobuf

public final Class Method

extends GeneratedMessageV3
implements MethodOrBuilder
Class Inheritance
All Implemented Interfaces
com.google.protobuf.MethodOrBuilder, com.google.protobuf.MessageOrBuilder, com.google.protobuf.MessageLiteOrBuilder

Method represents a method of an API interface.
Protobuf type google.protobuf.Method

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Method.Builder

Method represents a method of an API interface.

Field Summary

Modifier and TypeField and Description
private int
private static final Method
private byte
private volatile Object
public static final int
private List<Option>
public static final int
private static final Parser<Method>
public static final int
public static final int
private boolean
private volatile Object
public static final int
public static final int
private boolean
private volatile Object
private static final long
private int
public static final int
Inherited from com.google.protobuf.GeneratedMessageV3:
alwaysUseFieldBuildersunknownFields

Constructor Summary

AccessConstructor and Description
private
private
private
Method(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(final Object
object to be compared for equality with this message
obj
)

Overrides com.google.protobuf.AbstractMessage.equals.

Implements com.google.protobuf.Message.equals.

Compares the specified object with this message for equality.
public static Method
public Method
public static final Descriptors.Descriptor
public String
getName()

Implements com.google.protobuf.MethodOrBuilder.getName.

The simple name of this method.
public ByteString
getNameBytes()

Implements com.google.protobuf.MethodOrBuilder.getNameBytes.

The simple name of this method.
public Option
getOptions(int index)

Implements com.google.protobuf.MethodOrBuilder.getOptions.

Any metadata attached to the method.
public int
getOptionsCount()

Implements com.google.protobuf.MethodOrBuilder.getOptionsCount.

Any metadata attached to the method.
public List<Option>
getOptionsList()

Implements com.google.protobuf.MethodOrBuilder.getOptionsList.

Any metadata attached to the method.
public OptionOrBuilder
getOptionsOrBuilder(int index)

Implements com.google.protobuf.MethodOrBuilder.getOptionsOrBuilder.

Any metadata attached to the method.
public List<? extends OptionOrBuilder>
public Parser<Method>
public boolean
public String
getRequestTypeUrl()

Implements com.google.protobuf.MethodOrBuilder.getRequestTypeUrl.

A URL of the input message type.
public ByteString
public boolean
public String
getResponseTypeUrl()

Implements com.google.protobuf.MethodOrBuilder.getResponseTypeUrl.

The URL of the output message type.
public ByteString
public int
getSerializedSize()

Overrides com.google.protobuf.GeneratedMessageV3.getSerializedSize.

Implements com.google.protobuf.MessageLite.getSerializedSize.

Get the number of bytes required to encode this message.
public Syntax
getSyntax()

Implements com.google.protobuf.MethodOrBuilder.getSyntax.

The source syntax of this method.
public int
getSyntaxValue()

Implements com.google.protobuf.MethodOrBuilder.getSyntaxValue.

The source syntax of this method.
public final UnknownFieldSet
public int
hashCode()

Overrides com.google.protobuf.AbstractMessage.hashCode.

Implements com.google.protobuf.Message.hashCode.

Returns the hash code value for this message.
protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()

Implements abstract com.google.protobuf.GeneratedMessageV3.internalGetFieldAccessorTable.

Get the FieldAccessorTable for this type.
public final boolean
isInitialized()

Overrides com.google.protobuf.GeneratedMessageV3.isInitialized.

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.
public static Method.Builder
public static Method.Builder
newBuilder(Method prototype)

public Method.Builder
newBuilderForType()

Implements com.google.protobuf.Message.newBuilderForType, com.google.protobuf.MessageLite.newBuilderForType.

Constructs a new builder for a message of the same type as this message.
protected Method.Builder
newBuilderForType(GeneratedMessageV3.BuilderParent parent)

Implements abstract com.google.protobuf.GeneratedMessageV3.newBuilderForType.

TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.
public static Method
public static Method
public static Method
public static Method
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Method
public static Method
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Method
parseFrom(byte[] data)

public static Method
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Method
public static Method
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Method
public static Method
public static Parser<Method>
public Method.Builder
toBuilder()

Implements com.google.protobuf.Message.toBuilder, com.google.protobuf.MessageLite.toBuilder.

Constructs a builder initialized with the current message.
public void
writeTo(CodedOutputStream output)

Overrides com.google.protobuf.GeneratedMessageV3.writeTo.

Implements com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output.
Inherited from com.google.protobuf.GeneratedMessageV3:
canUseUnsafecomputeStringSizecomputeStringSizeNoTagemptyBooleanListemptyDoubleListemptyFloatListemptyIntListemptyLongListenableAlwaysUseFieldBuildersForTestinggetAllFieldsgetAllFieldsRawgetDescriptorForTypegetFieldgetFieldRawgetOneofFieldDescriptorgetRepeatedFieldgetRepeatedFieldCounthasFieldhasOneofinternalGetMapFieldmakeExtensionsImmutablemutableCopymutableCopymutableCopymutableCopymutableCopynewBooleanListnewBuilderForTypenewDoubleListnewFloatListnewIntListnewLongListparseDelimitedWithIOExceptionparseDelimitedWithIOExceptionparseUnknownFieldparseUnknownFieldProto3parseWithIOExceptionparseWithIOExceptionparseWithIOExceptionparseWithIOExceptionserializeBooleanMapToserializeIntegerMapToserializeLongMapToserializeStringMapTowriteReplacewriteStringwriteStringNoTag