Package org.tensorflow.example
Class Feature
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.tensorflow.example.Feature
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,FeatureOrBuilder
public final class Feature extends com.google.protobuf.GeneratedMessageV3 implements FeatureOrBuilder
Containers for non-sequential data.
Protobuf typetensorflow.Feature- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeature.BuilderContainers for non-sequential data.static classFeature.KindCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intBYTES_LIST_FIELD_NUMBERstatic intFLOAT_LIST_FIELD_NUMBERstatic intINT64_LIST_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)BytesListgetBytesList().tensorflow.BytesList bytes_list = 1;BytesListOrBuildergetBytesListOrBuilder().tensorflow.BytesList bytes_list = 1;static FeaturegetDefaultInstance()FeaturegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FloatListgetFloatList().tensorflow.FloatList float_list = 2;FloatListOrBuildergetFloatListOrBuilder().tensorflow.FloatList float_list = 2;Int64ListgetInt64List().tensorflow.Int64List int64_list = 3;Int64ListOrBuildergetInt64ListOrBuilder().tensorflow.Int64List int64_list = 3;Feature.KindCasegetKindCase()com.google.protobuf.Parser<Feature>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBytesList().tensorflow.BytesList bytes_list = 1;booleanhasFloatList().tensorflow.FloatList float_list = 2;inthashCode()booleanhasInt64List().tensorflow.Int64List int64_list = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Feature.BuildernewBuilder()static Feature.BuildernewBuilder(Feature prototype)Feature.BuildernewBuilderForType()protected Feature.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FeatureparseDelimitedFrom(java.io.InputStream input)static FeatureparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureparseFrom(byte[] data)static FeatureparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureparseFrom(com.google.protobuf.ByteString data)static FeatureparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureparseFrom(com.google.protobuf.CodedInputStream input)static FeatureparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureparseFrom(java.io.InputStream input)static FeatureparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureparseFrom(java.nio.ByteBuffer data)static FeatureparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Feature>parser()Feature.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BYTES_LIST_FIELD_NUMBER
public static final int BYTES_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT_LIST_FIELD_NUMBER
public static final int FLOAT_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_LIST_FIELD_NUMBER
public static final int INT64_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getKindCase
public Feature.KindCase getKindCase()
- Specified by:
getKindCasein interfaceFeatureOrBuilder
-
hasBytesList
public boolean hasBytesList()
.tensorflow.BytesList bytes_list = 1;- Specified by:
hasBytesListin interfaceFeatureOrBuilder- Returns:
- Whether the bytesList field is set.
-
getBytesList
public BytesList getBytesList()
.tensorflow.BytesList bytes_list = 1;- Specified by:
getBytesListin interfaceFeatureOrBuilder- Returns:
- The bytesList.
-
getBytesListOrBuilder
public BytesListOrBuilder getBytesListOrBuilder()
.tensorflow.BytesList bytes_list = 1;- Specified by:
getBytesListOrBuilderin interfaceFeatureOrBuilder
-
hasFloatList
public boolean hasFloatList()
.tensorflow.FloatList float_list = 2;- Specified by:
hasFloatListin interfaceFeatureOrBuilder- Returns:
- Whether the floatList field is set.
-
getFloatList
public FloatList getFloatList()
.tensorflow.FloatList float_list = 2;- Specified by:
getFloatListin interfaceFeatureOrBuilder- Returns:
- The floatList.
-
getFloatListOrBuilder
public FloatListOrBuilder getFloatListOrBuilder()
.tensorflow.FloatList float_list = 2;- Specified by:
getFloatListOrBuilderin interfaceFeatureOrBuilder
-
hasInt64List
public boolean hasInt64List()
.tensorflow.Int64List int64_list = 3;- Specified by:
hasInt64Listin interfaceFeatureOrBuilder- Returns:
- Whether the int64List field is set.
-
getInt64List
public Int64List getInt64List()
.tensorflow.Int64List int64_list = 3;- Specified by:
getInt64Listin interfaceFeatureOrBuilder- Returns:
- The int64List.
-
getInt64ListOrBuilder
public Int64ListOrBuilder getInt64ListOrBuilder()
.tensorflow.Int64List int64_list = 3;- Specified by:
getInt64ListOrBuilderin interfaceFeatureOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Feature parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Feature parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Feature parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Feature parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Feature parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Feature parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Feature parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Feature parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Feature parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Feature.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Feature.Builder newBuilder()
-
newBuilder
public static Feature.Builder newBuilder(Feature prototype)
-
toBuilder
public Feature.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Feature.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Feature getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Feature> parser()
-
getParserForType
public com.google.protobuf.Parser<Feature> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Feature getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-