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

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

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

package io.provenance.metadata.v1;

/**
 * 
 * Tracks the inputs used to establish this record
 * 
* * Protobuf type {@code provenance.metadata.v1.RecordInput} */ public final class RecordInput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:provenance.metadata.v1.RecordInput) RecordInputOrBuilder { private static final long serialVersionUID = 0L; // Use RecordInput.newBuilder() to construct. private RecordInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordInput() { name_ = ""; typeName_ = ""; status_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordInput( 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(); name_ = s; break; } case 18: { sourceCase_ = 2; source_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); sourceCase_ = 3; source_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); typeName_ = s; break; } case 40: { int rawValue = input.readEnum(); status_ = rawValue; 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.ScopeOuterClass.internal_static_provenance_metadata_v1_RecordInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_RecordInput_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.RecordInput.class, io.provenance.metadata.v1.RecordInput.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; public enum SourceCase implements com.google.protobuf.Internal.EnumLite { RECORD_ID(2), HASH(3), SOURCE_NOT_SET(0); private final int value; private SourceCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SourceCase valueOf(int value) { return forNumber(value); } public static SourceCase forNumber(int value) { switch (value) { case 2: return RECORD_ID; case 3: return HASH; case 0: return SOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * Name value included to link back to the definition spec.
   * 
* * string name = 1; */ 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 value included to link back to the definition spec.
   * 
* * string name = 1; */ 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 RECORD_ID_FIELD_NUMBER = 2; /** *
   * the address of a record on chain (For Established Records)
   * 
* * bytes record_id = 2 [(.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_id\""]; */ public com.google.protobuf.ByteString getRecordId() { if (sourceCase_ == 2) { return (com.google.protobuf.ByteString) source_; } return com.google.protobuf.ByteString.EMPTY; } public static final int HASH_FIELD_NUMBER = 3; /** *
   * the hash of an off-chain piece of information (For Proposed Records)
   * 
* * string hash = 3; */ public java.lang.String getHash() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } 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(); if (sourceCase_ == 3) { source_ = s; } return s; } } /** *
   * the hash of an off-chain piece of information (For Proposed Records)
   * 
* * string hash = 3; */ public com.google.protobuf.ByteString getHashBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object typeName_; /** *
   * from proposed fact structure to unmarshal
   * 
* * 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; } } /** *
   * from proposed fact structure to unmarshal
   * 
* * 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 STATUS_FIELD_NUMBER = 5; private int status_; /** *
   * Indicates if this input was a recorded fact on chain or just a given hashed input
   * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public int getStatusValue() { return status_; } /** *
   * Indicates if this input was a recorded fact on chain or just a given hashed input
   * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public io.provenance.metadata.v1.RecordInputStatus getStatus() { @SuppressWarnings("deprecation") io.provenance.metadata.v1.RecordInputStatus result = io.provenance.metadata.v1.RecordInputStatus.valueOf(status_); return result == null ? io.provenance.metadata.v1.RecordInputStatus.UNRECOGNIZED : result; } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (sourceCase_ == 2) { output.writeBytes( 2, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); } if (!getTypeNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeName_); } if (status_ != io.provenance.metadata.v1.RecordInputStatus.RECORD_INPUT_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(5, status_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sourceCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 2, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); } if (!getTypeNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeName_); } if (status_ != io.provenance.metadata.v1.RecordInputStatus.RECORD_INPUT_STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, status_); } 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.RecordInput)) { return super.equals(obj); } io.provenance.metadata.v1.RecordInput other = (io.provenance.metadata.v1.RecordInput) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getTypeName() .equals(other.getTypeName()); result = result && status_ == other.status_; result = result && getSourceCase().equals( other.getSourceCase()); if (!result) return false; switch (sourceCase_) { case 2: result = result && getRecordId() .equals(other.getRecordId()); break; case 3: result = result && getHash() .equals(other.getHash()); break; case 0: default: } 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTypeName().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; switch (sourceCase_) { case 2: hash = (37 * hash) + RECORD_ID_FIELD_NUMBER; hash = (53 * hash) + getRecordId().hashCode(); break; case 3: hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.RecordInput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordInput 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.RecordInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordInput 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.RecordInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.RecordInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.RecordInput parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordInput 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.RecordInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordInput 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.RecordInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.RecordInput 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.RecordInput 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; } /** *
   * Tracks the inputs used to establish this record
   * 
* * Protobuf type {@code provenance.metadata.v1.RecordInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.RecordInput) io.provenance.metadata.v1.RecordInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_RecordInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_RecordInput_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.RecordInput.class, io.provenance.metadata.v1.RecordInput.Builder.class); } // Construct using io.provenance.metadata.v1.RecordInput.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(); name_ = ""; typeName_ = ""; status_ = 0; sourceCase_ = 0; source_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_RecordInput_descriptor; } @java.lang.Override public io.provenance.metadata.v1.RecordInput getDefaultInstanceForType() { return io.provenance.metadata.v1.RecordInput.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.RecordInput build() { io.provenance.metadata.v1.RecordInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.RecordInput buildPartial() { io.provenance.metadata.v1.RecordInput result = new io.provenance.metadata.v1.RecordInput(this); result.name_ = name_; if (sourceCase_ == 2) { result.source_ = source_; } if (sourceCase_ == 3) { result.source_ = source_; } result.typeName_ = typeName_; result.status_ = status_; result.sourceCase_ = sourceCase_; 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.RecordInput) { return mergeFrom((io.provenance.metadata.v1.RecordInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.RecordInput other) { if (other == io.provenance.metadata.v1.RecordInput.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getTypeName().isEmpty()) { typeName_ = other.typeName_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } switch (other.getSourceCase()) { case RECORD_ID: { setRecordId(other.getRecordId()); break; } case HASH: { sourceCase_ = 3; source_ = other.source_; onChanged(); break; } case SOURCE_NOT_SET: { break; } } 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.RecordInput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.RecordInput) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sourceCase_ = 0; private java.lang.Object source_; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public Builder clearSource() { sourceCase_ = 0; source_ = null; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Name value included to link back to the definition spec.
     * 
* * string name = 1; */ 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 value included to link back to the definition spec.
     * 
* * string name = 1; */ 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 value included to link back to the definition spec.
     * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * Name value included to link back to the definition spec.
     * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Name value included to link back to the definition spec.
     * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } /** *
     * the address of a record on chain (For Established Records)
     * 
* * bytes record_id = 2 [(.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_id\""]; */ public com.google.protobuf.ByteString getRecordId() { if (sourceCase_ == 2) { return (com.google.protobuf.ByteString) source_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     * the address of a record on chain (For Established Records)
     * 
* * bytes record_id = 2 [(.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_id\""]; */ public Builder setRecordId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sourceCase_ = 2; source_ = value; onChanged(); return this; } /** *
     * the address of a record on chain (For Established Records)
     * 
* * bytes record_id = 2 [(.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"record_id\""]; */ public Builder clearRecordId() { if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; onChanged(); } return this; } /** *
     * the hash of an off-chain piece of information (For Proposed Records)
     * 
* * string hash = 3; */ public java.lang.String getHash() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * the hash of an off-chain piece of information (For Proposed Records)
     * 
* * string hash = 3; */ public com.google.protobuf.ByteString getHashBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * the hash of an off-chain piece of information (For Proposed Records)
     * 
* * string hash = 3; */ public Builder setHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceCase_ = 3; source_ = value; onChanged(); return this; } /** *
     * the hash of an off-chain piece of information (For Proposed Records)
     * 
* * string hash = 3; */ public Builder clearHash() { if (sourceCase_ == 3) { sourceCase_ = 0; source_ = null; onChanged(); } return this; } /** *
     * the hash of an off-chain piece of information (For Proposed Records)
     * 
* * string hash = 3; */ public Builder setHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; onChanged(); return this; } private java.lang.Object typeName_ = ""; /** *
     * from proposed fact structure to unmarshal
     * 
* * 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; } } /** *
     * from proposed fact structure to unmarshal
     * 
* * 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; } } /** *
     * from proposed fact structure to unmarshal
     * 
* * 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; } /** *
     * from proposed fact structure to unmarshal
     * 
* * string type_name = 4 [(.gogoproto.moretags) = "yaml:\"type_name\""]; */ public Builder clearTypeName() { typeName_ = getDefaultInstance().getTypeName(); onChanged(); return this; } /** *
     * from proposed fact structure to unmarshal
     * 
* * 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 status_ = 0; /** *
     * Indicates if this input was a recorded fact on chain or just a given hashed input
     * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public int getStatusValue() { return status_; } /** *
     * Indicates if this input was a recorded fact on chain or just a given hashed input
     * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
     * Indicates if this input was a recorded fact on chain or just a given hashed input
     * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public io.provenance.metadata.v1.RecordInputStatus getStatus() { @SuppressWarnings("deprecation") io.provenance.metadata.v1.RecordInputStatus result = io.provenance.metadata.v1.RecordInputStatus.valueOf(status_); return result == null ? io.provenance.metadata.v1.RecordInputStatus.UNRECOGNIZED : result; } /** *
     * Indicates if this input was a recorded fact on chain or just a given hashed input
     * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public Builder setStatus(io.provenance.metadata.v1.RecordInputStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * Indicates if this input was a recorded fact on chain or just a given hashed input
     * 
* * .provenance.metadata.v1.RecordInputStatus status = 5; */ public Builder clearStatus() { status_ = 0; 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.RecordInput) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.RecordInput) private static final io.provenance.metadata.v1.RecordInput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.RecordInput(); } public static io.provenance.metadata.v1.RecordInput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordInput(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.RecordInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy