Class SerialPortOutput.Builder (1.54.0)

public static final class SerialPortOutput.Builder extends GeneratedMessageV3.Builder<SerialPortOutput.Builder> implements SerialPortOutputOrBuilder

An instance serial console output.

Protobuf type google.cloud.compute.v1.SerialPortOutput

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SerialPortOutput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SerialPortOutput.Builder
Overrides

build()

public SerialPortOutput build()
Returns
Type Description
SerialPortOutput

buildPartial()

public SerialPortOutput buildPartial()
Returns
Type Description
SerialPortOutput

clear()

public SerialPortOutput.Builder clear()
Returns
Type Description
SerialPortOutput.Builder
Overrides

clearContents()

public SerialPortOutput.Builder clearContents()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SerialPortOutput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SerialPortOutput.Builder
Overrides

clearKind()

public SerialPortOutput.Builder clearKind()

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.

optional string kind = 3292052;

Returns
Type Description
SerialPortOutput.Builder

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
Type Description
SerialPortOutput.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SerialPortOutput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SerialPortOutput.Builder
Overrides
public SerialPortOutput.Builder clearSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
SerialPortOutput.Builder

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
Type Description
SerialPortOutput.Builder

This builder for chaining.

clone()

public SerialPortOutput.Builder clone()
Returns
Type Description
SerialPortOutput.Builder
Overrides

getContents()

public String getContents()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
Type Description
String

The contents.

getContentsBytes()

public ByteString getContentsBytes()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
Type Description
ByteString

The bytes for contents.

getDefaultInstanceForType()

public SerialPortOutput getDefaultInstanceForType()
Returns
Type Description
SerialPortOutput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

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;

Returns
Type Description
long

The next.

public String getSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

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;

Returns
Type Description
long

The start.

hasContents()

public boolean hasContents()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
Type Description
boolean

Whether the contents field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

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;

Returns
Type Description
boolean

Whether the next field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

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;

Returns
Type Description
boolean

Whether the start field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SerialPortOutput other)

public SerialPortOutput.Builder mergeFrom(SerialPortOutput other)
Parameter
Name Description
other SerialPortOutput
Returns
Type Description
SerialPortOutput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SerialPortOutput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SerialPortOutput.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SerialPortOutput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SerialPortOutput.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SerialPortOutput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SerialPortOutput.Builder
Overrides

setContents(String value)

public SerialPortOutput.Builder setContents(String value)

[Output Only] The contents of the console output.

optional string contents = 506419994;

Parameter
Name Description
value String

The contents to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setContentsBytes(ByteString value)

public SerialPortOutput.Builder setContentsBytes(ByteString value)

[Output Only] The contents of the console output.

optional string contents = 506419994;

Parameter
Name Description
value ByteString

The bytes for contents to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SerialPortOutput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SerialPortOutput.Builder
Overrides

setKind(String value)

public SerialPortOutput.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setKindBytes(ByteString value)

public SerialPortOutput.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setNext(long value)

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;

Parameter
Name Description
value long

The next to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SerialPortOutput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SerialPortOutput.Builder
Overrides
public SerialPortOutput.Builder setSelfLink(String value)

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public SerialPortOutput.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setStart(long value)

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;

Parameter
Name Description
value long

The start to set.

Returns
Type Description
SerialPortOutput.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SerialPortOutput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SerialPortOutput.Builder
Overrides