Class MigrationWorkflow.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder
- All Implemented Interfaces:
MigrationWorkflowOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MigrationWorkflow
public static final class MigrationWorkflow.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Time when the workflow was created.The display name of the workflow.Time when the workflow was last updated.Output only.Output only.booleancontainsTasks(String key) The tasks in a workflow in a named map.com.google.protobuf.TimestampTime when the workflow was created.com.google.protobuf.Timestamp.BuilderTime when the workflow was created.com.google.protobuf.TimestampOrBuilderTime when the workflow was created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name of the workflow.com.google.protobuf.ByteStringThe display name of the workflow.com.google.protobuf.TimestampTime when the workflow was last updated.com.google.protobuf.Timestamp.BuilderTime when the workflow was last updated.com.google.protobuf.TimestampOrBuilderTime when the workflow was last updated.Deprecated.getName()Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.intOutput only.getTasks()Deprecated.intThe tasks in a workflow in a named map.The tasks in a workflow in a named map.getTasksOrDefault(String key, MigrationTask defaultValue) The tasks in a workflow in a named map.getTasksOrThrow(String key) The tasks in a workflow in a named map.booleanTime when the workflow was created.booleanTime when the workflow was last updated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Time when the workflow was created.mergeFrom(MigrationWorkflow other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastUpdateTime(com.google.protobuf.Timestamp value) Time when the workflow was last updated.putAllTasks(Map<String, MigrationTask> values) The tasks in a workflow in a named map.putTasks(String key, MigrationTask value) The tasks in a workflow in a named map.The tasks in a workflow in a named map.removeTasks(String key) The tasks in a workflow in a named map.setCreateTime(com.google.protobuf.Timestamp value) Time when the workflow was created.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the workflow was created.setDisplayName(String value) The display name of the workflow.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the workflow.setLastUpdateTime(com.google.protobuf.Timestamp value) Time when the workflow was last updated.setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the workflow was last updated.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setState(MigrationWorkflow.State value) Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MigrationWorkflow.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
-
mergeFrom
public MigrationWorkflow.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MigrationWorkflow.Builder>- Throws:
IOException
-
getName
Output only. Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceMigrationWorkflowOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceMigrationWorkflowOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDisplayNamein interfaceMigrationWorkflowOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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;- Specified by:
getDisplayNameBytesin interfaceMigrationWorkflowOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getTasksCount
public int getTasksCount()Description copied from interface:MigrationWorkflowOrBuilderThe 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;- Specified by:
getTasksCountin interfaceMigrationWorkflowOrBuilder
-
containsTasks
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;- Specified by:
containsTasksin interfaceMigrationWorkflowOrBuilder
-
getTasks
Deprecated.UsegetTasksMap()instead.- Specified by:
getTasksin interfaceMigrationWorkflowOrBuilder
-
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;- Specified by:
getTasksMapin interfaceMigrationWorkflowOrBuilder
-
getTasksOrDefault
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;- Specified by:
getTasksOrDefaultin interfaceMigrationWorkflowOrBuilder
-
getTasksOrThrow
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;- Specified by:
getTasksOrThrowin interfaceMigrationWorkflowOrBuilder
-
clearTasks
-
removeTasks
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; -
getMutableTasks
Deprecated.Use alternate mutation accessors instead. -
putTasks
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; -
putAllTasks
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; -
putTasksBuilderIfAbsent
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; -
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];- Specified by:
getStateValuein interfaceMigrationWorkflowOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. That status of the workflow.
.google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. That status of the workflow.
.google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceMigrationWorkflowOrBuilder- Returns:
- The state.
-
setState
Output only. That status of the workflow.
.google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. That status of the workflow.
.google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
hasCreateTimein interfaceMigrationWorkflowOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimein interfaceMigrationWorkflowOrBuilder- Returns:
- The createTime.
-
setCreateTime
Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4; -
setCreateTime
public MigrationWorkflow.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4; -
mergeCreateTime
Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4; -
clearCreateTime
Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Time when the workflow was created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimeOrBuilderin interfaceMigrationWorkflowOrBuilder
-
hasLastUpdateTime
public boolean hasLastUpdateTime()Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5;- Specified by:
hasLastUpdateTimein interfaceMigrationWorkflowOrBuilder- Returns:
- Whether the lastUpdateTime field is set.
-
getLastUpdateTime
public com.google.protobuf.Timestamp getLastUpdateTime()Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5;- Specified by:
getLastUpdateTimein interfaceMigrationWorkflowOrBuilder- Returns:
- The lastUpdateTime.
-
setLastUpdateTime
Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5; -
setLastUpdateTime
public MigrationWorkflow.Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5; -
mergeLastUpdateTime
Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5; -
clearLastUpdateTime
Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5; -
getLastUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder()Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5; -
getLastUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()Time when the workflow was last updated.
.google.protobuf.Timestamp last_update_time = 5;- Specified by:
getLastUpdateTimeOrBuilderin interfaceMigrationWorkflowOrBuilder
-