public final class SparseFeature extends com.google.protobuf.GeneratedMessageV3 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 type
tensorflow.metadata.v0.SparseFeature| Modifier and Type | Class and Description |
|---|---|
static class |
SparseFeature.Builder
A sparse feature represents a sparse tensor that is encoded with a
combination of raw features, namely index features and a value feature.
|
static class |
SparseFeature.IndexFeature
Protobuf type
tensorflow.metadata.v0.SparseFeature.IndexFeature |
static interface |
SparseFeature.IndexFeatureOrBuilder |
static class |
SparseFeature.ValueFeature
Protobuf type
tensorflow.metadata.v0.SparseFeature.ValueFeature |
static interface |
SparseFeature.ValueFeatureOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DENSE_SHAPE_FIELD_NUMBER |
static int |
DEPRECATED_FIELD_NUMBER |
static int |
INDEX_FEATURE_FIELD_NUMBER |
static int |
IS_SORTED_FIELD_NUMBER |
static int |
LIFECYCLE_STAGE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static com.google.protobuf.Parser<SparseFeature> |
PARSER
Deprecated.
|
static int |
PRESENCE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
VALUE_FEATURE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SparseFeature |
getDefaultInstance() |
SparseFeature |
getDefaultInstanceForType() |
FixedShape |
getDenseShape()
Shape of the sparse tensor that this SparseFeature represents.
|
FixedShapeOrBuilder |
getDenseShapeOrBuilder()
Shape of the sparse tensor that this SparseFeature represents.
|
boolean |
getDeprecated()
Deprecated.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SparseFeature.IndexFeature |
getIndexFeature(int index)
Features that represent indexes.
|
int |
getIndexFeatureCount()
Features that represent indexes.
|
List<SparseFeature.IndexFeature> |
getIndexFeatureList()
Features that represent indexes.
|
SparseFeature.IndexFeatureOrBuilder |
getIndexFeatureOrBuilder(int index)
Features that represent indexes.
|
List<? extends SparseFeature.IndexFeatureOrBuilder> |
getIndexFeatureOrBuilderList()
Features that represent indexes.
|
boolean |
getIsSorted()
If true then the index values are already sorted lexicographically.
|
LifecycleStage |
getLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used,
and therefore how important issues with it are.
|
String |
getName()
Name for the sparse feature.
|
com.google.protobuf.ByteString |
getNameBytes()
Name for the sparse feature.
|
com.google.protobuf.Parser<SparseFeature> |
getParserForType() |
FeaturePresence |
getPresence()
Deprecated.
|
FeaturePresenceOrBuilder |
getPresenceOrBuilder()
Deprecated.
|
int |
getSerializedSize() |
FeatureType |
getType()
Deprecated.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
SparseFeature.ValueFeature |
getValueFeature()
required
|
SparseFeature.ValueFeatureOrBuilder |
getValueFeatureOrBuilder()
required
|
boolean |
hasDenseShape()
Shape of the sparse tensor that this SparseFeature represents.
|
boolean |
hasDeprecated()
Deprecated.
|
int |
hashCode() |
boolean |
hasIsSorted()
If true then the index values are already sorted lexicographically.
|
boolean |
hasLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used,
and therefore how important issues with it are.
|
boolean |
hasName()
Name for the sparse feature.
|
boolean |
hasPresence()
Deprecated.
|
boolean |
hasType()
Deprecated.
|
boolean |
hasValueFeature()
required
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SparseFeature.Builder |
newBuilder() |
static SparseFeature.Builder |
newBuilder(SparseFeature prototype) |
SparseFeature.Builder |
newBuilderForType() |
protected SparseFeature.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SparseFeature |
parseDelimitedFrom(InputStream input) |
static SparseFeature |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparseFeature |
parseFrom(byte[] data) |
static SparseFeature |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparseFeature |
parseFrom(ByteBuffer data) |
static SparseFeature |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparseFeature |
parseFrom(com.google.protobuf.ByteString data) |
static SparseFeature |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparseFeature |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SparseFeature |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparseFeature |
parseFrom(InputStream input) |
static SparseFeature |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SparseFeature> |
parser() |
SparseFeature.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, 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, waitpublic static final int NAME_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
public static final int LIFECYCLE_STAGE_FIELD_NUMBER
public static final int PRESENCE_FIELD_NUMBER
public static final int DENSE_SHAPE_FIELD_NUMBER
public static final int INDEX_FEATURE_FIELD_NUMBER
public static final int IS_SORTED_FIELD_NUMBER
public static final int VALUE_FEATURE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<SparseFeature> PARSER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasName()
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;hasName in interface SparseFeatureOrBuilderpublic String getName()
Name for the sparse feature. This should not clash with other features in the same schema.
optional string name = 1;getName in interface SparseFeatureOrBuilderpublic 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;getNameBytes in interface SparseFeatureOrBuilder@Deprecated public boolean hasDeprecated()
This field is no longer supported. Instead, use: lifecycle_stage: DEPRECATED TODO(b/111450258): remove this.
optional bool deprecated = 2 [deprecated = true];hasDeprecated in interface SparseFeatureOrBuilder@Deprecated public boolean getDeprecated()
This field is no longer supported. Instead, use: lifecycle_stage: DEPRECATED TODO(b/111450258): remove this.
optional bool deprecated = 2 [deprecated = true];getDeprecated in interface SparseFeatureOrBuilderpublic 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;hasLifecycleStage in interface SparseFeatureOrBuilderpublic 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;getLifecycleStage in interface SparseFeatureOrBuilder@Deprecated public boolean hasPresence()
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];hasPresence in interface SparseFeatureOrBuilder@Deprecated public FeaturePresence getPresence()
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];getPresence in interface SparseFeatureOrBuilder@Deprecated public FeaturePresenceOrBuilder getPresenceOrBuilder()
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 in interface SparseFeatureOrBuilderpublic 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;hasDenseShape in interface SparseFeatureOrBuilderpublic 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;getDenseShape in interface SparseFeatureOrBuilderpublic 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;getDenseShapeOrBuilder in interface SparseFeatureOrBuilderpublic List<SparseFeature.IndexFeature> getIndexFeatureList()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;getIndexFeatureList in interface SparseFeatureOrBuilderpublic List<? extends SparseFeature.IndexFeatureOrBuilder> getIndexFeatureOrBuilderList()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;getIndexFeatureOrBuilderList in interface SparseFeatureOrBuilderpublic int getIndexFeatureCount()
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;getIndexFeatureCount in interface SparseFeatureOrBuilderpublic SparseFeature.IndexFeature getIndexFeature(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;getIndexFeature in interface SparseFeatureOrBuilderpublic SparseFeature.IndexFeatureOrBuilder getIndexFeatureOrBuilder(int index)
Features that represent indexes. Should be integers >= 0.
repeated .tensorflow.metadata.v0.SparseFeature.IndexFeature index_feature = 6;getIndexFeatureOrBuilder in interface SparseFeatureOrBuilderpublic boolean hasIsSorted()
If true then the index values are already sorted lexicographically.
optional bool is_sorted = 8;hasIsSorted in interface SparseFeatureOrBuilderpublic boolean getIsSorted()
If true then the index values are already sorted lexicographically.
optional bool is_sorted = 8;getIsSorted in interface SparseFeatureOrBuilderpublic boolean hasValueFeature()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;hasValueFeature in interface SparseFeatureOrBuilderpublic SparseFeature.ValueFeature getValueFeature()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;getValueFeature in interface SparseFeatureOrBuilderpublic SparseFeature.ValueFeatureOrBuilder getValueFeatureOrBuilder()
required
optional .tensorflow.metadata.v0.SparseFeature.ValueFeature value_feature = 9;getValueFeatureOrBuilder in interface SparseFeatureOrBuilder@Deprecated public boolean hasType()
Type of value feature. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeatureType type = 10 [deprecated = true];hasType in interface SparseFeatureOrBuilder@Deprecated public FeatureType getType()
Type of value feature. Deprecated, this is inferred by the referred features.
optional .tensorflow.metadata.v0.FeatureType type = 10 [deprecated = true];getType in interface SparseFeatureOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SparseFeature parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparseFeature parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparseFeature parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparseFeature parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparseFeature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparseFeature parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparseFeature parseFrom(InputStream input) throws IOException
IOExceptionpublic static SparseFeature parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SparseFeature parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SparseFeature parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SparseFeature parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SparseFeature parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SparseFeature.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SparseFeature.Builder newBuilder()
public static SparseFeature.Builder newBuilder(SparseFeature prototype)
public SparseFeature.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SparseFeature.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SparseFeature getDefaultInstance()
public static com.google.protobuf.Parser<SparseFeature> parser()
public com.google.protobuf.Parser<SparseFeature> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SparseFeature getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Gojek. All rights reserved.