public static final class UpdateVolumeRequest.Builder extends GeneratedMessageV3.Builder<UpdateVolumeRequest.Builder> implements UpdateVolumeRequestOrBuilder
Message for updating a volume.
Protobuf type google.cloud.baremetalsolution.v2.UpdateVolumeRequest
Inherited Members
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public UpdateVolumeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UpdateVolumeRequest build()
Returns
public UpdateVolumeRequest buildPartial()
Returns
public UpdateVolumeRequest.Builder clear()
Returns
Overrides
public UpdateVolumeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public UpdateVolumeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public UpdateVolumeRequest.Builder clearUpdateMask()
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Returns
public UpdateVolumeRequest.Builder clearVolume()
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public UpdateVolumeRequest.Builder clone()
Returns
Overrides
public UpdateVolumeRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public FieldMask getUpdateMask()
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Returns
public FieldMask.Builder getUpdateMaskBuilder()
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Returns
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Returns
public Volume getVolume()
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
Volume | The volume.
|
public Volume.Builder getVolumeBuilder()
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public VolumeOrBuilder getVolumeOrBuilder()
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public boolean hasUpdateMask()
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Returns
Type | Description |
boolean | Whether the updateMask field is set.
|
public boolean hasVolume()
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the volume field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public UpdateVolumeRequest.Builder mergeFrom(UpdateVolumeRequest other)
Parameter
Returns
public UpdateVolumeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public UpdateVolumeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final UpdateVolumeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public UpdateVolumeRequest.Builder mergeUpdateMask(FieldMask value)
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Parameter
Returns
public UpdateVolumeRequest.Builder mergeVolume(Volume value)
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public UpdateVolumeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UpdateVolumeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final UpdateVolumeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public UpdateVolumeRequest.Builder setUpdateMask(FieldMask value)
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Parameter
Returns
public UpdateVolumeRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels'
'snapshot_enabled'
'snapshot_reservation_detail.reserved_space_percent'
.google.protobuf.FieldMask update_mask = 2;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public UpdateVolumeRequest.Builder setVolume(Volume value)
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public UpdateVolumeRequest.Builder setVolume(Volume.Builder builderForValue)
Required. The volume to update.
The name
field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
.google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns