Class GetSerialPortOutputInstanceRequest.Builder (1.56.0)

public static final class GetSerialPortOutputInstanceRequest.Builder extends GeneratedMessageV3.Builder<GetSerialPortOutputInstanceRequest.Builder> implements GetSerialPortOutputInstanceRequestOrBuilder

A request message for Instances.GetSerialPortOutput. See the method description for details.

Protobuf type google.cloud.compute.v1.GetSerialPortOutputInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSerialPortOutputInstanceRequest build()
Returns
Type Description
GetSerialPortOutputInstanceRequest

buildPartial()

public GetSerialPortOutputInstanceRequest buildPartial()
Returns
Type Description
GetSerialPortOutputInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public GetSerialPortOutputInstanceRequest.Builder clearInstance()

Name of the instance for this request.

string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public GetSerialPortOutputInstanceRequest.Builder clearPort()

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

clearProject()

public GetSerialPortOutputInstanceRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

clearStart()

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

optional int64 start = 109757538;

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

clearZone()

public GetSerialPortOutputInstanceRequest.Builder clearZone()

The name of the zone for this request.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetSerialPortOutputInstanceRequest getDefaultInstanceForType()
Returns
Type Description
GetSerialPortOutputInstanceRequest

getDescriptorForType()

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

getInstance()

public String getInstance()

Name of the instance for this request.

string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Name of the instance for this request.

string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instance.

getPort()

public int getPort()

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

Returns
Type Description
int

The port.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

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.

optional int64 start = 109757538;

Returns
Type Description
long

The start.

getZone()

public String getZone()

The name of the zone for this request.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The name of the zone for this request.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for zone.

hasPort()

public boolean hasPort()

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

Returns
Type Description
boolean

Whether the port field is set.

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.

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(GetSerialPortOutputInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public GetSerialPortOutputInstanceRequest.Builder setInstance(String value)

Name of the instance for this request.

string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public GetSerialPortOutputInstanceRequest.Builder setInstanceBytes(ByteString value)

Name of the instance for this request.

string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setPort(int value)

public GetSerialPortOutputInstanceRequest.Builder setPort(int value)

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

Parameter
Name Description
value int

The port to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setProject(String value)

public GetSerialPortOutputInstanceRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetSerialPortOutputInstanceRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

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

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

setStart(long value)

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.

optional int64 start = 109757538;

Parameter
Name Description
value long

The start to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public GetSerialPortOutputInstanceRequest.Builder setZone(String value)

The name of the zone for this request.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public GetSerialPortOutputInstanceRequest.Builder setZoneBytes(ByteString value)

The name of the zone for this request.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.