Class WorkstationConfig.PortRange.Builder (0.81.0)

public static final class WorkstationConfig.PortRange.Builder extends GeneratedMessage.Builder<WorkstationConfig.PortRange.Builder> implements WorkstationConfig.PortRangeOrBuilder

A PortRange defines a range of ports. Both first and last are inclusive. To specify a single port, both first and last should be the same.

Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.PortRange

Static Methods

getDescriptor()

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

Methods

build()

public WorkstationConfig.PortRange build()
Returns
Type Description
WorkstationConfig.PortRange

buildPartial()

public WorkstationConfig.PortRange buildPartial()
Returns
Type Description
WorkstationConfig.PortRange

clear()

public WorkstationConfig.PortRange.Builder clear()
Returns
Type Description
WorkstationConfig.PortRange.Builder
Overrides

clearFirst()

public WorkstationConfig.PortRange.Builder clearFirst()

Required. Starting port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

int32 first = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkstationConfig.PortRange.Builder

This builder for chaining.

clearLast()

public WorkstationConfig.PortRange.Builder clearLast()

Required. Ending port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

int32 last = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkstationConfig.PortRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public WorkstationConfig.PortRange getDefaultInstanceForType()
Returns
Type Description
WorkstationConfig.PortRange

getDescriptorForType()

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

getFirst()

public int getFirst()

Required. Starting port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

int32 first = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The first.

getLast()

public int getLast()

Required. Ending port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

int32 last = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The last.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkstationConfig.PortRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFirst(int value)

public WorkstationConfig.PortRange.Builder setFirst(int value)

Required. Starting port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

int32 first = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The first to set.

Returns
Type Description
WorkstationConfig.PortRange.Builder

This builder for chaining.

setLast(int value)

public WorkstationConfig.PortRange.Builder setLast(int value)

Required. Ending port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

int32 last = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The last to set.

Returns
Type Description
WorkstationConfig.PortRange.Builder

This builder for chaining.