Class StorageBucketInfo.Builder (1.40.0)

public static final class StorageBucketInfo.Builder extends GeneratedMessageV3.Builder<StorageBucketInfo.Builder> implements StorageBucketInfoOrBuilder

For display only. Metadata associated with Storage Bucket.

Protobuf type google.cloud.networkmanagement.v1beta1.StorageBucketInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageBucketInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

build()

public StorageBucketInfo build()
Returns
TypeDescription
StorageBucketInfo

buildPartial()

public StorageBucketInfo buildPartial()
Returns
TypeDescription
StorageBucketInfo

clear()

public StorageBucketInfo.Builder clear()
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

clearBucket()

public StorageBucketInfo.Builder clearBucket()

Cloud Storage Bucket name.

string bucket = 1;

Returns
TypeDescription
StorageBucketInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StorageBucketInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageBucketInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

clone()

public StorageBucketInfo.Builder clone()
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

getBucket()

public String getBucket()

Cloud Storage Bucket name.

string bucket = 1;

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Cloud Storage Bucket name.

string bucket = 1;

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public StorageBucketInfo getDefaultInstanceForType()
Returns
TypeDescription
StorageBucketInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StorageBucketInfo other)

public StorageBucketInfo.Builder mergeFrom(StorageBucketInfo other)
Parameter
NameDescription
otherStorageBucketInfo
Returns
TypeDescription
StorageBucketInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StorageBucketInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StorageBucketInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageBucketInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

setBucket(String value)

public StorageBucketInfo.Builder setBucket(String value)

Cloud Storage Bucket name.

string bucket = 1;

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
StorageBucketInfo.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public StorageBucketInfo.Builder setBucketBytes(ByteString value)

Cloud Storage Bucket name.

string bucket = 1;

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
StorageBucketInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StorageBucketInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StorageBucketInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageBucketInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageBucketInfo.Builder
Overrides