Interface CommandResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CommandResponse, CommandResponse.Builder

@Generated public interface CommandResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The exit code returned by the command.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getCode

      int getCode()
      The exit code returned by the command.
      - 0: Command failed or had no effect (e.g., syntax error, no targets found)
      - 1 (Command.SINGLE_SUCCESS): Command executed successfully
      - >1: Command succeeded and affected multiple targets (count of affected items)
      Note: Syntax errors return 0 and error details are sent via the logging system.
      
      int32 code = 1;
      Returns:
      The code.