Package com.viam.service.shell.v1
Class Shell.FileData
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Shell.FileData,Shell.FileData.Builder>
com.viam.service.shell.v1.Shell.FileData
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Shell.FileDataOrBuilder
- Enclosing class:
- Shell
public static final class Shell.FileData
extends com.google.protobuf.GeneratedMessageLite<Shell.FileData,Shell.FileData.Builder>
implements Shell.FileDataOrBuilder
FileData contains partial (sometimes complete) information about a File. When transmitting FileData with CopyFilesToMachine and CopyFilesFromMachine, it MUST initially contain its name, size, and is_dir. Depending on whether preservation is in use, the mod_time and mode fields may be initially set as well. On all transmissions, data and eof must be set. Because files are sent one-by-one, it is currently permitted to exclude the initially set fields. If this ever changes, a new scheme should be used for identifying files (like a number) in order to reduce data transmission while allowing out-of-order transfers. eof must be true and its own message once no more data is to be sent for this file.Protobuf type
viam.service.shell.v1.FileData-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFileData contains partial (sometimes complete) information about a File.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) com.google.protobuf.ByteStringgetData()bytes data = 4 [json_name = "data"];static Shell.FileDatabooleangetEof()bool eof = 5 [json_name = "eof"];booleangetIsDir()bool is_dir = 3 [json_name = "isDir"];intgetMode()optional uint32 mode = 7 [json_name = "mode"];com.google.protobuf.TimestampNote(erd): maybe support access time in the future if neededgetName()string name = 1 [json_name = "name"];com.google.protobuf.ByteStringstring name = 1 [json_name = "name"];longgetSize()int64 size = 2 [json_name = "size"];booleanhasMode()optional uint32 mode = 7 [json_name = "mode"];booleanNote(erd): maybe support access time in the future if neededstatic Shell.FileData.Builderstatic Shell.FileData.BuildernewBuilder(Shell.FileData prototype) static Shell.FileDataparseDelimitedFrom(InputStream input) static Shell.FileDataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Shell.FileDataparseFrom(byte[] data) static Shell.FileDataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Shell.FileDataparseFrom(com.google.protobuf.ByteString data) static Shell.FileDataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Shell.FileDataparseFrom(com.google.protobuf.CodedInputStream input) static Shell.FileDataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Shell.FileDataparseFrom(InputStream input) static Shell.FileDataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Shell.FileDataparseFrom(ByteBuffer data) static Shell.FileDataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Shell.FileData>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
IS_DIR_FIELD_NUMBER
public static final int IS_DIR_FIELD_NUMBER- See Also:
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER- See Also:
-
EOF_FIELD_NUMBER
public static final int EOF_FIELD_NUMBER- See Also:
-
MOD_TIME_FIELD_NUMBER
public static final int MOD_TIME_FIELD_NUMBER- See Also:
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getName
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceShell.FileDataOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceShell.FileDataOrBuilder- Returns:
- The bytes for name.
-
getSize
public long getSize()int64 size = 2 [json_name = "size"];- Specified by:
getSizein interfaceShell.FileDataOrBuilder- Returns:
- The size.
-
getIsDir
public boolean getIsDir()bool is_dir = 3 [json_name = "isDir"];- Specified by:
getIsDirin interfaceShell.FileDataOrBuilder- Returns:
- The isDir.
-
getData
public com.google.protobuf.ByteString getData()bytes data = 4 [json_name = "data"];- Specified by:
getDatain interfaceShell.FileDataOrBuilder- Returns:
- The data.
-
getEof
public boolean getEof()bool eof = 5 [json_name = "eof"];- Specified by:
getEofin interfaceShell.FileDataOrBuilder- Returns:
- The eof.
-
hasModTime
public boolean hasModTime()Note(erd): maybe support access time in the future if needed
optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"];- Specified by:
hasModTimein interfaceShell.FileDataOrBuilder- Returns:
- Whether the modTime field is set.
-
getModTime
public com.google.protobuf.Timestamp getModTime()Note(erd): maybe support access time in the future if needed
optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"];- Specified by:
getModTimein interfaceShell.FileDataOrBuilder- Returns:
- The modTime.
-
hasMode
public boolean hasMode()optional uint32 mode = 7 [json_name = "mode"];- Specified by:
hasModein interfaceShell.FileDataOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
public int getMode()optional uint32 mode = 7 [json_name = "mode"];- Specified by:
getModein interfaceShell.FileDataOrBuilder- Returns:
- The mode.
-
parseFrom
public static Shell.FileData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Shell.FileData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Shell.FileData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Shell.FileData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Shell.FileData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Shell.FileData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Shell.FileData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Shell.FileData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Shell.FileData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Shell.FileData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Shell.FileData,Shell.FileData.Builder>
-
getDefaultInstance
-
parser
-