Package com.google.storage.v2
Class GetBucketRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetBucketRequest.Builder>
com.google.storage.v2.GetBucketRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GetBucketRequestOrBuilder,Cloneable
- Enclosing class:
- GetBucketRequest
public static final class GetBucketRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GetBucketRequest.Builder>
implements GetBucketRequestOrBuilder
Request message for [GetBucket][google.storage.v2.Storage.GetBucket].Protobuf type
google.storage.v2.GetBucketRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If set, only gets the bucket metadata if its metageneration matches this value.If set, and if the bucket's current metageneration matches the specified value, the request returns an error.Required.Mask specifying which fields to read.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongIf set, only gets the bucket metadata if its metageneration matches this value.longIf set, and if the bucket's current metageneration matches the specified value, the request returns an error.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.FieldMaskMask specifying which fields to read.com.google.protobuf.FieldMask.BuilderMask specifying which fields to read.com.google.protobuf.FieldMaskOrBuilderMask specifying which fields to read.booleanIf set, only gets the bucket metadata if its metageneration matches this value.booleanIf set, and if the bucket's current metageneration matches the specified value, the request returns an error.booleanMask specifying which fields to read.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(GetBucketRequest other) mergeReadMask(com.google.protobuf.FieldMask value) Mask specifying which fields to read.setIfMetagenerationMatch(long value) If set, only gets the bucket metadata if its metageneration matches this value.setIfMetagenerationNotMatch(long value) If set, and if the bucket's current metageneration matches the specified value, the request returns an error.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setReadMask(com.google.protobuf.FieldMask value) Mask specifying which fields to read.setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) Mask specifying which fields to read.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GetBucketRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GetBucketRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GetBucketRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GetBucketRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GetBucketRequest.Builder>
-
mergeFrom
public GetBucketRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GetBucketRequest.Builder>- Throws:
IOException
-
getName
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceGetBucketRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceGetBucketRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasIfMetagenerationMatch
public boolean hasIfMetagenerationMatch()If set, only gets the bucket metadata if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Specified by:
hasIfMetagenerationMatchin interfaceGetBucketRequestOrBuilder- Returns:
- Whether the ifMetagenerationMatch field is set.
-
getIfMetagenerationMatch
public long getIfMetagenerationMatch()If set, only gets the bucket metadata if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Specified by:
getIfMetagenerationMatchin interfaceGetBucketRequestOrBuilder- Returns:
- The ifMetagenerationMatch.
-
setIfMetagenerationMatch
If set, only gets the bucket metadata if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Parameters:
value- The ifMetagenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationMatch
If set, only gets the bucket metadata if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Returns:
- This builder for chaining.
-
hasIfMetagenerationNotMatch
public boolean hasIfMetagenerationNotMatch()If set, and if the bucket's current metageneration matches the specified value, the request returns an error.
optional int64 if_metageneration_not_match = 3;- Specified by:
hasIfMetagenerationNotMatchin interfaceGetBucketRequestOrBuilder- Returns:
- Whether the ifMetagenerationNotMatch field is set.
-
getIfMetagenerationNotMatch
public long getIfMetagenerationNotMatch()If set, and if the bucket's current metageneration matches the specified value, the request returns an error.
optional int64 if_metageneration_not_match = 3;- Specified by:
getIfMetagenerationNotMatchin interfaceGetBucketRequestOrBuilder- Returns:
- The ifMetagenerationNotMatch.
-
setIfMetagenerationNotMatch
If set, and if the bucket's current metageneration matches the specified value, the request returns an error.
optional int64 if_metageneration_not_match = 3;- Parameters:
value- The ifMetagenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationNotMatch
If set, and if the bucket's current metageneration matches the specified value, the request returns an error.
optional int64 if_metageneration_not_match = 3;- Returns:
- This builder for chaining.
-
hasReadMask
public boolean hasReadMask()Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5;- Specified by:
hasReadMaskin interfaceGetBucketRequestOrBuilder- Returns:
- Whether the readMask field is set.
-
getReadMask
public com.google.protobuf.FieldMask getReadMask()Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5;- Specified by:
getReadMaskin interfaceGetBucketRequestOrBuilder- Returns:
- The readMask.
-
setReadMask
Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5; -
setReadMask
Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5; -
mergeReadMask
Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5; -
clearReadMask
Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5; -
getReadMaskBuilder
public com.google.protobuf.FieldMask.Builder getReadMaskBuilder()Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5; -
getReadMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder()Mask specifying which fields to read. A `*` field might be used to indicate all fields. If no mask is specified, it defaults to all fields.
optional .google.protobuf.FieldMask read_mask = 5;- Specified by:
getReadMaskOrBuilderin interfaceGetBucketRequestOrBuilder
-