Class Retrohunt.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Retrohunt.Builder>
com.google.cloud.chronicle.v1.Retrohunt.Builder
All Implemented Interfaces:
RetrohuntOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Retrohunt

public static final class Retrohunt.Builder extends com.google.protobuf.GeneratedMessage.Builder<Retrohunt.Builder> implements RetrohuntOrBuilder
 Retrohunt is an execution of a Rule over a time range in the past.
 
Protobuf type google.cloud.chronicle.v1.Retrohunt
  • 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<Retrohunt.Builder>
    • clear

      public Retrohunt.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<Retrohunt.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<Retrohunt.Builder>
    • getDefaultInstanceForType

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

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

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

      public Retrohunt.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<Retrohunt.Builder>
    • mergeFrom

      public Retrohunt.Builder mergeFrom(Retrohunt other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Retrohunt.Builder>
    • mergeFrom

      public Retrohunt.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<Retrohunt.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name of the retrohunt.
       Retrohunt is the child of a rule revision. {rule} in the format below is
       structured as {rule_id@revision_id}.
       Format:
       `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`
       
      string name = 1;
      Specified by:
      getName in interface RetrohuntOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the retrohunt.
       Retrohunt is the child of a rule revision. {rule} in the format below is
       structured as {rule_id@revision_id}.
       Format:
       `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface RetrohuntOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Retrohunt.Builder setName(String value)
       The resource name of the retrohunt.
       Retrohunt is the child of a rule revision. {rule} in the format below is
       structured as {rule_id@revision_id}.
       Format:
       `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Retrohunt.Builder clearName()
       The resource name of the retrohunt.
       Retrohunt is the child of a rule revision. {rule} in the format below is
       structured as {rule_id@revision_id}.
       Format:
       `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Retrohunt.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the retrohunt.
       Retrohunt is the child of a rule revision. {rule} in the format below is
       structured as {rule_id@revision_id}.
       Format:
       `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasProcessInterval

      public boolean hasProcessInterval()
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasProcessInterval in interface RetrohuntOrBuilder
      Returns:
      Whether the processInterval field is set.
    • getProcessInterval

      public Interval getProcessInterval()
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProcessInterval in interface RetrohuntOrBuilder
      Returns:
      The processInterval.
    • setProcessInterval

      public Retrohunt.Builder setProcessInterval(Interval value)
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • setProcessInterval

      public Retrohunt.Builder setProcessInterval(Interval.Builder builderForValue)
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeProcessInterval

      public Retrohunt.Builder mergeProcessInterval(Interval value)
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearProcessInterval

      public Retrohunt.Builder clearProcessInterval()
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • getProcessIntervalBuilder

      public Interval.Builder getProcessIntervalBuilder()
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
    • getProcessIntervalOrBuilder

      public IntervalOrBuilder getProcessIntervalOrBuilder()
       Required. The start and end time of the event time range this retrohunt
       processes.
       
      .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProcessIntervalOrBuilder in interface RetrohuntOrBuilder
    • hasExecutionInterval

      public boolean hasExecutionInterval()
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasExecutionInterval in interface RetrohuntOrBuilder
      Returns:
      Whether the executionInterval field is set.
    • getExecutionInterval

      public Interval getExecutionInterval()
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExecutionInterval in interface RetrohuntOrBuilder
      Returns:
      The executionInterval.
    • setExecutionInterval

      public Retrohunt.Builder setExecutionInterval(Interval value)
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setExecutionInterval

      public Retrohunt.Builder setExecutionInterval(Interval.Builder builderForValue)
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeExecutionInterval

      public Retrohunt.Builder mergeExecutionInterval(Interval value)
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearExecutionInterval

      public Retrohunt.Builder clearExecutionInterval()
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExecutionIntervalBuilder

      public Interval.Builder getExecutionIntervalBuilder()
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExecutionIntervalOrBuilder

      public IntervalOrBuilder getExecutionIntervalOrBuilder()
       Output only. The start and end time of the retrohunt execution. If the
       retrohunt is not yet finished, the end time of the interval will not be
       populated.
       
      .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExecutionIntervalOrBuilder in interface RetrohuntOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. The state of the retrohunt.
       
      .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface RetrohuntOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Retrohunt.Builder setStateValue(int value)
       Output only. The state of the retrohunt.
       
      .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.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 Retrohunt.State getState()
       Output only. The state of the retrohunt.
       
      .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface RetrohuntOrBuilder
      Returns:
      The state.
    • setState

      public Retrohunt.Builder setState(Retrohunt.State value)
       Output only. The state of the retrohunt.
       
      .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Retrohunt.Builder clearState()
       Output only. The state of the retrohunt.
       
      .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getProgressPercentage

      public float getProgressPercentage()
       Output only. Percent progress of the retrohunt towards completion, from
       0.00 to 100.00.
       
      float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProgressPercentage in interface RetrohuntOrBuilder
      Returns:
      The progressPercentage.
    • setProgressPercentage

      public Retrohunt.Builder setProgressPercentage(float value)
       Output only. Percent progress of the retrohunt towards completion, from
       0.00 to 100.00.
       
      float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The progressPercentage to set.
      Returns:
      This builder for chaining.
    • clearProgressPercentage

      public Retrohunt.Builder clearProgressPercentage()
       Output only. Percent progress of the retrohunt towards completion, from
       0.00 to 100.00.
       
      float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.