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

main.java.com.streamlayer.importer.QuestionSource 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/importer/importer.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.importer;

/**
 * Protobuf type {@code streamlayer.interactive.importer.QuestionSource}
 */
public  final class QuestionSource extends
    com.google.protobuf.GeneratedMessageLite<
        QuestionSource, QuestionSource.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.importer.QuestionSource)
    QuestionSourceOrBuilder {
  private QuestionSource() {
    rowId_ = "";
  }
  public static final int ROW_ID_FIELD_NUMBER = 1;
  private java.lang.String rowId_;
  /**
   * string row_id = 1 [json_name = "rowId"];
   * @return The rowId.
   */
  @java.lang.Override
  public java.lang.String getRowId() {
    return rowId_;
  }
  /**
   * string row_id = 1 [json_name = "rowId"];
   * @return The bytes for rowId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRowIdBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(rowId_);
  }
  /**
   * string row_id = 1 [json_name = "rowId"];
   * @param value The rowId to set.
   */
  private void setRowId(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    rowId_ = value;
  }
  /**
   * string row_id = 1 [json_name = "rowId"];
   */
  private void clearRowId() {

    rowId_ = getDefaultInstance().getRowId();
  }
  /**
   * string row_id = 1 [json_name = "rowId"];
   * @param value The bytes for rowId to set.
   */
  private void setRowIdBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    rowId_ = value.toStringUtf8();

  }

  public static final int TYPE_FIELD_NUMBER = 2;
  private int type_;
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override
  public int getTypeValue() {
    return type_;
  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @return The type.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionType getType() {
    com.streamlayer.interactive.common.QuestionType result = com.streamlayer.interactive.common.QuestionType.forNumber(type_);
    return result == null ? com.streamlayer.interactive.common.QuestionType.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @param value The enum numeric value on the wire for type to set.
   */
  private void setTypeValue(int value) {
      type_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @param value The type to set.
   */
  private void setType(com.streamlayer.interactive.common.QuestionType value) {
    type_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   */
  private void clearType() {

    type_ = 0;
  }

  public static com.streamlayer.importer.QuestionSource parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.importer.QuestionSource 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.importer.QuestionSource parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.importer.QuestionSource 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.importer.QuestionSource parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.importer.QuestionSource 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.importer.QuestionSource parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.importer.QuestionSource 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.importer.QuestionSource parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.importer.QuestionSource parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.importer.QuestionSource parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.importer.QuestionSource 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.importer.QuestionSource prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string row_id = 1 [json_name = "rowId"];
     * @return The rowId.
     */
    @java.lang.Override
    public java.lang.String getRowId() {
      return instance.getRowId();
    }
    /**
     * string row_id = 1 [json_name = "rowId"];
     * @return The bytes for rowId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getRowIdBytes() {
      return instance.getRowIdBytes();
    }
    /**
     * string row_id = 1 [json_name = "rowId"];
     * @param value The rowId to set.
     * @return This builder for chaining.
     */
    public Builder setRowId(
        java.lang.String value) {
      copyOnWrite();
      instance.setRowId(value);
      return this;
    }
    /**
     * string row_id = 1 [json_name = "rowId"];
     * @return This builder for chaining.
     */
    public Builder clearRowId() {
      copyOnWrite();
      instance.clearRowId();
      return this;
    }
    /**
     * string row_id = 1 [json_name = "rowId"];
     * @param value The bytes for rowId to set.
     * @return This builder for chaining.
     */
    public Builder setRowIdBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setRowIdBytes(value);
      return this;
    }

    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return instance.getTypeValue();
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {
      copyOnWrite();
      instance.setTypeValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @return The type.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionType getType() {
      return instance.getType();
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setType(com.streamlayer.interactive.common.QuestionType value) {
      copyOnWrite();
      instance.setType(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @return This builder for chaining.
     */
    public Builder clearType() {
      copyOnWrite();
      instance.clearType();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.interactive.importer.QuestionSource)
  }
  @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.importer.QuestionSource();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "rowId_",
            "type_",
          };
          java.lang.String info =
              "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\f" +
              "";
          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.importer.QuestionSource.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.importer.QuestionSource)
  private static final com.streamlayer.importer.QuestionSource DEFAULT_INSTANCE;
  static {
    QuestionSource defaultInstance = new QuestionSource();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      QuestionSource.class, defaultInstance);
  }

  public static com.streamlayer.importer.QuestionSource 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