All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.streamlayer.interactive.common.QuestionAutoPost Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/interactive/interactive.common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.interactive.common;

/**
 * Protobuf type {@code streamlayer.interactive.QuestionAutoPost}
 */
public  final class QuestionAutoPost extends
    com.google.protobuf.GeneratedMessageLite<
        QuestionAutoPost, QuestionAutoPost.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.QuestionAutoPost)
    QuestionAutoPostOrBuilder {
  private QuestionAutoPost() {
  }
  private int bitField0_;
  public static final int STATE_FIELD_NUMBER = 1;
  private int state_;
  /**
   * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
   * @return The state.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionAutoPostState getState() {
    com.streamlayer.interactive.common.QuestionAutoPostState result = com.streamlayer.interactive.common.QuestionAutoPostState.forNumber(state_);
    return result == null ? com.streamlayer.interactive.common.QuestionAutoPostState.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
   * @param value The enum numeric value on the wire for state to set.
   */
  private void setStateValue(int value) {
      state_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
   * @param value The state to set.
   */
  private void setState(com.streamlayer.interactive.common.QuestionAutoPostState value) {
    state_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
   */
  private void clearState() {

    state_ = 0;
  }

  public static final int INTERVAL_FIELD_NUMBER = 2;
  private int interval_;
  /**
   * uint32 interval = 2 [json_name = "interval"];
   * @return The interval.
   */
  @java.lang.Override
  public int getInterval() {
    return interval_;
  }
  /**
   * uint32 interval = 2 [json_name = "interval"];
   * @param value The interval to set.
   */
  private void setInterval(int value) {
    
    interval_ = value;
  }
  /**
   * uint32 interval = 2 [json_name = "interval"];
   */
  private void clearInterval() {

    interval_ = 0;
  }

  public static final int NEXT_POST_TIME_FIELD_NUMBER = 3;
  private com.google.protobuf.Timestamp nextPostTime_;
  /**
   * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
   */
  @java.lang.Override
  public boolean hasNextPostTime() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getNextPostTime() {
    return nextPostTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextPostTime_;
  }
  /**
   * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
   */
  private void setNextPostTime(com.google.protobuf.Timestamp value) {
    value.getClass();
  nextPostTime_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeNextPostTime(com.google.protobuf.Timestamp value) {
    value.getClass();
  if (nextPostTime_ != null &&
        nextPostTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
      nextPostTime_ =
        com.google.protobuf.Timestamp.newBuilder(nextPostTime_).mergeFrom(value).buildPartial();
    } else {
      nextPostTime_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
   */
  private void clearNextPostTime() {  nextPostTime_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int START_MODE_FIELD_NUMBER = 4;
  private int startMode_;
  /**
   * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
   * @return The enum numeric value on the wire for startMode.
   */
  @java.lang.Override
  public int getStartModeValue() {
    return startMode_;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
   * @return The startMode.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionAutoPostStart getStartMode() {
    com.streamlayer.interactive.common.QuestionAutoPostStart result = com.streamlayer.interactive.common.QuestionAutoPostStart.forNumber(startMode_);
    return result == null ? com.streamlayer.interactive.common.QuestionAutoPostStart.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
   * @param value The enum numeric value on the wire for startMode to set.
   */
  private void setStartModeValue(int value) {
      startMode_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
   * @param value The startMode to set.
   */
  private void setStartMode(com.streamlayer.interactive.common.QuestionAutoPostStart value) {
    startMode_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
   */
  private void clearStartMode() {

    startMode_ = 0;
  }

  public static final int START_OPTIONS_FIELD_NUMBER = 5;
  private com.streamlayer.interactive.common.QuestionAutoPostStartOptions startOptions_;
  /**
   * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
   */
  @java.lang.Override
  public boolean hasStartOptions() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionAutoPostStartOptions getStartOptions() {
    return startOptions_ == null ? com.streamlayer.interactive.common.QuestionAutoPostStartOptions.getDefaultInstance() : startOptions_;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
   */
  private void setStartOptions(com.streamlayer.interactive.common.QuestionAutoPostStartOptions value) {
    value.getClass();
  startOptions_ = value;
    bitField0_ |= 0x00000002;
    }
  /**
   * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeStartOptions(com.streamlayer.interactive.common.QuestionAutoPostStartOptions value) {
    value.getClass();
  if (startOptions_ != null &&
        startOptions_ != com.streamlayer.interactive.common.QuestionAutoPostStartOptions.getDefaultInstance()) {
      startOptions_ =
        com.streamlayer.interactive.common.QuestionAutoPostStartOptions.newBuilder(startOptions_).mergeFrom(value).buildPartial();
    } else {
      startOptions_ = value;
    }
    bitField0_ |= 0x00000002;
  }
  /**
   * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
   */
  private void clearStartOptions() {  startOptions_ = null;
    bitField0_ = (bitField0_ & ~0x00000002);
  }

  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.interactive.common.QuestionAutoPost parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.interactive.common.QuestionAutoPost parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.interactive.common.QuestionAutoPost parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.interactive.common.QuestionAutoPost prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.interactive.QuestionAutoPost}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.interactive.common.QuestionAutoPost, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.interactive.QuestionAutoPost)
      com.streamlayer.interactive.common.QuestionAutoPostOrBuilder {
    // Construct using com.streamlayer.interactive.common.QuestionAutoPost.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return instance.getStateValue();
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      copyOnWrite();
      instance.setStateValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
     * @return The state.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionAutoPostState getState() {
      return instance.getState();
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.streamlayer.interactive.common.QuestionAutoPostState value) {
      copyOnWrite();
      instance.setState(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostState state = 1 [json_name = "state"];
     * @return This builder for chaining.
     */
    public Builder clearState() {
      copyOnWrite();
      instance.clearState();
      return this;
    }

    /**
     * uint32 interval = 2 [json_name = "interval"];
     * @return The interval.
     */
    @java.lang.Override
    public int getInterval() {
      return instance.getInterval();
    }
    /**
     * uint32 interval = 2 [json_name = "interval"];
     * @param value The interval to set.
     * @return This builder for chaining.
     */
    public Builder setInterval(int value) {
      copyOnWrite();
      instance.setInterval(value);
      return this;
    }
    /**
     * uint32 interval = 2 [json_name = "interval"];
     * @return This builder for chaining.
     */
    public Builder clearInterval() {
      copyOnWrite();
      instance.clearInterval();
      return this;
    }

    /**
     * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
     */
    @java.lang.Override
    public boolean hasNextPostTime() {
      return instance.hasNextPostTime();
    }
    /**
     * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getNextPostTime() {
      return instance.getNextPostTime();
    }
    /**
     * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
     */
    public Builder setNextPostTime(com.google.protobuf.Timestamp value) {
      copyOnWrite();
      instance.setNextPostTime(value);
      return this;
      }
    /**
     * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
     */
    public Builder setNextPostTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      copyOnWrite();
      instance.setNextPostTime(builderForValue.build());
      return this;
    }
    /**
     * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
     */
    public Builder mergeNextPostTime(com.google.protobuf.Timestamp value) {
      copyOnWrite();
      instance.mergeNextPostTime(value);
      return this;
    }
    /**
     * .google.protobuf.Timestamp next_post_time = 3 [json_name = "nextPostTime"];
     */
    public Builder clearNextPostTime() {  copyOnWrite();
      instance.clearNextPostTime();
      return this;
    }

    /**
     * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
     * @return The enum numeric value on the wire for startMode.
     */
    @java.lang.Override
    public int getStartModeValue() {
      return instance.getStartModeValue();
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
     * @param value The startMode to set.
     * @return This builder for chaining.
     */
    public Builder setStartModeValue(int value) {
      copyOnWrite();
      instance.setStartModeValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
     * @return The startMode.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionAutoPostStart getStartMode() {
      return instance.getStartMode();
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
     * @param value The enum numeric value on the wire for startMode to set.
     * @return This builder for chaining.
     */
    public Builder setStartMode(com.streamlayer.interactive.common.QuestionAutoPostStart value) {
      copyOnWrite();
      instance.setStartMode(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStart start_mode = 4 [json_name = "startMode"];
     * @return This builder for chaining.
     */
    public Builder clearStartMode() {
      copyOnWrite();
      instance.clearStartMode();
      return this;
    }

    /**
     * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
     */
    @java.lang.Override
    public boolean hasStartOptions() {
      return instance.hasStartOptions();
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionAutoPostStartOptions getStartOptions() {
      return instance.getStartOptions();
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
     */
    public Builder setStartOptions(com.streamlayer.interactive.common.QuestionAutoPostStartOptions value) {
      copyOnWrite();
      instance.setStartOptions(value);
      return this;
      }
    /**
     * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
     */
    public Builder setStartOptions(
        com.streamlayer.interactive.common.QuestionAutoPostStartOptions.Builder builderForValue) {
      copyOnWrite();
      instance.setStartOptions(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
     */
    public Builder mergeStartOptions(com.streamlayer.interactive.common.QuestionAutoPostStartOptions value) {
      copyOnWrite();
      instance.mergeStartOptions(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionAutoPostStartOptions start_options = 5 [json_name = "startOptions"];
     */
    public Builder clearStartOptions() {  copyOnWrite();
      instance.clearStartOptions();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.interactive.QuestionAutoPost)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.interactive.common.QuestionAutoPost();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "state_",
            "interval_",
            "nextPostTime_",
            "startMode_",
            "startOptions_",
          };
          java.lang.String info =
              "\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0000\u0000\u0001\f\u0002\u000b" +
              "\u0003\u1009\u0000\u0004\f\u0005\u1009\u0001";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.interactive.common.QuestionAutoPost.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.interactive.QuestionAutoPost)
  private static final com.streamlayer.interactive.common.QuestionAutoPost DEFAULT_INSTANCE;
  static {
    QuestionAutoPost defaultInstance = new QuestionAutoPost();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      QuestionAutoPost.class, defaultInstance);
  }

  public static com.streamlayer.interactive.common.QuestionAutoPost getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy