Class MigrationProgressEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.datastore.admin.v1.MigrationProgressEvent
All Implemented Interfaces:
MigrationProgressEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class MigrationProgressEvent extends com.google.protobuf.GeneratedMessageV3 implements MigrationProgressEventOrBuilder
 An event signifying the start of a new step in a [migration from Cloud
 Datastore to Cloud Firestore in Datastore
 mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).
 
Protobuf type google.datastore.admin.v1.MigrationProgressEvent
See Also:
  • Field Details

    • STEP_FIELD_NUMBER

      public static final int STEP_FIELD_NUMBER
      See Also:
    • PREPARE_STEP_DETAILS_FIELD_NUMBER

      public static final int PREPARE_STEP_DETAILS_FIELD_NUMBER
      See Also:
    • REDIRECT_WRITES_STEP_DETAILS_FIELD_NUMBER

      public static final int REDIRECT_WRITES_STEP_DETAILS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getStepDetailsCase

      public MigrationProgressEvent.StepDetailsCase getStepDetailsCase()
      Specified by:
      getStepDetailsCase in interface MigrationProgressEventOrBuilder
    • getStepValue

      public int getStepValue()
       The step that is starting.
      
       An event with step set to `START` indicates that the migration
       has been reverted back to the initial pre-migration state.
       
      .google.datastore.admin.v1.MigrationStep step = 1;
      Specified by:
      getStepValue in interface MigrationProgressEventOrBuilder
      Returns:
      The enum numeric value on the wire for step.
    • getStep

      public MigrationStep getStep()
       The step that is starting.
      
       An event with step set to `START` indicates that the migration
       has been reverted back to the initial pre-migration state.
       
      .google.datastore.admin.v1.MigrationStep step = 1;
      Specified by:
      getStep in interface MigrationProgressEventOrBuilder
      Returns:
      The step.
    • hasPrepareStepDetails

      public boolean hasPrepareStepDetails()
       Details for the `PREPARE` step.
       
      .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;
      Specified by:
      hasPrepareStepDetails in interface MigrationProgressEventOrBuilder
      Returns:
      Whether the prepareStepDetails field is set.
    • getPrepareStepDetails

      public MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails()
       Details for the `PREPARE` step.
       
      .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;
      Specified by:
      getPrepareStepDetails in interface MigrationProgressEventOrBuilder
      Returns:
      The prepareStepDetails.
    • getPrepareStepDetailsOrBuilder

      public MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder()
       Details for the `PREPARE` step.
       
      .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;
      Specified by:
      getPrepareStepDetailsOrBuilder in interface MigrationProgressEventOrBuilder
    • hasRedirectWritesStepDetails

      public boolean hasRedirectWritesStepDetails()
       Details for the `REDIRECT_WRITES` step.
       
      .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;
      Specified by:
      hasRedirectWritesStepDetails in interface MigrationProgressEventOrBuilder
      Returns:
      Whether the redirectWritesStepDetails field is set.
    • getRedirectWritesStepDetails

      public MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails()
       Details for the `REDIRECT_WRITES` step.
       
      .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;
      Specified by:
      getRedirectWritesStepDetails in interface MigrationProgressEventOrBuilder
      Returns:
      The redirectWritesStepDetails.
    • getRedirectWritesStepDetailsOrBuilder

      public MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder()
       Details for the `REDIRECT_WRITES` step.
       
      .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;
      Specified by:
      getRedirectWritesStepDetailsOrBuilder in interface MigrationProgressEventOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MigrationProgressEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MigrationProgressEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MigrationProgressEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MigrationProgressEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MigrationProgressEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MigrationProgressEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MigrationProgressEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MigrationProgressEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MigrationProgressEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MigrationProgressEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MigrationProgressEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MigrationProgressEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MigrationProgressEvent.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MigrationProgressEvent.Builder newBuilder()
    • newBuilder

      public static MigrationProgressEvent.Builder newBuilder(MigrationProgressEvent prototype)
    • toBuilder

      public MigrationProgressEvent.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MigrationProgressEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MigrationProgressEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MigrationProgressEvent> parser()
    • getParserForType

      public com.google.protobuf.Parser<MigrationProgressEvent> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public MigrationProgressEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder