Package com.google.protobuf
Class DescriptorProtos.FeatureSetDefaults
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<DescriptorProtos.FeatureSetDefaults,DescriptorProtos.FeatureSetDefaults.Builder>
-
- com.google.protobuf.DescriptorProtos.FeatureSetDefaults
-
- All Implemented Interfaces:
DescriptorProtos.FeatureSetDefaultsOrBuilder
,MessageLite
,MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.FeatureSetDefaults extends GeneratedMessageLite<DescriptorProtos.FeatureSetDefaults,DescriptorProtos.FeatureSetDefaults.Builder> implements DescriptorProtos.FeatureSetDefaultsOrBuilder
A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.
Protobuf typegoogle.protobuf.FeatureSetDefaults
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DescriptorProtos.FeatureSetDefaults.Builder
A compiled specification for the defaults of a set of features.static class
DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault
A map from every known edition with a unique set of defaults to its defaults.static interface
DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtensionDescriptor, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private static DescriptorProtos.FeatureSetDefaults
DEFAULT_INSTANCE
private Internal.ProtobufList<DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault>
defaults_
static int
DEFAULTS_FIELD_NUMBER
static int
MAXIMUM_EDITION_FIELD_NUMBER
private int
maximumEdition_
private byte
memoizedIsInitialized
static int
MINIMUM_EDITION_FIELD_NUMBER
private int
minimumEdition_
private static Parser<DescriptorProtos.FeatureSetDefaults>
PARSER
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
UNINITIALIZED_HASH_CODE, UNINITIALIZED_SERIALIZED_SIZE, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FeatureSetDefaults()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addAllDefaults(java.lang.Iterable<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault> values)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
private void
addDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
private void
addDefaults(DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
private void
clearDefaults()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
private void
clearMaximumEdition()
The maximum known edition (inclusive) when this was constructed.private void
clearMinimumEdition()
The minimum supported edition (inclusive) when this was constructed.protected java.lang.Object
dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
.private void
ensureDefaultsIsMutable()
static DescriptorProtos.FeatureSetDefaults
getDefaultInstance()
DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault
getDefaults(int index)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
int
getDefaultsCount()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
java.util.List<DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault>
getDefaultsList()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder
getDefaultsOrBuilder(int index)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
java.util.List<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder>
getDefaultsOrBuilderList()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
DescriptorProtos.Edition
getMaximumEdition()
The maximum known edition (inclusive) when this was constructed.DescriptorProtos.Edition
getMinimumEdition()
The minimum supported edition (inclusive) when this was constructed.boolean
hasMaximumEdition()
The maximum known edition (inclusive) when this was constructed.boolean
hasMinimumEdition()
The minimum supported edition (inclusive) when this was constructed.static DescriptorProtos.FeatureSetDefaults.Builder
newBuilder()
static DescriptorProtos.FeatureSetDefaults.Builder
newBuilder(DescriptorProtos.FeatureSetDefaults prototype)
static DescriptorProtos.FeatureSetDefaults
parseDelimitedFrom(java.io.InputStream input)
static DescriptorProtos.FeatureSetDefaults
parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FeatureSetDefaults
parseFrom(byte[] data)
static DescriptorProtos.FeatureSetDefaults
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FeatureSetDefaults
parseFrom(ByteString data)
static DescriptorProtos.FeatureSetDefaults
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FeatureSetDefaults
parseFrom(CodedInputStream input)
static DescriptorProtos.FeatureSetDefaults
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FeatureSetDefaults
parseFrom(java.io.InputStream input)
static DescriptorProtos.FeatureSetDefaults
parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FeatureSetDefaults
parseFrom(java.nio.ByteBuffer data)
static DescriptorProtos.FeatureSetDefaults
parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)
static Parser<DescriptorProtos.FeatureSetDefaults>
parser()
private void
removeDefaults(int index)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
private void
setDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
private void
setMaximumEdition(DescriptorProtos.Edition value)
The maximum known edition (inclusive) when this was constructed.private void
setMinimumEdition(DescriptorProtos.Edition value)
The minimum supported edition (inclusive) when this was constructed.-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
buildMessageInfo, clearMemoizedHashCode, clearMemoizedSerializedSize, computeHashCode, createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstance, getDefaultInstanceForType, getMemoizedHashCode, getMemoizedSerializedSize, getMethodOrDie, getParserForType, getSerializedSize, getSerializedSize, hashCode, hashCodeIsNotMemoized, invokeOrDie, isInitialized, isInitialized, isMutable, makeImmutable, markImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newMutableInstance, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, setMemoizedHashCode, setMemoizedSerializedSize, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
DEFAULTS_FIELD_NUMBER
public static final int DEFAULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
defaults_
private Internal.ProtobufList<DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault> defaults_
-
MINIMUM_EDITION_FIELD_NUMBER
public static final int MINIMUM_EDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
minimumEdition_
private int minimumEdition_
-
MAXIMUM_EDITION_FIELD_NUMBER
public static final int MAXIMUM_EDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maximumEdition_
private int maximumEdition_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final DescriptorProtos.FeatureSetDefaults DEFAULT_INSTANCE
-
PARSER
private static volatile Parser<DescriptorProtos.FeatureSetDefaults> PARSER
-
-
Method Detail
-
getDefaultsList
public java.util.List<DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault> getDefaultsList()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaultsList
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
getDefaultsOrBuilderList
public java.util.List<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder> getDefaultsOrBuilderList()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
getDefaultsCount
public int getDefaultsCount()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaultsCount
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
getDefaults
public DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault getDefaults(int index)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaults
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
getDefaultsOrBuilder
public DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder getDefaultsOrBuilder(int index)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
ensureDefaultsIsMutable
private void ensureDefaultsIsMutable()
-
setDefaults
private void setDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaults
private void addDefaults(DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaults
private void addDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addAllDefaults
private void addAllDefaults(java.lang.Iterable<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault> values)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
clearDefaults
private void clearDefaults()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
removeDefaults
private void removeDefaults(int index)
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
hasMinimumEdition
public boolean hasMinimumEdition()
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
optional .google.protobuf.Edition minimum_edition = 4;
- Specified by:
hasMinimumEdition
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
- Returns:
- Whether the minimumEdition field is set.
-
getMinimumEdition
public DescriptorProtos.Edition getMinimumEdition()
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
optional .google.protobuf.Edition minimum_edition = 4;
- Specified by:
getMinimumEdition
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
- Returns:
- The minimumEdition.
-
setMinimumEdition
private void setMinimumEdition(DescriptorProtos.Edition value)
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
optional .google.protobuf.Edition minimum_edition = 4;
- Parameters:
value
- The minimumEdition to set.
-
clearMinimumEdition
private void clearMinimumEdition()
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
optional .google.protobuf.Edition minimum_edition = 4;
-
hasMaximumEdition
public boolean hasMaximumEdition()
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
optional .google.protobuf.Edition maximum_edition = 5;
- Specified by:
hasMaximumEdition
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
- Returns:
- Whether the maximumEdition field is set.
-
getMaximumEdition
public DescriptorProtos.Edition getMaximumEdition()
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
optional .google.protobuf.Edition maximum_edition = 5;
- Specified by:
getMaximumEdition
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
- Returns:
- The maximumEdition.
-
setMaximumEdition
private void setMaximumEdition(DescriptorProtos.Edition value)
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
optional .google.protobuf.Edition maximum_edition = 5;
- Parameters:
value
- The maximumEdition to set.
-
clearMaximumEdition
private void clearMaximumEdition()
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
optional .google.protobuf.Edition maximum_edition = 5;
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FeatureSetDefaults parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FeatureSetDefaults parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FeatureSetDefaults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static DescriptorProtos.FeatureSetDefaults.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.FeatureSetDefaults.Builder newBuilder(DescriptorProtos.FeatureSetDefaults prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
Description copied from class:GeneratedMessageLite
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCE
returns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE
.IS_INITIALIZED
returnsnull
for false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZED
returns the memoizedisInitialized
byte value.SET_MEMOIZED_IS_INITIALIZED
sets the memoizedisInitialized
byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDER
returns aBuilderType
instance.
For use by generated code only.
- Specified by:
dynamicMethod
in classGeneratedMessageLite<DescriptorProtos.FeatureSetDefaults,DescriptorProtos.FeatureSetDefaults.Builder>
-
getDefaultInstance
public static DescriptorProtos.FeatureSetDefaults getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.FeatureSetDefaults> parser()
-
-