Class CreateWorkspaceRequest.Builder (0.84.0)

public static final class CreateWorkspaceRequest.Builder extends GeneratedMessage.Builder<CreateWorkspaceRequest.Builder> implements CreateWorkspaceRequestOrBuilder

CreateWorkspace request message.

Protobuf type google.cloud.dataform.v1.CreateWorkspaceRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateWorkspaceRequest build()
Returns
Type Description
CreateWorkspaceRequest

buildPartial()

public CreateWorkspaceRequest buildPartial()
Returns
Type Description
CreateWorkspaceRequest

clear()

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

clearParent()

public CreateWorkspaceRequest.Builder clearParent()

Required. The repository in which to create the workspace. Must be in the format projects/*/locations/*/repositories/*.

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

Returns
Type Description
CreateWorkspaceRequest.Builder

This builder for chaining.

clearWorkspace()

public CreateWorkspaceRequest.Builder clearWorkspace()

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateWorkspaceRequest.Builder

clearWorkspaceId()

public CreateWorkspaceRequest.Builder clearWorkspaceId()

Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.

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

Returns
Type Description
CreateWorkspaceRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateWorkspaceRequest getDefaultInstanceForType()
Returns
Type Description
CreateWorkspaceRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The repository in which to create the workspace. Must be in the format projects/*/locations/*/repositories/*.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The repository in which to create the workspace. Must be in the format projects/*/locations/*/repositories/*.

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

Returns
Type Description
ByteString

The bytes for parent.

getWorkspace()

public Workspace getWorkspace()

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workspace

The workspace.

getWorkspaceBuilder()

public Workspace.Builder getWorkspaceBuilder()

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workspace.Builder

getWorkspaceId()

public String getWorkspaceId()

Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.

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

Returns
Type Description
String

The workspaceId.

getWorkspaceIdBytes()

public ByteString getWorkspaceIdBytes()

Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.

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

Returns
Type Description
ByteString

The bytes for workspaceId.

getWorkspaceOrBuilder()

public WorkspaceOrBuilder getWorkspaceOrBuilder()

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkspaceOrBuilder

hasWorkspace()

public boolean hasWorkspace()

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workspace field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateWorkspaceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeWorkspace(Workspace value)

public CreateWorkspaceRequest.Builder mergeWorkspace(Workspace value)

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workspace
Returns
Type Description
CreateWorkspaceRequest.Builder

setParent(String value)

public CreateWorkspaceRequest.Builder setParent(String value)

Required. The repository in which to create the workspace. Must be in the format projects/*/locations/*/repositories/*.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateWorkspaceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWorkspaceRequest.Builder setParentBytes(ByteString value)

Required. The repository in which to create the workspace. Must be in the format projects/*/locations/*/repositories/*.

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
CreateWorkspaceRequest.Builder

This builder for chaining.

setWorkspace(Workspace value)

public CreateWorkspaceRequest.Builder setWorkspace(Workspace value)

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workspace
Returns
Type Description
CreateWorkspaceRequest.Builder

setWorkspace(Workspace.Builder builderForValue)

public CreateWorkspaceRequest.Builder setWorkspace(Workspace.Builder builderForValue)

Required. The workspace to create.

.google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Workspace.Builder
Returns
Type Description
CreateWorkspaceRequest.Builder

setWorkspaceId(String value)

public CreateWorkspaceRequest.Builder setWorkspaceId(String value)

Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.

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

Parameter
Name Description
value String

The workspaceId to set.

Returns
Type Description
CreateWorkspaceRequest.Builder

This builder for chaining.

setWorkspaceIdBytes(ByteString value)

public CreateWorkspaceRequest.Builder setWorkspaceIdBytes(ByteString value)

Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.

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

Parameter
Name Description
value ByteString

The bytes for workspaceId to set.

Returns
Type Description
CreateWorkspaceRequest.Builder

This builder for chaining.