Class LockBucketRetentionPolicyRequest (2.22.3)

public final class LockBucketRetentionPolicyRequest extends GeneratedMessageV3 implements LockBucketRetentionPolicyRequestOrBuilder

Request message for LockBucketRetentionPolicyRequest.

Protobuf type google.storage.v2.LockBucketRetentionPolicyRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > LockBucketRetentionPolicyRequest

Static Fields

BUCKET_FIELD_NUMBER

public static final int BUCKET_FIELD_NUMBER
Field Value
TypeDescription
int

IF_METAGENERATION_MATCH_FIELD_NUMBER

public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LockBucketRetentionPolicyRequest getDefaultInstance()
Returns
TypeDescription
LockBucketRetentionPolicyRequest

getDescriptor()

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

newBuilder()

public static LockBucketRetentionPolicyRequest.Builder newBuilder()
Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

newBuilder(LockBucketRetentionPolicyRequest prototype)

public static LockBucketRetentionPolicyRequest.Builder newBuilder(LockBucketRetentionPolicyRequest prototype)
Parameter
NameDescription
prototypeLockBucketRetentionPolicyRequest
Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static LockBucketRetentionPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LockBucketRetentionPolicyRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LockBucketRetentionPolicyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LockBucketRetentionPolicyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LockBucketRetentionPolicyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LockBucketRetentionPolicyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LockBucketRetentionPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LockBucketRetentionPolicyRequest> parser()
Returns
TypeDescription
Parser<LockBucketRetentionPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<LockBucketRetentionPolicyRequest> getParserForType()
Returns
TypeDescription
Parser<LockBucketRetentionPolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LockBucketRetentionPolicyRequest.Builder newBuilderForType()
Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LockBucketRetentionPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LockBucketRetentionPolicyRequest.Builder toBuilder()
Returns
TypeDescription
LockBucketRetentionPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException