Class MigrationWorkflow.Builder (0.48.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.v2.MigrationWorkflow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationWorkflow build()
Returns
Type Description
MigrationWorkflow

buildPartial()

public MigrationWorkflow buildPartial()
Returns
Type Description
MigrationWorkflow

clear()

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

clearCreateTime()

public MigrationWorkflow.Builder clearCreateTime()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
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
Type Description
MigrationWorkflow.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public MigrationWorkflow.Builder clearLastUpdateTime()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
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
Type Description
MigrationWorkflow.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public MigrationWorkflow.Builder clearState()

Output only. That status of the workflow.

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

Returns
Type Description
MigrationWorkflow.Builder

This builder for chaining.

clearTasks()

public MigrationWorkflow.Builder clearTasks()
Returns
Type Description
MigrationWorkflow.Builder

clone()

public MigrationWorkflow.Builder clone()
Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationWorkflow getDefaultInstanceForType()
Returns
Type Description
MigrationWorkflow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for displayName.

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the workflow was last updated.

.google.protobuf.Timestamp last_update_time = 5;

Returns
Type Description
TimestampOrBuilder

getMutableTasks() (deprecated)

public Map<String,MigrationTask> getMutableTasks()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getState()

public MigrationWorkflow.State getState()

Output only. That status of the workflow.

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

Returns
Type Description
MigrationWorkflow.State

The state.

getStateValue()

public int getStateValue()

Output only. That status of the workflow.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTasks() (deprecated)

public Map<String,MigrationTask> getTasks()

Use #getTasksMap() instead.

Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Parameters
Name Description
key String
defaultValue MigrationTask
Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Parameter
Name Description
key String
Returns
Type Description
MigrationTask

hasCreateTime()

public boolean hasCreateTime()

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
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
Type Description
boolean

Whether the lastUpdateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MigrationWorkflow.Builder mergeCreateTime(Timestamp value)

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationWorkflow.Builder

mergeFrom(MigrationWorkflow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MigrationWorkflow.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
MigrationWorkflow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationWorkflow.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Parameter
Name Description
values Map<String,MigrationTask>
Returns
Type Description
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.v2.MigrationTask> tasks = 2;

Parameters
Name Description
key String
value MigrationTask
Returns
Type Description
MigrationWorkflow.Builder

putTasksBuilderIfAbsent(String key)

public MigrationTask.Builder putTasksBuilderIfAbsent(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.v2.MigrationTask> tasks = 2;

Parameter
Name Description
key String
Returns
Type Description
MigrationTask.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.v2.MigrationTask> tasks = 2;

Parameter
Name Description
key String
Returns
Type Description
MigrationWorkflow.Builder

setCreateTime(Timestamp value)

public MigrationWorkflow.Builder setCreateTime(Timestamp value)

Time when the workflow was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
MigrationWorkflow.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationWorkflow.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationWorkflow.State

The state to set.

Returns
Type Description
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.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
MigrationWorkflow.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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