Class CreateManagedFolderRequest.Builder (2.44.1)

public static final class CreateManagedFolderRequest.Builder extends GeneratedMessageV3.Builder<CreateManagedFolderRequest.Builder> implements CreateManagedFolderRequestOrBuilder

Request message for CreateManagedFolder.

Protobuf type google.storage.control.v2.CreateManagedFolderRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateManagedFolderRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

build()

public CreateManagedFolderRequest build()
Returns
Type Description
CreateManagedFolderRequest

buildPartial()

public CreateManagedFolderRequest buildPartial()
Returns
Type Description
CreateManagedFolderRequest

clear()

public CreateManagedFolderRequest.Builder clear()
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateManagedFolderRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

clearManagedFolder()

public CreateManagedFolderRequest.Builder clearManagedFolder()

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateManagedFolderRequest.Builder

clearManagedFolderId()

public CreateManagedFolderRequest.Builder clearManagedFolderId()

Required. The name of the managed folder. It uses a single / as delimiter and leading and trailing / are allowed.

string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateManagedFolderRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

clearParent()

public CreateManagedFolderRequest.Builder clearParent()

Required. Name of the bucket this managed folder belongs to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

clearRequestId()

public CreateManagedFolderRequest.Builder clearRequestId()

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

clone()

public CreateManagedFolderRequest.Builder clone()
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateManagedFolderRequest getDefaultInstanceForType()
Returns
Type Description
CreateManagedFolderRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getManagedFolder()

public ManagedFolder getManagedFolder()

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ManagedFolder

The managedFolder.

getManagedFolderBuilder()

public ManagedFolder.Builder getManagedFolderBuilder()

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ManagedFolder.Builder

getManagedFolderId()

public String getManagedFolderId()

Required. The name of the managed folder. It uses a single / as delimiter and leading and trailing / are allowed.

string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The managedFolderId.

getManagedFolderIdBytes()

public ByteString getManagedFolderIdBytes()

Required. The name of the managed folder. It uses a single / as delimiter and leading and trailing / are allowed.

string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for managedFolderId.

getManagedFolderOrBuilder()

public ManagedFolderOrBuilder getManagedFolderOrBuilder()

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ManagedFolderOrBuilder

getParent()

public String getParent()

Required. Name of the bucket this managed folder belongs to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the bucket this managed folder belongs to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasManagedFolder()

public boolean hasManagedFolder()

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the managedFolder field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateManagedFolderRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateManagedFolderRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

mergeFrom(CreateManagedFolderRequest other)

public CreateManagedFolderRequest.Builder mergeFrom(CreateManagedFolderRequest other)
Parameter
Name Description
other CreateManagedFolderRequest
Returns
Type Description
CreateManagedFolderRequest.Builder

mergeManagedFolder(ManagedFolder value)

public CreateManagedFolderRequest.Builder mergeManagedFolder(ManagedFolder value)

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ManagedFolder
Returns
Type Description
CreateManagedFolderRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateManagedFolderRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateManagedFolderRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

setManagedFolder(ManagedFolder value)

public CreateManagedFolderRequest.Builder setManagedFolder(ManagedFolder value)

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ManagedFolder
Returns
Type Description
CreateManagedFolderRequest.Builder

setManagedFolder(ManagedFolder.Builder builderForValue)

public CreateManagedFolderRequest.Builder setManagedFolder(ManagedFolder.Builder builderForValue)

Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the parent and managed_folder_id fields. Populating these fields in managed_folder will result in an error.

.google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ManagedFolder.Builder
Returns
Type Description
CreateManagedFolderRequest.Builder

setManagedFolderId(String value)

public CreateManagedFolderRequest.Builder setManagedFolderId(String value)

Required. The name of the managed folder. It uses a single / as delimiter and leading and trailing / are allowed.

string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The managedFolderId to set.

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

setManagedFolderIdBytes(ByteString value)

public CreateManagedFolderRequest.Builder setManagedFolderIdBytes(ByteString value)

Required. The name of the managed folder. It uses a single / as delimiter and leading and trailing / are allowed.

string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for managedFolderId to set.

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

setParent(String value)

public CreateManagedFolderRequest.Builder setParent(String value)

Required. Name of the bucket this managed folder belongs to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateManagedFolderRequest.Builder setParentBytes(ByteString value)

Required. Name of the bucket this managed folder belongs to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

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

public CreateManagedFolderRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides

setRequestId(String value)

public CreateManagedFolderRequest.Builder setRequestId(String value)

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateManagedFolderRequest.Builder setRequestIdBytes(ByteString value)

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateManagedFolderRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateManagedFolderRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateManagedFolderRequest.Builder
Overrides