Class GetSerialPortOutputInstanceRequest.Builder (1.46.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSerialPortOutputInstanceRequest build()
Returns
TypeDescription
GetSerialPortOutputInstanceRequest

buildPartial()

public GetSerialPortOutputInstanceRequest buildPartial()
Returns
TypeDescription
GetSerialPortOutputInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetSerialPortOutputInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetSerialPortOutputInstanceRequest.Builder
Overrides

clearInstance()

public GetSerialPortOutputInstanceRequest.Builder clearInstance()

Name of the instance for this request.

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

Returns
TypeDescription
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public GetSerialPortOutputInstanceRequest.Builder clearPort()

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetSerialPortOutputInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSerialPortOutputInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public String getInstance()

Name of the instance for this request.

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

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Name of the instance for this request.

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

Returns
TypeDescription
ByteString

The bytes for instance.

getPort()

public int getPort()

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

Returns
TypeDescription
int

The port.

getProject()

public String getProject()

Project ID for this request.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

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

The start.

getZone()

public String getZone()

The name of the zone for this request.

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

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The name of the zone for this request.

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

Returns
TypeDescription
ByteString

The bytes for zone.

hasPort()

public boolean hasPort()

Specifies which COM or serial port to retrieve data from.

optional int32 port = 3446913;

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

public GetSerialPortOutputInstanceRequest.Builder mergeFrom(GetSerialPortOutputInstanceRequest other)
Parameter
NameDescription
otherGetSerialPortOutputInstanceRequest
Returns
TypeDescription
GetSerialPortOutputInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetSerialPortOutputInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetSerialPortOutputInstanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The instance to set.

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

The bytes for instance to set.

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

The port to set.

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

The project to set.

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

The bytes for project to set.

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

The start to set.

Returns
TypeDescription
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

The zone to set.

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

The bytes for zone to set.

Returns
TypeDescription
GetSerialPortOutputInstanceRequest.Builder

This builder for chaining.