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

xyz.block.ftl.v1.SendFSMEventRequest Maven / Gradle / Ivy

There is a newer version: 0.368.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xyz/block/ftl/v1/ftl.proto

// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1;

/**
 * Protobuf type {@code xyz.block.ftl.v1.SendFSMEventRequest}
 */
public final class SendFSMEventRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.SendFSMEventRequest)
    SendFSMEventRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SendFSMEventRequest.newBuilder() to construct.
  private SendFSMEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SendFSMEventRequest() {
    instance_ = "";
    body_ = com.google.protobuf.ByteString.EMPTY;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new SendFSMEventRequest();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_SendFSMEventRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_SendFSMEventRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            xyz.block.ftl.v1.SendFSMEventRequest.class, xyz.block.ftl.v1.SendFSMEventRequest.Builder.class);
  }

  private int bitField0_;
  public static final int FSM_FIELD_NUMBER = 1;
  private xyz.block.ftl.v1.schema.Ref fsm_;
  /**
   * .xyz.block.ftl.v1.schema.Ref fsm = 1;
   * @return Whether the fsm field is set.
   */
  @java.lang.Override
  public boolean hasFsm() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .xyz.block.ftl.v1.schema.Ref fsm = 1;
   * @return The fsm.
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.Ref getFsm() {
    return fsm_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : fsm_;
  }
  /**
   * .xyz.block.ftl.v1.schema.Ref fsm = 1;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.RefOrBuilder getFsmOrBuilder() {
    return fsm_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : fsm_;
  }

  public static final int INSTANCE_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object instance_ = "";
  /**
   * string instance = 2;
   * @return The instance.
   */
  @java.lang.Override
  public java.lang.String getInstance() {
    java.lang.Object ref = instance_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      instance_ = s;
      return s;
    }
  }
  /**
   * string instance = 2;
   * @return The bytes for instance.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInstanceBytes() {
    java.lang.Object ref = instance_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      instance_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EVENT_FIELD_NUMBER = 3;
  private xyz.block.ftl.v1.schema.Type event_;
  /**
   * .xyz.block.ftl.v1.schema.Type event = 3;
   * @return Whether the event field is set.
   */
  @java.lang.Override
  public boolean hasEvent() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .xyz.block.ftl.v1.schema.Type event = 3;
   * @return The event.
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.Type getEvent() {
    return event_ == null ? xyz.block.ftl.v1.schema.Type.getDefaultInstance() : event_;
  }
  /**
   * .xyz.block.ftl.v1.schema.Type event = 3;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.TypeOrBuilder getEventOrBuilder() {
    return event_ == null ? xyz.block.ftl.v1.schema.Type.getDefaultInstance() : event_;
  }

  public static final int BODY_FIELD_NUMBER = 4;
  private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes body = 4;
   * @return The body.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getBody() {
    return body_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getFsm());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instance_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getEvent());
    }
    if (!body_.isEmpty()) {
      output.writeBytes(4, body_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getFsm());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instance_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getEvent());
    }
    if (!body_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(4, body_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof xyz.block.ftl.v1.SendFSMEventRequest)) {
      return super.equals(obj);
    }
    xyz.block.ftl.v1.SendFSMEventRequest other = (xyz.block.ftl.v1.SendFSMEventRequest) obj;

    if (hasFsm() != other.hasFsm()) return false;
    if (hasFsm()) {
      if (!getFsm()
          .equals(other.getFsm())) return false;
    }
    if (!getInstance()
        .equals(other.getInstance())) return false;
    if (hasEvent() != other.hasEvent()) return false;
    if (hasEvent()) {
      if (!getEvent()
          .equals(other.getEvent())) return false;
    }
    if (!getBody()
        .equals(other.getBody())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasFsm()) {
      hash = (37 * hash) + FSM_FIELD_NUMBER;
      hash = (53 * hash) + getFsm().hashCode();
    }
    hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
    hash = (53 * hash) + getInstance().hashCode();
    if (hasEvent()) {
      hash = (37 * hash) + EVENT_FIELD_NUMBER;
      hash = (53 * hash) + getEvent().hashCode();
    }
    hash = (37 * hash) + BODY_FIELD_NUMBER;
    hash = (53 * hash) + getBody().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static xyz.block.ftl.v1.SendFSMEventRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static xyz.block.ftl.v1.SendFSMEventRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static xyz.block.ftl.v1.SendFSMEventRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(xyz.block.ftl.v1.SendFSMEventRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code xyz.block.ftl.v1.SendFSMEventRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.SendFSMEventRequest)
      xyz.block.ftl.v1.SendFSMEventRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_SendFSMEventRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_SendFSMEventRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              xyz.block.ftl.v1.SendFSMEventRequest.class, xyz.block.ftl.v1.SendFSMEventRequest.Builder.class);
    }

    // Construct using xyz.block.ftl.v1.SendFSMEventRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getFsmFieldBuilder();
        getEventFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      fsm_ = null;
      if (fsmBuilder_ != null) {
        fsmBuilder_.dispose();
        fsmBuilder_ = null;
      }
      instance_ = "";
      event_ = null;
      if (eventBuilder_ != null) {
        eventBuilder_.dispose();
        eventBuilder_ = null;
      }
      body_ = com.google.protobuf.ByteString.EMPTY;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_SendFSMEventRequest_descriptor;
    }

    @java.lang.Override
    public xyz.block.ftl.v1.SendFSMEventRequest getDefaultInstanceForType() {
      return xyz.block.ftl.v1.SendFSMEventRequest.getDefaultInstance();
    }

    @java.lang.Override
    public xyz.block.ftl.v1.SendFSMEventRequest build() {
      xyz.block.ftl.v1.SendFSMEventRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public xyz.block.ftl.v1.SendFSMEventRequest buildPartial() {
      xyz.block.ftl.v1.SendFSMEventRequest result = new xyz.block.ftl.v1.SendFSMEventRequest(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(xyz.block.ftl.v1.SendFSMEventRequest result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.fsm_ = fsmBuilder_ == null
            ? fsm_
            : fsmBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.instance_ = instance_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.event_ = eventBuilder_ == null
            ? event_
            : eventBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.body_ = body_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof xyz.block.ftl.v1.SendFSMEventRequest) {
        return mergeFrom((xyz.block.ftl.v1.SendFSMEventRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(xyz.block.ftl.v1.SendFSMEventRequest other) {
      if (other == xyz.block.ftl.v1.SendFSMEventRequest.getDefaultInstance()) return this;
      if (other.hasFsm()) {
        mergeFsm(other.getFsm());
      }
      if (!other.getInstance().isEmpty()) {
        instance_ = other.instance_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.hasEvent()) {
        mergeEvent(other.getEvent());
      }
      if (other.getBody() != com.google.protobuf.ByteString.EMPTY) {
        setBody(other.getBody());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getFsmFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              instance_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getEventFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              body_ = input.readBytes();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private xyz.block.ftl.v1.schema.Ref fsm_;
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder> fsmBuilder_;
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     * @return Whether the fsm field is set.
     */
    public boolean hasFsm() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     * @return The fsm.
     */
    public xyz.block.ftl.v1.schema.Ref getFsm() {
      if (fsmBuilder_ == null) {
        return fsm_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : fsm_;
      } else {
        return fsmBuilder_.getMessage();
      }
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    public Builder setFsm(xyz.block.ftl.v1.schema.Ref value) {
      if (fsmBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        fsm_ = value;
      } else {
        fsmBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    public Builder setFsm(
        xyz.block.ftl.v1.schema.Ref.Builder builderForValue) {
      if (fsmBuilder_ == null) {
        fsm_ = builderForValue.build();
      } else {
        fsmBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    public Builder mergeFsm(xyz.block.ftl.v1.schema.Ref value) {
      if (fsmBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          fsm_ != null &&
          fsm_ != xyz.block.ftl.v1.schema.Ref.getDefaultInstance()) {
          getFsmBuilder().mergeFrom(value);
        } else {
          fsm_ = value;
        }
      } else {
        fsmBuilder_.mergeFrom(value);
      }
      if (fsm_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    public Builder clearFsm() {
      bitField0_ = (bitField0_ & ~0x00000001);
      fsm_ = null;
      if (fsmBuilder_ != null) {
        fsmBuilder_.dispose();
        fsmBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    public xyz.block.ftl.v1.schema.Ref.Builder getFsmBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getFsmFieldBuilder().getBuilder();
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    public xyz.block.ftl.v1.schema.RefOrBuilder getFsmOrBuilder() {
      if (fsmBuilder_ != null) {
        return fsmBuilder_.getMessageOrBuilder();
      } else {
        return fsm_ == null ?
            xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : fsm_;
      }
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref fsm = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder> 
        getFsmFieldBuilder() {
      if (fsmBuilder_ == null) {
        fsmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder>(
                getFsm(),
                getParentForChildren(),
                isClean());
        fsm_ = null;
      }
      return fsmBuilder_;
    }

    private java.lang.Object instance_ = "";
    /**
     * string instance = 2;
     * @return The instance.
     */
    public java.lang.String getInstance() {
      java.lang.Object ref = instance_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        instance_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string instance = 2;
     * @return The bytes for instance.
     */
    public com.google.protobuf.ByteString
        getInstanceBytes() {
      java.lang.Object ref = instance_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        instance_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string instance = 2;
     * @param value The instance to set.
     * @return This builder for chaining.
     */
    public Builder setInstance(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      instance_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * string instance = 2;
     * @return This builder for chaining.
     */
    public Builder clearInstance() {
      instance_ = getDefaultInstance().getInstance();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * string instance = 2;
     * @param value The bytes for instance to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      instance_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private xyz.block.ftl.v1.schema.Type event_;
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Type, xyz.block.ftl.v1.schema.Type.Builder, xyz.block.ftl.v1.schema.TypeOrBuilder> eventBuilder_;
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     * @return Whether the event field is set.
     */
    public boolean hasEvent() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     * @return The event.
     */
    public xyz.block.ftl.v1.schema.Type getEvent() {
      if (eventBuilder_ == null) {
        return event_ == null ? xyz.block.ftl.v1.schema.Type.getDefaultInstance() : event_;
      } else {
        return eventBuilder_.getMessage();
      }
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    public Builder setEvent(xyz.block.ftl.v1.schema.Type value) {
      if (eventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        event_ = value;
      } else {
        eventBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    public Builder setEvent(
        xyz.block.ftl.v1.schema.Type.Builder builderForValue) {
      if (eventBuilder_ == null) {
        event_ = builderForValue.build();
      } else {
        eventBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    public Builder mergeEvent(xyz.block.ftl.v1.schema.Type value) {
      if (eventBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          event_ != null &&
          event_ != xyz.block.ftl.v1.schema.Type.getDefaultInstance()) {
          getEventBuilder().mergeFrom(value);
        } else {
          event_ = value;
        }
      } else {
        eventBuilder_.mergeFrom(value);
      }
      if (event_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    public Builder clearEvent() {
      bitField0_ = (bitField0_ & ~0x00000004);
      event_ = null;
      if (eventBuilder_ != null) {
        eventBuilder_.dispose();
        eventBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    public xyz.block.ftl.v1.schema.Type.Builder getEventBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getEventFieldBuilder().getBuilder();
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    public xyz.block.ftl.v1.schema.TypeOrBuilder getEventOrBuilder() {
      if (eventBuilder_ != null) {
        return eventBuilder_.getMessageOrBuilder();
      } else {
        return event_ == null ?
            xyz.block.ftl.v1.schema.Type.getDefaultInstance() : event_;
      }
    }
    /**
     * .xyz.block.ftl.v1.schema.Type event = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Type, xyz.block.ftl.v1.schema.Type.Builder, xyz.block.ftl.v1.schema.TypeOrBuilder> 
        getEventFieldBuilder() {
      if (eventBuilder_ == null) {
        eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            xyz.block.ftl.v1.schema.Type, xyz.block.ftl.v1.schema.Type.Builder, xyz.block.ftl.v1.schema.TypeOrBuilder>(
                getEvent(),
                getParentForChildren(),
                isClean());
        event_ = null;
      }
      return eventBuilder_;
    }

    private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes body = 4;
     * @return The body.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getBody() {
      return body_;
    }
    /**
     * bytes body = 4;
     * @param value The body to set.
     * @return This builder for chaining.
     */
    public Builder setBody(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      body_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * bytes body = 4;
     * @return This builder for chaining.
     */
    public Builder clearBody() {
      bitField0_ = (bitField0_ & ~0x00000008);
      body_ = getDefaultInstance().getBody();
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:xyz.block.ftl.v1.SendFSMEventRequest)
  }

  // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.SendFSMEventRequest)
  private static final xyz.block.ftl.v1.SendFSMEventRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new xyz.block.ftl.v1.SendFSMEventRequest();
  }

  public static xyz.block.ftl.v1.SendFSMEventRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public SendFSMEventRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public xyz.block.ftl.v1.SendFSMEventRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy