Class CreateWorkspaceRequest.Builder (0.21.0)

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

CreateWorkspace request message.

Protobuf type google.cloud.dataform.v1beta1.CreateWorkspaceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkspaceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.v1beta1.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.

clone()

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

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.v1beta1.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.v1beta1.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.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkspaceOrBuilder

hasWorkspace()

public boolean hasWorkspace()

Required. The workspace to create.

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

Returns
Type Description
boolean

Whether the workspace field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkspace(Workspace value)

public CreateWorkspaceRequest.Builder mergeWorkspace(Workspace value)

Required. The workspace to create.

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

Parameter
Name Description
value Workspace
Returns
Type Description
CreateWorkspaceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkspace(Workspace value)

public CreateWorkspaceRequest.Builder setWorkspace(Workspace value)

Required. The workspace to create.

.google.cloud.dataform.v1beta1.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.v1beta1.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.