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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
    • clear

      public Source.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
    • getDefaultInstanceForType

      public Source getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Source build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Source buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Source.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Source.Builder>
    • mergeFrom

      public Source.Builder mergeFrom(Source other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Source.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The full name of the source.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface SourceOrBuilder
      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:
      getNameBytes in interface SourceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Source.Builder setName(String value)
       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

      public Source.Builder clearName()
       Output only. The full name of the source.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Source.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface SourceOrBuilder
      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:
      getCreateTime in interface SourceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Source.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the source was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Source.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the source was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Source.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the source was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Source.Builder 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:
      getCreateTimeOrBuilder in interface SourceOrBuilder
    • 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:
      hasUpdateTime in interface SourceOrBuilder
      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:
      getUpdateTime in interface SourceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Source.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the source was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Source.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the source was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Source.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the source was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Source.Builder 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:
      getUpdateTimeOrBuilder in interface SourceOrBuilder
    • getDisplayName

      public String getDisplayName()
       User-friendly display name.
       
      string display_name = 4;
      Specified by:
      getDisplayName in interface SourceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User-friendly display name.
       
      string display_name = 4;
      Specified by:
      getDisplayNameBytes in interface SourceOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Source.Builder setDisplayName(String value)
       User-friendly display name.
       
      string display_name = 4;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Source.Builder clearDisplayName()
       User-friendly display name.
       
      string display_name = 4;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Source.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       User-friendly display name.
       
      string display_name = 4;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Free-text description.
       
      string description = 5;
      Specified by:
      getDescription in interface SourceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Free-text description.
       
      string description = 5;
      Specified by:
      getDescriptionBytes in interface SourceOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Source.Builder setDescription(String value)
       Free-text description.
       
      string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Source.Builder clearDescription()
       Free-text description.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Source.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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:
      getTypeValue in interface SourceOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Source.Builder setTypeValue(int value)
       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

      public Source.SourceType getType()
       Data source type.
       
      .google.cloud.migrationcenter.v1.Source.SourceType type = 6;
      Specified by:
      getType in interface SourceOrBuilder
      Returns:
      The type.
    • setType

      public Source.Builder setType(Source.SourceType value)
       Data source type.
       
      .google.cloud.migrationcenter.v1.Source.SourceType type = 6;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Source.Builder 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:
      getPriority in interface SourceOrBuilder
      Returns:
      The priority.
    • setPriority

      public Source.Builder setPriority(int value)
       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

      public Source.Builder 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:
      getManaged in interface SourceOrBuilder
      Returns:
      The managed.
    • setManaged

      public Source.Builder setManaged(boolean value)
       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

      public Source.Builder 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:
      getPendingFrameCount in interface SourceOrBuilder
      Returns:
      The pendingFrameCount.
    • setPendingFrameCount

      public Source.Builder setPendingFrameCount(int value)
       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

      public Source.Builder 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:
      getErrorFrameCount in interface SourceOrBuilder
      Returns:
      The errorFrameCount.
    • setErrorFrameCount

      public Source.Builder setErrorFrameCount(int value)
       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

      public Source.Builder 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:
      getStateValue in interface SourceOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Source.Builder setStateValue(int value)
       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

      public Source.State getState()
       Output only. The state of the source.
       
      .google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface SourceOrBuilder
      Returns:
      The state.
    • setState

      public Source.Builder setState(Source.State value)
       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

      public Source.Builder 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.