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

com.scalar.dl.rpc.ContractRegistrationRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: scalar.proto

// Protobuf Java Version: 3.25.5
package com.scalar.dl.rpc;

/**
 * Protobuf type {@code rpc.ContractRegistrationRequest}
 */
public final class ContractRegistrationRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:rpc.ContractRegistrationRequest)
    ContractRegistrationRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ContractRegistrationRequest.newBuilder() to construct.
  private ContractRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ContractRegistrationRequest() {
    contractId_ = "";
    contractBinaryName_ = "";
    contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
    contractProperties_ = "";
    entityId_ = "";
    signature_ = com.google.protobuf.ByteString.EMPTY;
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_ContractRegistrationRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_ContractRegistrationRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.scalar.dl.rpc.ContractRegistrationRequest.class, com.scalar.dl.rpc.ContractRegistrationRequest.Builder.class);
  }

  public static final int CONTRACT_ID_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object contractId_ = "";
  /**
   * string contract_id = 1;
   * @return The contractId.
   */
  @java.lang.Override
  public java.lang.String getContractId() {
    java.lang.Object ref = contractId_;
    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();
      contractId_ = s;
      return s;
    }
  }
  /**
   * string contract_id = 1;
   * @return The bytes for contractId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContractIdBytes() {
    java.lang.Object ref = contractId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      contractId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTRACT_BINARY_NAME_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object contractBinaryName_ = "";
  /**
   * string contract_binary_name = 2;
   * @return The contractBinaryName.
   */
  @java.lang.Override
  public java.lang.String getContractBinaryName() {
    java.lang.Object ref = contractBinaryName_;
    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();
      contractBinaryName_ = s;
      return s;
    }
  }
  /**
   * string contract_binary_name = 2;
   * @return The bytes for contractBinaryName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContractBinaryNameBytes() {
    java.lang.Object ref = contractBinaryName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      contractBinaryName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTRACT_BYTE_CODE_FIELD_NUMBER = 3;
  private com.google.protobuf.ByteString contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes contract_byte_code = 3;
   * @return The contractByteCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getContractByteCode() {
    return contractByteCode_;
  }

  public static final int CONTRACT_PROPERTIES_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object contractProperties_ = "";
  /**
   * string contract_properties = 4;
   * @return The contractProperties.
   */
  @java.lang.Override
  public java.lang.String getContractProperties() {
    java.lang.Object ref = contractProperties_;
    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();
      contractProperties_ = s;
      return s;
    }
  }
  /**
   * string contract_properties = 4;
   * @return The bytes for contractProperties.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContractPropertiesBytes() {
    java.lang.Object ref = contractProperties_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      contractProperties_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENTITY_ID_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private volatile java.lang.Object entityId_ = "";
  /**
   * string entity_id = 5;
   * @return The entityId.
   */
  @java.lang.Override
  public java.lang.String getEntityId() {
    java.lang.Object ref = entityId_;
    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();
      entityId_ = s;
      return s;
    }
  }
  /**
   * string entity_id = 5;
   * @return The bytes for entityId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEntityIdBytes() {
    java.lang.Object ref = entityId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      entityId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int KEY_VERSION_FIELD_NUMBER = 6;
  private int keyVersion_ = 0;
  /**
   * uint32 key_version = 6;
   * @return The keyVersion.
   */
  @java.lang.Override
  public int getKeyVersion() {
    return keyVersion_;
  }

  public static final int SIGNATURE_FIELD_NUMBER = 7;
  private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes signature = 7;
   * @return The signature.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSignature() {
    return signature_;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractBinaryName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractBinaryName_);
    }
    if (!contractByteCode_.isEmpty()) {
      output.writeBytes(3, contractByteCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractProperties_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, contractProperties_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entityId_);
    }
    if (keyVersion_ != 0) {
      output.writeUInt32(6, keyVersion_);
    }
    if (!signature_.isEmpty()) {
      output.writeBytes(7, signature_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractBinaryName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractBinaryName_);
    }
    if (!contractByteCode_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(3, contractByteCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractProperties_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, contractProperties_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entityId_);
    }
    if (keyVersion_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(6, keyVersion_);
    }
    if (!signature_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(7, signature_);
    }
    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 com.scalar.dl.rpc.ContractRegistrationRequest)) {
      return super.equals(obj);
    }
    com.scalar.dl.rpc.ContractRegistrationRequest other = (com.scalar.dl.rpc.ContractRegistrationRequest) obj;

    if (!getContractId()
        .equals(other.getContractId())) return false;
    if (!getContractBinaryName()
        .equals(other.getContractBinaryName())) return false;
    if (!getContractByteCode()
        .equals(other.getContractByteCode())) return false;
    if (!getContractProperties()
        .equals(other.getContractProperties())) return false;
    if (!getEntityId()
        .equals(other.getEntityId())) return false;
    if (getKeyVersion()
        != other.getKeyVersion()) return false;
    if (!getSignature()
        .equals(other.getSignature())) 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) + CONTRACT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getContractId().hashCode();
    hash = (37 * hash) + CONTRACT_BINARY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getContractBinaryName().hashCode();
    hash = (37 * hash) + CONTRACT_BYTE_CODE_FIELD_NUMBER;
    hash = (53 * hash) + getContractByteCode().hashCode();
    hash = (37 * hash) + CONTRACT_PROPERTIES_FIELD_NUMBER;
    hash = (53 * hash) + getContractProperties().hashCode();
    hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
    hash = (53 * hash) + getEntityId().hashCode();
    hash = (37 * hash) + KEY_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getKeyVersion();
    hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
    hash = (53 * hash) + getSignature().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest 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 com.scalar.dl.rpc.ContractRegistrationRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.scalar.dl.rpc.ContractRegistrationRequest 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 com.scalar.dl.rpc.ContractRegistrationRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.dl.rpc.ContractRegistrationRequest 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(com.scalar.dl.rpc.ContractRegistrationRequest 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 rpc.ContractRegistrationRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:rpc.ContractRegistrationRequest)
      com.scalar.dl.rpc.ContractRegistrationRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_ContractRegistrationRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_ContractRegistrationRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.dl.rpc.ContractRegistrationRequest.class, com.scalar.dl.rpc.ContractRegistrationRequest.Builder.class);
    }

    // Construct using com.scalar.dl.rpc.ContractRegistrationRequest.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      contractId_ = "";
      contractBinaryName_ = "";
      contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
      contractProperties_ = "";
      entityId_ = "";
      keyVersion_ = 0;
      signature_ = com.google.protobuf.ByteString.EMPTY;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_ContractRegistrationRequest_descriptor;
    }

    @java.lang.Override
    public com.scalar.dl.rpc.ContractRegistrationRequest getDefaultInstanceForType() {
      return com.scalar.dl.rpc.ContractRegistrationRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.scalar.dl.rpc.ContractRegistrationRequest build() {
      com.scalar.dl.rpc.ContractRegistrationRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.scalar.dl.rpc.ContractRegistrationRequest buildPartial() {
      com.scalar.dl.rpc.ContractRegistrationRequest result = new com.scalar.dl.rpc.ContractRegistrationRequest(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.scalar.dl.rpc.ContractRegistrationRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.contractId_ = contractId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.contractBinaryName_ = contractBinaryName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.contractByteCode_ = contractByteCode_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.contractProperties_ = contractProperties_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.entityId_ = entityId_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.keyVersion_ = keyVersion_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.signature_ = signature_;
      }
    }

    @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 com.scalar.dl.rpc.ContractRegistrationRequest) {
        return mergeFrom((com.scalar.dl.rpc.ContractRegistrationRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.scalar.dl.rpc.ContractRegistrationRequest other) {
      if (other == com.scalar.dl.rpc.ContractRegistrationRequest.getDefaultInstance()) return this;
      if (!other.getContractId().isEmpty()) {
        contractId_ = other.contractId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getContractBinaryName().isEmpty()) {
        contractBinaryName_ = other.contractBinaryName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.getContractByteCode() != com.google.protobuf.ByteString.EMPTY) {
        setContractByteCode(other.getContractByteCode());
      }
      if (!other.getContractProperties().isEmpty()) {
        contractProperties_ = other.contractProperties_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getEntityId().isEmpty()) {
        entityId_ = other.entityId_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (other.getKeyVersion() != 0) {
        setKeyVersion(other.getKeyVersion());
      }
      if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
        setSignature(other.getSignature());
      }
      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: {
              contractId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              contractBinaryName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              contractByteCode_ = input.readBytes();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              contractProperties_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 42: {
              entityId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 48: {
              keyVersion_ = input.readUInt32();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 58: {
              signature_ = input.readBytes();
              bitField0_ |= 0x00000040;
              break;
            } // case 58
            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 java.lang.Object contractId_ = "";
    /**
     * string contract_id = 1;
     * @return The contractId.
     */
    public java.lang.String getContractId() {
      java.lang.Object ref = contractId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        contractId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string contract_id = 1;
     * @return The bytes for contractId.
     */
    public com.google.protobuf.ByteString
        getContractIdBytes() {
      java.lang.Object ref = contractId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        contractId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string contract_id = 1;
     * @param value The contractId to set.
     * @return This builder for chaining.
     */
    public Builder setContractId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      contractId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string contract_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearContractId() {
      contractId_ = getDefaultInstance().getContractId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string contract_id = 1;
     * @param value The bytes for contractId to set.
     * @return This builder for chaining.
     */
    public Builder setContractIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      contractId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object contractBinaryName_ = "";
    /**
     * string contract_binary_name = 2;
     * @return The contractBinaryName.
     */
    public java.lang.String getContractBinaryName() {
      java.lang.Object ref = contractBinaryName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        contractBinaryName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string contract_binary_name = 2;
     * @return The bytes for contractBinaryName.
     */
    public com.google.protobuf.ByteString
        getContractBinaryNameBytes() {
      java.lang.Object ref = contractBinaryName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        contractBinaryName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string contract_binary_name = 2;
     * @param value The contractBinaryName to set.
     * @return This builder for chaining.
     */
    public Builder setContractBinaryName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      contractBinaryName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * string contract_binary_name = 2;
     * @return This builder for chaining.
     */
    public Builder clearContractBinaryName() {
      contractBinaryName_ = getDefaultInstance().getContractBinaryName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * string contract_binary_name = 2;
     * @param value The bytes for contractBinaryName to set.
     * @return This builder for chaining.
     */
    public Builder setContractBinaryNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      contractBinaryName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private com.google.protobuf.ByteString contractByteCode_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes contract_byte_code = 3;
     * @return The contractByteCode.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getContractByteCode() {
      return contractByteCode_;
    }
    /**
     * bytes contract_byte_code = 3;
     * @param value The contractByteCode to set.
     * @return This builder for chaining.
     */
    public Builder setContractByteCode(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      contractByteCode_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * bytes contract_byte_code = 3;
     * @return This builder for chaining.
     */
    public Builder clearContractByteCode() {
      bitField0_ = (bitField0_ & ~0x00000004);
      contractByteCode_ = getDefaultInstance().getContractByteCode();
      onChanged();
      return this;
    }

    private java.lang.Object contractProperties_ = "";
    /**
     * string contract_properties = 4;
     * @return The contractProperties.
     */
    public java.lang.String getContractProperties() {
      java.lang.Object ref = contractProperties_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        contractProperties_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string contract_properties = 4;
     * @return The bytes for contractProperties.
     */
    public com.google.protobuf.ByteString
        getContractPropertiesBytes() {
      java.lang.Object ref = contractProperties_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        contractProperties_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string contract_properties = 4;
     * @param value The contractProperties to set.
     * @return This builder for chaining.
     */
    public Builder setContractProperties(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      contractProperties_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * string contract_properties = 4;
     * @return This builder for chaining.
     */
    public Builder clearContractProperties() {
      contractProperties_ = getDefaultInstance().getContractProperties();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * string contract_properties = 4;
     * @param value The bytes for contractProperties to set.
     * @return This builder for chaining.
     */
    public Builder setContractPropertiesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      contractProperties_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object entityId_ = "";
    /**
     * string entity_id = 5;
     * @return The entityId.
     */
    public java.lang.String getEntityId() {
      java.lang.Object ref = entityId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        entityId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string entity_id = 5;
     * @return The bytes for entityId.
     */
    public com.google.protobuf.ByteString
        getEntityIdBytes() {
      java.lang.Object ref = entityId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        entityId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string entity_id = 5;
     * @param value The entityId to set.
     * @return This builder for chaining.
     */
    public Builder setEntityId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      entityId_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * string entity_id = 5;
     * @return This builder for chaining.
     */
    public Builder clearEntityId() {
      entityId_ = getDefaultInstance().getEntityId();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * string entity_id = 5;
     * @param value The bytes for entityId to set.
     * @return This builder for chaining.
     */
    public Builder setEntityIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      entityId_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private int keyVersion_ ;
    /**
     * uint32 key_version = 6;
     * @return The keyVersion.
     */
    @java.lang.Override
    public int getKeyVersion() {
      return keyVersion_;
    }
    /**
     * uint32 key_version = 6;
     * @param value The keyVersion to set.
     * @return This builder for chaining.
     */
    public Builder setKeyVersion(int value) {

      keyVersion_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * uint32 key_version = 6;
     * @return This builder for chaining.
     */
    public Builder clearKeyVersion() {
      bitField0_ = (bitField0_ & ~0x00000020);
      keyVersion_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes signature = 7;
     * @return The signature.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getSignature() {
      return signature_;
    }
    /**
     * bytes signature = 7;
     * @param value The signature to set.
     * @return This builder for chaining.
     */
    public Builder setSignature(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      signature_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * bytes signature = 7;
     * @return This builder for chaining.
     */
    public Builder clearSignature() {
      bitField0_ = (bitField0_ & ~0x00000040);
      signature_ = getDefaultInstance().getSignature();
      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:rpc.ContractRegistrationRequest)
  }

  // @@protoc_insertion_point(class_scope:rpc.ContractRegistrationRequest)
  private static final com.scalar.dl.rpc.ContractRegistrationRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.scalar.dl.rpc.ContractRegistrationRequest();
  }

  public static com.scalar.dl.rpc.ContractRegistrationRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy