Class DescriptorProtos.FeatureSetDefaults.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
com.google.protobuf.generated.DescriptorProtos.FeatureSetDefaults.Builder
- All Implemented Interfaces:
DescriptorProtos.FeatureSetDefaultsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.FeatureSetDefaults
public static final class DescriptorProtos.FeatureSetDefaults.Builder
extends com.google.protobuf.GeneratedMessage.Builder<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 type
google.protobuf.FeatureSetDefaults
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDefaults
(Iterable<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault> values) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
addDefaults
(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
addDefaults
(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder builderForValue) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
addDefaultsBuilder
(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
build()
clear()
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
The maximum known edition (inclusive) when this was constructed.The minimum supported edition (inclusive) when this was constructed.getDefaults
(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
getDefaultsBuilder
(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
int
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
getDefaultsOrBuilder
(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The maximum known edition (inclusive) when this was constructed.The minimum supported edition (inclusive) when this was constructed.boolean
The maximum known edition (inclusive) when this was constructed.boolean
The minimum supported edition (inclusive) when this was constructed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) removeDefaults
(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
setDefaults
(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
setDefaults
(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder builderForValue) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
The maximum known edition (inclusive) when this was constructed.The minimum supported edition (inclusive) when this was constructed.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
-
mergeFrom
public DescriptorProtos.FeatureSetDefaults.Builder mergeFrom(DescriptorProtos.FeatureSetDefaults other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
-
mergeFrom
public DescriptorProtos.FeatureSetDefaults.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.FeatureSetDefaults.Builder>
- Throws:
IOException
-
getDefaultsList
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaultsList
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
getDefaultsCount
public int getDefaultsCount()repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaultsCount
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
getDefaults
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaults
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
setDefaults
public DescriptorProtos.FeatureSetDefaults.Builder setDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
setDefaults
public DescriptorProtos.FeatureSetDefaults.Builder setDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder builderForValue) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaults
public DescriptorProtos.FeatureSetDefaults.Builder addDefaults(DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaults
public DescriptorProtos.FeatureSetDefaults.Builder addDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault value) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaults
public DescriptorProtos.FeatureSetDefaults.Builder addDefaults(DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder builderForValue) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaults
public DescriptorProtos.FeatureSetDefaults.Builder addDefaults(int index, DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder builderForValue) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addAllDefaults
public DescriptorProtos.FeatureSetDefaults.Builder addAllDefaults(Iterable<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault> values) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
clearDefaults
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
removeDefaults
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
getDefaultsBuilder
public DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder getDefaultsBuilder(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
getDefaultsOrBuilder
public DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder getDefaultsOrBuilder(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaultsOrBuilder
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
getDefaultsOrBuilderList
public List<? extends DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefaultOrBuilder> getDefaultsOrBuilderList()repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- Specified by:
getDefaultsOrBuilderList
in interfaceDescriptorProtos.FeatureSetDefaultsOrBuilder
-
addDefaultsBuilder
repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
addDefaultsBuilder
public DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder addDefaultsBuilder(int index) repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
-
getDefaultsBuilderList
public List<DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault.Builder> getDefaultsBuilderList()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
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
public DescriptorProtos.FeatureSetDefaults.Builder 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.- Returns:
- This builder for chaining.
-
clearMinimumEdition
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
optional .google.protobuf.Edition minimum_edition = 4;
- Returns:
- This builder for chaining.
-
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
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
public DescriptorProtos.FeatureSetDefaults.Builder 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.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-