Package viam.app.packages.v1
Class Packages.FileInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Packages.FileInfo,Packages.FileInfo.Builder>
viam.app.packages.v1.Packages.FileInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Packages.FileInfoOrBuilder
- Enclosing class:
- Packages.FileInfo
public static final class Packages.FileInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Packages.FileInfo,Packages.FileInfo.Builder>
implements Packages.FileInfoOrBuilder
Protobuf type
viam.app.packages.v1.FileInfo
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionoptional bool is_directory = 3 [json_name = "isDirectory"];
string name = 1 [json_name = "name"];
uint64 size = 2 [json_name = "size"];
boolean
optional bool is_directory = 3 [json_name = "isDirectory"];
getName()
string name = 1 [json_name = "name"];
com.google.protobuf.ByteString
string name = 1 [json_name = "name"];
long
getSize()
uint64 size = 2 [json_name = "size"];
boolean
optional bool is_directory = 3 [json_name = "isDirectory"];
setIsDirectory
(boolean value) optional bool is_directory = 3 [json_name = "isDirectory"];
string name = 1 [json_name = "name"];
setNameBytes
(com.google.protobuf.ByteString value) string name = 1 [json_name = "name"];
setSize
(long value) uint64 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 interfacePackages.FileInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfacePackages.FileInfoOrBuilder
- 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()uint64 size = 2 [json_name = "size"];
- Specified by:
getSize
in interfacePackages.FileInfoOrBuilder
- Returns:
- The size.
-
setSize
uint64 size = 2 [json_name = "size"];
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
uint64 size = 2 [json_name = "size"];
- Returns:
- This builder for chaining.
-
hasIsDirectory
public boolean hasIsDirectory()optional bool is_directory = 3 [json_name = "isDirectory"];
- Specified by:
hasIsDirectory
in interfacePackages.FileInfoOrBuilder
- Returns:
- Whether the isDirectory field is set.
-
getIsDirectory
public boolean getIsDirectory()optional bool is_directory = 3 [json_name = "isDirectory"];
- Specified by:
getIsDirectory
in interfacePackages.FileInfoOrBuilder
- Returns:
- The isDirectory.
-
setIsDirectory
optional bool is_directory = 3 [json_name = "isDirectory"];
- Parameters:
value
- The isDirectory to set.- Returns:
- This builder for chaining.
-
clearIsDirectory
optional bool is_directory = 3 [json_name = "isDirectory"];
- Returns:
- This builder for chaining.
-