Class Messages.CacheFileRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Messages.CacheFileRequest.Builder>
gauge.messages.Messages.CacheFileRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Messages.CacheFileRequestOrBuilder, Cloneable
Enclosing class:
Messages.CacheFileRequest

public static final class Messages.CacheFileRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Messages.CacheFileRequest.Builder> implements Messages.CacheFileRequestOrBuilder
 / Request for caching a file.
 / Gauge sends this request when running in LSP mode,
 / so runner can cache file contents present on the client(an editor).
 
Protobuf type gauge.messages.CacheFileRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Messages.CacheFileRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Messages.CacheFileRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Messages.CacheFileRequest.Builder>
    • getDefaultInstanceForType

      public Messages.CacheFileRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Messages.CacheFileRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Messages.CacheFileRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Messages.CacheFileRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Messages.CacheFileRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Messages.CacheFileRequest.Builder>
    • mergeFrom

      public Messages.CacheFileRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Messages.CacheFileRequest.Builder>
      Throws:
      IOException
    • getContent

      public String getContent()
       / File content of the file to be cached
       
      string content = 1;
      Specified by:
      getContent in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       / File content of the file to be cached
       
      string content = 1;
      Specified by:
      getContentBytes in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The bytes for content.
    • setContent

      public Messages.CacheFileRequest.Builder setContent(String value)
       / File content of the file to be cached
       
      string content = 1;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public Messages.CacheFileRequest.Builder clearContent()
       / File content of the file to be cached
       
      string content = 1;
      Returns:
      This builder for chaining.
    • setContentBytes

      public Messages.CacheFileRequest.Builder setContentBytes(com.google.protobuf.ByteString value)
       / File content of the file to be cached
       
      string content = 1;
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getFilePath

      public String getFilePath()
       / File path of the file to be cached
       
      string filePath = 2;
      Specified by:
      getFilePath in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The filePath.
    • getFilePathBytes

      public com.google.protobuf.ByteString getFilePathBytes()
       / File path of the file to be cached
       
      string filePath = 2;
      Specified by:
      getFilePathBytes in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The bytes for filePath.
    • setFilePath

      public Messages.CacheFileRequest.Builder setFilePath(String value)
       / File path of the file to be cached
       
      string filePath = 2;
      Parameters:
      value - The filePath to set.
      Returns:
      This builder for chaining.
    • clearFilePath

      public Messages.CacheFileRequest.Builder clearFilePath()
       / File path of the file to be cached
       
      string filePath = 2;
      Returns:
      This builder for chaining.
    • setFilePathBytes

      public Messages.CacheFileRequest.Builder setFilePathBytes(com.google.protobuf.ByteString value)
       / File path of the file to be cached
       
      string filePath = 2;
      Parameters:
      value - The bytes for filePath to set.
      Returns:
      This builder for chaining.
    • getIsClosed

      public boolean getIsClosed()
       / Specifies if the file is closed
       
      bool isClosed = 3;
      Specified by:
      getIsClosed in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The isClosed.
    • setIsClosed

      public Messages.CacheFileRequest.Builder setIsClosed(boolean value)
       / Specifies if the file is closed
       
      bool isClosed = 3;
      Parameters:
      value - The isClosed to set.
      Returns:
      This builder for chaining.
    • clearIsClosed

      public Messages.CacheFileRequest.Builder clearIsClosed()
       / Specifies if the file is closed
       
      bool isClosed = 3;
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       / Specifies the status of the file
       
      .gauge.messages.CacheFileRequest.FileStatus status = 4;
      Specified by:
      getStatusValue in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public Messages.CacheFileRequest.Builder setStatusValue(int value)
       / Specifies the status of the file
       
      .gauge.messages.CacheFileRequest.FileStatus status = 4;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       / Specifies the status of the file
       
      .gauge.messages.CacheFileRequest.FileStatus status = 4;
      Specified by:
      getStatus in interface Messages.CacheFileRequestOrBuilder
      Returns:
      The status.
    • setStatus

       / Specifies the status of the file
       
      .gauge.messages.CacheFileRequest.FileStatus status = 4;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public Messages.CacheFileRequest.Builder clearStatus()
       / Specifies the status of the file
       
      .gauge.messages.CacheFileRequest.FileStatus status = 4;
      Returns:
      This builder for chaining.