Class SerialPortOutput.Builder (1.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SerialPortOutput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SerialPortOutput.Builder
Overrides

build()

public SerialPortOutput build()
Returns
TypeDescription
SerialPortOutput

buildPartial()

public SerialPortOutput buildPartial()
Returns
TypeDescription
SerialPortOutput

clear()

public SerialPortOutput.Builder clear()
Returns
TypeDescription
SerialPortOutput.Builder
Overrides

clearContents()

public SerialPortOutput.Builder clearContents()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
TypeDescription
SerialPortOutput.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SerialPortOutput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SerialPortOutput.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SerialPortOutput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SerialPortOutput.Builder
Overrides
public SerialPortOutput.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
SerialPortOutput.Builder

This builder for chaining.

clone()

public SerialPortOutput.Builder clone()
Returns
TypeDescription
SerialPortOutput.Builder
Overrides

getContents()

public String getContents()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
TypeDescription
String

The contents.

getContentsBytes()

public ByteString getContentsBytes()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
TypeDescription
ByteString

The bytes for contents.

getDefaultInstanceForType()

public SerialPortOutput getDefaultInstanceForType()
Returns
TypeDescription
SerialPortOutput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public String getKind()

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

optional string kind = 3292052;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The next.

public String getSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
long

The start.

hasContents()

public boolean hasContents()

[Output Only] The contents of the console output.

optional string contents = 506419994;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the next field is set.

public boolean hasSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the start field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SerialPortOutput other)

public SerialPortOutput.Builder mergeFrom(SerialPortOutput other)
Parameter
NameDescription
otherSerialPortOutput
Returns
TypeDescription
SerialPortOutput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SerialPortOutput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SerialPortOutput.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SerialPortOutput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SerialPortOutput.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SerialPortOutput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The contents to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for contents to set.

Returns
TypeDescription
SerialPortOutput.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SerialPortOutput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
valuelong

The next to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SerialPortOutput.Builder
Overrides
public SerialPortOutput.Builder setSelfLink(String value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
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
NameDescription
valuelong

The start to set.

Returns
TypeDescription
SerialPortOutput.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SerialPortOutput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SerialPortOutput.Builder
Overrides