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

io.lionweb.lioncore.protobuf.PBAttachPoint Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: io/lionweb/lioncore/protobuf/BulkImport.proto
// Protobuf Java Version: 4.27.2

package io.lionweb.lioncore.protobuf;

/**
 * Protobuf type {@code io.lionweb.lioncore.protobuf.PBAttachPoint}
 */
public final class PBAttachPoint extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:io.lionweb.lioncore.protobuf.PBAttachPoint)
    PBAttachPointOrBuilder {
private static final long serialVersionUID = 0L;
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 27,
      /* patch= */ 2,
      /* suffix= */ "",
      PBAttachPoint.class.getName());
  }
  // Use PBAttachPoint.newBuilder() to construct.
  private PBAttachPoint(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private PBAttachPoint() {
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBAttachPoint_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBAttachPoint_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.lionweb.lioncore.protobuf.PBAttachPoint.class, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder.class);
  }

  public static final int CONTAINER_FIELD_NUMBER = 1;
  private int container_ = 0;
  /**
   * int32 container = 1;
   * @return The container.
   */
  @java.lang.Override
  public int getContainer() {
    return container_;
  }

  public static final int METAPOINTERINDEX_FIELD_NUMBER = 2;
  private int metaPointerIndex_ = 0;
  /**
   * int32 metaPointerIndex = 2;
   * @return The metaPointerIndex.
   */
  @java.lang.Override
  public int getMetaPointerIndex() {
    return metaPointerIndex_;
  }

  public static final int ROOTID_FIELD_NUMBER = 3;
  private int rootId_ = 0;
  /**
   * int32 rootId = 3;
   * @return The rootId.
   */
  @java.lang.Override
  public int getRootId() {
    return rootId_;
  }

  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 (container_ != 0) {
      output.writeInt32(1, container_);
    }
    if (metaPointerIndex_ != 0) {
      output.writeInt32(2, metaPointerIndex_);
    }
    if (rootId_ != 0) {
      output.writeInt32(3, rootId_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (container_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, container_);
    }
    if (metaPointerIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, metaPointerIndex_);
    }
    if (rootId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, rootId_);
    }
    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 io.lionweb.lioncore.protobuf.PBAttachPoint)) {
      return super.equals(obj);
    }
    io.lionweb.lioncore.protobuf.PBAttachPoint other = (io.lionweb.lioncore.protobuf.PBAttachPoint) obj;

    if (getContainer()
        != other.getContainer()) return false;
    if (getMetaPointerIndex()
        != other.getMetaPointerIndex()) return false;
    if (getRootId()
        != other.getRootId()) 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();
    hash = (37 * hash) + CONTAINER_FIELD_NUMBER;
    hash = (53 * hash) + getContainer();
    hash = (37 * hash) + METAPOINTERINDEX_FIELD_NUMBER;
    hash = (53 * hash) + getMetaPointerIndex();
    hash = (37 * hash) + ROOTID_FIELD_NUMBER;
    hash = (53 * hash) + getRootId();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static io.lionweb.lioncore.protobuf.PBAttachPoint parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.lionweb.lioncore.protobuf.PBAttachPoint 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code io.lionweb.lioncore.protobuf.PBAttachPoint}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder implements
      // @@protoc_insertion_point(builder_implements:io.lionweb.lioncore.protobuf.PBAttachPoint)
      io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBAttachPoint_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBAttachPoint_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.lionweb.lioncore.protobuf.PBAttachPoint.class, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder.class);
    }

    // Construct using io.lionweb.lioncore.protobuf.PBAttachPoint.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      container_ = 0;
      metaPointerIndex_ = 0;
      rootId_ = 0;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBAttachPoint_descriptor;
    }

    @java.lang.Override
    public io.lionweb.lioncore.protobuf.PBAttachPoint getDefaultInstanceForType() {
      return io.lionweb.lioncore.protobuf.PBAttachPoint.getDefaultInstance();
    }

    @java.lang.Override
    public io.lionweb.lioncore.protobuf.PBAttachPoint build() {
      io.lionweb.lioncore.protobuf.PBAttachPoint result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.lionweb.lioncore.protobuf.PBAttachPoint buildPartial() {
      io.lionweb.lioncore.protobuf.PBAttachPoint result = new io.lionweb.lioncore.protobuf.PBAttachPoint(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(io.lionweb.lioncore.protobuf.PBAttachPoint result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.container_ = container_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.metaPointerIndex_ = metaPointerIndex_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.rootId_ = rootId_;
      }
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.lionweb.lioncore.protobuf.PBAttachPoint) {
        return mergeFrom((io.lionweb.lioncore.protobuf.PBAttachPoint)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.lionweb.lioncore.protobuf.PBAttachPoint other) {
      if (other == io.lionweb.lioncore.protobuf.PBAttachPoint.getDefaultInstance()) return this;
      if (other.getContainer() != 0) {
        setContainer(other.getContainer());
      }
      if (other.getMetaPointerIndex() != 0) {
        setMetaPointerIndex(other.getMetaPointerIndex());
      }
      if (other.getRootId() != 0) {
        setRootId(other.getRootId());
      }
      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 8: {
              container_ = input.readInt32();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              metaPointerIndex_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              rootId_ = input.readInt32();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            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 int container_ ;
    /**
     * int32 container = 1;
     * @return The container.
     */
    @java.lang.Override
    public int getContainer() {
      return container_;
    }
    /**
     * int32 container = 1;
     * @param value The container to set.
     * @return This builder for chaining.
     */
    public Builder setContainer(int value) {

      container_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * int32 container = 1;
     * @return This builder for chaining.
     */
    public Builder clearContainer() {
      bitField0_ = (bitField0_ & ~0x00000001);
      container_ = 0;
      onChanged();
      return this;
    }

    private int metaPointerIndex_ ;
    /**
     * int32 metaPointerIndex = 2;
     * @return The metaPointerIndex.
     */
    @java.lang.Override
    public int getMetaPointerIndex() {
      return metaPointerIndex_;
    }
    /**
     * int32 metaPointerIndex = 2;
     * @param value The metaPointerIndex to set.
     * @return This builder for chaining.
     */
    public Builder setMetaPointerIndex(int value) {

      metaPointerIndex_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * int32 metaPointerIndex = 2;
     * @return This builder for chaining.
     */
    public Builder clearMetaPointerIndex() {
      bitField0_ = (bitField0_ & ~0x00000002);
      metaPointerIndex_ = 0;
      onChanged();
      return this;
    }

    private int rootId_ ;
    /**
     * int32 rootId = 3;
     * @return The rootId.
     */
    @java.lang.Override
    public int getRootId() {
      return rootId_;
    }
    /**
     * int32 rootId = 3;
     * @param value The rootId to set.
     * @return This builder for chaining.
     */
    public Builder setRootId(int value) {

      rootId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * int32 rootId = 3;
     * @return This builder for chaining.
     */
    public Builder clearRootId() {
      bitField0_ = (bitField0_ & ~0x00000004);
      rootId_ = 0;
      onChanged();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:io.lionweb.lioncore.protobuf.PBAttachPoint)
  }

  // @@protoc_insertion_point(class_scope:io.lionweb.lioncore.protobuf.PBAttachPoint)
  private static final io.lionweb.lioncore.protobuf.PBAttachPoint DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.lionweb.lioncore.protobuf.PBAttachPoint();
  }

  public static io.lionweb.lioncore.protobuf.PBAttachPoint getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public PBAttachPoint 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 io.lionweb.lioncore.protobuf.PBAttachPoint getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy