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.ExtensionWriterGeneratedMessageV3.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.UnusedPrivateParameterAbstractMessageLite.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, unknownFieldsmemoizedSizememoizedHashCode| 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, parseUnknownFieldProto3canUseUnsafe, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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)
GeneratedMessageV3newInstance in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessageV3internalGetFieldAccessorTable in class GeneratedMessageV3public 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic 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.FeatureSetOrBuilderpublic final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FeatureSet>public void writeTo(CodedOutputStream output) throws IOException
MessageLiteoutput. This does not flush or close the
stream.writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
MessageLitegetSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
Messagetrue 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 Messageequals in class AbstractMessageobj - object to be compared for equality with this messagetrue if the specified object is equal to this messagepublic int hashCode()
MessageObject.hashCode() is incorrect.hashCode in interface MessagehashCode in class AbstractMessageMap.hashCode()public static DescriptorProtos.FeatureSet parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.FeatureSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.FeatureSet parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.FeatureSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.FeatureSet parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.FeatureSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.FeatureSet parseFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.FeatureSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.FeatureSet parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.FeatureSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.FeatureSet parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.FeatureSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DescriptorProtos.FeatureSet.Builder newBuilderForType()
MessageLitenewBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static DescriptorProtos.FeatureSet.Builder newBuilder()
public static DescriptorProtos.FeatureSet.Builder newBuilder(DescriptorProtos.FeatureSet prototype)
public DescriptorProtos.FeatureSet.Builder toBuilder()
MessageLitetoBuilder in interface MessagetoBuilder in interface MessageLiteprotected DescriptorProtos.FeatureSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
GeneratedMessageV3newBuilderForType in class GeneratedMessageV3public static DescriptorProtos.FeatureSet getDefaultInstance()
public static Parser<DescriptorProtos.FeatureSet> parser()
public Parser<DescriptorProtos.FeatureSet> getParserForType()
GeneratedMessageV3getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public DescriptorProtos.FeatureSet getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() 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 MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2008–2024. All rights reserved.