Class Source.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
com.google.cloud.migrationcenter.v1.Source.Builder
- All Implemented Interfaces:
SourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Source
public static final class Source.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
implements SourceOrBuilder
Source represents an object from which asset information is streamed to Migration Center.Protobuf type
google.cloud.migrationcenter.v1.Source-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Free-text description.User-friendly display name.Output only.If `true`, the source is managed by other service(s).Output only.Output only.The information confidence of the source.Output only.Data source type.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Free-text description.com.google.protobuf.ByteStringFree-text description.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUser-friendly display name.com.google.protobuf.ByteStringUser-friendly display name.intOutput only.booleanIf `true`, the source is managed by other service(s).getName()Output only.com.google.protobuf.ByteStringOutput only.intOutput only.intThe information confidence of the source.getState()Output only.intOutput only.getType()Data source type.intData source type.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Free-text description.setDescriptionBytes(com.google.protobuf.ByteString value) Free-text description.setDisplayName(String value) User-friendly display name.setDisplayNameBytes(com.google.protobuf.ByteString value) User-friendly display name.setErrorFrameCount(int value) Output only.setManaged(boolean value) If `true`, the source is managed by other service(s).Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPendingFrameCount(int value) Output only.setPriority(int value) The information confidence of the source.setState(Source.State value) Output only.setStateValue(int value) Output only.setType(Source.SourceType value) Data source type.setTypeValue(int value) Data source type.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Source.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<Source.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<Source.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<Source.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
mergeFrom
public Source.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<Source.Builder>- Throws:
IOException
-
getName
Output only. The full name of the source.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceSourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The full name of the source.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceSourceOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The full name of the source.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The full name of the source.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The full name of the source.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceSourceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceSourceOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when the source was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceSourceOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceSourceOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceSourceOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when the source was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceSourceOrBuilder
-
getDisplayName
User-friendly display name.
string display_name = 4;- Specified by:
getDisplayNamein interfaceSourceOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()User-friendly display name.
string display_name = 4;- Specified by:
getDisplayNameBytesin interfaceSourceOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
User-friendly display name.
string display_name = 4;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
User-friendly display name.
string display_name = 4;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
User-friendly display name.
string display_name = 4;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Free-text description.
string description = 5;- Specified by:
getDescriptionin interfaceSourceOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Free-text description.
string description = 5;- Specified by:
getDescriptionBytesin interfaceSourceOrBuilder- Returns:
- The bytes for description.
-
setDescription
Free-text description.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Free-text description.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Free-text description.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Data source type.
.google.cloud.migrationcenter.v1.Source.SourceType type = 6;- Specified by:
getTypeValuein interfaceSourceOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Data source type.
.google.cloud.migrationcenter.v1.Source.SourceType type = 6;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Data source type.
.google.cloud.migrationcenter.v1.Source.SourceType type = 6;- Specified by:
getTypein interfaceSourceOrBuilder- Returns:
- The type.
-
setType
Data source type.
.google.cloud.migrationcenter.v1.Source.SourceType type = 6;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Data source type.
.google.cloud.migrationcenter.v1.Source.SourceType type = 6;- Returns:
- This builder for chaining.
-
getPriority
public int getPriority()The information confidence of the source. The higher the value, the higher the confidence.
int32 priority = 7;- Specified by:
getPriorityin interfaceSourceOrBuilder- Returns:
- The priority.
-
setPriority
The information confidence of the source. The higher the value, the higher the confidence.
int32 priority = 7;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
The information confidence of the source. The higher the value, the higher the confidence.
int32 priority = 7;- Returns:
- This builder for chaining.
-
getManaged
public boolean getManaged()If `true`, the source is managed by other service(s).
bool managed = 8;- Specified by:
getManagedin interfaceSourceOrBuilder- Returns:
- The managed.
-
setManaged
If `true`, the source is managed by other service(s).
bool managed = 8;- Parameters:
value- The managed to set.- Returns:
- This builder for chaining.
-
clearManaged
If `true`, the source is managed by other service(s).
bool managed = 8;- Returns:
- This builder for chaining.
-
getPendingFrameCount
public int getPendingFrameCount()Output only. Number of frames that are still being processed.
int32 pending_frame_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPendingFrameCountin interfaceSourceOrBuilder- Returns:
- The pendingFrameCount.
-
setPendingFrameCount
Output only. Number of frames that are still being processed.
int32 pending_frame_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pendingFrameCount to set.- Returns:
- This builder for chaining.
-
clearPendingFrameCount
Output only. Number of frames that are still being processed.
int32 pending_frame_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getErrorFrameCount
public int getErrorFrameCount()Output only. The number of frames that were reported by the source and contained errors.
int32 error_frame_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorFrameCountin interfaceSourceOrBuilder- Returns:
- The errorFrameCount.
-
setErrorFrameCount
Output only. The number of frames that were reported by the source and contained errors.
int32 error_frame_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The errorFrameCount to set.- Returns:
- This builder for chaining.
-
clearErrorFrameCount
Output only. The number of frames that were reported by the source and contained errors.
int32 error_frame_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()Output only. The state of the source.
.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceSourceOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The state of the source.
.google.cloud.migrationcenter.v1.Source.State state = 11 [(.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. The state of the source.
.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceSourceOrBuilder- Returns:
- The state.
-
setState
Output only. The state of the source.
.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The state of the source.
.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-