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

main.java.com.streamlayer.triggers.TriggerConditionOption 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/triggers/triggers.proto

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

/**
 * Protobuf type {@code streamlayer.triggers.TriggerConditionOption}
 */
public  final class TriggerConditionOption extends
    com.google.protobuf.GeneratedMessageLite<
        TriggerConditionOption, TriggerConditionOption.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.triggers.TriggerConditionOption)
    TriggerConditionOptionOrBuilder {
  private TriggerConditionOption() {
    event_ = "";
    compare_ = "";
    type_ = "";
    targets_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
    parent_ = "";
  }
  public static final int EVENT_FIELD_NUMBER = 1;
  private java.lang.String event_;
  /**
   * string event = 1 [json_name = "event"];
   * @return The event.
   */
  @java.lang.Override
  public java.lang.String getEvent() {
    return event_;
  }
  /**
   * string event = 1 [json_name = "event"];
   * @return The bytes for event.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEventBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(event_);
  }
  /**
   * string event = 1 [json_name = "event"];
   * @param value The event to set.
   */
  private void setEvent(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    event_ = value;
  }
  /**
   * string event = 1 [json_name = "event"];
   */
  private void clearEvent() {

    event_ = getDefaultInstance().getEvent();
  }
  /**
   * string event = 1 [json_name = "event"];
   * @param value The bytes for event to set.
   */
  private void setEventBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    event_ = value.toStringUtf8();

  }

  public static final int COMPARE_FIELD_NUMBER = 2;
  private java.lang.String compare_;
  /**
   * string compare = 2 [json_name = "compare"];
   * @return The compare.
   */
  @java.lang.Override
  public java.lang.String getCompare() {
    return compare_;
  }
  /**
   * string compare = 2 [json_name = "compare"];
   * @return The bytes for compare.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCompareBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(compare_);
  }
  /**
   * string compare = 2 [json_name = "compare"];
   * @param value The compare to set.
   */
  private void setCompare(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    compare_ = value;
  }
  /**
   * string compare = 2 [json_name = "compare"];
   */
  private void clearCompare() {

    compare_ = getDefaultInstance().getCompare();
  }
  /**
   * string compare = 2 [json_name = "compare"];
   * @param value The bytes for compare to set.
   */
  private void setCompareBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    compare_ = value.toStringUtf8();

  }

  public static final int TYPE_FIELD_NUMBER = 3;
  private java.lang.String type_;
  /**
   * string type = 3 [json_name = "type"];
   * @return The type.
   */
  @java.lang.Override
  public java.lang.String getType() {
    return type_;
  }
  /**
   * string type = 3 [json_name = "type"];
   * @return The bytes for type.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTypeBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(type_);
  }
  /**
   * string type = 3 [json_name = "type"];
   * @param value The type to set.
   */
  private void setType(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    type_ = value;
  }
  /**
   * string type = 3 [json_name = "type"];
   */
  private void clearType() {

    type_ = getDefaultInstance().getType();
  }
  /**
   * string type = 3 [json_name = "type"];
   * @param value The bytes for type to set.
   */
  private void setTypeBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    type_ = value.toStringUtf8();

  }

  public static final int TARGETS_FIELD_NUMBER = 4;
  private com.google.protobuf.Internal.ProtobufList targets_;
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @return A list containing the targets.
   */
  @java.lang.Override
  public java.util.List getTargetsList() {
    return targets_;
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @return The count of targets.
   */
  @java.lang.Override
  public int getTargetsCount() {
    return targets_.size();
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @param index The index of the element to return.
   * @return The targets at the given index.
   */
  @java.lang.Override
  public java.lang.String getTargets(int index) {
    return targets_.get(index);
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @param index The index of the value to return.
   * @return The bytes of the targets at the given index.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTargetsBytes(int index) {
    return com.google.protobuf.ByteString.copyFromUtf8(
        targets_.get(index));
  }
  private void ensureTargetsIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp =
        targets_;  if (!tmp.isModifiable()) {
      targets_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @param index The index to set the value at.
   * @param value The targets to set.
   */
  private void setTargets(
      int index, java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  ensureTargetsIsMutable();
    targets_.set(index, value);
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @param value The targets to add.
   */
  private void addTargets(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  ensureTargetsIsMutable();
    targets_.add(value);
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @param values The targets to add.
   */
  private void addAllTargets(
      java.lang.Iterable values) {
    ensureTargetsIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, targets_);
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   */
  private void clearTargets() {
    targets_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
  }
  /**
   * repeated string targets = 4 [json_name = "targets"];
   * @param value The bytes of the targets to add.
   */
  private void addTargetsBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    ensureTargetsIsMutable();
    targets_.add(value.toStringUtf8());
  }

  public static final int PARENT_FIELD_NUMBER = 5;
  private java.lang.String parent_;
  /**
   * string parent = 5 [json_name = "parent"];
   * @return The parent.
   */
  @java.lang.Override
  public java.lang.String getParent() {
    return parent_;
  }
  /**
   * string parent = 5 [json_name = "parent"];
   * @return The bytes for parent.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getParentBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(parent_);
  }
  /**
   * string parent = 5 [json_name = "parent"];
   * @param value The parent to set.
   */
  private void setParent(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    parent_ = value;
  }
  /**
   * string parent = 5 [json_name = "parent"];
   */
  private void clearParent() {

    parent_ = getDefaultInstance().getParent();
  }
  /**
   * string parent = 5 [json_name = "parent"];
   * @param value The bytes for parent to set.
   */
  private void setParentBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    parent_ = value.toStringUtf8();

  }

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

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

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


    /**
     * string event = 1 [json_name = "event"];
     * @return The event.
     */
    @java.lang.Override
    public java.lang.String getEvent() {
      return instance.getEvent();
    }
    /**
     * string event = 1 [json_name = "event"];
     * @return The bytes for event.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getEventBytes() {
      return instance.getEventBytes();
    }
    /**
     * string event = 1 [json_name = "event"];
     * @param value The event to set.
     * @return This builder for chaining.
     */
    public Builder setEvent(
        java.lang.String value) {
      copyOnWrite();
      instance.setEvent(value);
      return this;
    }
    /**
     * string event = 1 [json_name = "event"];
     * @return This builder for chaining.
     */
    public Builder clearEvent() {
      copyOnWrite();
      instance.clearEvent();
      return this;
    }
    /**
     * string event = 1 [json_name = "event"];
     * @param value The bytes for event to set.
     * @return This builder for chaining.
     */
    public Builder setEventBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setEventBytes(value);
      return this;
    }

    /**
     * string compare = 2 [json_name = "compare"];
     * @return The compare.
     */
    @java.lang.Override
    public java.lang.String getCompare() {
      return instance.getCompare();
    }
    /**
     * string compare = 2 [json_name = "compare"];
     * @return The bytes for compare.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCompareBytes() {
      return instance.getCompareBytes();
    }
    /**
     * string compare = 2 [json_name = "compare"];
     * @param value The compare to set.
     * @return This builder for chaining.
     */
    public Builder setCompare(
        java.lang.String value) {
      copyOnWrite();
      instance.setCompare(value);
      return this;
    }
    /**
     * string compare = 2 [json_name = "compare"];
     * @return This builder for chaining.
     */
    public Builder clearCompare() {
      copyOnWrite();
      instance.clearCompare();
      return this;
    }
    /**
     * string compare = 2 [json_name = "compare"];
     * @param value The bytes for compare to set.
     * @return This builder for chaining.
     */
    public Builder setCompareBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setCompareBytes(value);
      return this;
    }

    /**
     * string type = 3 [json_name = "type"];
     * @return The type.
     */
    @java.lang.Override
    public java.lang.String getType() {
      return instance.getType();
    }
    /**
     * string type = 3 [json_name = "type"];
     * @return The bytes for type.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTypeBytes() {
      return instance.getTypeBytes();
    }
    /**
     * string type = 3 [json_name = "type"];
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(
        java.lang.String value) {
      copyOnWrite();
      instance.setType(value);
      return this;
    }
    /**
     * string type = 3 [json_name = "type"];
     * @return This builder for chaining.
     */
    public Builder clearType() {
      copyOnWrite();
      instance.clearType();
      return this;
    }
    /**
     * string type = 3 [json_name = "type"];
     * @param value The bytes for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setTypeBytes(value);
      return this;
    }

    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @return A list containing the targets.
     */
    @java.lang.Override
    public java.util.List
        getTargetsList() {
      return java.util.Collections.unmodifiableList(
          instance.getTargetsList());
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @return The count of targets.
     */
    @java.lang.Override
    public int getTargetsCount() {
      return instance.getTargetsCount();
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @param index The index of the element to return.
     * @return The targets at the given index.
     */
    @java.lang.Override
    public java.lang.String getTargets(int index) {
      return instance.getTargets(index);
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @param index The index of the value to return.
     * @return The bytes of the targets at the given index.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTargetsBytes(int index) {
      return instance.getTargetsBytes(index);
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @param index The index to set the value at.
     * @param value The targets to set.
     * @return This builder for chaining.
     */
    public Builder setTargets(
        int index, java.lang.String value) {
      copyOnWrite();
      instance.setTargets(index, value);
      return this;
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @param value The targets to add.
     * @return This builder for chaining.
     */
    public Builder addTargets(
        java.lang.String value) {
      copyOnWrite();
      instance.addTargets(value);
      return this;
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @param values The targets to add.
     * @return This builder for chaining.
     */
    public Builder addAllTargets(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllTargets(values);
      return this;
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @return This builder for chaining.
     */
    public Builder clearTargets() {
      copyOnWrite();
      instance.clearTargets();
      return this;
    }
    /**
     * repeated string targets = 4 [json_name = "targets"];
     * @param value The bytes of the targets to add.
     * @return This builder for chaining.
     */
    public Builder addTargetsBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.addTargetsBytes(value);
      return this;
    }

    /**
     * string parent = 5 [json_name = "parent"];
     * @return The parent.
     */
    @java.lang.Override
    public java.lang.String getParent() {
      return instance.getParent();
    }
    /**
     * string parent = 5 [json_name = "parent"];
     * @return The bytes for parent.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getParentBytes() {
      return instance.getParentBytes();
    }
    /**
     * string parent = 5 [json_name = "parent"];
     * @param value The parent to set.
     * @return This builder for chaining.
     */
    public Builder setParent(
        java.lang.String value) {
      copyOnWrite();
      instance.setParent(value);
      return this;
    }
    /**
     * string parent = 5 [json_name = "parent"];
     * @return This builder for chaining.
     */
    public Builder clearParent() {
      copyOnWrite();
      instance.clearParent();
      return this;
    }
    /**
     * string parent = 5 [json_name = "parent"];
     * @param value The bytes for parent to set.
     * @return This builder for chaining.
     */
    public Builder setParentBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setParentBytes(value);
      return this;
    }

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

  public static com.streamlayer.triggers.TriggerConditionOption 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