Class 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.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
    implements SerialPortOutputOrBuilder
     An instance serial console output.
     
    Protobuf type google.cloud.compute.v1.SerialPortOutput
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SerialPortOutput.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
      • setField

        public SerialPortOutput.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
      • clearField

        public SerialPortOutput.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
      • clearOneof

        public SerialPortOutput.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
      • setRepeatedField

        public SerialPortOutput.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
      • addRepeatedField

        public SerialPortOutput.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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] Type of the resource. Always compute#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] Type of the resource. Always compute#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] Type of the resource. Always compute#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] Type of the resource. Always compute#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] Type of the resource. Always compute#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] Type of the resource. Always compute#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] 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] 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] 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] 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] 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] 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.
      • setUnknownFields

        public final SerialPortOutput.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>
      • mergeUnknownFields

        public final SerialPortOutput.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SerialPortOutput.Builder>