public static final class DescriptorProtos.FeatureSet extends GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FeatureSet> implements DescriptorProtos.FeatureSetOrBuilder
TODO Enums in C++ gencode (and potentially other languages) are not well scoped. This means that each of the feature enums below can clash with each other. The short names we've chosen maximize call-site readability, but leave us very open to this scenario. A future feature will be designed and implemented to handle this, hopefully before we ever hit a conflict here.Protobuf type
google.protobuf.FeatureSet
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.FeatureSet.Builder
TODO Enums in C++ gencode (and potentially other languages) are
not well scoped.
|
static class |
DescriptorProtos.FeatureSet.EnumType
Protobuf enum
google.protobuf.FeatureSet.EnumType |
static class |
DescriptorProtos.FeatureSet.FieldPresence
Protobuf enum
google.protobuf.FeatureSet.FieldPresence |
static class |
DescriptorProtos.FeatureSet.JsonFormat
Protobuf enum
google.protobuf.FeatureSet.JsonFormat |
static class |
DescriptorProtos.FeatureSet.MessageEncoding
Protobuf enum
google.protobuf.FeatureSet.MessageEncoding |
static class |
DescriptorProtos.FeatureSet.RepeatedFieldEncoding
Protobuf enum
google.protobuf.FeatureSet.RepeatedFieldEncoding |
static class |
DescriptorProtos.FeatureSet.Utf8Validation
Protobuf enum
google.protobuf.FeatureSet.Utf8Validation |
GeneratedMessageV3.ExtendableMessage.ExtensionWriter
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ENUM_TYPE_FIELD_NUMBER |
static int |
FIELD_PRESENCE_FIELD_NUMBER |
static int |
JSON_FORMAT_FIELD_NUMBER |
static int |
MESSAGE_ENCODING_FIELD_NUMBER |
static Parser<DescriptorProtos.FeatureSet> |
PARSER
Deprecated.
|
static int |
REPEATED_FIELD_ENCODING_FIELD_NUMBER |
static int |
UTF8_VALIDATION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares the specified object with this message for equality.
|
static DescriptorProtos.FeatureSet |
getDefaultInstance() |
DescriptorProtos.FeatureSet |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
DescriptorProtos.FeatureSet.EnumType |
getEnumType()
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
DescriptorProtos.FeatureSet.FieldPresence |
getFieldPresence()
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
DescriptorProtos.FeatureSet.JsonFormat |
getJsonFormat()
optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
DescriptorProtos.FeatureSet.MessageEncoding |
getMessageEncoding()
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
Parser<DescriptorProtos.FeatureSet> |
getParserForType()
TODO: Remove this unnecessary intermediate implementation of this method.
|
DescriptorProtos.FeatureSet.RepeatedFieldEncoding |
getRepeatedFieldEncoding()
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
DescriptorProtos.FeatureSet.Utf8Validation |
getUtf8Validation()
optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
boolean |
hasEnumType()
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
boolean |
hasFieldPresence()
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
int |
hashCode()
Returns the hash code value for this message.
|
boolean |
hasJsonFormat()
optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
boolean |
hasMessageEncoding()
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
boolean |
hasRepeatedFieldEncoding()
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
boolean |
hasUtf8Validation()
optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type.
|
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false
otherwise.
|
static DescriptorProtos.FeatureSet.Builder |
newBuilder() |
static DescriptorProtos.FeatureSet.Builder |
newBuilder(DescriptorProtos.FeatureSet prototype) |
DescriptorProtos.FeatureSet.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
protected DescriptorProtos.FeatureSet.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
TODO: remove this together with GeneratedMessageV3.BuilderParent.
|
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Creates a new instance of this message type.
|
static DescriptorProtos.FeatureSet |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.FeatureSet |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FeatureSet |
parseFrom(byte[] data) |
static DescriptorProtos.FeatureSet |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FeatureSet |
parseFrom(ByteBuffer data) |
static DescriptorProtos.FeatureSet |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FeatureSet |
parseFrom(ByteString data) |
static DescriptorProtos.FeatureSet |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FeatureSet |
parseFrom(CodedInputStream input) |
static DescriptorProtos.FeatureSet |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FeatureSet |
parseFrom(InputStream input) |
static DescriptorProtos.FeatureSet |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.FeatureSet> |
parser() |
DescriptorProtos.FeatureSet.Builder |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int FIELD_PRESENCE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER
public static final int REPEATED_FIELD_ENCODING_FIELD_NUMBER
public static final int UTF8_VALIDATION_FIELD_NUMBER
public static final int MESSAGE_ENCODING_FIELD_NUMBER
public static final int JSON_FORMAT_FIELD_NUMBER
@Deprecated public static final Parser<DescriptorProtos.FeatureSet> PARSER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
GeneratedMessageV3
newInstance
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessageV3
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasFieldPresence()
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
hasFieldPresence
in interface DescriptorProtos.FeatureSetOrBuilder
public DescriptorProtos.FeatureSet.FieldPresence getFieldPresence()
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
getFieldPresence
in interface DescriptorProtos.FeatureSetOrBuilder
public boolean hasEnumType()
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
hasEnumType
in interface DescriptorProtos.FeatureSetOrBuilder
public DescriptorProtos.FeatureSet.EnumType getEnumType()
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
getEnumType
in interface DescriptorProtos.FeatureSetOrBuilder
public boolean hasRepeatedFieldEncoding()
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
hasRepeatedFieldEncoding
in interface DescriptorProtos.FeatureSetOrBuilder
public DescriptorProtos.FeatureSet.RepeatedFieldEncoding getRepeatedFieldEncoding()
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
getRepeatedFieldEncoding
in interface DescriptorProtos.FeatureSetOrBuilder
public boolean hasUtf8Validation()
optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
hasUtf8Validation
in interface DescriptorProtos.FeatureSetOrBuilder
public DescriptorProtos.FeatureSet.Utf8Validation getUtf8Validation()
optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
getUtf8Validation
in interface DescriptorProtos.FeatureSetOrBuilder
public boolean hasMessageEncoding()
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
hasMessageEncoding
in interface DescriptorProtos.FeatureSetOrBuilder
public DescriptorProtos.FeatureSet.MessageEncoding getMessageEncoding()
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
getMessageEncoding
in interface DescriptorProtos.FeatureSetOrBuilder
public boolean hasJsonFormat()
optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
hasJsonFormat
in interface DescriptorProtos.FeatureSetOrBuilder
public DescriptorProtos.FeatureSet.JsonFormat getJsonFormat()
optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
getJsonFormat
in interface DescriptorProtos.FeatureSetOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FeatureSet>
public void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not flush or close the
stream.writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
Message
true
if the given
object is a message of the same type (as defined by getDescriptorForType()
) and has
identical values for all of its fields. Subclasses must implement this; inheriting Object.equals()
is incorrect.equals
in interface Message
equals
in class AbstractMessage
obj
- object to be compared for equality with this messagetrue
if the specified object is equal to this messagepublic int hashCode()
Message
Object.hashCode()
is incorrect.hashCode
in interface Message
hashCode
in class AbstractMessage
Map.hashCode()
public static DescriptorProtos.FeatureSet parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FeatureSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FeatureSet parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FeatureSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FeatureSet parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FeatureSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FeatureSet parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FeatureSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FeatureSet parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FeatureSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FeatureSet parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.FeatureSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public DescriptorProtos.FeatureSet.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DescriptorProtos.FeatureSet.Builder newBuilder()
public static DescriptorProtos.FeatureSet.Builder newBuilder(DescriptorProtos.FeatureSet prototype)
public DescriptorProtos.FeatureSet.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DescriptorProtos.FeatureSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
GeneratedMessageV3
newBuilderForType
in class GeneratedMessageV3
public static DescriptorProtos.FeatureSet getDefaultInstance()
public static Parser<DescriptorProtos.FeatureSet> parser()
public Parser<DescriptorProtos.FeatureSet> getParserForType()
GeneratedMessageV3
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public DescriptorProtos.FeatureSet 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.getDefaultInstanceForType
in interface GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FeatureSet>
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2008–2025. All rights reserved.