Class ReservationsResizeRequest.Builder (1.22.0)

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

Protobuf type google.cloud.compute.v1.ReservationsResizeRequest

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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 Overrides

build()

public ReservationsResizeRequest build()
Returns

buildPartial()

public ReservationsResizeRequest buildPartial()
Returns

clear()

public ReservationsResizeRequest.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ReservationsResizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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 Overrides

getDefaultInstanceForType()

public ReservationsResizeRequest getDefaultInstanceForType()
Returns

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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