Top Description Inners Fields Constructors Methods
com.google.protobuf

public final Class Type

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

A protocol buffer message type.
Protobuf type google.protobuf.Type

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Type.Builder

A protocol buffer message type.

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
Type()

private
Type(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 Type
public Type
public static final Descriptors.Descriptor
public Field
getFields(int index)

Implements com.google.protobuf.TypeOrBuilder.getFields.

The list of fields.
public int
public List<Field>
public FieldOrBuilder
public List<? extends FieldOrBuilder>
public String
getName()

Implements com.google.protobuf.TypeOrBuilder.getName.

The fully qualified message name.
public ByteString
getNameBytes()

Implements com.google.protobuf.TypeOrBuilder.getNameBytes.

The fully qualified message name.
public String
getOneofs(int index)

Implements com.google.protobuf.TypeOrBuilder.getOneofs.

The list of types appearing in `oneof` definitions in this type.
public ByteString
getOneofsBytes(int index)

Implements com.google.protobuf.TypeOrBuilder.getOneofsBytes.

The list of types appearing in `oneof` definitions in this type.
public int
getOneofsCount()

Implements com.google.protobuf.TypeOrBuilder.getOneofsCount.

The list of types appearing in `oneof` definitions in this type.
public ProtocolStringList
getOneofsList()

Implements com.google.protobuf.TypeOrBuilder.getOneofsList.

The list of types appearing in `oneof` definitions in this type.
public Option
getOptions(int index)

Implements com.google.protobuf.TypeOrBuilder.getOptions.

The protocol buffer options.
public int
getOptionsCount()

Implements com.google.protobuf.TypeOrBuilder.getOptionsCount.

The protocol buffer options.
public List<Option>
getOptionsList()

Implements com.google.protobuf.TypeOrBuilder.getOptionsList.

The protocol buffer options.
public OptionOrBuilder
getOptionsOrBuilder(int index)

Implements com.google.protobuf.TypeOrBuilder.getOptionsOrBuilder.

The protocol buffer options.
public List<? extends OptionOrBuilder>
public Parser<Type>
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
public SourceContextOrBuilder
public Syntax
public int
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.
public boolean
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 Type.Builder
public static Type.Builder
newBuilder(Type prototype)

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

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

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

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

public static Type
parseFrom(byte[] data)

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

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

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