Class LockBucketRetentionPolicyRequest (2.6.1)

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
Type Description
int

COMMON_REQUEST_PARAMS_FIELD_NUMBER

public static final int COMMON_REQUEST_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

IF_METAGENERATION_MATCH_FIELD_NUMBER

public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LockBucketRetentionPolicyRequest getDefaultInstance()
Returns
Type Description
LockBucketRetentionPolicyRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LockBucketRetentionPolicyRequest.Builder newBuilder()
Returns
Type Description
LockBucketRetentionPolicyRequest.Builder

newBuilder(LockBucketRetentionPolicyRequest prototype)

public static LockBucketRetentionPolicyRequest.Builder newBuilder(LockBucketRetentionPolicyRequest prototype)
Parameter
Name Description
prototype LockBucketRetentionPolicyRequest
Returns
Type Description
LockBucketRetentionPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static LockBucketRetentionPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LockBucketRetentionPolicyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LockBucketRetentionPolicyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LockBucketRetentionPolicyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LockBucketRetentionPolicyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LockBucketRetentionPolicyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LockBucketRetentionPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LockBucketRetentionPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LockBucketRetentionPolicyRequest> parser()
Returns
Type Description
Parser<LockBucketRetentionPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
ByteString

The bytes for bucket.

getCommonRequestParams()

public CommonRequestParams getCommonRequestParams()

A set of parameters common to all Storage API requests.

.google.storage.v2.CommonRequestParams common_request_params = 3;

Returns
Type Description
CommonRequestParams

The commonRequestParams.

getCommonRequestParamsOrBuilder()

public CommonRequestParamsOrBuilder getCommonRequestParamsOrBuilder()

A set of parameters common to all Storage API requests.

.google.storage.v2.CommonRequestParams common_request_params = 3;

Returns
Type Description
CommonRequestParamsOrBuilder

getDefaultInstanceForType()

public LockBucketRetentionPolicyRequest getDefaultInstanceForType()
Returns
Type Description
LockBucketRetentionPolicyRequest

getIfMetagenerationMatch()

public long getIfMetagenerationMatch()

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

int64 if_metageneration_match = 2;

Returns
Type Description
long

The ifMetagenerationMatch.

getParserForType()

public Parser<LockBucketRetentionPolicyRequest> getParserForType()
Returns
Type Description
Parser<LockBucketRetentionPolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasCommonRequestParams()

public boolean hasCommonRequestParams()

A set of parameters common to all Storage API requests.

.google.storage.v2.CommonRequestParams common_request_params = 3;

Returns
Type Description
boolean

Whether the commonRequestParams field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LockBucketRetentionPolicyRequest.Builder newBuilderForType()
Returns
Type Description
LockBucketRetentionPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LockBucketRetentionPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LockBucketRetentionPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LockBucketRetentionPolicyRequest.Builder toBuilder()
Returns
Type Description
LockBucketRetentionPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException