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

io.provenance.metadata.v1.RecordSpecIdInfo Maven / Gradle / Ivy

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

package io.provenance.metadata.v1;

/**
 * 
 * RecordSpecIdInfo contains various info regarding a record specification id.
 * 
* * Protobuf type {@code provenance.metadata.v1.RecordSpecIdInfo} */ public final class RecordSpecIdInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:provenance.metadata.v1.RecordSpecIdInfo) RecordSpecIdInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RecordSpecIdInfo.newBuilder() to construct. private RecordSpecIdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordSpecIdInfo() { recordSpecId_ = com.google.protobuf.ByteString.EMPTY; recordSpecIdPrefix_ = com.google.protobuf.ByteString.EMPTY; recordSpecIdContractSpecUuid_ = com.google.protobuf.ByteString.EMPTY; recordSpecIdHashedName_ = com.google.protobuf.ByteString.EMPTY; recordSpecAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordSpecIdInfo( 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: { recordSpecId_ = input.readBytes(); break; } case 18: { recordSpecIdPrefix_ = input.readBytes(); break; } case 26: { recordSpecIdContractSpecUuid_ = input.readBytes(); break; } case 34: { recordSpecIdHashedName_ = input.readBytes(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); recordSpecAddr_ = s; break; } case 50: { io.provenance.metadata.v1.ContractSpecIdInfo.Builder subBuilder = null; if (contractSpecIdInfo_ != null) { subBuilder = contractSpecIdInfo_.toBuilder(); } contractSpecIdInfo_ = input.readMessage(io.provenance.metadata.v1.ContractSpecIdInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contractSpecIdInfo_); contractSpecIdInfo_ = subBuilder.buildPartial(); } 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.v1.Metadata.internal_static_provenance_metadata_v1_RecordSpecIdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.Metadata.internal_static_provenance_metadata_v1_RecordSpecIdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.RecordSpecIdInfo.class, io.provenance.metadata.v1.RecordSpecIdInfo.Builder.class); } public static final int RECORD_SPEC_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString recordSpecId_; /** *
   * record_spec_id is the raw bytes of the record specification address.
   * 
* * bytes record_spec_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_spec_id\""]; */ public com.google.protobuf.ByteString getRecordSpecId() { return recordSpecId_; } public static final int RECORD_SPEC_ID_PREFIX_FIELD_NUMBER = 2; private com.google.protobuf.ByteString recordSpecIdPrefix_; /** *
   * record_spec_id_prefix is the prefix portion of the record_spec_id.
   * 
* * bytes record_spec_id_prefix = 2 [(.gogoproto.moretags) = "yaml:\"record_spec_id_prefix\""]; */ public com.google.protobuf.ByteString getRecordSpecIdPrefix() { return recordSpecIdPrefix_; } public static final int RECORD_SPEC_ID_CONTRACT_SPEC_UUID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString recordSpecIdContractSpecUuid_; /** *
   * record_spec_id_contract_spec_uuid is the contract_spec_uuid portion of the record_spec_id.
   * 
* * bytes record_spec_id_contract_spec_uuid = 3 [(.gogoproto.moretags) = "yaml:\"record_spec_id_contract_spec_uuid\""]; */ public com.google.protobuf.ByteString getRecordSpecIdContractSpecUuid() { return recordSpecIdContractSpecUuid_; } public static final int RECORD_SPEC_ID_HASHED_NAME_FIELD_NUMBER = 4; private com.google.protobuf.ByteString recordSpecIdHashedName_; /** *
   * record_spec_id_hashed_name is the hashed name portion of the record_spec_id.
   * 
* * bytes record_spec_id_hashed_name = 4 [(.gogoproto.moretags) = "yaml:\"record_spec_id_hashed_name\""]; */ public com.google.protobuf.ByteString getRecordSpecIdHashedName() { return recordSpecIdHashedName_; } public static final int RECORD_SPEC_ADDR_FIELD_NUMBER = 5; private volatile java.lang.Object recordSpecAddr_; /** *
   * record_spec_addr is the bech32 string version of the record_spec_id.
   * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public java.lang.String getRecordSpecAddr() { java.lang.Object ref = recordSpecAddr_; 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(); recordSpecAddr_ = s; return s; } } /** *
   * record_spec_addr is the bech32 string version of the record_spec_id.
   * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public com.google.protobuf.ByteString getRecordSpecAddrBytes() { java.lang.Object ref = recordSpecAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); recordSpecAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTRACT_SPEC_ID_INFO_FIELD_NUMBER = 6; private io.provenance.metadata.v1.ContractSpecIdInfo contractSpecIdInfo_; /** *
   * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
   * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public boolean hasContractSpecIdInfo() { return contractSpecIdInfo_ != null; } /** *
   * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
   * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public io.provenance.metadata.v1.ContractSpecIdInfo getContractSpecIdInfo() { return contractSpecIdInfo_ == null ? io.provenance.metadata.v1.ContractSpecIdInfo.getDefaultInstance() : contractSpecIdInfo_; } /** *
   * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
   * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public io.provenance.metadata.v1.ContractSpecIdInfoOrBuilder getContractSpecIdInfoOrBuilder() { return getContractSpecIdInfo(); } 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 (!recordSpecId_.isEmpty()) { output.writeBytes(1, recordSpecId_); } if (!recordSpecIdPrefix_.isEmpty()) { output.writeBytes(2, recordSpecIdPrefix_); } if (!recordSpecIdContractSpecUuid_.isEmpty()) { output.writeBytes(3, recordSpecIdContractSpecUuid_); } if (!recordSpecIdHashedName_.isEmpty()) { output.writeBytes(4, recordSpecIdHashedName_); } if (!getRecordSpecAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, recordSpecAddr_); } if (contractSpecIdInfo_ != null) { output.writeMessage(6, getContractSpecIdInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!recordSpecId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, recordSpecId_); } if (!recordSpecIdPrefix_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, recordSpecIdPrefix_); } if (!recordSpecIdContractSpecUuid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, recordSpecIdContractSpecUuid_); } if (!recordSpecIdHashedName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, recordSpecIdHashedName_); } if (!getRecordSpecAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, recordSpecAddr_); } if (contractSpecIdInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getContractSpecIdInfo()); } 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.v1.RecordSpecIdInfo)) { return super.equals(obj); } io.provenance.metadata.v1.RecordSpecIdInfo other = (io.provenance.metadata.v1.RecordSpecIdInfo) obj; boolean result = true; result = result && getRecordSpecId() .equals(other.getRecordSpecId()); result = result && getRecordSpecIdPrefix() .equals(other.getRecordSpecIdPrefix()); result = result && getRecordSpecIdContractSpecUuid() .equals(other.getRecordSpecIdContractSpecUuid()); result = result && getRecordSpecIdHashedName() .equals(other.getRecordSpecIdHashedName()); result = result && getRecordSpecAddr() .equals(other.getRecordSpecAddr()); result = result && (hasContractSpecIdInfo() == other.hasContractSpecIdInfo()); if (hasContractSpecIdInfo()) { result = result && getContractSpecIdInfo() .equals(other.getContractSpecIdInfo()); } 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) + RECORD_SPEC_ID_FIELD_NUMBER; hash = (53 * hash) + getRecordSpecId().hashCode(); hash = (37 * hash) + RECORD_SPEC_ID_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getRecordSpecIdPrefix().hashCode(); hash = (37 * hash) + RECORD_SPEC_ID_CONTRACT_SPEC_UUID_FIELD_NUMBER; hash = (53 * hash) + getRecordSpecIdContractSpecUuid().hashCode(); hash = (37 * hash) + RECORD_SPEC_ID_HASHED_NAME_FIELD_NUMBER; hash = (53 * hash) + getRecordSpecIdHashedName().hashCode(); hash = (37 * hash) + RECORD_SPEC_ADDR_FIELD_NUMBER; hash = (53 * hash) + getRecordSpecAddr().hashCode(); if (hasContractSpecIdInfo()) { hash = (37 * hash) + CONTRACT_SPEC_ID_INFO_FIELD_NUMBER; hash = (53 * hash) + getContractSpecIdInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.RecordSpecIdInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordSpecIdInfo 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.v1.RecordSpecIdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordSpecIdInfo 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.v1.RecordSpecIdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordSpecIdInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.RecordSpecIdInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordSpecIdInfo 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.v1.RecordSpecIdInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordSpecIdInfo 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.v1.RecordSpecIdInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordSpecIdInfo 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.v1.RecordSpecIdInfo 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; } /** *
   * RecordSpecIdInfo contains various info regarding a record specification id.
   * 
* * Protobuf type {@code provenance.metadata.v1.RecordSpecIdInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.RecordSpecIdInfo) io.provenance.metadata.v1.RecordSpecIdInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.Metadata.internal_static_provenance_metadata_v1_RecordSpecIdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.Metadata.internal_static_provenance_metadata_v1_RecordSpecIdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.RecordSpecIdInfo.class, io.provenance.metadata.v1.RecordSpecIdInfo.Builder.class); } // Construct using io.provenance.metadata.v1.RecordSpecIdInfo.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(); recordSpecId_ = com.google.protobuf.ByteString.EMPTY; recordSpecIdPrefix_ = com.google.protobuf.ByteString.EMPTY; recordSpecIdContractSpecUuid_ = com.google.protobuf.ByteString.EMPTY; recordSpecIdHashedName_ = com.google.protobuf.ByteString.EMPTY; recordSpecAddr_ = ""; if (contractSpecIdInfoBuilder_ == null) { contractSpecIdInfo_ = null; } else { contractSpecIdInfo_ = null; contractSpecIdInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.Metadata.internal_static_provenance_metadata_v1_RecordSpecIdInfo_descriptor; } @java.lang.Override public io.provenance.metadata.v1.RecordSpecIdInfo getDefaultInstanceForType() { return io.provenance.metadata.v1.RecordSpecIdInfo.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.RecordSpecIdInfo build() { io.provenance.metadata.v1.RecordSpecIdInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.RecordSpecIdInfo buildPartial() { io.provenance.metadata.v1.RecordSpecIdInfo result = new io.provenance.metadata.v1.RecordSpecIdInfo(this); result.recordSpecId_ = recordSpecId_; result.recordSpecIdPrefix_ = recordSpecIdPrefix_; result.recordSpecIdContractSpecUuid_ = recordSpecIdContractSpecUuid_; result.recordSpecIdHashedName_ = recordSpecIdHashedName_; result.recordSpecAddr_ = recordSpecAddr_; if (contractSpecIdInfoBuilder_ == null) { result.contractSpecIdInfo_ = contractSpecIdInfo_; } else { result.contractSpecIdInfo_ = contractSpecIdInfoBuilder_.build(); } 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.v1.RecordSpecIdInfo) { return mergeFrom((io.provenance.metadata.v1.RecordSpecIdInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.RecordSpecIdInfo other) { if (other == io.provenance.metadata.v1.RecordSpecIdInfo.getDefaultInstance()) return this; if (other.getRecordSpecId() != com.google.protobuf.ByteString.EMPTY) { setRecordSpecId(other.getRecordSpecId()); } if (other.getRecordSpecIdPrefix() != com.google.protobuf.ByteString.EMPTY) { setRecordSpecIdPrefix(other.getRecordSpecIdPrefix()); } if (other.getRecordSpecIdContractSpecUuid() != com.google.protobuf.ByteString.EMPTY) { setRecordSpecIdContractSpecUuid(other.getRecordSpecIdContractSpecUuid()); } if (other.getRecordSpecIdHashedName() != com.google.protobuf.ByteString.EMPTY) { setRecordSpecIdHashedName(other.getRecordSpecIdHashedName()); } if (!other.getRecordSpecAddr().isEmpty()) { recordSpecAddr_ = other.recordSpecAddr_; onChanged(); } if (other.hasContractSpecIdInfo()) { mergeContractSpecIdInfo(other.getContractSpecIdInfo()); } 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.v1.RecordSpecIdInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.RecordSpecIdInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString recordSpecId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * record_spec_id is the raw bytes of the record specification address.
     * 
* * bytes record_spec_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_spec_id\""]; */ public com.google.protobuf.ByteString getRecordSpecId() { return recordSpecId_; } /** *
     * record_spec_id is the raw bytes of the record specification address.
     * 
* * bytes record_spec_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_spec_id\""]; */ public Builder setRecordSpecId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recordSpecId_ = value; onChanged(); return this; } /** *
     * record_spec_id is the raw bytes of the record specification address.
     * 
* * bytes record_spec_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_spec_id\""]; */ public Builder clearRecordSpecId() { recordSpecId_ = getDefaultInstance().getRecordSpecId(); onChanged(); return this; } private com.google.protobuf.ByteString recordSpecIdPrefix_ = com.google.protobuf.ByteString.EMPTY; /** *
     * record_spec_id_prefix is the prefix portion of the record_spec_id.
     * 
* * bytes record_spec_id_prefix = 2 [(.gogoproto.moretags) = "yaml:\"record_spec_id_prefix\""]; */ public com.google.protobuf.ByteString getRecordSpecIdPrefix() { return recordSpecIdPrefix_; } /** *
     * record_spec_id_prefix is the prefix portion of the record_spec_id.
     * 
* * bytes record_spec_id_prefix = 2 [(.gogoproto.moretags) = "yaml:\"record_spec_id_prefix\""]; */ public Builder setRecordSpecIdPrefix(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recordSpecIdPrefix_ = value; onChanged(); return this; } /** *
     * record_spec_id_prefix is the prefix portion of the record_spec_id.
     * 
* * bytes record_spec_id_prefix = 2 [(.gogoproto.moretags) = "yaml:\"record_spec_id_prefix\""]; */ public Builder clearRecordSpecIdPrefix() { recordSpecIdPrefix_ = getDefaultInstance().getRecordSpecIdPrefix(); onChanged(); return this; } private com.google.protobuf.ByteString recordSpecIdContractSpecUuid_ = com.google.protobuf.ByteString.EMPTY; /** *
     * record_spec_id_contract_spec_uuid is the contract_spec_uuid portion of the record_spec_id.
     * 
* * bytes record_spec_id_contract_spec_uuid = 3 [(.gogoproto.moretags) = "yaml:\"record_spec_id_contract_spec_uuid\""]; */ public com.google.protobuf.ByteString getRecordSpecIdContractSpecUuid() { return recordSpecIdContractSpecUuid_; } /** *
     * record_spec_id_contract_spec_uuid is the contract_spec_uuid portion of the record_spec_id.
     * 
* * bytes record_spec_id_contract_spec_uuid = 3 [(.gogoproto.moretags) = "yaml:\"record_spec_id_contract_spec_uuid\""]; */ public Builder setRecordSpecIdContractSpecUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recordSpecIdContractSpecUuid_ = value; onChanged(); return this; } /** *
     * record_spec_id_contract_spec_uuid is the contract_spec_uuid portion of the record_spec_id.
     * 
* * bytes record_spec_id_contract_spec_uuid = 3 [(.gogoproto.moretags) = "yaml:\"record_spec_id_contract_spec_uuid\""]; */ public Builder clearRecordSpecIdContractSpecUuid() { recordSpecIdContractSpecUuid_ = getDefaultInstance().getRecordSpecIdContractSpecUuid(); onChanged(); return this; } private com.google.protobuf.ByteString recordSpecIdHashedName_ = com.google.protobuf.ByteString.EMPTY; /** *
     * record_spec_id_hashed_name is the hashed name portion of the record_spec_id.
     * 
* * bytes record_spec_id_hashed_name = 4 [(.gogoproto.moretags) = "yaml:\"record_spec_id_hashed_name\""]; */ public com.google.protobuf.ByteString getRecordSpecIdHashedName() { return recordSpecIdHashedName_; } /** *
     * record_spec_id_hashed_name is the hashed name portion of the record_spec_id.
     * 
* * bytes record_spec_id_hashed_name = 4 [(.gogoproto.moretags) = "yaml:\"record_spec_id_hashed_name\""]; */ public Builder setRecordSpecIdHashedName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recordSpecIdHashedName_ = value; onChanged(); return this; } /** *
     * record_spec_id_hashed_name is the hashed name portion of the record_spec_id.
     * 
* * bytes record_spec_id_hashed_name = 4 [(.gogoproto.moretags) = "yaml:\"record_spec_id_hashed_name\""]; */ public Builder clearRecordSpecIdHashedName() { recordSpecIdHashedName_ = getDefaultInstance().getRecordSpecIdHashedName(); onChanged(); return this; } private java.lang.Object recordSpecAddr_ = ""; /** *
     * record_spec_addr is the bech32 string version of the record_spec_id.
     * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public java.lang.String getRecordSpecAddr() { java.lang.Object ref = recordSpecAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordSpecAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * record_spec_addr is the bech32 string version of the record_spec_id.
     * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public com.google.protobuf.ByteString getRecordSpecAddrBytes() { java.lang.Object ref = recordSpecAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); recordSpecAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * record_spec_addr is the bech32 string version of the record_spec_id.
     * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public Builder setRecordSpecAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } recordSpecAddr_ = value; onChanged(); return this; } /** *
     * record_spec_addr is the bech32 string version of the record_spec_id.
     * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public Builder clearRecordSpecAddr() { recordSpecAddr_ = getDefaultInstance().getRecordSpecAddr(); onChanged(); return this; } /** *
     * record_spec_addr is the bech32 string version of the record_spec_id.
     * 
* * string record_spec_addr = 5 [(.gogoproto.moretags) = "yaml:\"record_spec_addr\""]; */ public Builder setRecordSpecAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordSpecAddr_ = value; onChanged(); return this; } private io.provenance.metadata.v1.ContractSpecIdInfo contractSpecIdInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecIdInfo, io.provenance.metadata.v1.ContractSpecIdInfo.Builder, io.provenance.metadata.v1.ContractSpecIdInfoOrBuilder> contractSpecIdInfoBuilder_; /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public boolean hasContractSpecIdInfo() { return contractSpecIdInfoBuilder_ != null || contractSpecIdInfo_ != null; } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public io.provenance.metadata.v1.ContractSpecIdInfo getContractSpecIdInfo() { if (contractSpecIdInfoBuilder_ == null) { return contractSpecIdInfo_ == null ? io.provenance.metadata.v1.ContractSpecIdInfo.getDefaultInstance() : contractSpecIdInfo_; } else { return contractSpecIdInfoBuilder_.getMessage(); } } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public Builder setContractSpecIdInfo(io.provenance.metadata.v1.ContractSpecIdInfo value) { if (contractSpecIdInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractSpecIdInfo_ = value; onChanged(); } else { contractSpecIdInfoBuilder_.setMessage(value); } return this; } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public Builder setContractSpecIdInfo( io.provenance.metadata.v1.ContractSpecIdInfo.Builder builderForValue) { if (contractSpecIdInfoBuilder_ == null) { contractSpecIdInfo_ = builderForValue.build(); onChanged(); } else { contractSpecIdInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public Builder mergeContractSpecIdInfo(io.provenance.metadata.v1.ContractSpecIdInfo value) { if (contractSpecIdInfoBuilder_ == null) { if (contractSpecIdInfo_ != null) { contractSpecIdInfo_ = io.provenance.metadata.v1.ContractSpecIdInfo.newBuilder(contractSpecIdInfo_).mergeFrom(value).buildPartial(); } else { contractSpecIdInfo_ = value; } onChanged(); } else { contractSpecIdInfoBuilder_.mergeFrom(value); } return this; } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public Builder clearContractSpecIdInfo() { if (contractSpecIdInfoBuilder_ == null) { contractSpecIdInfo_ = null; onChanged(); } else { contractSpecIdInfo_ = null; contractSpecIdInfoBuilder_ = null; } return this; } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public io.provenance.metadata.v1.ContractSpecIdInfo.Builder getContractSpecIdInfoBuilder() { onChanged(); return getContractSpecIdInfoFieldBuilder().getBuilder(); } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ public io.provenance.metadata.v1.ContractSpecIdInfoOrBuilder getContractSpecIdInfoOrBuilder() { if (contractSpecIdInfoBuilder_ != null) { return contractSpecIdInfoBuilder_.getMessageOrBuilder(); } else { return contractSpecIdInfo_ == null ? io.provenance.metadata.v1.ContractSpecIdInfo.getDefaultInstance() : contractSpecIdInfo_; } } /** *
     * contract_spec_id_info is information about the contract spec id referenced in the record_spec_id.
     * 
* * .provenance.metadata.v1.ContractSpecIdInfo contract_spec_id_info = 6 [(.gogoproto.moretags) = "yaml:\"contract_spec_id_info\""]; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecIdInfo, io.provenance.metadata.v1.ContractSpecIdInfo.Builder, io.provenance.metadata.v1.ContractSpecIdInfoOrBuilder> getContractSpecIdInfoFieldBuilder() { if (contractSpecIdInfoBuilder_ == null) { contractSpecIdInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecIdInfo, io.provenance.metadata.v1.ContractSpecIdInfo.Builder, io.provenance.metadata.v1.ContractSpecIdInfoOrBuilder>( getContractSpecIdInfo(), getParentForChildren(), isClean()); contractSpecIdInfo_ = null; } return contractSpecIdInfoBuilder_; } @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:provenance.metadata.v1.RecordSpecIdInfo) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.RecordSpecIdInfo) private static final io.provenance.metadata.v1.RecordSpecIdInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.RecordSpecIdInfo(); } public static io.provenance.metadata.v1.RecordSpecIdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordSpecIdInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordSpecIdInfo(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.v1.RecordSpecIdInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy