public static final class GetBucketRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder> implements GetBucketRequestOrBuilder
Request message for GetBucket.Protobuf type
google.storage.v2.GetBucketRequest
Modifier and Type | Method and Description |
---|---|
GetBucketRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GetBucketRequest |
build() |
GetBucketRequest |
buildPartial() |
GetBucketRequest.Builder |
clear() |
GetBucketRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GetBucketRequest.Builder |
clearIfMetagenerationMatch()
If set, and if the bucket's current metageneration does not match the
specified value, the request will return an error.
|
GetBucketRequest.Builder |
clearIfMetagenerationNotMatch()
If set, and if the bucket's current metageneration matches the specified
value, the request will return an error.
|
GetBucketRequest.Builder |
clearName()
Required.
|
GetBucketRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GetBucketRequest.Builder |
clearReadMask()
Mask specifying which fields to read.
|
GetBucketRequest.Builder |
clone() |
GetBucketRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIfMetagenerationMatch()
If set, and if the bucket's current metageneration does not match the
specified value, the request will return an error.
|
long |
getIfMetagenerationNotMatch()
If set, and if the bucket's current metageneration matches the specified
value, the request will return an error.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.FieldMask |
getReadMask()
Mask specifying which fields to read.
|
com.google.protobuf.FieldMask.Builder |
getReadMaskBuilder()
Mask specifying which fields to read.
|
com.google.protobuf.FieldMaskOrBuilder |
getReadMaskOrBuilder()
Mask specifying which fields to read.
|
boolean |
hasIfMetagenerationMatch()
If set, and if the bucket's current metageneration does not match the
specified value, the request will return an error.
|
boolean |
hasIfMetagenerationNotMatch()
If set, and if the bucket's current metageneration matches the specified
value, the request will return an error.
|
boolean |
hasReadMask()
Mask specifying which fields to read.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GetBucketRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GetBucketRequest.Builder |
mergeFrom(GetBucketRequest other) |
GetBucketRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
GetBucketRequest.Builder |
mergeReadMask(com.google.protobuf.FieldMask value)
Mask specifying which fields to read.
|
GetBucketRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GetBucketRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GetBucketRequest.Builder |
setIfMetagenerationMatch(long value)
If set, and if the bucket's current metageneration does not match the
specified value, the request will return an error.
|
GetBucketRequest.Builder |
setIfMetagenerationNotMatch(long value)
If set, and if the bucket's current metageneration matches the specified
value, the request will return an error.
|
GetBucketRequest.Builder |
setName(String value)
Required.
|
GetBucketRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
GetBucketRequest.Builder |
setReadMask(com.google.protobuf.FieldMask.Builder builderForValue)
Mask specifying which fields to read.
|
GetBucketRequest.Builder |
setReadMask(com.google.protobuf.FieldMask value)
Mask specifying which fields to read.
|
GetBucketRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GetBucketRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GetBucketRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GetBucketRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GetBucketRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder mergeFrom(GetBucketRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public GetBucketRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GetBucketRequest.Builder>
IOException
public String getName()
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName
in interface GetBucketRequestOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes
in interface GetBucketRequestOrBuilder
public GetBucketRequest.Builder setName(String value)
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The name to set.public GetBucketRequest.Builder clearName()
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public GetBucketRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. Name of a bucket.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for name to set.public boolean hasIfMetagenerationMatch()
If set, and if the bucket's current metageneration does not match the specified value, the request will return an error.
optional int64 if_metageneration_match = 2;
hasIfMetagenerationMatch
in interface GetBucketRequestOrBuilder
public long getIfMetagenerationMatch()
If set, and if the bucket's current metageneration does not match the specified value, the request will return an error.
optional int64 if_metageneration_match = 2;
getIfMetagenerationMatch
in interface GetBucketRequestOrBuilder
public GetBucketRequest.Builder setIfMetagenerationMatch(long value)
If set, and if the bucket's current metageneration does not match the specified value, the request will return an error.
optional int64 if_metageneration_match = 2;
value
- The ifMetagenerationMatch to set.public GetBucketRequest.Builder clearIfMetagenerationMatch()
If set, and if the bucket's current metageneration does not match the specified value, the request will return an error.
optional int64 if_metageneration_match = 2;
public boolean hasIfMetagenerationNotMatch()
If set, and if the bucket's current metageneration matches the specified value, the request will return an error.
optional int64 if_metageneration_not_match = 3;
hasIfMetagenerationNotMatch
in interface GetBucketRequestOrBuilder
public long getIfMetagenerationNotMatch()
If set, and if the bucket's current metageneration matches the specified value, the request will return an error.
optional int64 if_metageneration_not_match = 3;
getIfMetagenerationNotMatch
in interface GetBucketRequestOrBuilder
public GetBucketRequest.Builder setIfMetagenerationNotMatch(long value)
If set, and if the bucket's current metageneration matches the specified value, the request will return an error.
optional int64 if_metageneration_not_match = 3;
value
- The ifMetagenerationNotMatch to set.public GetBucketRequest.Builder clearIfMetagenerationNotMatch()
If set, and if the bucket's current metageneration matches the specified value, the request will return an error.
optional int64 if_metageneration_not_match = 3;
public boolean hasReadMask()
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
hasReadMask
in interface GetBucketRequestOrBuilder
public com.google.protobuf.FieldMask getReadMask()
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
getReadMask
in interface GetBucketRequestOrBuilder
public GetBucketRequest.Builder setReadMask(com.google.protobuf.FieldMask value)
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
public GetBucketRequest.Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue)
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
public GetBucketRequest.Builder mergeReadMask(com.google.protobuf.FieldMask value)
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
public GetBucketRequest.Builder clearReadMask()
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
public com.google.protobuf.FieldMask.Builder getReadMaskBuilder()
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder()
Mask specifying which fields to read. A "*" field may be used to indicate all fields. If no mask is specified, will default to all fields.
optional .google.protobuf.FieldMask read_mask = 5;
getReadMaskOrBuilder
in interface GetBucketRequestOrBuilder
public final GetBucketRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
public final GetBucketRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GetBucketRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.