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

io.provenance.metadata.v0.MsgChangeOwnershipRequest Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: provenance/metadata/v0/tx.proto

package io.provenance.metadata.v0;

/**
 * 
 * MsgChangeOwnershipRequest records the result of a change ownership p8e contract execution
 * 
* * Protobuf type {@code tx.MsgChangeOwnershipRequest} */ public final class MsgChangeOwnershipRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tx.MsgChangeOwnershipRequest) MsgChangeOwnershipRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MsgChangeOwnershipRequest.newBuilder() to construct. private MsgChangeOwnershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgChangeOwnershipRequest() { scopeId_ = ""; groupId_ = ""; executionId_ = ""; notary_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgChangeOwnershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); scopeId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); groupId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); executionId_ = s; break; } case 34: { io.provenance.metadata.v0.Recitals.Builder subBuilder = null; if (recitals_ != null) { subBuilder = recitals_.toBuilder(); } recitals_ = input.readMessage(io.provenance.metadata.v0.Recitals.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(recitals_); recitals_ = subBuilder.buildPartial(); } break; } case 42: { io.provenance.metadata.v0.Contract.Builder subBuilder = null; if (contract_ != null) { subBuilder = contract_.toBuilder(); } contract_ = input.readMessage(io.provenance.metadata.v0.Contract.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contract_); contract_ = subBuilder.buildPartial(); } break; } case 50: { io.provenance.metadata.v0.SignatureSet.Builder subBuilder = null; if (signatures_ != null) { subBuilder = signatures_.toBuilder(); } signatures_ = input.readMessage(io.provenance.metadata.v0.SignatureSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signatures_); signatures_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); notary_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v0.Tx.internal_static_tx_MsgChangeOwnershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v0.Tx.internal_static_tx_MsgChangeOwnershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v0.MsgChangeOwnershipRequest.class, io.provenance.metadata.v0.MsgChangeOwnershipRequest.Builder.class); } public static final int SCOPE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object scopeId_; /** *
   * The scope of the object being modified on blockchain.
   * 
* * string scope_id = 1; */ public java.lang.String getScopeId() { java.lang.Object ref = scopeId_; 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(); scopeId_ = s; return s; } } /** *
   * The scope of the object being modified on blockchain.
   * 
* * string scope_id = 1; */ public com.google.protobuf.ByteString getScopeIdBytes() { java.lang.Object ref = scopeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scopeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object groupId_; /** *
   * The uuid of the contract execution.
   * 
* * string group_id = 2; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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(); groupId_ = s; return s; } } /** *
   * The uuid of the contract execution.
   * 
* * string group_id = 2; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXECUTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object executionId_; /** *
   * Unique identifier for determining contract/group execution instance
   * 
* * string execution_id = 3; */ public java.lang.String getExecutionId() { java.lang.Object ref = executionId_; 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(); executionId_ = s; return s; } } /** *
   * Unique identifier for determining contract/group execution instance
   * 
* * string execution_id = 3; */ public com.google.protobuf.ByteString getExecutionIdBytes() { java.lang.Object ref = executionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); executionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECITALS_FIELD_NUMBER = 4; private io.provenance.metadata.v0.Recitals recitals_; /** *
   * The recitals to use for the scope parties
   * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public boolean hasRecitals() { return recitals_ != null; } /** *
   * The recitals to use for the scope parties
   * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.Recitals getRecitals() { return recitals_ == null ? io.provenance.metadata.v0.Recitals.getDefaultInstance() : recitals_; } /** *
   * The recitals to use for the scope parties
   * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.RecitalsOrBuilder getRecitalsOrBuilder() { return getRecitals(); } public static final int CONTRACT_FIELD_NUMBER = 5; private io.provenance.metadata.v0.Contract contract_; /** *
   * The executed contract.
   * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public boolean hasContract() { return contract_ != null; } /** *
   * The executed contract.
   * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.Contract getContract() { return contract_ == null ? io.provenance.metadata.v0.Contract.getDefaultInstance() : contract_; } /** *
   * The executed contract.
   * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.ContractOrBuilder getContractOrBuilder() { return getContract(); } public static final int SIGNATURES_FIELD_NUMBER = 6; private io.provenance.metadata.v0.SignatureSet signatures_; /** *
   * The contract signatures
   * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public boolean hasSignatures() { return signatures_ != null; } /** *
   * The contract signatures
   * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.SignatureSet getSignatures() { return signatures_ == null ? io.provenance.metadata.v0.SignatureSet.getDefaultInstance() : signatures_; } /** *
   * The contract signatures
   * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.SignatureSetOrBuilder getSignaturesOrBuilder() { return getSignatures(); } public static final int NOTARY_FIELD_NUMBER = 7; private volatile java.lang.Object notary_; /** *
   * The address of the notary (ie the broadcaster of this message).
   * 
* * string notary = 7; */ public java.lang.String getNotary() { java.lang.Object ref = notary_; 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(); notary_ = s; return s; } } /** *
   * The address of the notary (ie the broadcaster of this message).
   * 
* * string notary = 7; */ public com.google.protobuf.ByteString getNotaryBytes() { java.lang.Object ref = notary_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); notary_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!getScopeIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeId_); } if (!getGroupIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupId_); } if (!getExecutionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, executionId_); } if (recitals_ != null) { output.writeMessage(4, getRecitals()); } if (contract_ != null) { output.writeMessage(5, getContract()); } if (signatures_ != null) { output.writeMessage(6, getSignatures()); } if (!getNotaryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, notary_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getScopeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeId_); } if (!getGroupIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupId_); } if (!getExecutionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, executionId_); } if (recitals_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRecitals()); } if (contract_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getContract()); } if (signatures_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSignatures()); } if (!getNotaryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, notary_); } size += unknownFields.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.provenance.metadata.v0.MsgChangeOwnershipRequest)) { return super.equals(obj); } io.provenance.metadata.v0.MsgChangeOwnershipRequest other = (io.provenance.metadata.v0.MsgChangeOwnershipRequest) obj; boolean result = true; result = result && getScopeId() .equals(other.getScopeId()); result = result && getGroupId() .equals(other.getGroupId()); result = result && getExecutionId() .equals(other.getExecutionId()); result = result && (hasRecitals() == other.hasRecitals()); if (hasRecitals()) { result = result && getRecitals() .equals(other.getRecitals()); } result = result && (hasContract() == other.hasContract()); if (hasContract()) { result = result && getContract() .equals(other.getContract()); } result = result && (hasSignatures() == other.hasSignatures()); if (hasSignatures()) { result = result && getSignatures() .equals(other.getSignatures()); } result = result && getNotary() .equals(other.getNotary()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCOPE_ID_FIELD_NUMBER; hash = (53 * hash) + getScopeId().hashCode(); hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getGroupId().hashCode(); hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; hash = (53 * hash) + getExecutionId().hashCode(); if (hasRecitals()) { hash = (37 * hash) + RECITALS_FIELD_NUMBER; hash = (53 * hash) + getRecitals().hashCode(); } if (hasContract()) { hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); } if (hasSignatures()) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignatures().hashCode(); } hash = (37 * hash) + NOTARY_FIELD_NUMBER; hash = (53 * hash) + getNotary().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest 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 io.provenance.metadata.v0.MsgChangeOwnershipRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest 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 io.provenance.metadata.v0.MsgChangeOwnershipRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest 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(io.provenance.metadata.v0.MsgChangeOwnershipRequest 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; } /** *
   * MsgChangeOwnershipRequest records the result of a change ownership p8e contract execution
   * 
* * Protobuf type {@code tx.MsgChangeOwnershipRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tx.MsgChangeOwnershipRequest) io.provenance.metadata.v0.MsgChangeOwnershipRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v0.Tx.internal_static_tx_MsgChangeOwnershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v0.Tx.internal_static_tx_MsgChangeOwnershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v0.MsgChangeOwnershipRequest.class, io.provenance.metadata.v0.MsgChangeOwnershipRequest.Builder.class); } // Construct using io.provenance.metadata.v0.MsgChangeOwnershipRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); scopeId_ = ""; groupId_ = ""; executionId_ = ""; if (recitalsBuilder_ == null) { recitals_ = null; } else { recitals_ = null; recitalsBuilder_ = null; } if (contractBuilder_ == null) { contract_ = null; } else { contract_ = null; contractBuilder_ = null; } if (signaturesBuilder_ == null) { signatures_ = null; } else { signatures_ = null; signaturesBuilder_ = null; } notary_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v0.Tx.internal_static_tx_MsgChangeOwnershipRequest_descriptor; } @java.lang.Override public io.provenance.metadata.v0.MsgChangeOwnershipRequest getDefaultInstanceForType() { return io.provenance.metadata.v0.MsgChangeOwnershipRequest.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v0.MsgChangeOwnershipRequest build() { io.provenance.metadata.v0.MsgChangeOwnershipRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v0.MsgChangeOwnershipRequest buildPartial() { io.provenance.metadata.v0.MsgChangeOwnershipRequest result = new io.provenance.metadata.v0.MsgChangeOwnershipRequest(this); result.scopeId_ = scopeId_; result.groupId_ = groupId_; result.executionId_ = executionId_; if (recitalsBuilder_ == null) { result.recitals_ = recitals_; } else { result.recitals_ = recitalsBuilder_.build(); } if (contractBuilder_ == null) { result.contract_ = contract_; } else { result.contract_ = contractBuilder_.build(); } if (signaturesBuilder_ == null) { result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.build(); } result.notary_ = notary_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.provenance.metadata.v0.MsgChangeOwnershipRequest) { return mergeFrom((io.provenance.metadata.v0.MsgChangeOwnershipRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v0.MsgChangeOwnershipRequest other) { if (other == io.provenance.metadata.v0.MsgChangeOwnershipRequest.getDefaultInstance()) return this; if (!other.getScopeId().isEmpty()) { scopeId_ = other.scopeId_; onChanged(); } if (!other.getGroupId().isEmpty()) { groupId_ = other.groupId_; onChanged(); } if (!other.getExecutionId().isEmpty()) { executionId_ = other.executionId_; onChanged(); } if (other.hasRecitals()) { mergeRecitals(other.getRecitals()); } if (other.hasContract()) { mergeContract(other.getContract()); } if (other.hasSignatures()) { mergeSignatures(other.getSignatures()); } if (!other.getNotary().isEmpty()) { notary_ = other.notary_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { io.provenance.metadata.v0.MsgChangeOwnershipRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v0.MsgChangeOwnershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object scopeId_ = ""; /** *
     * The scope of the object being modified on blockchain.
     * 
* * string scope_id = 1; */ public java.lang.String getScopeId() { java.lang.Object ref = scopeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scopeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The scope of the object being modified on blockchain.
     * 
* * string scope_id = 1; */ public com.google.protobuf.ByteString getScopeIdBytes() { java.lang.Object ref = scopeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scopeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The scope of the object being modified on blockchain.
     * 
* * string scope_id = 1; */ public Builder setScopeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } scopeId_ = value; onChanged(); return this; } /** *
     * The scope of the object being modified on blockchain.
     * 
* * string scope_id = 1; */ public Builder clearScopeId() { scopeId_ = getDefaultInstance().getScopeId(); onChanged(); return this; } /** *
     * The scope of the object being modified on blockchain.
     * 
* * string scope_id = 1; */ public Builder setScopeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scopeId_ = value; onChanged(); return this; } private java.lang.Object groupId_ = ""; /** *
     * The uuid of the contract execution.
     * 
* * string group_id = 2; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The uuid of the contract execution.
     * 
* * string group_id = 2; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The uuid of the contract execution.
     * 
* * string group_id = 2; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } groupId_ = value; onChanged(); return this; } /** *
     * The uuid of the contract execution.
     * 
* * string group_id = 2; */ public Builder clearGroupId() { groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** *
     * The uuid of the contract execution.
     * 
* * string group_id = 2; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); groupId_ = value; onChanged(); return this; } private java.lang.Object executionId_ = ""; /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * string execution_id = 3; */ public java.lang.String getExecutionId() { java.lang.Object ref = executionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * string execution_id = 3; */ public com.google.protobuf.ByteString getExecutionIdBytes() { java.lang.Object ref = executionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); executionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * string execution_id = 3; */ public Builder setExecutionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } executionId_ = value; onChanged(); return this; } /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * string execution_id = 3; */ public Builder clearExecutionId() { executionId_ = getDefaultInstance().getExecutionId(); onChanged(); return this; } /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * string execution_id = 3; */ public Builder setExecutionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); executionId_ = value; onChanged(); return this; } private io.provenance.metadata.v0.Recitals recitals_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.Recitals, io.provenance.metadata.v0.Recitals.Builder, io.provenance.metadata.v0.RecitalsOrBuilder> recitalsBuilder_; /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public boolean hasRecitals() { return recitalsBuilder_ != null || recitals_ != null; } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.Recitals getRecitals() { if (recitalsBuilder_ == null) { return recitals_ == null ? io.provenance.metadata.v0.Recitals.getDefaultInstance() : recitals_; } else { return recitalsBuilder_.getMessage(); } } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public Builder setRecitals(io.provenance.metadata.v0.Recitals value) { if (recitalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recitals_ = value; onChanged(); } else { recitalsBuilder_.setMessage(value); } return this; } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public Builder setRecitals( io.provenance.metadata.v0.Recitals.Builder builderForValue) { if (recitalsBuilder_ == null) { recitals_ = builderForValue.build(); onChanged(); } else { recitalsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public Builder mergeRecitals(io.provenance.metadata.v0.Recitals value) { if (recitalsBuilder_ == null) { if (recitals_ != null) { recitals_ = io.provenance.metadata.v0.Recitals.newBuilder(recitals_).mergeFrom(value).buildPartial(); } else { recitals_ = value; } onChanged(); } else { recitalsBuilder_.mergeFrom(value); } return this; } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public Builder clearRecitals() { if (recitalsBuilder_ == null) { recitals_ = null; onChanged(); } else { recitals_ = null; recitalsBuilder_ = null; } return this; } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.Recitals.Builder getRecitalsBuilder() { onChanged(); return getRecitalsFieldBuilder().getBuilder(); } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.RecitalsOrBuilder getRecitalsOrBuilder() { if (recitalsBuilder_ != null) { return recitalsBuilder_.getMessageOrBuilder(); } else { return recitals_ == null ? io.provenance.metadata.v0.Recitals.getDefaultInstance() : recitals_; } } /** *
     * The recitals to use for the scope parties
     * 
* * .contract.Recitals recitals = 4 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.Recitals, io.provenance.metadata.v0.Recitals.Builder, io.provenance.metadata.v0.RecitalsOrBuilder> getRecitalsFieldBuilder() { if (recitalsBuilder_ == null) { recitalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.Recitals, io.provenance.metadata.v0.Recitals.Builder, io.provenance.metadata.v0.RecitalsOrBuilder>( getRecitals(), getParentForChildren(), isClean()); recitals_ = null; } return recitalsBuilder_; } private io.provenance.metadata.v0.Contract contract_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.Contract, io.provenance.metadata.v0.Contract.Builder, io.provenance.metadata.v0.ContractOrBuilder> contractBuilder_; /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public boolean hasContract() { return contractBuilder_ != null || contract_ != null; } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.Contract getContract() { if (contractBuilder_ == null) { return contract_ == null ? io.provenance.metadata.v0.Contract.getDefaultInstance() : contract_; } else { return contractBuilder_.getMessage(); } } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public Builder setContract(io.provenance.metadata.v0.Contract value) { if (contractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contract_ = value; onChanged(); } else { contractBuilder_.setMessage(value); } return this; } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public Builder setContract( io.provenance.metadata.v0.Contract.Builder builderForValue) { if (contractBuilder_ == null) { contract_ = builderForValue.build(); onChanged(); } else { contractBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public Builder mergeContract(io.provenance.metadata.v0.Contract value) { if (contractBuilder_ == null) { if (contract_ != null) { contract_ = io.provenance.metadata.v0.Contract.newBuilder(contract_).mergeFrom(value).buildPartial(); } else { contract_ = value; } onChanged(); } else { contractBuilder_.mergeFrom(value); } return this; } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public Builder clearContract() { if (contractBuilder_ == null) { contract_ = null; onChanged(); } else { contract_ = null; contractBuilder_ = null; } return this; } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.Contract.Builder getContractBuilder() { onChanged(); return getContractFieldBuilder().getBuilder(); } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.ContractOrBuilder getContractOrBuilder() { if (contractBuilder_ != null) { return contractBuilder_.getMessageOrBuilder(); } else { return contract_ == null ? io.provenance.metadata.v0.Contract.getDefaultInstance() : contract_; } } /** *
     * The executed contract.
     * 
* * .contract.Contract contract = 5 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.Contract, io.provenance.metadata.v0.Contract.Builder, io.provenance.metadata.v0.ContractOrBuilder> getContractFieldBuilder() { if (contractBuilder_ == null) { contractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.Contract, io.provenance.metadata.v0.Contract.Builder, io.provenance.metadata.v0.ContractOrBuilder>( getContract(), getParentForChildren(), isClean()); contract_ = null; } return contractBuilder_; } private io.provenance.metadata.v0.SignatureSet signatures_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.SignatureSet, io.provenance.metadata.v0.SignatureSet.Builder, io.provenance.metadata.v0.SignatureSetOrBuilder> signaturesBuilder_; /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public boolean hasSignatures() { return signaturesBuilder_ != null || signatures_ != null; } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.SignatureSet getSignatures() { if (signaturesBuilder_ == null) { return signatures_ == null ? io.provenance.metadata.v0.SignatureSet.getDefaultInstance() : signatures_; } else { return signaturesBuilder_.getMessage(); } } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public Builder setSignatures(io.provenance.metadata.v0.SignatureSet value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signatures_ = value; onChanged(); } else { signaturesBuilder_.setMessage(value); } return this; } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public Builder setSignatures( io.provenance.metadata.v0.SignatureSet.Builder builderForValue) { if (signaturesBuilder_ == null) { signatures_ = builderForValue.build(); onChanged(); } else { signaturesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public Builder mergeSignatures(io.provenance.metadata.v0.SignatureSet value) { if (signaturesBuilder_ == null) { if (signatures_ != null) { signatures_ = io.provenance.metadata.v0.SignatureSet.newBuilder(signatures_).mergeFrom(value).buildPartial(); } else { signatures_ = value; } onChanged(); } else { signaturesBuilder_.mergeFrom(value); } return this; } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = null; onChanged(); } else { signatures_ = null; signaturesBuilder_ = null; } return this; } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.SignatureSet.Builder getSignaturesBuilder() { onChanged(); return getSignaturesFieldBuilder().getBuilder(); } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v0.SignatureSetOrBuilder getSignaturesOrBuilder() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilder(); } else { return signatures_ == null ? io.provenance.metadata.v0.SignatureSet.getDefaultInstance() : signatures_; } } /** *
     * The contract signatures
     * 
* * .types.SignatureSet signatures = 6 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.SignatureSet, io.provenance.metadata.v0.SignatureSet.Builder, io.provenance.metadata.v0.SignatureSetOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v0.SignatureSet, io.provenance.metadata.v0.SignatureSet.Builder, io.provenance.metadata.v0.SignatureSetOrBuilder>( getSignatures(), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } private java.lang.Object notary_ = ""; /** *
     * The address of the notary (ie the broadcaster of this message).
     * 
* * string notary = 7; */ public java.lang.String getNotary() { java.lang.Object ref = notary_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notary_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The address of the notary (ie the broadcaster of this message).
     * 
* * string notary = 7; */ public com.google.protobuf.ByteString getNotaryBytes() { java.lang.Object ref = notary_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); notary_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The address of the notary (ie the broadcaster of this message).
     * 
* * string notary = 7; */ public Builder setNotary( java.lang.String value) { if (value == null) { throw new NullPointerException(); } notary_ = value; onChanged(); return this; } /** *
     * The address of the notary (ie the broadcaster of this message).
     * 
* * string notary = 7; */ public Builder clearNotary() { notary_ = getDefaultInstance().getNotary(); onChanged(); return this; } /** *
     * The address of the notary (ie the broadcaster of this message).
     * 
* * string notary = 7; */ public Builder setNotaryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notary_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tx.MsgChangeOwnershipRequest) } // @@protoc_insertion_point(class_scope:tx.MsgChangeOwnershipRequest) private static final io.provenance.metadata.v0.MsgChangeOwnershipRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v0.MsgChangeOwnershipRequest(); } public static io.provenance.metadata.v0.MsgChangeOwnershipRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgChangeOwnershipRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgChangeOwnershipRequest(input, extensionRegistry); } }; 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.provenance.metadata.v0.MsgChangeOwnershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy