Class TensorSliceProto.Extent
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.tensorflow.proto.TensorSliceProto.Extent
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, TensorSliceProto.ExtentOrBuilder
- Enclosing class:
TensorSliceProto
public static final class TensorSliceProto.Extent
extends GeneratedMessage
implements TensorSliceProto.ExtentOrBuilder
Extent of the slice in one dimension.Protobuf type
tensorflow.TensorSliceProto.Extent- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classExtent of the slice in one dimension.static enumNested classes/interfaces inherited from class GeneratedMessage
GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, GeneratedMessage.ExtendableMessage<MessageT>, GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingT, T>, GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class AbstractMessage
AbstractMessage.BuilderParentNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TensorSliceProto.Extentstatic final Descriptors.Descriptorlongint64 length = 2;intlonggetStart()Start index of the slice, starting at 0.inthashCode()booleanint64 length = 2;protected GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(TensorSliceProto.Extent prototype) protected TensorSliceProto.Extent.Builderstatic TensorSliceProto.ExtentparseDelimitedFrom(InputStream input) static TensorSliceProto.ExtentparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static TensorSliceProto.ExtentparseFrom(byte[] data) static TensorSliceProto.ExtentparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static TensorSliceProto.ExtentparseFrom(ByteString data) static TensorSliceProto.ExtentparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static TensorSliceProto.ExtentparseFrom(CodedInputStream input) static TensorSliceProto.ExtentparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static TensorSliceProto.ExtentparseFrom(InputStream input) static TensorSliceProto.ExtentparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static TensorSliceProto.ExtentparseFrom(ByteBuffer data) static TensorSliceProto.ExtentparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<TensorSliceProto.Extent> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Field Details
-
START_FIELD_NUMBER
public static final int START_FIELD_NUMBER- See Also:
-
LENGTH_FIELD_NUMBER
public static final int LENGTH_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage
-
getHasLengthHackCase
- Specified by:
getHasLengthHackCasein interfaceTensorSliceProto.ExtentOrBuilder
-
getStart
public long getStart()Start index of the slice, starting at 0.
int64 start = 1;- Specified by:
getStartin interfaceTensorSliceProto.ExtentOrBuilder- Returns:
- The start.
-
hasLength
public boolean hasLength()int64 length = 2;- Specified by:
hasLengthin interfaceTensorSliceProto.ExtentOrBuilder- Returns:
- Whether the length field is set.
-
getLength
public long getLength()int64 length = 2;- Specified by:
getLengthin interfaceTensorSliceProto.ExtentOrBuilder- Returns:
- The length.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessage
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
public static TensorSliceProto.Extent parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static TensorSliceProto.Extent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static TensorSliceProto.Extent parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static TensorSliceProto.Extent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static TensorSliceProto.Extent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TensorSliceProto.Extent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TensorSliceProto.Extent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TensorSliceProto.Extent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classAbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-