Top Description Inners Fields Constructors Methods
com.google.protobuf

public final Class Option

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

A protocol buffer option, which can be attached to a message, field,
enumeration, etc.
Protobuf type google.protobuf.Option

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Option.Builder

A protocol buffer option, which can be attached to a message, field,
enumeration, etc.

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
private
Option(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 Option
public Option
public static final Descriptors.Descriptor
public String
getName()

Implements com.google.protobuf.OptionOrBuilder.getName.

The option's name.
public ByteString
public Parser<Option>
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 final UnknownFieldSet
public Any
getValue()

Implements com.google.protobuf.OptionOrBuilder.getValue.

The option's value packed in an Any message.
public AnyOrBuilder
getValueOrBuilder()

Implements com.google.protobuf.OptionOrBuilder.getValueOrBuilder.

The option's value packed in an Any message.
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
hasValue()

Implements com.google.protobuf.OptionOrBuilder.hasValue.

The option's value packed in an Any 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 Option.Builder
public static Option.Builder
newBuilder(Option prototype)

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

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

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

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

public static Option
parseFrom(byte[] data)

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

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

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