Class Shell.CopyFilesFromMachineRequestMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Shell.CopyFilesFromMachineRequestMetadata,Shell.CopyFilesFromMachineRequestMetadata.Builder>
com.viam.service.shell.v1.Shell.CopyFilesFromMachineRequestMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Shell.CopyFilesFromMachineRequestMetadataOrBuilder, Cloneable
Enclosing class:
Shell.CopyFilesFromMachineRequestMetadata

public static final class Shell.CopyFilesFromMachineRequestMetadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Shell.CopyFilesFromMachineRequestMetadata,Shell.CopyFilesFromMachineRequestMetadata.Builder> implements Shell.CopyFilesFromMachineRequestMetadataOrBuilder
Protobuf type viam.service.shell.v1.CopyFilesFromMachineRequestMetadata
  • Method Details

    • getName

      public String getName()
       name is the service name.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name is the service name.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      The bytes for name.
    • setName

       name is the service name.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       name is the service name.
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Shell.CopyFilesFromMachineRequestMetadata.Builder setNameBytes(com.google.protobuf.ByteString value)
       name is the service name.
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPathsList

      public List<String> getPathsList()
       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Specified by:
      getPathsList in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      A list containing the paths.
    • getPathsCount

      public int getPathsCount()
       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Specified by:
      getPathsCount in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      The count of paths.
    • getPaths

      public String getPaths(int index)
       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Specified by:
      getPaths in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The paths at the given index.
    • getPathsBytes

      public com.google.protobuf.ByteString getPathsBytes(int index)
       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Specified by:
      getPathsBytes in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the paths at the given index.
    • setPaths

      public Shell.CopyFilesFromMachineRequestMetadata.Builder setPaths(int index, String value)
       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Parameters:
      index - The index to set the value at.
      value - The paths to set.
      Returns:
      This builder for chaining.
    • addPaths

       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Parameters:
      value - The paths to add.
      Returns:
      This builder for chaining.
    • addAllPaths

       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Parameters:
      values - The paths to add.
      Returns:
      This builder for chaining.
    • clearPaths

       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Returns:
      This builder for chaining.
    • addPathsBytes

      public Shell.CopyFilesFromMachineRequestMetadata.Builder addPathsBytes(com.google.protobuf.ByteString value)
       paths are the paths to copy from and send back over the wire.
       
      repeated string paths = 2 [json_name = "paths"];
      Parameters:
      value - The bytes of the paths to add.
      Returns:
      This builder for chaining.
    • getAllowRecursion

      public boolean getAllowRecursion()
       allow_recursion indicates if directories should be recursed into. If
       a directory is encountered and this is false, an error MUST occur.
       
      bool allow_recursion = 3 [json_name = "allowRecursion"];
      Specified by:
      getAllowRecursion in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      The allowRecursion.
    • setAllowRecursion

      public Shell.CopyFilesFromMachineRequestMetadata.Builder setAllowRecursion(boolean value)
       allow_recursion indicates if directories should be recursed into. If
       a directory is encountered and this is false, an error MUST occur.
       
      bool allow_recursion = 3 [json_name = "allowRecursion"];
      Parameters:
      value - The allowRecursion to set.
      Returns:
      This builder for chaining.
    • clearAllowRecursion

       allow_recursion indicates if directories should be recursed into. If
       a directory is encountered and this is false, an error MUST occur.
       
      bool allow_recursion = 3 [json_name = "allowRecursion"];
      Returns:
      This builder for chaining.
    • getPreserve

      public boolean getPreserve()
       preserve indicates the the receiver should provide the metadata in the file
       to reflect the same state in the sender's filesystem as applicable.
       
      bool preserve = 4 [json_name = "preserve"];
      Specified by:
      getPreserve in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      The preserve.
    • setPreserve

      public Shell.CopyFilesFromMachineRequestMetadata.Builder setPreserve(boolean value)
       preserve indicates the the receiver should provide the metadata in the file
       to reflect the same state in the sender's filesystem as applicable.
       
      bool preserve = 4 [json_name = "preserve"];
      Parameters:
      value - The preserve to set.
      Returns:
      This builder for chaining.
    • clearPreserve

       preserve indicates the the receiver should provide the metadata in the file
       to reflect the same state in the sender's filesystem as applicable.
       
      bool preserve = 4 [json_name = "preserve"];
      Returns:
      This builder for chaining.
    • hasExtra

      public boolean hasExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      hasExtra in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      Whether the extra field is set.
    • getExtra

      public com.google.protobuf.Struct getExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      getExtra in interface Shell.CopyFilesFromMachineRequestMetadataOrBuilder
      Returns:
      The extra.
    • setExtra

      public Shell.CopyFilesFromMachineRequestMetadata.Builder setExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • setExtra

      public Shell.CopyFilesFromMachineRequestMetadata.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • mergeExtra

      public Shell.CopyFilesFromMachineRequestMetadata.Builder mergeExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • clearExtra

       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];