Class Shell.CopyFilesToMachineRequestMetadata.Builder

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

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

    • getName

      public String getName()
       name is the service name.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Shell.CopyFilesToMachineRequestMetadataOrBuilder
      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.CopyFilesToMachineRequestMetadataOrBuilder
      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.CopyFilesToMachineRequestMetadata.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.
    • getSourceTypeValue

      public int getSourceTypeValue()
       source_type is the type of files that will be transmitted in this request stream.
       
      .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"];
      Specified by:
      getSourceTypeValue in interface Shell.CopyFilesToMachineRequestMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      public Shell.CopyFilesToMachineRequestMetadata.Builder setSourceTypeValue(int value)
       source_type is the type of files that will be transmitted in this request stream.
       
      .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"];
      Parameters:
      value - The sourceType to set.
      Returns:
      This builder for chaining.
    • getSourceType

      public Shell.CopyFilesSourceType getSourceType()
       source_type is the type of files that will be transmitted in this request stream.
       
      .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"];
      Specified by:
      getSourceType in interface Shell.CopyFilesToMachineRequestMetadataOrBuilder
      Returns:
      The sourceType.
    • setSourceType

       source_type is the type of files that will be transmitted in this request stream.
       
      .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"];
      Parameters:
      value - The enum numeric value on the wire for sourceType to set.
      Returns:
      This builder for chaining.
    • clearSourceType

       source_type is the type of files that will be transmitted in this request stream.
       
      .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"];
      Returns:
      This builder for chaining.
    • getDestination

      public String getDestination()
       destination is where the files should be placed. The receiver can choose to
       reasonably modify this destination based on its implementation semantics.
       
      string destination = 3 [json_name = "destination"];
      Specified by:
      getDestination in interface Shell.CopyFilesToMachineRequestMetadataOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.ByteString getDestinationBytes()
       destination is where the files should be placed. The receiver can choose to
       reasonably modify this destination based on its implementation semantics.
       
      string destination = 3 [json_name = "destination"];
      Specified by:
      getDestinationBytes in interface Shell.CopyFilesToMachineRequestMetadataOrBuilder
      Returns:
      The bytes for destination.
    • setDestination

       destination is where the files should be placed. The receiver can choose to
       reasonably modify this destination based on its implementation semantics.
       
      string destination = 3 [json_name = "destination"];
      Parameters:
      value - The destination to set.
      Returns:
      This builder for chaining.
    • clearDestination

       destination is where the files should be placed. The receiver can choose to
       reasonably modify this destination based on its implementation semantics.
       
      string destination = 3 [json_name = "destination"];
      Returns:
      This builder for chaining.
    • setDestinationBytes

      public Shell.CopyFilesToMachineRequestMetadata.Builder setDestinationBytes(com.google.protobuf.ByteString value)
       destination is where the files should be placed. The receiver can choose to
       reasonably modify this destination based on its implementation semantics.
       
      string destination = 3 [json_name = "destination"];
      Parameters:
      value - The bytes for destination to set.
      Returns:
      This builder for chaining.
    • getPreserve

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

      public Shell.CopyFilesToMachineRequestMetadata.Builder setPreserve(boolean value)
       preserve indicates the the receiver should use the metadata in the file to reflect
       the same state in its 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 use the metadata in the file to reflect
       the same state in its 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.CopyFilesToMachineRequestMetadataOrBuilder
      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.CopyFilesToMachineRequestMetadataOrBuilder
      Returns:
      The extra.
    • setExtra

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

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

      public Shell.CopyFilesToMachineRequestMetadata.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"];