Class LockBucketRetentionPolicyRequest.Builder (2.20.0)

public static final class LockBucketRetentionPolicyRequest.Builder extends GeneratedMessageV3.Builder<LockBucketRetentionPolicyRequest.Builder> implements LockBucketRetentionPolicyRequestOrBuilder

Request message for LockBucketRetentionPolicyRequest.

Protobuf type google.storage.v2.LockBucketRetentionPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LockBucketRetentionPolicyRequest build()
Returns
TypeDescription
LockBucketRetentionPolicyRequest

buildPartial()

public LockBucketRetentionPolicyRequest buildPartial()
Returns
TypeDescription
LockBucketRetentionPolicyRequest

clear()

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

clearBucket()

public LockBucketRetentionPolicyRequest.Builder clearBucket()

Required. Name of a bucket.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIfMetagenerationMatch()

public LockBucketRetentionPolicyRequest.Builder clearIfMetagenerationMatch()

Required. Makes the operation conditional on whether bucket's current metageneration matches the given value. Must be positive.

int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBucket()

public String getBucket()

Required. Name of a bucket.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. Name of a bucket.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public LockBucketRetentionPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
LockBucketRetentionPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIfMetagenerationMatch()

public long getIfMetagenerationMatch()

Required. Makes the operation conditional on whether bucket's current metageneration matches the given value. Must be positive.

int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The ifMetagenerationMatch.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(LockBucketRetentionPolicyRequest other)

public LockBucketRetentionPolicyRequest.Builder mergeFrom(LockBucketRetentionPolicyRequest other)
Parameter
NameDescription
otherLockBucketRetentionPolicyRequest
Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBucket(String value)

public LockBucketRetentionPolicyRequest.Builder setBucket(String value)

Required. Name of a bucket.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public LockBucketRetentionPolicyRequest.Builder setBucketBytes(ByteString value)

Required. Name of a bucket.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIfMetagenerationMatch(long value)

public LockBucketRetentionPolicyRequest.Builder setIfMetagenerationMatch(long value)

Required. Makes the operation conditional on whether bucket's current metageneration matches the given value. Must be positive.

int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuelong

The ifMetagenerationMatch to set.

Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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