Class Alert.TriggerInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Alert.TriggerInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<Alert.TriggerInfo.Builder>
io.confluent.controlcenter.alert.record.Alert.TriggerInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Alert.TriggerInfoOrBuilder, Cloneable
Enclosing class:
Alert.TriggerInfo

public static final class Alert.TriggerInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Alert.TriggerInfo.Builder> implements Alert.TriggerInfoOrBuilder
Protobuf type alert.TriggerInfo
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public Alert.TriggerInfo.Builder mergeFrom(Alert.TriggerInfo other)
    • isInitialized

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

      public Alert.TriggerInfo.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<Alert.TriggerInfo.Builder>
      Throws:
      IOException
    • getValueCase

      public Alert.TriggerInfo.ValueCase getValueCase()
      Specified by:
      getValueCase in interface Alert.TriggerInfoOrBuilder
    • clearValue

      public Alert.TriggerInfo.Builder clearValue()
    • getWindow

      public long getWindow()
       window of the trigger
       
      int64 window = 1;
      Specified by:
      getWindow in interface Alert.TriggerInfoOrBuilder
      Returns:
      The window.
    • setWindow

      public Alert.TriggerInfo.Builder setWindow(long value)
       window of the trigger
       
      int64 window = 1;
      Parameters:
      value - The window to set.
      Returns:
      This builder for chaining.
    • clearWindow

      public Alert.TriggerInfo.Builder clearWindow()
       window of the trigger
       
      int64 window = 1;
      Returns:
      This builder for chaining.
    • getHasError

      public boolean getHasError()
       the window has missing monitoring data
       
      bool hasError = 2;
      Specified by:
      getHasError in interface Alert.TriggerInfoOrBuilder
      Returns:
      The hasError.
    • setHasError

      public Alert.TriggerInfo.Builder setHasError(boolean value)
       the window has missing monitoring data
       
      bool hasError = 2;
      Parameters:
      value - The hasError to set.
      Returns:
      This builder for chaining.
    • clearHasError

      public Alert.TriggerInfo.Builder clearHasError()
       the window has missing monitoring data
       
      bool hasError = 2;
      Returns:
      This builder for chaining.
    • hasComponent

      public boolean hasComponent()
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
      Specified by:
      hasComponent in interface Alert.TriggerInfoOrBuilder
      Returns:
      Whether the component field is set.
    • getComponent

      public Alert.ComponentDesc getComponent()
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
      Specified by:
      getComponent in interface Alert.TriggerInfoOrBuilder
      Returns:
      The component.
    • setComponent

      public Alert.TriggerInfo.Builder setComponent(Alert.ComponentDesc value)
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
    • setComponent

      public Alert.TriggerInfo.Builder setComponent(Alert.ComponentDesc.Builder builderForValue)
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
    • mergeComponent

      public Alert.TriggerInfo.Builder mergeComponent(Alert.ComponentDesc value)
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
    • clearComponent

      public Alert.TriggerInfo.Builder clearComponent()
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
    • getComponentBuilder

      public Alert.ComponentDesc.Builder getComponentBuilder()
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
    • getComponentOrBuilder

      public Alert.ComponentDescOrBuilder getComponentOrBuilder()
       component (e.g. topic or broker) that fired the trigger
       
      .alert.ComponentDesc component = 3;
      Specified by:
      getComponentOrBuilder in interface Alert.TriggerInfoOrBuilder
    • hasLongValue

      public boolean hasLongValue()
      int64 longValue = 7;
      Specified by:
      hasLongValue in interface Alert.TriggerInfoOrBuilder
      Returns:
      Whether the longValue field is set.
    • getLongValue

      public long getLongValue()
      int64 longValue = 7;
      Specified by:
      getLongValue in interface Alert.TriggerInfoOrBuilder
      Returns:
      The longValue.
    • setLongValue

      public Alert.TriggerInfo.Builder setLongValue(long value)
      int64 longValue = 7;
      Parameters:
      value - The longValue to set.
      Returns:
      This builder for chaining.
    • clearLongValue

      public Alert.TriggerInfo.Builder clearLongValue()
      int64 longValue = 7;
      Returns:
      This builder for chaining.
    • hasStatusValue

      public boolean hasStatusValue()
      .command_alert.StatusValue statusValue = 8;
      Specified by:
      hasStatusValue in interface Alert.TriggerInfoOrBuilder
      Returns:
      Whether the statusValue field is set.
    • getStatusValueValue

      public int getStatusValueValue()
      .command_alert.StatusValue statusValue = 8;
      Specified by:
      getStatusValueValue in interface Alert.TriggerInfoOrBuilder
      Returns:
      The enum numeric value on the wire for statusValue.
    • setStatusValueValue

      public Alert.TriggerInfo.Builder setStatusValueValue(int value)
      .command_alert.StatusValue statusValue = 8;
      Parameters:
      value - The enum numeric value on the wire for statusValue to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public CommandAlert.StatusValue getStatusValue()
      .command_alert.StatusValue statusValue = 8;
      Specified by:
      getStatusValue in interface Alert.TriggerInfoOrBuilder
      Returns:
      The statusValue.
    • setStatusValue

      public Alert.TriggerInfo.Builder setStatusValue(CommandAlert.StatusValue value)
      .command_alert.StatusValue statusValue = 8;
      Parameters:
      value - The statusValue to set.
      Returns:
      This builder for chaining.
    • clearStatusValue

      public Alert.TriggerInfo.Builder clearStatusValue()
      .command_alert.StatusValue statusValue = 8;
      Returns:
      This builder for chaining.