Class ReservationsResizeRequest.Builder (1.11.0)

public static final class ReservationsResizeRequest.Builder extends GeneratedMessageV3.Builder<ReservationsResizeRequest.Builder> implements ReservationsResizeRequestOrBuilder

Protobuf type google.cloud.compute.v1.ReservationsResizeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReservationsResizeRequest build()
Returns
TypeDescription
ReservationsResizeRequest

buildPartial()

public ReservationsResizeRequest buildPartial()
Returns
TypeDescription
ReservationsResizeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSpecificSkuCount()

public ReservationsResizeRequest.Builder clearSpecificSkuCount()

Number of allocated resources can be resized with minimum = 1 and maximum = 1000.

optional int64 specific_sku_count = 13890720;

Returns
TypeDescription
ReservationsResizeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReservationsResizeRequest getDefaultInstanceForType()
Returns
TypeDescription
ReservationsResizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSpecificSkuCount()

public long getSpecificSkuCount()

Number of allocated resources can be resized with minimum = 1 and maximum = 1000.

optional int64 specific_sku_count = 13890720;

Returns
TypeDescription
long

The specificSkuCount.

hasSpecificSkuCount()

public boolean hasSpecificSkuCount()

Number of allocated resources can be resized with minimum = 1 and maximum = 1000.

optional int64 specific_sku_count = 13890720;

Returns
TypeDescription
boolean

Whether the specificSkuCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReservationsResizeRequest other)

public ReservationsResizeRequest.Builder mergeFrom(ReservationsResizeRequest other)
Parameter
NameDescription
otherReservationsResizeRequest
Returns
TypeDescription
ReservationsResizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ReservationsResizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReservationsResizeRequest.Builder
Overrides

setSpecificSkuCount(long value)

public ReservationsResizeRequest.Builder setSpecificSkuCount(long value)

Number of allocated resources can be resized with minimum = 1 and maximum = 1000.

optional int64 specific_sku_count = 13890720;

Parameter
NameDescription
valuelong

The specificSkuCount to set.

Returns
TypeDescription
ReservationsResizeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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