public final class LockBucketRetentionPolicyRequest extends GeneratedMessageV3 implements LockBucketRetentionPolicyRequestOrBuilder
Request message for LockBucketRetentionPolicyRequest.
Protobuf type google.storage.v2.LockBucketRetentionPolicyRequest
Static Fields
BUCKET_FIELD_NUMBER
public static final int BUCKET_FIELD_NUMBER
Field Value
public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LockBucketRetentionPolicyRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LockBucketRetentionPolicyRequest.Builder newBuilder()
Returns
newBuilder(LockBucketRetentionPolicyRequest prototype)
public static LockBucketRetentionPolicyRequest.Builder newBuilder(LockBucketRetentionPolicyRequest prototype)
Parameter
Returns
public static LockBucketRetentionPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LockBucketRetentionPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LockBucketRetentionPolicyRequest parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LockBucketRetentionPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LockBucketRetentionPolicyRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LockBucketRetentionPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LockBucketRetentionPolicyRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LockBucketRetentionPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LockBucketRetentionPolicyRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LockBucketRetentionPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LockBucketRetentionPolicyRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LockBucketRetentionPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LockBucketRetentionPolicyRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBucket()
public String getBucket()
Required. Name of a bucket.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type |
Description |
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
getDefaultInstanceForType()
public LockBucketRetentionPolicyRequest getDefaultInstanceForType()
Returns
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
Type |
Description |
long |
The ifMetagenerationMatch.
|
getParserForType()
public Parser<LockBucketRetentionPolicyRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LockBucketRetentionPolicyRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LockBucketRetentionPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LockBucketRetentionPolicyRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions