5.0.0 (latest) 4.16.0 4.15.0 4.14.0 4.13.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.7.0 3.6.0 3.5.0 3.4.0

    public sealed class ModifyBucketLabelsOptions

Reference documentation and code samples for the Google Cloud Storage v1 API class ModifyBucketLabelsOptions.

Options for operations which modify bucket labels.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ModifyBucketLabelsOptions

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Storage.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1)

## Assembly

Google.Cloud.Storage.V1.dll

## Properties

### IfMetagenerationMatch

    public long? IfMetagenerationMatch { get; set; }

Precondition for modification: the labels are only modified if its current
meta-generation matches the given value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### Retries

    public int? Retries { get; set; }

The number of times to retry the modification if the bucket's metageneration changes
in the read/modify/write cycle. If this property is not set, a suitable default is used.
The value must not be negative.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

**Remarks** Modifying bucket labels involves reading the bucket metadata in one request,
then sending another request with the new labels, including a metageneration check
to ensure that the bucket hasn't changed between the two requests. If the metageneration
*has* changed, the overall operation can be retried from the start. This property indicates
the number of retries, so it has a minimum value of 0.