Package org.tensorflow.metadata.v0
Class SparseFeature.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
- org.tensorflow.metadata.v0.SparseFeature.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,SparseFeatureOrBuilder
- Enclosing class:
- SparseFeature
public static final class SparseFeature.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder> implements SparseFeatureOrBuilder
A sparse feature represents a sparse tensor that is encoded with a combination of raw features, namely index features and a value feature. Each index feature defines a list of indices in a different dimension.
Protobuf typetensorflow.metadata.v0.SparseFeature
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SparseFeature.BuilderaddAllIndexFeature(Iterable<? extends SparseFeature.IndexFeature> values)Features that represent indexes.SparseFeature.BuilderaddIndexFeature(int index, SparseFeature.IndexFeature value)Features that represent indexes.SparseFeature.BuilderaddIndexFeature(int index, SparseFeature.IndexFeature.Builder builderForValue)Features that represent indexes.SparseFeature.BuilderaddIndexFeature(SparseFeature.IndexFeature value)Features that represent indexes.SparseFeature.BuilderaddIndexFeature(SparseFeature.IndexFeature.Builder builderForValue)Features that represent indexes.SparseFeature.IndexFeature.BuilderaddIndexFeatureBuilder()Features that represent indexes.SparseFeature.IndexFeature.BuilderaddIndexFeatureBuilder(int index)Features that represent indexes.SparseFeature.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SparseFeaturebuild()SparseFeaturebuildPartial()SparseFeature.Builderclear()SparseFeature.BuilderclearDenseShape()Shape of the sparse tensor that this SparseFeature represents.SparseFeature.BuilderclearDeprecated()Deprecated.SparseFeature.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SparseFeature.BuilderclearIndexFeature()Features that represent indexes.SparseFeature.BuilderclearIsSorted()If true then the index values are already sorted lexicographically.SparseFeature.BuilderclearLifecycleStage()The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.SparseFeature.BuilderclearName()Name for the sparse feature.SparseFeature.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SparseFeature.BuilderclearPresence()Deprecated.SparseFeature.BuilderclearType()Deprecated.SparseFeature.BuilderclearValueFeature()requiredSparseFeature.Builderclone()SparseFeaturegetDefaultInstanceForType()FixedShapegetDenseShape()Shape of the sparse tensor that this SparseFeature represents.FixedShape.BuildergetDenseShapeBuilder()Shape of the sparse tensor that this SparseFeature represents.FixedShapeOrBuildergetDenseShapeOrBuilder()Shape of the sparse tensor that this SparseFeature represents.booleangetDeprecated()Deprecated.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SparseFeature.IndexFeaturegetIndexFeature(int index)Features that represent indexes.SparseFeature.IndexFeature.BuildergetIndexFeatureBuilder(int index)Features that represent indexes.List<SparseFeature.IndexFeature.Builder>getIndexFeatureBuilderList()Features that represent indexes.intgetIndexFeatureCount()Features that represent indexes.List<SparseFeature.IndexFeature>getIndexFeatureList()Features that represent indexes.SparseFeature.IndexFeatureOrBuildergetIndexFeatureOrBuilder(int index)Features that represent indexes.List<? extends SparseFeature.IndexFeatureOrBuilder>getIndexFeatureOrBuilderList()Features that represent indexes.booleangetIsSorted()If true then the index values are already sorted lexicographically.LifecycleStagegetLifecycleStage()The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.StringgetName()Name for the sparse feature.com.google.protobuf.ByteStringgetNameBytes()Name for the sparse feature.FeaturePresencegetPresence()Deprecated.FeaturePresence.BuildergetPresenceBuilder()Deprecated.FeaturePresenceOrBuildergetPresenceOrBuilder()Deprecated.FeatureTypegetType()Deprecated.SparseFeature.ValueFeaturegetValueFeature()requiredSparseFeature.ValueFeature.BuildergetValueFeatureBuilder()requiredSparseFeature.ValueFeatureOrBuildergetValueFeatureOrBuilder()requiredbooleanhasDenseShape()Shape of the sparse tensor that this SparseFeature represents.booleanhasDeprecated()Deprecated.booleanhasIsSorted()If true then the index values are already sorted lexicographically.booleanhasLifecycleStage()The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.booleanhasName()Name for the sparse feature.booleanhasPresence()Deprecated.booleanhasType()Deprecated.booleanhasValueFeature()requiredprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SparseFeature.BuildermergeDenseShape(FixedShape value)Shape of the sparse tensor that this SparseFeature represents.SparseFeature.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SparseFeature.BuildermergeFrom(com.google.protobuf.Message other)SparseFeature.BuildermergeFrom(SparseFeature other)SparseFeature.BuildermergePresence(FeaturePresence value)Deprecated.SparseFeature.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SparseFeature.BuildermergeValueFeature(SparseFeature.ValueFeature value)requiredSparseFeature.BuilderremoveIndexFeature(int index)Features that represent indexes.SparseFeature.BuildersetDenseShape(FixedShape value)Shape of the sparse tensor that this SparseFeature represents.SparseFeature.BuildersetDenseShape(FixedShape.Builder builderForValue)Shape of the sparse tensor that this SparseFeature represents.SparseFeature.BuildersetDeprecated(boolean value)Deprecated.SparseFeature.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SparseFeature.BuildersetIndexFeature(int index, SparseFeature.IndexFeature value)Features that represent indexes.SparseFeature.BuildersetIndexFeature(int index, SparseFeature.IndexFeature.Builder builderForValue)Features that represent indexes.SparseFeature.BuildersetIsSorted(boolean value)If true then the index values are already sorted lexicographically.SparseFeature.BuildersetLifecycleStage(LifecycleStage value)The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.SparseFeature.BuildersetName(String value)Name for the sparse feature.SparseFeature.BuildersetNameBytes(com.google.protobuf.ByteString value)Name for the sparse feature.SparseFeature.BuildersetPresence(FeaturePresence value)Deprecated.SparseFeature.BuildersetPresence(FeaturePresence.Builder builderForValue)Deprecated.SparseFeature.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SparseFeature.BuildersetType(FeatureType value)Deprecated.SparseFeature.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SparseFeature.BuildersetValueFeature(SparseFeature.ValueFeature value)requiredSparseFeature.BuildersetValueFeature(SparseFeature.ValueFeature.Builder builderForValue)required-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
clear
public SparseFeature.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
getDefaultInstanceForType
public SparseFeature getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SparseFeature build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SparseFeature buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SparseFeature.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
setField
public SparseFeature.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
clearField
public SparseFeature.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
clearOneof
public SparseFeature.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
setRepeatedField
public SparseFeature.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
addRepeatedField
public SparseFeature.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
mergeFrom
public SparseFeature.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SparseFeature.Builder>
-
mergeFrom
public SparseFeature.Builder mergeFrom(SparseFeature other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
mergeFrom
public SparseFeature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SparseFeature.Builder>- Throws:
IOException
-
hasName
public boolean hasName()
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;- Specified by:
hasNamein interfaceSparseFeatureOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;- Specified by:
getNamein interfaceSparseFeatureOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;- Specified by:
getNameBytesin interfaceSparseFeatureOrBuilder- Returns:
- The bytes for name.
-
setName
public SparseFeature.Builder setName(String value)
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SparseFeature.Builder clearName()
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public SparseFeature.Builder setNameBytes(com.google.protobuf.ByteString value)
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasDeprecated
@Deprecated public boolean hasDeprecated()
Deprecated.This field is no longer supported. Instead, use: lifecycle_stage: DEPRECATED TODO(b/111450258): remove this.
optional bool deprecated = 2 [deprecated = true];- Specified by:
hasDeprecatedin interfaceSparseFeatureOrBuilder- Returns:
- Whether the deprecated field is set.
-
getDeprecated
@Deprecated public boolean getDeprecated()
Deprecated.This field is no longer supported. Instead, use: lifecycle_stage: DEPRECATED TODO(b/111450258): remove this.
optional bool deprecated = 2 [deprecated = true];- Specified by:
getDeprecatedin interfaceSparseFeatureOrBuilder- Returns:
- The deprecated.
-
setDeprecated
@Deprecated public SparseFeature.Builder setDeprecated(boolean value)
Deprecated.This field is no longer supported. Instead, use: lifecycle_stage: DEPRECATED TODO(b/111450258): remove this.
optional bool deprecated = 2 [deprecated = true];- Parameters:
value- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
@Deprecated public SparseFeature.Builder clearDeprecated()
Deprecated.This field is no longer supported. Instead, use: lifecycle_stage: DEPRECATED TODO(b/111450258): remove this.
optional bool deprecated = 2 [deprecated = true];- Returns:
- This builder for chaining.
-
hasLifecycleStage
public boolean hasLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 7;- Specified by:
hasLifecycleStagein interfaceSparseFeatureOrBuilder- Returns:
- Whether the lifecycleStage field is set.
-
getLifecycleStage
public LifecycleStage getLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 7;- Specified by:
getLifecycleStagein interfaceSparseFeatureOrBuilder- Returns:
- The lifecycleStage.
-
setLifecycleStage
public SparseFeature.Builder setLifecycleStage(LifecycleStage value)
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 7;- Parameters:
value- The lifecycleStage to set.- Returns:
- This builder for chaining.
-
clearLifecycleStage
public SparseFeature.Builder clearLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 7;- Returns:
- This builder for chaining.
-
hasPresence
@Deprecated public boolean hasPresence()
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];- Specified by:
hasPresencein interfaceSparseFeatureOrBuilder- Returns:
- Whether the presence field is set.
-
getPresence
@Deprecated public FeaturePresence getPresence()
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];- Specified by:
getPresencein interfaceSparseFeatureOrBuilder- Returns:
- The presence.
-
setPresence
@Deprecated public SparseFeature.Builder setPresence(FeaturePresence value)
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];
-
setPresence
@Deprecated public SparseFeature.Builder setPresence(FeaturePresence.Builder builderForValue)
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];
-
mergePresence
@Deprecated public SparseFeature.Builder mergePresence(FeaturePresence value)
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];
-
clearPresence
@Deprecated public SparseFeature.Builder clearPresence()
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];
-
getPresenceBuilder
@Deprecated public FeaturePresence.Builder getPresenceBuilder()
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];
-
getPresenceOrBuilder
@Deprecated public FeaturePresenceOrBuilder getPresenceOrBuilder()
Deprecated.Constraints on the presence of this feature in examples. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeaturePresence presence = 4 [deprecated = true];- Specified by:
getPresenceOrBuilderin interfaceSparseFeatureOrBuilder
-
hasDenseShape
public boolean hasDenseShape()
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;- Specified by:
hasDenseShapein interfaceSparseFeatureOrBuilder- Returns:
- Whether the denseShape field is set.
-
getDenseShape
public FixedShape getDenseShape()
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;- Specified by:
getDenseShapein interfaceSparseFeatureOrBuilder- Returns:
- The denseShape.
-
setDenseShape
public SparseFeature.Builder setDenseShape(FixedShape value)
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;
-
setDenseShape
public SparseFeature.Builder setDenseShape(FixedShape.Builder builderForValue)
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;
-
mergeDenseShape
public SparseFeature.Builder mergeDenseShape(FixedShape value)
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;
-
clearDenseShape
public SparseFeature.Builder clearDenseShape()
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;
-
getDenseShapeBuilder
public FixedShape.Builder getDenseShapeBuilder()
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;
-
getDenseShapeOrBuilder
public FixedShapeOrBuilder getDenseShapeOrBuilder()
Shape of the sparse tensor that this SparseFeature represents. Currently not supported. TODO(b/109669962): Consider deriving this from the referred features.
optional .tensorflow.metadata.v0.FixedShape dense_shape = 5;- Specified by:
getDenseShapeOrBuilderin interfaceSparseFeatureOrBuilder
-
getIndexFeatureList
public List<SparseFeature.IndexFeature> getIndexFeatureList()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;- Specified by:
getIndexFeatureListin interfaceSparseFeatureOrBuilder
-
getIndexFeatureCount
public int getIndexFeatureCount()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;- Specified by:
getIndexFeatureCountin interfaceSparseFeatureOrBuilder
-
getIndexFeature
public SparseFeature.IndexFeature getIndexFeature(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;- Specified by:
getIndexFeaturein interfaceSparseFeatureOrBuilder
-
setIndexFeature
public SparseFeature.Builder setIndexFeature(int index, SparseFeature.IndexFeature value)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
setIndexFeature
public SparseFeature.Builder setIndexFeature(int index, SparseFeature.IndexFeature.Builder builderForValue)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
addIndexFeature
public SparseFeature.Builder addIndexFeature(SparseFeature.IndexFeature value)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
addIndexFeature
public SparseFeature.Builder addIndexFeature(int index, SparseFeature.IndexFeature value)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
addIndexFeature
public SparseFeature.Builder addIndexFeature(SparseFeature.IndexFeature.Builder builderForValue)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
addIndexFeature
public SparseFeature.Builder addIndexFeature(int index, SparseFeature.IndexFeature.Builder builderForValue)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
addAllIndexFeature
public SparseFeature.Builder addAllIndexFeature(Iterable<? extends SparseFeature.IndexFeature> values)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
clearIndexFeature
public SparseFeature.Builder clearIndexFeature()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
removeIndexFeature
public SparseFeature.Builder removeIndexFeature(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
getIndexFeatureBuilder
public SparseFeature.IndexFeature.Builder getIndexFeatureBuilder(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
getIndexFeatureOrBuilder
public SparseFeature.IndexFeatureOrBuilder getIndexFeatureOrBuilder(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;- Specified by:
getIndexFeatureOrBuilderin interfaceSparseFeatureOrBuilder
-
getIndexFeatureOrBuilderList
public List<? extends SparseFeature.IndexFeatureOrBuilder> getIndexFeatureOrBuilderList()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;- Specified by:
getIndexFeatureOrBuilderListin interfaceSparseFeatureOrBuilder
-
addIndexFeatureBuilder
public SparseFeature.IndexFeature.Builder addIndexFeatureBuilder()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
addIndexFeatureBuilder
public SparseFeature.IndexFeature.Builder addIndexFeatureBuilder(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
getIndexFeatureBuilderList
public List<SparseFeature.IndexFeature.Builder> getIndexFeatureBuilderList()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;
-
hasIsSorted
public boolean hasIsSorted()
If true then the index values are already sorted lexicographically.
optional bool is_sorted = 8;- Specified by:
hasIsSortedin interfaceSparseFeatureOrBuilder- Returns:
- Whether the isSorted field is set.
-
getIsSorted
public boolean getIsSorted()
If true then the index values are already sorted lexicographically.
optional bool is_sorted = 8;- Specified by:
getIsSortedin interfaceSparseFeatureOrBuilder- Returns:
- The isSorted.
-
setIsSorted
public SparseFeature.Builder setIsSorted(boolean value)
If true then the index values are already sorted lexicographically.
optional bool is_sorted = 8;- Parameters:
value- The isSorted to set.- Returns:
- This builder for chaining.
-
clearIsSorted
public SparseFeature.Builder clearIsSorted()
If true then the index values are already sorted lexicographically.
optional bool is_sorted = 8;- Returns:
- This builder for chaining.
-
hasValueFeature
public boolean hasValueFeature()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;- Specified by:
hasValueFeaturein interfaceSparseFeatureOrBuilder- Returns:
- Whether the valueFeature field is set.
-
getValueFeature
public SparseFeature.ValueFeature getValueFeature()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;- Specified by:
getValueFeaturein interfaceSparseFeatureOrBuilder- Returns:
- The valueFeature.
-
setValueFeature
public SparseFeature.Builder setValueFeature(SparseFeature.ValueFeature value)
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;
-
setValueFeature
public SparseFeature.Builder setValueFeature(SparseFeature.ValueFeature.Builder builderForValue)
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;
-
mergeValueFeature
public SparseFeature.Builder mergeValueFeature(SparseFeature.ValueFeature value)
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;
-
clearValueFeature
public SparseFeature.Builder clearValueFeature()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;
-
getValueFeatureBuilder
public SparseFeature.ValueFeature.Builder getValueFeatureBuilder()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;
-
getValueFeatureOrBuilder
public SparseFeature.ValueFeatureOrBuilder getValueFeatureOrBuilder()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;- Specified by:
getValueFeatureOrBuilderin interfaceSparseFeatureOrBuilder
-
hasType
@Deprecated public boolean hasType()
Deprecated.Type of value feature. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeatureType type = 10 [deprecated = true];- Specified by:
hasTypein interfaceSparseFeatureOrBuilder- Returns:
- Whether the type field is set.
-
getType
@Deprecated public FeatureType getType()
Deprecated.Type of value feature. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeatureType type = 10 [deprecated = true];- Specified by:
getTypein interfaceSparseFeatureOrBuilder- Returns:
- The type.
-
setType
@Deprecated public SparseFeature.Builder setType(FeatureType value)
Deprecated.Type of value feature. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeatureType type = 10 [deprecated = true];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
@Deprecated public SparseFeature.Builder clearType()
Deprecated.Type of value feature. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeatureType type = 10 [deprecated = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final SparseFeature.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
mergeUnknownFields
public final SparseFeature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SparseFeature.Builder>
-
-