Class SerialPortOutput.Builder

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

public static final class SerialPortOutput.Builder extends com.google.protobuf.GeneratedMessage.Builder<SerialPortOutput.Builder> implements SerialPortOutputOrBuilder
 An instance serial console output.
 
Protobuf type google.cloud.compute.v1.SerialPortOutput
  • 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<SerialPortOutput.Builder>
    • clear

      public SerialPortOutput.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<SerialPortOutput.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<SerialPortOutput.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SerialPortOutput.Builder mergeFrom(SerialPortOutput other)
    • isInitialized

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

      public SerialPortOutput.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<SerialPortOutput.Builder>
      Throws:
      IOException
    • hasContents

      public boolean hasContents()
       [Output Only] The contents of the console output.
       
      optional string contents = 506419994;
      Specified by:
      hasContents in interface SerialPortOutputOrBuilder
      Returns:
      Whether the contents field is set.
    • getContents

      public String getContents()
       [Output Only] The contents of the console output.
       
      optional string contents = 506419994;
      Specified by:
      getContents in interface SerialPortOutputOrBuilder
      Returns:
      The contents.
    • getContentsBytes

      public com.google.protobuf.ByteString getContentsBytes()
       [Output Only] The contents of the console output.
       
      optional string contents = 506419994;
      Specified by:
      getContentsBytes in interface SerialPortOutputOrBuilder
      Returns:
      The bytes for contents.
    • setContents

      public SerialPortOutput.Builder setContents(String value)
       [Output Only] The contents of the console output.
       
      optional string contents = 506419994;
      Parameters:
      value - The contents to set.
      Returns:
      This builder for chaining.
    • clearContents

      public SerialPortOutput.Builder clearContents()
       [Output Only] The contents of the console output.
       
      optional string contents = 506419994;
      Returns:
      This builder for chaining.
    • setContentsBytes

      public SerialPortOutput.Builder setContentsBytes(com.google.protobuf.ByteString value)
       [Output Only] The contents of the console output.
       
      optional string contents = 506419994;
      Parameters:
      value - The bytes for contents to set.
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface SerialPortOutputOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface SerialPortOutputOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface SerialPortOutputOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public SerialPortOutput.Builder setKind(String value)
       Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public SerialPortOutput.Builder clearKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public SerialPortOutput.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasNext

      public boolean hasNext()
       [Output Only] The position of the next byte of content, regardless of
       whether the content exists, following the output returned in the `contents`
       property. Use this value in the next request as the start
       parameter.
       
      optional int64 next = 3377907;
      Specified by:
      hasNext in interface SerialPortOutputOrBuilder
      Returns:
      Whether the next field is set.
    • getNext

      public long getNext()
       [Output Only] The position of the next byte of content, regardless of
       whether the content exists, following the output returned in the `contents`
       property. Use this value in the next request as the start
       parameter.
       
      optional int64 next = 3377907;
      Specified by:
      getNext in interface SerialPortOutputOrBuilder
      Returns:
      The next.
    • setNext

      public SerialPortOutput.Builder setNext(long value)
       [Output Only] The position of the next byte of content, regardless of
       whether the content exists, following the output returned in the `contents`
       property. Use this value in the next request as the start
       parameter.
       
      optional int64 next = 3377907;
      Parameters:
      value - The next to set.
      Returns:
      This builder for chaining.
    • clearNext

      public SerialPortOutput.Builder clearNext()
       [Output Only] The position of the next byte of content, regardless of
       whether the content exists, following the output returned in the `contents`
       property. Use this value in the next request as the start
       parameter.
       
      optional int64 next = 3377907;
      Returns:
      This builder for chaining.
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface SerialPortOutputOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface SerialPortOutputOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface SerialPortOutputOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public SerialPortOutput.Builder setSelfLink(String value)
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public SerialPortOutput.Builder clearSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public SerialPortOutput.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • hasStart

      public boolean hasStart()
       The starting byte position of the output that was returned.
       This should match the start parameter sent with the request.
       If the serial console output exceeds the size of the buffer (1 MB), older
       output is overwritten by newer content. The output start value will
       indicate the byte position of the output that was returned, which might be
       different than the `start` value that was specified in the request.
       
      optional int64 start = 109757538;
      Specified by:
      hasStart in interface SerialPortOutputOrBuilder
      Returns:
      Whether the start field is set.
    • getStart

      public long getStart()
       The starting byte position of the output that was returned.
       This should match the start parameter sent with the request.
       If the serial console output exceeds the size of the buffer (1 MB), older
       output is overwritten by newer content. The output start value will
       indicate the byte position of the output that was returned, which might be
       different than the `start` value that was specified in the request.
       
      optional int64 start = 109757538;
      Specified by:
      getStart in interface SerialPortOutputOrBuilder
      Returns:
      The start.
    • setStart

      public SerialPortOutput.Builder setStart(long value)
       The starting byte position of the output that was returned.
       This should match the start parameter sent with the request.
       If the serial console output exceeds the size of the buffer (1 MB), older
       output is overwritten by newer content. The output start value will
       indicate the byte position of the output that was returned, which might be
       different than the `start` value that was specified in the request.
       
      optional int64 start = 109757538;
      Parameters:
      value - The start to set.
      Returns:
      This builder for chaining.
    • clearStart

      public SerialPortOutput.Builder clearStart()
       The starting byte position of the output that was returned.
       This should match the start parameter sent with the request.
       If the serial console output exceeds the size of the buffer (1 MB), older
       output is overwritten by newer content. The output start value will
       indicate the byte position of the output that was returned, which might be
       different than the `start` value that was specified in the request.
       
      optional int64 start = 109757538;
      Returns:
      This builder for chaining.