Class UpdateShareRequest.Builder (1.30.0)

public static final class UpdateShareRequest.Builder extends GeneratedMessageV3.Builder<UpdateShareRequest.Builder> implements UpdateShareRequestOrBuilder

UpdateShareRequest updates the settings of a share.

Protobuf type google.cloud.filestore.v1beta1.UpdateShareRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateShareRequest build()
Returns
TypeDescription
UpdateShareRequest

buildPartial()

public UpdateShareRequest buildPartial()
Returns
TypeDescription
UpdateShareRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearShare()

public UpdateShareRequest.Builder clearShare()

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateShareRequest.Builder

clearUpdateMask()

public UpdateShareRequest.Builder clearUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Returns
TypeDescription
UpdateShareRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateShareRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateShareRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getShare()

public Share getShare()

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Share

The share.

getShareBuilder()

public Share.Builder getShareBuilder()

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Share.Builder

getShareOrBuilder()

public ShareOrBuilder getShareOrBuilder()

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ShareOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Returns
TypeDescription
FieldMaskOrBuilder

hasShare()

public boolean hasShare()

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the share field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateShareRequest other)

public UpdateShareRequest.Builder mergeFrom(UpdateShareRequest other)
Parameter
NameDescription
otherUpdateShareRequest
Returns
TypeDescription
UpdateShareRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeShare(Share value)

public UpdateShareRequest.Builder mergeShare(Share value)

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueShare
Returns
TypeDescription
UpdateShareRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateShareRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateShareRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setShare(Share value)

public UpdateShareRequest.Builder setShare(Share value)

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueShare
Returns
TypeDescription
UpdateShareRequest.Builder

setShare(Share.Builder builderForValue)

public UpdateShareRequest.Builder setShare(Share.Builder builderForValue)

Required. A share resource. Only fields specified in update_mask are updated.

.google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueShare.Builder
Returns
TypeDescription
UpdateShareRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateShareRequest.Builder setUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateShareRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateShareRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields:

  • "description"
  • "capacity_gb"
  • "labels"
  • "nfs_export_options"

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateShareRequest.Builder