Top Description Inners Fields Constructors Methods
com.google.protobuf

public final Class Api

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

Api is a light-weight descriptor for an API Interface.
Interfaces are also described as "protocol buffer services" in some contexts,
such as by the "service" keyword in a .proto file, but they are different
from API Services, which represent a concrete implementation of an interface
as opposed to simply a description of methods and bindings. They are also
sometimes simply referred to as "APIs" in other contexts, such as the name of
this message itself. See https://cloud.google.com/apis/design/glossary for
detailed terminology.
Protobuf type google.protobuf.Api

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Api.Builder

Api is a light-weight descriptor for an API Interface.

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
Api()

private
Api(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 Api
public Api
public static final Descriptors.Descriptor
public Method
getMethods(int index)

Implements com.google.protobuf.ApiOrBuilder.getMethods.

The methods of this interface, in unspecified order.
public int
getMethodsCount()

Implements com.google.protobuf.ApiOrBuilder.getMethodsCount.

The methods of this interface, in unspecified order.
public List<Method>
getMethodsList()

Implements com.google.protobuf.ApiOrBuilder.getMethodsList.

The methods of this interface, in unspecified order.
public MethodOrBuilder
getMethodsOrBuilder(int index)

Implements com.google.protobuf.ApiOrBuilder.getMethodsOrBuilder.

The methods of this interface, in unspecified order.
public List<? extends MethodOrBuilder>
getMethodsOrBuilderList()

Implements com.google.protobuf.ApiOrBuilder.getMethodsOrBuilderList.

The methods of this interface, in unspecified order.
public Mixin
getMixins(int index)

Implements com.google.protobuf.ApiOrBuilder.getMixins.

Included interfaces.
public int
public List<Mixin>
public MixinOrBuilder
public List<? extends MixinOrBuilder>
public String
getName()

Implements com.google.protobuf.ApiOrBuilder.getName.

The fully qualified name of this interface, including package name
followed by the interface's simple name.
public ByteString
getNameBytes()

Implements com.google.protobuf.ApiOrBuilder.getNameBytes.

The fully qualified name of this interface, including package name
followed by the interface's simple name.
public Option
getOptions(int index)

Implements com.google.protobuf.ApiOrBuilder.getOptions.

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

Implements com.google.protobuf.ApiOrBuilder.getOptionsCount.

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

Implements com.google.protobuf.ApiOrBuilder.getOptionsList.

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

Implements com.google.protobuf.ApiOrBuilder.getOptionsOrBuilder.

Any metadata attached to the interface.
public List<? extends OptionOrBuilder>
getOptionsOrBuilderList()

Implements com.google.protobuf.ApiOrBuilder.getOptionsOrBuilderList.

Any metadata attached to the interface.
public Parser<Api>
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 SourceContext
getSourceContext()

Implements com.google.protobuf.ApiOrBuilder.getSourceContext.

Source context for the protocol buffer service represented by this
message.
public SourceContextOrBuilder
getSourceContextOrBuilder()

Implements com.google.protobuf.ApiOrBuilder.getSourceContextOrBuilder.

Source context for the protocol buffer service represented by this
message.
public Syntax
getSyntax()

Implements com.google.protobuf.ApiOrBuilder.getSyntax.

The source syntax of the service.
public int
getSyntaxValue()

Implements com.google.protobuf.ApiOrBuilder.getSyntaxValue.

The source syntax of the service.
public final UnknownFieldSet
public String
getVersion()

Implements com.google.protobuf.ApiOrBuilder.getVersion.

A version string for this interface.
public ByteString
getVersionBytes()

Implements com.google.protobuf.ApiOrBuilder.getVersionBytes.

A version string for this interface.
public int
hashCode()

Overrides com.google.protobuf.AbstractMessage.hashCode.

Implements com.google.protobuf.Message.hashCode.

Returns the hash code value for this message.
public boolean
hasSourceContext()

Implements com.google.protobuf.ApiOrBuilder.hasSourceContext.

Source context for the protocol buffer service represented by 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 Api.Builder
public static Api.Builder
newBuilder(Api prototype)

public Api.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 Api.Builder
newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

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

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

public static Api
parseFrom(byte[] data)

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

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

public static Api
public static Api
public static Parser<Api>
public Api.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