Class HeartbeatResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HeartbeatResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<HeartbeatResponse.Builder>
ai.pipestream.connector.intake.v1.HeartbeatResponse.Builder
All Implemented Interfaces:
HeartbeatResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HeartbeatResponse

public static final class HeartbeatResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<HeartbeatResponse.Builder> implements HeartbeatResponseOrBuilder
 Response from heartbeat with optional control commands.
 
Protobuf type ai.pipestream.connector.intake.v1.HeartbeatResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HeartbeatResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HeartbeatResponse.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public HeartbeatResponse.Builder mergeFrom(HeartbeatResponse other)
    • isInitialized

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

      public HeartbeatResponse.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<HeartbeatResponse.Builder>
      Throws:
      IOException
    • getSessionValid

      public boolean getSessionValid()
       Whether the session is still valid.
       
      bool session_valid = 1 [json_name = "sessionValid"];
      Specified by:
      getSessionValid in interface HeartbeatResponseOrBuilder
      Returns:
      The sessionValid.
    • setSessionValid

      public HeartbeatResponse.Builder setSessionValid(boolean value)
       Whether the session is still valid.
       
      bool session_valid = 1 [json_name = "sessionValid"];
      Parameters:
      value - The sessionValid to set.
      Returns:
      This builder for chaining.
    • clearSessionValid

      public HeartbeatResponse.Builder clearSessionValid()
       Whether the session is still valid.
       
      bool session_valid = 1 [json_name = "sessionValid"];
      Returns:
      This builder for chaining.
    • getCommandValue

      public int getCommandValue()
       Optional control command from server to crawler.
       
      .ai.pipestream.connector.intake.v1.ControlCommand command = 2 [json_name = "command"];
      Specified by:
      getCommandValue in interface HeartbeatResponseOrBuilder
      Returns:
      The enum numeric value on the wire for command.
    • setCommandValue

      public HeartbeatResponse.Builder setCommandValue(int value)
       Optional control command from server to crawler.
       
      .ai.pipestream.connector.intake.v1.ControlCommand command = 2 [json_name = "command"];
      Parameters:
      value - The enum numeric value on the wire for command to set.
      Returns:
      This builder for chaining.
    • getCommand

      public ControlCommand getCommand()
       Optional control command from server to crawler.
       
      .ai.pipestream.connector.intake.v1.ControlCommand command = 2 [json_name = "command"];
      Specified by:
      getCommand in interface HeartbeatResponseOrBuilder
      Returns:
      The command.
    • setCommand

      public HeartbeatResponse.Builder setCommand(ControlCommand value)
       Optional control command from server to crawler.
       
      .ai.pipestream.connector.intake.v1.ControlCommand command = 2 [json_name = "command"];
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public HeartbeatResponse.Builder clearCommand()
       Optional control command from server to crawler.
       
      .ai.pipestream.connector.intake.v1.ControlCommand command = 2 [json_name = "command"];
      Returns:
      This builder for chaining.
    • getConfigUpdatesCount

      public int getConfigUpdatesCount()
      Description copied from interface: HeartbeatResponseOrBuilder
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
      Specified by:
      getConfigUpdatesCount in interface HeartbeatResponseOrBuilder
    • containsConfigUpdates

      public boolean containsConfigUpdates(String key)
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
      Specified by:
      containsConfigUpdates in interface HeartbeatResponseOrBuilder
    • getConfigUpdates

      @Deprecated public Map<String,String> getConfigUpdates()
      Deprecated.
      Specified by:
      getConfigUpdates in interface HeartbeatResponseOrBuilder
    • getConfigUpdatesMap

      public Map<String,String> getConfigUpdatesMap()
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
      Specified by:
      getConfigUpdatesMap in interface HeartbeatResponseOrBuilder
    • getConfigUpdatesOrDefault

      public String getConfigUpdatesOrDefault(String key, String defaultValue)
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
      Specified by:
      getConfigUpdatesOrDefault in interface HeartbeatResponseOrBuilder
    • getConfigUpdatesOrThrow

      public String getConfigUpdatesOrThrow(String key)
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
      Specified by:
      getConfigUpdatesOrThrow in interface HeartbeatResponseOrBuilder
    • clearConfigUpdates

      public HeartbeatResponse.Builder clearConfigUpdates()
    • removeConfigUpdates

      public HeartbeatResponse.Builder removeConfigUpdates(String key)
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
    • getMutableConfigUpdates

      @Deprecated public Map<String,String> getMutableConfigUpdates()
      Deprecated.
      Use alternate mutation accessors instead.
    • putConfigUpdates

      public HeartbeatResponse.Builder putConfigUpdates(String key, String value)
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];
    • putAllConfigUpdates

      public HeartbeatResponse.Builder putAllConfigUpdates(Map<String,String> values)
       Configuration updates to apply.
       
      map<string, string> config_updates = 3 [json_name = "configUpdates"];