Class GetSerialPortOutputInstanceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetSerialPortOutputInstanceRequest.Builder>
com.google.cloud.compute.v1.GetSerialPortOutputInstanceRequest.Builder
All Implemented Interfaces:
GetSerialPortOutputInstanceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetSerialPortOutputInstanceRequest

public static final class GetSerialPortOutputInstanceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetSerialPortOutputInstanceRequest.Builder> implements GetSerialPortOutputInstanceRequestOrBuilder
 A request message for Instances.GetSerialPortOutput. See the method description for details.
 
Protobuf type google.cloud.compute.v1.GetSerialPortOutputInstanceRequest
  • 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<GetSerialPortOutputInstanceRequest.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<GetSerialPortOutputInstanceRequest.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<GetSerialPortOutputInstanceRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public GetSerialPortOutputInstanceRequest.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<GetSerialPortOutputInstanceRequest.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<GetSerialPortOutputInstanceRequest.Builder>
    • mergeFrom

      public GetSerialPortOutputInstanceRequest.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<GetSerialPortOutputInstanceRequest.Builder>
      Throws:
      IOException
    • getInstance

      public String getInstance()
       Name of the instance for this request.
       
      string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstance in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Name of the instance for this request.
       
      string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceBytes in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

       Name of the instance for this request.
       
      string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

       Name of the instance for this request.
       
      string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public GetSerialPortOutputInstanceRequest.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       Name of the instance for this request.
       
      string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • hasPort

      public boolean hasPort()
       Specifies which COM or serial port to retrieve data from.
       
      optional int32 port = 3446913;
      Specified by:
      hasPort in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      Whether the port field is set.
    • getPort

      public int getPort()
       Specifies which COM or serial port to retrieve data from.
       
      optional int32 port = 3446913;
      Specified by:
      getPort in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The port.
    • setPort

      public GetSerialPortOutputInstanceRequest.Builder setPort(int value)
       Specifies which COM or serial port to retrieve data from.
       
      optional int32 port = 3446913;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

       Specifies which COM or serial port to retrieve data from.
       
      optional int32 port = 3446913;
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProject in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectBytes in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectBytes

      public GetSerialPortOutputInstanceRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • hasStart

      public boolean hasStart()
       Specifies the starting byte position of the output to return. To start with
       the first byte of output to the specified port, omit this field or set it
       to `0`.
      
       If the output for that byte position is available, this field matches the
       `start` parameter sent with the request. If the amount of serial console
       output exceeds the size of the buffer (1 MB), the oldest output is
       discarded and is no longer available. If the requested start position
       refers to discarded output, the start position is adjusted to the oldest
       output still available, and the adjusted start position is returned as the
       `start` property value.
      
       You can also provide a negative start position, which translates to the
       most recent number of bytes written to the serial port. For example, -3 is
       interpreted as the most recent 3 bytes written to the serial console. Note
       that the negative start is bounded by the retained buffer size, and the
       returned serial console output will not exceed the max buffer size.
       
      optional int64 start = 109757538;
      Specified by:
      hasStart in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      Whether the start field is set.
    • getStart

      public long getStart()
       Specifies the starting byte position of the output to return. To start with
       the first byte of output to the specified port, omit this field or set it
       to `0`.
      
       If the output for that byte position is available, this field matches the
       `start` parameter sent with the request. If the amount of serial console
       output exceeds the size of the buffer (1 MB), the oldest output is
       discarded and is no longer available. If the requested start position
       refers to discarded output, the start position is adjusted to the oldest
       output still available, and the adjusted start position is returned as the
       `start` property value.
      
       You can also provide a negative start position, which translates to the
       most recent number of bytes written to the serial port. For example, -3 is
       interpreted as the most recent 3 bytes written to the serial console. Note
       that the negative start is bounded by the retained buffer size, and the
       returned serial console output will not exceed the max buffer size.
       
      optional int64 start = 109757538;
      Specified by:
      getStart in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The start.
    • setStart

      public GetSerialPortOutputInstanceRequest.Builder setStart(long value)
       Specifies the starting byte position of the output to return. To start with
       the first byte of output to the specified port, omit this field or set it
       to `0`.
      
       If the output for that byte position is available, this field matches the
       `start` parameter sent with the request. If the amount of serial console
       output exceeds the size of the buffer (1 MB), the oldest output is
       discarded and is no longer available. If the requested start position
       refers to discarded output, the start position is adjusted to the oldest
       output still available, and the adjusted start position is returned as the
       `start` property value.
      
       You can also provide a negative start position, which translates to the
       most recent number of bytes written to the serial port. For example, -3 is
       interpreted as the most recent 3 bytes written to the serial console. Note
       that the negative start is bounded by the retained buffer size, and the
       returned serial console output will not exceed the max buffer size.
       
      optional int64 start = 109757538;
      Parameters:
      value - The start to set.
      Returns:
      This builder for chaining.
    • clearStart

       Specifies the starting byte position of the output to return. To start with
       the first byte of output to the specified port, omit this field or set it
       to `0`.
      
       If the output for that byte position is available, this field matches the
       `start` parameter sent with the request. If the amount of serial console
       output exceeds the size of the buffer (1 MB), the oldest output is
       discarded and is no longer available. If the requested start position
       refers to discarded output, the start position is adjusted to the oldest
       output still available, and the adjusted start position is returned as the
       `start` property value.
      
       You can also provide a negative start position, which translates to the
       most recent number of bytes written to the serial port. For example, -3 is
       interpreted as the most recent 3 bytes written to the serial console. Note
       that the negative start is bounded by the retained buffer size, and the
       returned serial console output will not exceed the max buffer size.
       
      optional int64 start = 109757538;
      Returns:
      This builder for chaining.
    • getZone

      public String getZone()
       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getZone in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getZoneBytes in interface GetSerialPortOutputInstanceRequestOrBuilder
      Returns:
      The bytes for zone.
    • setZone

       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setZoneBytes

      public GetSerialPortOutputInstanceRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.