Package com.viam.service.shell.v1
Class Shell.FileData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Shell.FileData,Shell.FileData.Builder>
com.viam.service.shell.v1.Shell.FileData.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Shell.FileDataOrBuilder
,Cloneable
- Enclosing class:
- Shell.FileData
public static final class Shell.FileData.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionbytes data = 4 [json_name = "data"];
clearEof()
bool eof = 5 [json_name = "eof"];
bool is_dir = 3 [json_name = "isDir"];
optional uint32 mode = 7 [json_name = "mode"];
Note(erd): maybe support access time in the future if neededstring name = 1 [json_name = "name"];
int64 size = 2 [json_name = "size"];
com.google.protobuf.ByteString
getData()
bytes data = 4 [json_name = "data"];
boolean
getEof()
bool eof = 5 [json_name = "eof"];
boolean
getIsDir()
bool is_dir = 3 [json_name = "isDir"];
int
getMode()
optional uint32 mode = 7 [json_name = "mode"];
com.google.protobuf.Timestamp
Note(erd): maybe support access time in the future if neededgetName()
string name = 1 [json_name = "name"];
com.google.protobuf.ByteString
string name = 1 [json_name = "name"];
long
getSize()
int64 size = 2 [json_name = "size"];
boolean
hasMode()
optional uint32 mode = 7 [json_name = "mode"];
boolean
Note(erd): maybe support access time in the future if neededmergeModTime
(com.google.protobuf.Timestamp value) Note(erd): maybe support access time in the future if neededsetData
(com.google.protobuf.ByteString value) bytes data = 4 [json_name = "data"];
setEof
(boolean value) bool eof = 5 [json_name = "eof"];
setIsDir
(boolean value) bool is_dir = 3 [json_name = "isDir"];
setMode
(int value) optional uint32 mode = 7 [json_name = "mode"];
setModTime
(com.google.protobuf.Timestamp value) Note(erd): maybe support access time in the future if neededsetModTime
(com.google.protobuf.Timestamp.Builder builderForValue) Note(erd): maybe support access time in the future if neededstring name = 1 [json_name = "name"];
setNameBytes
(com.google.protobuf.ByteString value) string name = 1 [json_name = "name"];
setSize
(long value) int64 size = 2 [json_name = "size"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceShell.FileDataOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceShell.FileDataOrBuilder
- Returns:
- The bytes for name.
-
setName
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSize
public long getSize()int64 size = 2 [json_name = "size"];
- Specified by:
getSize
in interfaceShell.FileDataOrBuilder
- Returns:
- The size.
-
setSize
int64 size = 2 [json_name = "size"];
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
int64 size = 2 [json_name = "size"];
- Returns:
- This builder for chaining.
-
getIsDir
public boolean getIsDir()bool is_dir = 3 [json_name = "isDir"];
- Specified by:
getIsDir
in interfaceShell.FileDataOrBuilder
- Returns:
- The isDir.
-
setIsDir
bool is_dir = 3 [json_name = "isDir"];
- Parameters:
value
- The isDir to set.- Returns:
- This builder for chaining.
-
clearIsDir
bool is_dir = 3 [json_name = "isDir"];
- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()bytes data = 4 [json_name = "data"];
- Specified by:
getData
in interfaceShell.FileDataOrBuilder
- Returns:
- The data.
-
setData
bytes data = 4 [json_name = "data"];
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
bytes data = 4 [json_name = "data"];
- Returns:
- This builder for chaining.
-
getEof
public boolean getEof()bool eof = 5 [json_name = "eof"];
- Specified by:
getEof
in interfaceShell.FileDataOrBuilder
- Returns:
- The eof.
-
setEof
bool eof = 5 [json_name = "eof"];
- Parameters:
value
- The eof to set.- Returns:
- This builder for chaining.
-
clearEof
bool eof = 5 [json_name = "eof"];
- Returns:
- This builder for chaining.
-
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:
hasModTime
in 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:
getModTime
in interfaceShell.FileDataOrBuilder
- Returns:
- The modTime.
-
setModTime
Note(erd): maybe support access time in the future if needed
optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"];
-
setModTime
Note(erd): maybe support access time in the future if needed
optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"];
-
mergeModTime
Note(erd): maybe support access time in the future if needed
optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"];
-
clearModTime
Note(erd): maybe support access time in the future if needed
optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"];
-
hasMode
public boolean hasMode()optional uint32 mode = 7 [json_name = "mode"];
- Specified by:
hasMode
in interfaceShell.FileDataOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
public int getMode()optional uint32 mode = 7 [json_name = "mode"];
- Specified by:
getMode
in interfaceShell.FileDataOrBuilder
- Returns:
- The mode.
-
setMode
optional uint32 mode = 7 [json_name = "mode"];
- Parameters:
value
- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
optional uint32 mode = 7 [json_name = "mode"];
- Returns:
- This builder for chaining.
-