Class MigrationWorkflow.Builder (0.37.0)

public static final class MigrationWorkflow.Builder extends GeneratedMessageV3.Builder<MigrationWorkflow.Builder> implements MigrationWorkflowOrBuilder

A migration workflow which specifies what needs to be done for an EDW migration.

Protobuf type google.cloud.bigquery.migration.v2alpha.MigrationWorkflow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationWorkflow build()
Returns
TypeDescription
MigrationWorkflow

buildPartial()

public MigrationWorkflow buildPartial()
Returns
TypeDescription
MigrationWorkflow

clear()

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

clearCreateTime()

public MigrationWorkflow.Builder clearCreateTime()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
MigrationWorkflow.Builder

clearDisplayName()

public MigrationWorkflow.Builder clearDisplayName()

The display name of the workflow. This can be set to give a workflow a descriptive name. There is no guarantee or enforcement of uniqueness.

string display_name = 6;

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public MigrationWorkflow.Builder clearLastUpdateTime()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
TypeDescription
MigrationWorkflow.Builder

clearName()

public MigrationWorkflow.Builder clearName()

Output only. Immutable. The unique identifier for the migration workflow. The ID is server-generated.

Example: projects/123/locations/us/workflows/345

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public MigrationWorkflow.Builder clearState()

Output only. That status of the workflow.

.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

clearTasks()

public MigrationWorkflow.Builder clearTasks()
Returns
TypeDescription
MigrationWorkflow.Builder

clone()

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

containsTasks(String key)

public boolean containsTasks(String key)

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationWorkflow getDefaultInstanceForType()
Returns
TypeDescription
MigrationWorkflow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the workflow. This can be set to give a workflow a descriptive name. There is no guarantee or enforcement of uniqueness.

string display_name = 6;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the workflow. This can be set to give a workflow a descriptive name. There is no guarantee or enforcement of uniqueness.

string display_name = 6;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
TypeDescription
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
TypeDescription
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getMutableTasks() (deprecated)

public Map<String,MigrationTask> getMutableTasks()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,MigrationTask>

getName()

public String getName()

Output only. Immutable. The unique identifier for the migration workflow. The ID is server-generated.

Example: projects/123/locations/us/workflows/345

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Immutable. The unique identifier for the migration workflow. The ID is server-generated.

Example: projects/123/locations/us/workflows/345

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public MigrationWorkflow.State getState()

Output only. That status of the workflow.

.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationWorkflow.State

The state.

getStateValue()

public int getStateValue()

Output only. That status of the workflow.

.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTasks() (deprecated)

public Map<String,MigrationTask> getTasks()

Use #getTasksMap() instead.

Returns
TypeDescription
Map<String,MigrationTask>

getTasksCount()

public int getTasksCount()

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Returns
TypeDescription
int

getTasksMap()

public Map<String,MigrationTask> getTasksMap()

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Returns
TypeDescription
Map<String,MigrationTask>

getTasksOrDefault(String key, MigrationTask defaultValue)

public MigrationTask getTasksOrDefault(String key, MigrationTask defaultValue)

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Parameters
NameDescription
keyString
defaultValueMigrationTask
Returns
TypeDescription
MigrationTask

getTasksOrThrow(String key)

public MigrationTask getTasksOrThrow(String key)

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
MigrationTask

hasCreateTime()

public boolean hasCreateTime()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
TypeDescription
boolean

Whether the lastUpdateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public MigrationWorkflow.Builder mergeCreateTime(Timestamp value)

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationWorkflow.Builder

mergeFrom(MigrationWorkflow other)

public MigrationWorkflow.Builder mergeFrom(MigrationWorkflow other)
Parameter
NameDescription
otherMigrationWorkflow
Returns
TypeDescription
MigrationWorkflow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public MigrationWorkflow.Builder mergeLastUpdateTime(Timestamp value)

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationWorkflow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllTasks(Map<String,MigrationTask> values)

public MigrationWorkflow.Builder putAllTasks(Map<String,MigrationTask> values)

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Parameter
NameDescription
valuesMap<String,MigrationTask>
Returns
TypeDescription
MigrationWorkflow.Builder

putTasks(String key, MigrationTask value)

public MigrationWorkflow.Builder putTasks(String key, MigrationTask value)

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Parameters
NameDescription
keyString
valueMigrationTask
Returns
TypeDescription
MigrationWorkflow.Builder

removeTasks(String key)

public MigrationWorkflow.Builder removeTasks(String key)

The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.

map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
MigrationWorkflow.Builder

setCreateTime(Timestamp value)

public MigrationWorkflow.Builder setCreateTime(Timestamp value)

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationWorkflow.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MigrationWorkflow.Builder setCreateTime(Timestamp.Builder builderForValue)

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationWorkflow.Builder

setDisplayName(String value)

public MigrationWorkflow.Builder setDisplayName(String value)

The display name of the workflow. This can be set to give a workflow a descriptive name. There is no guarantee or enforcement of uniqueness.

string display_name = 6;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public MigrationWorkflow.Builder setDisplayNameBytes(ByteString value)

The display name of the workflow. This can be set to give a workflow a descriptive name. There is no guarantee or enforcement of uniqueness.

string display_name = 6;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastUpdateTime(Timestamp value)

public MigrationWorkflow.Builder setLastUpdateTime(Timestamp value)

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationWorkflow.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public MigrationWorkflow.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationWorkflow.Builder

setName(String value)

public MigrationWorkflow.Builder setName(String value)

Output only. Immutable. The unique identifier for the migration workflow. The ID is server-generated.

Example: projects/123/locations/us/workflows/345

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MigrationWorkflow.Builder setNameBytes(ByteString value)

Output only. Immutable. The unique identifier for the migration workflow. The ID is server-generated.

Example: projects/123/locations/us/workflows/345

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

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

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

setState(MigrationWorkflow.State value)

public MigrationWorkflow.Builder setState(MigrationWorkflow.State value)

Output only. That status of the workflow.

.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMigrationWorkflow.State

The state to set.

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

setStateValue(int value)

public MigrationWorkflow.Builder setStateValue(int value)

Output only. That status of the workflow.

.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
MigrationWorkflow.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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