Class UpdateSnapshotRequest.Builder (0.24.0)

public static final class UpdateSnapshotRequest.Builder extends GeneratedMessageV3.Builder<UpdateSnapshotRequest.Builder> implements UpdateSnapshotRequestOrBuilder

UpdateSnapshotRequest updates description and/or labels for a snapshot.

Protobuf type google.cloud.netapp.v1.UpdateSnapshotRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSnapshotRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

build()

public UpdateSnapshotRequest build()
Returns
Type Description
UpdateSnapshotRequest

buildPartial()

public UpdateSnapshotRequest buildPartial()
Returns
Type Description
UpdateSnapshotRequest

clear()

public UpdateSnapshotRequest.Builder clear()
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

clearSnapshot()

public UpdateSnapshotRequest.Builder clearSnapshot()

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSnapshotRequest.Builder

clearUpdateMask()

public UpdateSnapshotRequest.Builder clearUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSnapshotRequest.Builder

clone()

public UpdateSnapshotRequest.Builder clone()
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSnapshotRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSnapshotRequest

getDescriptorForType()

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

getSnapshot()

public Snapshot getSnapshot()

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Snapshot

The snapshot.

getSnapshotBuilder()

public Snapshot.Builder getSnapshotBuilder()

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Snapshot.Builder

getSnapshotOrBuilder()

public SnapshotOrBuilder getSnapshotOrBuilder()

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SnapshotOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasSnapshot()

public boolean hasSnapshot()

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the snapshot field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSnapshotRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSnapshot(Snapshot value)

public UpdateSnapshotRequest.Builder mergeSnapshot(Snapshot value)

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Snapshot
Returns
Type Description
UpdateSnapshotRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSnapshotRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateSnapshotRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSnapshotRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

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

public UpdateSnapshotRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

setSnapshot(Snapshot value)

public UpdateSnapshotRequest.Builder setSnapshot(Snapshot value)

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Snapshot
Returns
Type Description
UpdateSnapshotRequest.Builder

setSnapshot(Snapshot.Builder builderForValue)

public UpdateSnapshotRequest.Builder setSnapshot(Snapshot.Builder builderForValue)

Required. A snapshot resource

.google.cloud.netapp.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Snapshot.Builder
Returns
Type Description
UpdateSnapshotRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateSnapshotRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateSnapshotRequest.Builder setUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSnapshotRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSnapshotRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask of fields to update. At least one path must be supplied in this field.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSnapshotRequest.Builder