Precondition for modification: the labels are only modified if its current
meta-generation matches the given value.
Property Value
Type
Description
System.Nullable<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
System.Nullable<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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `ModifyBucketLabelsOptions` class provides options for modifying bucket labels within the `Google.Cloud.Storage.V1` namespace, allowing for conditional modifications based on meta-generation."],["Version 4.11.0 is the latest version available for `ModifyBucketLabelsOptions`, with documentation available for versions dating back to 3.4.0."],["The class includes properties like `IfMetagenerationMatch`, which ensures the label modification occurs only if the bucket's current meta-generation matches the provided value."],["`Retries` property handles retry attempts if the bucket's metageneration has changed during the read/modify/write process, with the value needing to be a non-negative number."],["It inherits from the `System.Object` class, including methods such as `ToString()`, `GetHashCode()`, `GetType()`, and `MemberwiseClone()`."]]],[]]