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

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

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

package io.provenance.metadata.v1;

/**
 * 
 * RecordSpecification defines the specification for a Record including allowed/required inputs/outputs
 * 
* * Protobuf type {@code provenance.metadata.v1.RecordSpecification} */ public final class RecordSpecification extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:provenance.metadata.v1.RecordSpecification) RecordSpecificationOrBuilder { private static final long serialVersionUID = 0L; // Use RecordSpecification.newBuilder() to construct. private RecordSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordSpecification() { specificationId_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; inputs_ = java.util.Collections.emptyList(); typeName_ = ""; resultType_ = 0; responsibleParties_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordSpecification( 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: { specificationId_ = input.readBytes(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } inputs_.add( input.readMessage(io.provenance.metadata.v1.InputSpecification.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); typeName_ = s; break; } case 40: { int rawValue = input.readEnum(); resultType_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { responsibleParties_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } responsibleParties_.add(rawValue); break; } case 50: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { responsibleParties_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } responsibleParties_.add(rawValue); } input.popLimit(oldLimit); 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { responsibleParties_ = java.util.Collections.unmodifiableList(responsibleParties_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.Specification.internal_static_provenance_metadata_v1_RecordSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.Specification.internal_static_provenance_metadata_v1_RecordSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.RecordSpecification.class, io.provenance.metadata.v1.RecordSpecification.Builder.class); } private int bitField0_; public static final int SPECIFICATION_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString specificationId_; /** *
   * unique identifier for this specification on chain
   * 
* * bytes specification_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""]; */ public com.google.protobuf.ByteString getSpecificationId() { return specificationId_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * Name of Record that will be created when this specification is used
   * 
* * string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * Name of Record that will be created when this specification is used
   * 
* * string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INPUTS_FIELD_NUMBER = 3; private java.util.List inputs_; /** *
   * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
   * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public java.util.List getInputsList() { return inputs_; } /** *
   * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
   * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public java.util.List getInputsOrBuilderList() { return inputs_; } /** *
   * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
   * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public int getInputsCount() { return inputs_.size(); } /** *
   * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
   * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecification getInputs(int index) { return inputs_.get(index); } /** *
   * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
   * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecificationOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int TYPE_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object typeName_; /** *
   * A type name for data associated with this record (typically a class or proto name)
   * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; 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(); typeName_ = s; return s; } } /** *
   * A type name for data associated with this record (typically a class or proto name)
   * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESULT_TYPE_FIELD_NUMBER = 5; private int resultType_; /** *
   * Type of result for this record specification (must be RECORD or RECORD_LIST)
   * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public int getResultTypeValue() { return resultType_; } /** *
   * Type of result for this record specification (must be RECORD or RECORD_LIST)
   * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public io.provenance.metadata.v1.DefinitionType getResultType() { @SuppressWarnings("deprecation") io.provenance.metadata.v1.DefinitionType result = io.provenance.metadata.v1.DefinitionType.valueOf(resultType_); return result == null ? io.provenance.metadata.v1.DefinitionType.UNRECOGNIZED : result; } public static final int RESPONSIBLE_PARTIES_FIELD_NUMBER = 6; private java.util.List responsibleParties_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, io.provenance.metadata.v1.PartyType> responsibleParties_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, io.provenance.metadata.v1.PartyType>() { public io.provenance.metadata.v1.PartyType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") io.provenance.metadata.v1.PartyType result = io.provenance.metadata.v1.PartyType.valueOf(from); return result == null ? io.provenance.metadata.v1.PartyType.UNRECOGNIZED : result; } }; /** *
   * Type of party responsible for this record
   * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public java.util.List getResponsiblePartiesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, io.provenance.metadata.v1.PartyType>(responsibleParties_, responsibleParties_converter_); } /** *
   * Type of party responsible for this record
   * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public int getResponsiblePartiesCount() { return responsibleParties_.size(); } /** *
   * Type of party responsible for this record
   * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public io.provenance.metadata.v1.PartyType getResponsibleParties(int index) { return responsibleParties_converter_.convert(responsibleParties_.get(index)); } /** *
   * Type of party responsible for this record
   * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public java.util.List getResponsiblePartiesValueList() { return responsibleParties_; } /** *
   * Type of party responsible for this record
   * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public int getResponsiblePartiesValue(int index) { return responsibleParties_.get(index); } private int responsiblePartiesMemoizedSerializedSize; 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 { getSerializedSize(); if (!specificationId_.isEmpty()) { output.writeBytes(1, specificationId_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } for (int i = 0; i < inputs_.size(); i++) { output.writeMessage(3, inputs_.get(i)); } if (!getTypeNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeName_); } if (resultType_ != io.provenance.metadata.v1.DefinitionType.DEFINITION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, resultType_); } if (getResponsiblePartiesList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(responsiblePartiesMemoizedSerializedSize); } for (int i = 0; i < responsibleParties_.size(); i++) { output.writeEnumNoTag(responsibleParties_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!specificationId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, specificationId_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } for (int i = 0; i < inputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, inputs_.get(i)); } if (!getTypeNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeName_); } if (resultType_ != io.provenance.metadata.v1.DefinitionType.DEFINITION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, resultType_); } { int dataSize = 0; for (int i = 0; i < responsibleParties_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(responsibleParties_.get(i)); } size += dataSize; if (!getResponsiblePartiesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }responsiblePartiesMemoizedSerializedSize = dataSize; } 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.RecordSpecification)) { return super.equals(obj); } io.provenance.metadata.v1.RecordSpecification other = (io.provenance.metadata.v1.RecordSpecification) obj; boolean result = true; result = result && getSpecificationId() .equals(other.getSpecificationId()); result = result && getName() .equals(other.getName()); result = result && getInputsList() .equals(other.getInputsList()); result = result && getTypeName() .equals(other.getTypeName()); result = result && resultType_ == other.resultType_; result = result && responsibleParties_.equals(other.responsibleParties_); 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) + SPECIFICATION_ID_FIELD_NUMBER; hash = (53 * hash) + getSpecificationId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getInputsCount() > 0) { hash = (37 * hash) + INPUTS_FIELD_NUMBER; hash = (53 * hash) + getInputsList().hashCode(); } hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTypeName().hashCode(); hash = (37 * hash) + RESULT_TYPE_FIELD_NUMBER; hash = (53 * hash) + resultType_; if (getResponsiblePartiesCount() > 0) { hash = (37 * hash) + RESPONSIBLE_PARTIES_FIELD_NUMBER; hash = (53 * hash) + responsibleParties_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.RecordSpecification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordSpecification 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.RecordSpecification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordSpecification 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.RecordSpecification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordSpecification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.RecordSpecification parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordSpecification 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.RecordSpecification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordSpecification 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.RecordSpecification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordSpecification 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.RecordSpecification 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; } /** *
   * RecordSpecification defines the specification for a Record including allowed/required inputs/outputs
   * 
* * Protobuf type {@code provenance.metadata.v1.RecordSpecification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.RecordSpecification) io.provenance.metadata.v1.RecordSpecificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.Specification.internal_static_provenance_metadata_v1_RecordSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.Specification.internal_static_provenance_metadata_v1_RecordSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.RecordSpecification.class, io.provenance.metadata.v1.RecordSpecification.Builder.class); } // Construct using io.provenance.metadata.v1.RecordSpecification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInputsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); specificationId_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { inputsBuilder_.clear(); } typeName_ = ""; resultType_ = 0; responsibleParties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.Specification.internal_static_provenance_metadata_v1_RecordSpecification_descriptor; } @java.lang.Override public io.provenance.metadata.v1.RecordSpecification getDefaultInstanceForType() { return io.provenance.metadata.v1.RecordSpecification.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.RecordSpecification build() { io.provenance.metadata.v1.RecordSpecification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.RecordSpecification buildPartial() { io.provenance.metadata.v1.RecordSpecification result = new io.provenance.metadata.v1.RecordSpecification(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.specificationId_ = specificationId_; result.name_ = name_; if (inputsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000004); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } result.typeName_ = typeName_; result.resultType_ = resultType_; if (((bitField0_ & 0x00000020) == 0x00000020)) { responsibleParties_ = java.util.Collections.unmodifiableList(responsibleParties_); bitField0_ = (bitField0_ & ~0x00000020); } result.responsibleParties_ = responsibleParties_; result.bitField0_ = to_bitField0_; 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.RecordSpecification) { return mergeFrom((io.provenance.metadata.v1.RecordSpecification)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.RecordSpecification other) { if (other == io.provenance.metadata.v1.RecordSpecification.getDefaultInstance()) return this; if (other.getSpecificationId() != com.google.protobuf.ByteString.EMPTY) { setSpecificationId(other.getSpecificationId()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (inputsBuilder_ == null) { if (!other.inputs_.isEmpty()) { if (inputs_.isEmpty()) { inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000004); inputsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputsFieldBuilder() : null; } else { inputsBuilder_.addAllMessages(other.inputs_); } } } if (!other.getTypeName().isEmpty()) { typeName_ = other.typeName_; onChanged(); } if (other.resultType_ != 0) { setResultTypeValue(other.getResultTypeValue()); } if (!other.responsibleParties_.isEmpty()) { if (responsibleParties_.isEmpty()) { responsibleParties_ = other.responsibleParties_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureResponsiblePartiesIsMutable(); responsibleParties_.addAll(other.responsibleParties_); } 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.v1.RecordSpecification parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.RecordSpecification) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString specificationId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * unique identifier for this specification on chain
     * 
* * bytes specification_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""]; */ public com.google.protobuf.ByteString getSpecificationId() { return specificationId_; } /** *
     * unique identifier for this specification on chain
     * 
* * bytes specification_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""]; */ public Builder setSpecificationId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } specificationId_ = value; onChanged(); return this; } /** *
     * unique identifier for this specification on chain
     * 
* * bytes specification_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""]; */ public Builder clearSpecificationId() { specificationId_ = getDefaultInstance().getSpecificationId(); onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Name of Record that will be created when this specification is used
     * 
* * string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of Record that will be created when this specification is used
     * 
* * string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of Record that will be created when this specification is used
     * 
* * string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * Name of Record that will be created when this specification is used
     * 
* * string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Name of Record that will be created when this specification is used
     * 
* * string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List inputs_ = java.util.Collections.emptyList(); private void ensureInputsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = new java.util.ArrayList(inputs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.InputSpecification, io.provenance.metadata.v1.InputSpecification.Builder, io.provenance.metadata.v1.InputSpecificationOrBuilder> inputsBuilder_; /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public java.util.List getInputsList() { if (inputsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputs_); } else { return inputsBuilder_.getMessageList(); } } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public int getInputsCount() { if (inputsBuilder_ == null) { return inputs_.size(); } else { return inputsBuilder_.getCount(); } } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecification getInputs(int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessage(index); } } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder setInputs( int index, io.provenance.metadata.v1.InputSpecification value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.set(index, value); onChanged(); } else { inputsBuilder_.setMessage(index, value); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder setInputs( int index, io.provenance.metadata.v1.InputSpecification.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.set(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder addInputs(io.provenance.metadata.v1.InputSpecification value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(value); onChanged(); } else { inputsBuilder_.addMessage(value); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder addInputs( int index, io.provenance.metadata.v1.InputSpecification value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(index, value); onChanged(); } else { inputsBuilder_.addMessage(index, value); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder addInputs( io.provenance.metadata.v1.InputSpecification.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder addInputs( int index, io.provenance.metadata.v1.InputSpecification.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder addAllInputs( java.lang.Iterable values) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputs_); onChanged(); } else { inputsBuilder_.addAllMessages(values); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder clearInputs() { if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { inputsBuilder_.clear(); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public Builder removeInputs(int index) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.remove(index); onChanged(); } else { inputsBuilder_.remove(index); } return this; } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecification.Builder getInputsBuilder( int index) { return getInputsFieldBuilder().getBuilder(index); } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecificationOrBuilder getInputsOrBuilder( int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessageOrBuilder(index); } } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public java.util.List getInputsOrBuilderList() { if (inputsBuilder_ != null) { return inputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputs_); } } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecification.Builder addInputsBuilder() { return getInputsFieldBuilder().addBuilder( io.provenance.metadata.v1.InputSpecification.getDefaultInstance()); } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public io.provenance.metadata.v1.InputSpecification.Builder addInputsBuilder( int index) { return getInputsFieldBuilder().addBuilder( index, io.provenance.metadata.v1.InputSpecification.getDefaultInstance()); } /** *
     * A set of inputs that must be satisified to apply this RecordSpecification and create a Record
     * 
* * repeated .provenance.metadata.v1.InputSpecification inputs = 3; */ public java.util.List getInputsBuilderList() { return getInputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.InputSpecification, io.provenance.metadata.v1.InputSpecification.Builder, io.provenance.metadata.v1.InputSpecificationOrBuilder> getInputsFieldBuilder() { if (inputsBuilder_ == null) { inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.InputSpecification, io.provenance.metadata.v1.InputSpecification.Builder, io.provenance.metadata.v1.InputSpecificationOrBuilder>( inputs_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private java.lang.Object typeName_ = ""; /** *
     * A type name for data associated with this record (typically a class or proto name)
     * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A type name for data associated with this record (typically a class or proto name)
     * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A type name for data associated with this record (typically a class or proto name)
     * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public Builder setTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeName_ = value; onChanged(); return this; } /** *
     * A type name for data associated with this record (typically a class or proto name)
     * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public Builder clearTypeName() { typeName_ = getDefaultInstance().getTypeName(); onChanged(); return this; } /** *
     * A type name for data associated with this record (typically a class or proto name)
     * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public Builder setTypeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeName_ = value; onChanged(); return this; } private int resultType_ = 0; /** *
     * Type of result for this record specification (must be RECORD or RECORD_LIST)
     * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public int getResultTypeValue() { return resultType_; } /** *
     * Type of result for this record specification (must be RECORD or RECORD_LIST)
     * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public Builder setResultTypeValue(int value) { resultType_ = value; onChanged(); return this; } /** *
     * Type of result for this record specification (must be RECORD or RECORD_LIST)
     * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public io.provenance.metadata.v1.DefinitionType getResultType() { @SuppressWarnings("deprecation") io.provenance.metadata.v1.DefinitionType result = io.provenance.metadata.v1.DefinitionType.valueOf(resultType_); return result == null ? io.provenance.metadata.v1.DefinitionType.UNRECOGNIZED : result; } /** *
     * Type of result for this record specification (must be RECORD or RECORD_LIST)
     * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public Builder setResultType(io.provenance.metadata.v1.DefinitionType value) { if (value == null) { throw new NullPointerException(); } resultType_ = value.getNumber(); onChanged(); return this; } /** *
     * Type of result for this record specification (must be RECORD or RECORD_LIST)
     * 
* * .provenance.metadata.v1.DefinitionType result_type = 5 [(.gogoproto.moretags) = "yaml:\"result_type\""]; */ public Builder clearResultType() { resultType_ = 0; onChanged(); return this; } private java.util.List responsibleParties_ = java.util.Collections.emptyList(); private void ensureResponsiblePartiesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { responsibleParties_ = new java.util.ArrayList(responsibleParties_); bitField0_ |= 0x00000020; } } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public java.util.List getResponsiblePartiesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, io.provenance.metadata.v1.PartyType>(responsibleParties_, responsibleParties_converter_); } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public int getResponsiblePartiesCount() { return responsibleParties_.size(); } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public io.provenance.metadata.v1.PartyType getResponsibleParties(int index) { return responsibleParties_converter_.convert(responsibleParties_.get(index)); } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder setResponsibleParties( int index, io.provenance.metadata.v1.PartyType value) { if (value == null) { throw new NullPointerException(); } ensureResponsiblePartiesIsMutable(); responsibleParties_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder addResponsibleParties(io.provenance.metadata.v1.PartyType value) { if (value == null) { throw new NullPointerException(); } ensureResponsiblePartiesIsMutable(); responsibleParties_.add(value.getNumber()); onChanged(); return this; } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder addAllResponsibleParties( java.lang.Iterable values) { ensureResponsiblePartiesIsMutable(); for (io.provenance.metadata.v1.PartyType value : values) { responsibleParties_.add(value.getNumber()); } onChanged(); return this; } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder clearResponsibleParties() { responsibleParties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public java.util.List getResponsiblePartiesValueList() { return java.util.Collections.unmodifiableList(responsibleParties_); } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public int getResponsiblePartiesValue(int index) { return responsibleParties_.get(index); } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder setResponsiblePartiesValue( int index, int value) { ensureResponsiblePartiesIsMutable(); responsibleParties_.set(index, value); onChanged(); return this; } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder addResponsiblePartiesValue(int value) { ensureResponsiblePartiesIsMutable(); responsibleParties_.add(value); onChanged(); return this; } /** *
     * Type of party responsible for this record
     * 
* * repeated .provenance.metadata.v1.PartyType responsible_parties = 6 [(.gogoproto.moretags) = "yaml:\"responsible_parties\""]; */ public Builder addAllResponsiblePartiesValue( java.lang.Iterable values) { ensureResponsiblePartiesIsMutable(); for (int value : values) { responsibleParties_.add(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:provenance.metadata.v1.RecordSpecification) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.RecordSpecification) private static final io.provenance.metadata.v1.RecordSpecification DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.RecordSpecification(); } public static io.provenance.metadata.v1.RecordSpecification getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordSpecification parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordSpecification(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.RecordSpecification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy