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

io.bloombox.schema.identity.bioprint.BioprintOuterClass Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
/*
 * Copyright 2018, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: identity/bioprint/Bioprint.proto

package io.bloombox.schema.identity.bioprint;

public final class BioprintOuterClass {
  private BioprintOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface MasterKeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.MasterKey)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Name for the key, which is generally set from the device name that owns the key.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * Name for the key, which is generally set from the device name that owns the key.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The key sequence number, which refers to the generation for this key (considering key rotation).
     * 
* * uint32 sequence = 2; */ int getSequence(); /** *
     * Whether this key is considered active or revoked. If not present or false, the key is considered active (assuming
     * it has not been superseded).
     * 
* * bool disabled = 3; */ boolean getDisabled(); /** *
     * Whether this key is considered primary or superseded. Superseded keys have been rotated for other keys, and can be
     * safely deleted from the subject profile.
     * 
* * bool superseded = 4; */ boolean getSuperseded(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ boolean hasKey(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ io.opencannabis.schema.crypto.primitives.SymmetricKey getKey(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant used = 6; */ boolean hasUsed(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant used = 6; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getUsed(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant used = 6; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUsedOrBuilder(); /** *
     * Timestamp specifying the time this key was first generated.
     * 
* * .opencannabis.temporal.Instant generated = 7; */ boolean hasGenerated(); /** *
     * Timestamp specifying the time this key was first generated.
     * 
* * .opencannabis.temporal.Instant generated = 7; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated(); /** *
     * Timestamp specifying the time this key was first generated.
     * 
* * .opencannabis.temporal.Instant generated = 7; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 8; */ boolean hasRevoked(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 8; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 8; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder(); } /** *
   * Specifies a master symmetric key, referred to in the spec as the *Profile Access Key*. This key acts as the main
   * access method for the user's local device to load and read/mutate the underlying Bioprint data. It never leaves the
   * user's device.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.MasterKey} */ public static final class MasterKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.MasterKey) MasterKeyOrBuilder { private static final long serialVersionUID = 0L; // Use MasterKey.newBuilder() to construct. private MasterKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MasterKey() { name_ = ""; sequence_ = 0; disabled_ = false; superseded_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MasterKey( 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 16: { sequence_ = input.readUInt32(); break; } case 24: { disabled_ = input.readBool(); break; } case 32: { superseded_ = input.readBool(); break; } case 42: { io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(io.opencannabis.schema.crypto.primitives.SymmetricKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 50: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (used_ != null) { subBuilder = used_.toBuilder(); } used_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(used_); used_ = subBuilder.buildPartial(); } break; } case 58: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (generated_ != null) { subBuilder = generated_.toBuilder(); } generated_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(generated_); generated_ = subBuilder.buildPartial(); } break; } case 66: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (revoked_ != null) { subBuilder = revoked_.toBuilder(); } revoked_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revoked_); revoked_ = 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.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_MasterKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_MasterKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name for the key, which is generally set from the device name that owns the key.
     * 
* * 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 for the key, which is generally set from the device name that owns the key.
     * 
* * 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 SEQUENCE_FIELD_NUMBER = 2; private int sequence_; /** *
     * The key sequence number, which refers to the generation for this key (considering key rotation).
     * 
* * uint32 sequence = 2; */ public int getSequence() { return sequence_; } public static final int DISABLED_FIELD_NUMBER = 3; private boolean disabled_; /** *
     * Whether this key is considered active or revoked. If not present or false, the key is considered active (assuming
     * it has not been superseded).
     * 
* * bool disabled = 3; */ public boolean getDisabled() { return disabled_; } public static final int SUPERSEDED_FIELD_NUMBER = 4; private boolean superseded_; /** *
     * Whether this key is considered primary or superseded. Superseded keys have been rotated for other keys, and can be
     * safely deleted from the subject profile.
     * 
* * bool superseded = 4; */ public boolean getSuperseded() { return superseded_; } public static final int KEY_FIELD_NUMBER = 5; private io.opencannabis.schema.crypto.primitives.SymmetricKey key_; /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public boolean hasKey() { return key_ != null; } /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey getKey() { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder() { return getKey(); } public static final int USED_FIELD_NUMBER = 6; private io.opencannabis.schema.temporal.TemporalInstant.Instant used_; /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant used = 6; */ public boolean hasUsed() { return used_ != null; } /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant used = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getUsed() { return used_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : used_; } /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant used = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUsedOrBuilder() { return getUsed(); } public static final int GENERATED_FIELD_NUMBER = 7; private io.opencannabis.schema.temporal.TemporalInstant.Instant generated_; /** *
     * Timestamp specifying the time this key was first generated.
     * 
* * .opencannabis.temporal.Instant generated = 7; */ public boolean hasGenerated() { return generated_ != null; } /** *
     * Timestamp specifying the time this key was first generated.
     * 
* * .opencannabis.temporal.Instant generated = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated() { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } /** *
     * Timestamp specifying the time this key was first generated.
     * 
* * .opencannabis.temporal.Instant generated = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder() { return getGenerated(); } public static final int REVOKED_FIELD_NUMBER = 8; private io.opencannabis.schema.temporal.TemporalInstant.Instant revoked_; /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 8; */ public boolean hasRevoked() { return revoked_ != null; } /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked() { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder() { return getRevoked(); } 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 (sequence_ != 0) { output.writeUInt32(2, sequence_); } if (disabled_ != false) { output.writeBool(3, disabled_); } if (superseded_ != false) { output.writeBool(4, superseded_); } if (key_ != null) { output.writeMessage(5, getKey()); } if (used_ != null) { output.writeMessage(6, getUsed()); } if (generated_ != null) { output.writeMessage(7, getGenerated()); } if (revoked_ != null) { output.writeMessage(8, getRevoked()); } 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 (sequence_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, sequence_); } if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, disabled_); } if (superseded_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, superseded_); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getKey()); } if (used_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getUsed()); } if (generated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getGenerated()); } if (revoked_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRevoked()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getSequence() == other.getSequence()); result = result && (getDisabled() == other.getDisabled()); result = result && (getSuperseded() == other.getSuperseded()); result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasUsed() == other.hasUsed()); if (hasUsed()) { result = result && getUsed() .equals(other.getUsed()); } result = result && (hasGenerated() == other.hasGenerated()); if (hasGenerated()) { result = result && getGenerated() .equals(other.getGenerated()); } result = result && (hasRevoked() == other.hasRevoked()); if (hasRevoked()) { result = result && getRevoked() .equals(other.getRevoked()); } 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) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + getSequence(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); hash = (37 * hash) + SUPERSEDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSuperseded()); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasUsed()) { hash = (37 * hash) + USED_FIELD_NUMBER; hash = (53 * hash) + getUsed().hashCode(); } if (hasGenerated()) { hash = (37 * hash) + GENERATED_FIELD_NUMBER; hash = (53 * hash) + getGenerated().hashCode(); } if (hasRevoked()) { hash = (37 * hash) + REVOKED_FIELD_NUMBER; hash = (53 * hash) + getRevoked().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey 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; } /** *
     * Specifies a master symmetric key, referred to in the spec as the *Profile Access Key*. This key acts as the main
     * access method for the user's local device to load and read/mutate the underlying Bioprint data. It never leaves the
     * user's device.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.MasterKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.MasterKey) io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_MasterKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_MasterKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.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_ = ""; sequence_ = 0; disabled_ = false; superseded_ = false; if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (usedBuilder_ == null) { used_ = null; } else { used_ = null; usedBuilder_ = null; } if (generatedBuilder_ == null) { generated_ = null; } else { generated_ = null; generatedBuilder_ = null; } if (revokedBuilder_ == null) { revoked_ = null; } else { revoked_ = null; revokedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_MasterKey_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey(this); result.name_ = name_; result.sequence_ = sequence_; result.disabled_ = disabled_; result.superseded_ = superseded_; if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (usedBuilder_ == null) { result.used_ = used_; } else { result.used_ = usedBuilder_.build(); } if (generatedBuilder_ == null) { result.generated_ = generated_; } else { result.generated_ = generatedBuilder_.build(); } if (revokedBuilder_ == null) { result.revoked_ = revoked_; } else { result.revoked_ = revokedBuilder_.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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getSequence() != 0) { setSequence(other.getSequence()); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } if (other.getSuperseded() != false) { setSuperseded(other.getSuperseded()); } if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasUsed()) { mergeUsed(other.getUsed()); } if (other.hasGenerated()) { mergeGenerated(other.getGenerated()); } if (other.hasRevoked()) { mergeRevoked(other.getRevoked()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name for the key, which is generally set from the device name that owns the key.
       * 
* * 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 for the key, which is generally set from the device name that owns the key.
       * 
* * 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 for the key, which is generally set from the device name that owns the key.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name for the key, which is generally set from the device name that owns the key.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name for the key, which is generally set from the device name that owns the key.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int sequence_ ; /** *
       * The key sequence number, which refers to the generation for this key (considering key rotation).
       * 
* * uint32 sequence = 2; */ public int getSequence() { return sequence_; } /** *
       * The key sequence number, which refers to the generation for this key (considering key rotation).
       * 
* * uint32 sequence = 2; */ public Builder setSequence(int value) { sequence_ = value; onChanged(); return this; } /** *
       * The key sequence number, which refers to the generation for this key (considering key rotation).
       * 
* * uint32 sequence = 2; */ public Builder clearSequence() { sequence_ = 0; onChanged(); return this; } private boolean disabled_ ; /** *
       * Whether this key is considered active or revoked. If not present or false, the key is considered active (assuming
       * it has not been superseded).
       * 
* * bool disabled = 3; */ public boolean getDisabled() { return disabled_; } /** *
       * Whether this key is considered active or revoked. If not present or false, the key is considered active (assuming
       * it has not been superseded).
       * 
* * bool disabled = 3; */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Whether this key is considered active or revoked. If not present or false, the key is considered active (assuming
       * it has not been superseded).
       * 
* * bool disabled = 3; */ public Builder clearDisabled() { disabled_ = false; onChanged(); return this; } private boolean superseded_ ; /** *
       * Whether this key is considered primary or superseded. Superseded keys have been rotated for other keys, and can be
       * safely deleted from the subject profile.
       * 
* * bool superseded = 4; */ public boolean getSuperseded() { return superseded_; } /** *
       * Whether this key is considered primary or superseded. Superseded keys have been rotated for other keys, and can be
       * safely deleted from the subject profile.
       * 
* * bool superseded = 4; */ public Builder setSuperseded(boolean value) { superseded_ = value; onChanged(); return this; } /** *
       * Whether this key is considered primary or superseded. Superseded keys have been rotated for other keys, and can be
       * safely deleted from the subject profile.
       * 
* * bool superseded = 4; */ public Builder clearSuperseded() { superseded_ = false; onChanged(); return this; } private io.opencannabis.schema.crypto.primitives.SymmetricKey key_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder> keyBuilder_; /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey getKey() { if (keyBuilder_ == null) { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public Builder setKey(io.opencannabis.schema.crypto.primitives.SymmetricKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public Builder setKey( io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public Builder mergeKey(io.opencannabis.schema.crypto.primitives.SymmetricKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.opencannabis.schema.crypto.primitives.SymmetricKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ public io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant used_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> usedBuilder_; /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public boolean hasUsed() { return usedBuilder_ != null || used_ != null; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getUsed() { if (usedBuilder_ == null) { return used_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : used_; } else { return usedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public Builder setUsed(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (usedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } used_ = value; onChanged(); } else { usedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public Builder setUsed( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (usedBuilder_ == null) { used_ = builderForValue.build(); onChanged(); } else { usedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public Builder mergeUsed(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (usedBuilder_ == null) { if (used_ != null) { used_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(used_).mergeFrom(value).buildPartial(); } else { used_ = value; } onChanged(); } else { usedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public Builder clearUsed() { if (usedBuilder_ == null) { used_ = null; onChanged(); } else { used_ = null; usedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getUsedBuilder() { onChanged(); return getUsedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUsedOrBuilder() { if (usedBuilder_ != null) { return usedBuilder_.getMessageOrBuilder(); } else { return used_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : used_; } } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant used = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getUsedFieldBuilder() { if (usedBuilder_ == null) { usedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getUsed(), getParentForChildren(), isClean()); used_ = null; } return usedBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant generated_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> generatedBuilder_; /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public boolean hasGenerated() { return generatedBuilder_ != null || generated_ != null; } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated() { if (generatedBuilder_ == null) { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } else { return generatedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public Builder setGenerated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (generatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } generated_ = value; onChanged(); } else { generatedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public Builder setGenerated( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (generatedBuilder_ == null) { generated_ = builderForValue.build(); onChanged(); } else { generatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public Builder mergeGenerated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (generatedBuilder_ == null) { if (generated_ != null) { generated_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(generated_).mergeFrom(value).buildPartial(); } else { generated_ = value; } onChanged(); } else { generatedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public Builder clearGenerated() { if (generatedBuilder_ == null) { generated_ = null; onChanged(); } else { generated_ = null; generatedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getGeneratedBuilder() { onChanged(); return getGeneratedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder() { if (generatedBuilder_ != null) { return generatedBuilder_.getMessageOrBuilder(); } else { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } } /** *
       * Timestamp specifying the time this key was first generated.
       * 
* * .opencannabis.temporal.Instant generated = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getGeneratedFieldBuilder() { if (generatedBuilder_ == null) { generatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getGenerated(), getParentForChildren(), isClean()); generated_ = null; } return generatedBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant revoked_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> revokedBuilder_; /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public boolean hasRevoked() { return revokedBuilder_ != null || revoked_ != null; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked() { if (revokedBuilder_ == null) { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } else { return revokedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public Builder setRevoked(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (revokedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revoked_ = value; onChanged(); } else { revokedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public Builder setRevoked( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (revokedBuilder_ == null) { revoked_ = builderForValue.build(); onChanged(); } else { revokedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public Builder mergeRevoked(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (revokedBuilder_ == null) { if (revoked_ != null) { revoked_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(revoked_).mergeFrom(value).buildPartial(); } else { revoked_ = value; } onChanged(); } else { revokedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public Builder clearRevoked() { if (revokedBuilder_ == null) { revoked_ = null; onChanged(); } else { revoked_ = null; revokedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getRevokedBuilder() { onChanged(); return getRevokedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder() { if (revokedBuilder_ != null) { return revokedBuilder_.getMessageOrBuilder(); } else { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getRevokedFieldBuilder() { if (revokedBuilder_ == null) { revokedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getRevoked(), getParentForChildren(), isClean()); revoked_ = null; } return revokedBuilder_; } @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:bloombox.identity.bioprint.MasterKey) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.MasterKey) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MasterKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MasterKey(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.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RestorationKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.RestorationKey) com.google.protobuf.MessageOrBuilder { /** *
     * Name for the key, which is generally set from the export name or service.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * Name for the key, which is generally set from the export name or service.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
     * 
* * bool disabled = 2; */ boolean getDisabled(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ boolean hasKey(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ io.opencannabis.schema.crypto.primitives.SymmetricKey getKey(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 4; */ boolean hasGenerated(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 4; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 4; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 5; */ boolean hasRevoked(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 5; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 5; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder(); } /** *
   * Specifies a restoration symmetric key, referred to in the spec as the *Backup Access Key*. This key acts as a one-off
   * safeguard to restore a backup version of the user's *Bioprint*. It is generated on-demand for each export/backup of
   * that includes the private portion of the user's *Bioprint*. Because their use depends on an online service, they are
   * revocable by the user in cases of service or backup compromise.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.RestorationKey} */ public static final class RestorationKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.RestorationKey) RestorationKeyOrBuilder { private static final long serialVersionUID = 0L; // Use RestorationKey.newBuilder() to construct. private RestorationKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RestorationKey() { name_ = ""; disabled_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RestorationKey( 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 16: { disabled_ = input.readBool(); break; } case 26: { io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(io.opencannabis.schema.crypto.primitives.SymmetricKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 34: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (generated_ != null) { subBuilder = generated_.toBuilder(); } generated_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(generated_); generated_ = subBuilder.buildPartial(); } break; } case 42: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (revoked_ != null) { subBuilder = revoked_.toBuilder(); } revoked_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revoked_); revoked_ = 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.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_RestorationKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_RestorationKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name for the key, which is generally set from the export name or service.
     * 
* * 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 for the key, which is generally set from the export name or service.
     * 
* * 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 DISABLED_FIELD_NUMBER = 2; private boolean disabled_; /** *
     * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
     * 
* * bool disabled = 2; */ public boolean getDisabled() { return disabled_; } public static final int KEY_FIELD_NUMBER = 3; private io.opencannabis.schema.crypto.primitives.SymmetricKey key_; /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public boolean hasKey() { return key_ != null; } /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey getKey() { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder() { return getKey(); } public static final int GENERATED_FIELD_NUMBER = 4; private io.opencannabis.schema.temporal.TemporalInstant.Instant generated_; /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 4; */ public boolean hasGenerated() { return generated_ != null; } /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated() { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder() { return getGenerated(); } public static final int REVOKED_FIELD_NUMBER = 5; private io.opencannabis.schema.temporal.TemporalInstant.Instant revoked_; /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 5; */ public boolean hasRevoked() { return revoked_ != null; } /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked() { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder() { return getRevoked(); } 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 (disabled_ != false) { output.writeBool(2, disabled_); } if (key_ != null) { output.writeMessage(3, getKey()); } if (generated_ != null) { output.writeMessage(4, getGenerated()); } if (revoked_ != null) { output.writeMessage(5, getRevoked()); } 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 (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, disabled_); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKey()); } if (generated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getGenerated()); } if (revoked_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRevoked()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getDisabled() == other.getDisabled()); result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasGenerated() == other.hasGenerated()); if (hasGenerated()) { result = result && getGenerated() .equals(other.getGenerated()); } result = result && (hasRevoked() == other.hasRevoked()); if (hasRevoked()) { result = result && getRevoked() .equals(other.getRevoked()); } 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) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasGenerated()) { hash = (37 * hash) + GENERATED_FIELD_NUMBER; hash = (53 * hash) + getGenerated().hashCode(); } if (hasRevoked()) { hash = (37 * hash) + REVOKED_FIELD_NUMBER; hash = (53 * hash) + getRevoked().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey 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; } /** *
     * Specifies a restoration symmetric key, referred to in the spec as the *Backup Access Key*. This key acts as a one-off
     * safeguard to restore a backup version of the user's *Bioprint*. It is generated on-demand for each export/backup of
     * that includes the private portion of the user's *Bioprint*. Because their use depends on an online service, they are
     * revocable by the user in cases of service or backup compromise.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.RestorationKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.RestorationKey) io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_RestorationKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_RestorationKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.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_ = ""; disabled_ = false; if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (generatedBuilder_ == null) { generated_ = null; } else { generated_ = null; generatedBuilder_ = null; } if (revokedBuilder_ == null) { revoked_ = null; } else { revoked_ = null; revokedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_RestorationKey_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey(this); result.name_ = name_; result.disabled_ = disabled_; if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (generatedBuilder_ == null) { result.generated_ = generated_; } else { result.generated_ = generatedBuilder_.build(); } if (revokedBuilder_ == null) { result.revoked_ = revoked_; } else { result.revoked_ = revokedBuilder_.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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasGenerated()) { mergeGenerated(other.getGenerated()); } if (other.hasRevoked()) { mergeRevoked(other.getRevoked()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name for the key, which is generally set from the export name or service.
       * 
* * 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 for the key, which is generally set from the export name or service.
       * 
* * 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 for the key, which is generally set from the export name or service.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name for the key, which is generally set from the export name or service.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name for the key, which is generally set from the export name or service.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean disabled_ ; /** *
       * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
       * 
* * bool disabled = 2; */ public boolean getDisabled() { return disabled_; } /** *
       * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
       * 
* * bool disabled = 2; */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
       * 
* * bool disabled = 2; */ public Builder clearDisabled() { disabled_ = false; onChanged(); return this; } private io.opencannabis.schema.crypto.primitives.SymmetricKey key_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder> keyBuilder_; /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey getKey() { if (keyBuilder_ == null) { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public Builder setKey(io.opencannabis.schema.crypto.primitives.SymmetricKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public Builder setKey( io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public Builder mergeKey(io.opencannabis.schema.crypto.primitives.SymmetricKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.opencannabis.schema.crypto.primitives.SymmetricKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ public io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant generated_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> generatedBuilder_; /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public boolean hasGenerated() { return generatedBuilder_ != null || generated_ != null; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated() { if (generatedBuilder_ == null) { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } else { return generatedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public Builder setGenerated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (generatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } generated_ = value; onChanged(); } else { generatedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public Builder setGenerated( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (generatedBuilder_ == null) { generated_ = builderForValue.build(); onChanged(); } else { generatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public Builder mergeGenerated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (generatedBuilder_ == null) { if (generated_ != null) { generated_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(generated_).mergeFrom(value).buildPartial(); } else { generated_ = value; } onChanged(); } else { generatedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public Builder clearGenerated() { if (generatedBuilder_ == null) { generated_ = null; onChanged(); } else { generated_ = null; generatedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getGeneratedBuilder() { onChanged(); return getGeneratedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder() { if (generatedBuilder_ != null) { return generatedBuilder_.getMessageOrBuilder(); } else { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getGeneratedFieldBuilder() { if (generatedBuilder_ == null) { generatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getGenerated(), getParentForChildren(), isClean()); generated_ = null; } return generatedBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant revoked_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> revokedBuilder_; /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public boolean hasRevoked() { return revokedBuilder_ != null || revoked_ != null; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked() { if (revokedBuilder_ == null) { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } else { return revokedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public Builder setRevoked(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (revokedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revoked_ = value; onChanged(); } else { revokedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public Builder setRevoked( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (revokedBuilder_ == null) { revoked_ = builderForValue.build(); onChanged(); } else { revokedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public Builder mergeRevoked(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (revokedBuilder_ == null) { if (revoked_ != null) { revoked_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(revoked_).mergeFrom(value).buildPartial(); } else { revoked_ = value; } onChanged(); } else { revokedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public Builder clearRevoked() { if (revokedBuilder_ == null) { revoked_ = null; onChanged(); } else { revoked_ = null; revokedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getRevokedBuilder() { onChanged(); return getRevokedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder() { if (revokedBuilder_ != null) { return revokedBuilder_.getMessageOrBuilder(); } else { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getRevokedFieldBuilder() { if (revokedBuilder_ == null) { revokedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getRevoked(), getParentForChildren(), isClean()); revoked_ = null; } return revokedBuilder_; } @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:bloombox.identity.bioprint.RestorationKey) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.RestorationKey) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RestorationKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RestorationKey(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.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StubKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.StubKey) com.google.protobuf.MessageOrBuilder { /** *
     * Ephemeral ID provisioned for this Bioprint payload.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ boolean hasId(); /** *
     * Ephemeral ID provisioned for this Bioprint payload.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId(); /** *
     * Ephemeral ID provisioned for this Bioprint payload.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder(); /** *
     * Name for the key, which is generally set from the provider name.
     * 
* * string name = 2; */ java.lang.String getName(); /** *
     * Name for the key, which is generally set from the provider name.
     * 
* * string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
     * 
* * bool disabled = 3; */ boolean getDisabled(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ boolean hasKey(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ io.opencannabis.schema.crypto.primitives.SymmetricKey getKey(); /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 5; */ boolean hasGenerated(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 5; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated(); /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 5; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 6; */ boolean hasRevoked(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 6; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked(); /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 6; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder(); } /** *
   * Specifies an ephemeral symmetric key, generated for the purposes of sharing a *Bioprint* with a specific, authorized
   * partner organization. These keys are generated on-demand and on a per-partner basis. Because the use of stub keys
   * depends on a signed payload from an online service, they are revocable by the user. Only the public portion of the
   * *Bioprint* is shared, and can be decrypted, by a stub key.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.StubKey} */ public static final class StubKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.StubKey) StubKeyOrBuilder { private static final long serialVersionUID = 0L; // Use StubKey.newBuilder() to construct. private StubKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StubKey() { name_ = ""; disabled_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StubKey( 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: { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 24: { disabled_ = input.readBool(); break; } case 34: { io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(io.opencannabis.schema.crypto.primitives.SymmetricKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 42: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (generated_ != null) { subBuilder = generated_.toBuilder(); } generated_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(generated_); generated_ = subBuilder.buildPartial(); } break; } case 50: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (revoked_ != null) { subBuilder = revoked_.toBuilder(); } revoked_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revoked_); revoked_ = 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.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_StubKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_StubKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID id_; /** *
     * Ephemeral ID provisioned for this Bioprint payload.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public boolean hasId() { return id_ != null; } /** *
     * Ephemeral ID provisioned for this Bioprint payload.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId() { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } /** *
     * Ephemeral ID provisioned for this Bioprint payload.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder() { return getId(); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name for the key, which is generally set from the provider name.
     * 
* * 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 for the key, which is generally set from the provider name.
     * 
* * 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 DISABLED_FIELD_NUMBER = 3; private boolean disabled_; /** *
     * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
     * 
* * bool disabled = 3; */ public boolean getDisabled() { return disabled_; } public static final int KEY_FIELD_NUMBER = 4; private io.opencannabis.schema.crypto.primitives.SymmetricKey key_; /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public boolean hasKey() { return key_ != null; } /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey getKey() { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } /** *
     * Symmetric key material, including the raw bytes of the underlying secret key.
     * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder() { return getKey(); } public static final int GENERATED_FIELD_NUMBER = 5; private io.opencannabis.schema.temporal.TemporalInstant.Instant generated_; /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 5; */ public boolean hasGenerated() { return generated_ != null; } /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated() { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } /** *
     * Timestamp specifying the time this key was last-used.
     * 
* * .opencannabis.temporal.Instant generated = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder() { return getGenerated(); } public static final int REVOKED_FIELD_NUMBER = 6; private io.opencannabis.schema.temporal.TemporalInstant.Instant revoked_; /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 6; */ public boolean hasRevoked() { return revoked_ != null; } /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked() { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } /** *
     * Timestamp specifying the time this key was revoked.
     * 
* * .opencannabis.temporal.Instant revoked = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder() { return getRevoked(); } 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 (id_ != null) { output.writeMessage(1, getId()); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (disabled_ != false) { output.writeBool(3, disabled_); } if (key_ != null) { output.writeMessage(4, getKey()); } if (generated_ != null) { output.writeMessage(5, getGenerated()); } if (revoked_ != null) { output.writeMessage(6, getRevoked()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, disabled_); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKey()); } if (generated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getGenerated()); } if (revoked_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getRevoked()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getName() .equals(other.getName()); result = result && (getDisabled() == other.getDisabled()); result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasGenerated() == other.hasGenerated()); if (hasGenerated()) { result = result && getGenerated() .equals(other.getGenerated()); } result = result && (hasRevoked() == other.hasRevoked()); if (hasRevoked()) { result = result && getRevoked() .equals(other.getRevoked()); } 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasGenerated()) { hash = (37 * hash) + GENERATED_FIELD_NUMBER; hash = (53 * hash) + getGenerated().hashCode(); } if (hasRevoked()) { hash = (37 * hash) + REVOKED_FIELD_NUMBER; hash = (53 * hash) + getRevoked().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey 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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey 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; } /** *
     * Specifies an ephemeral symmetric key, generated for the purposes of sharing a *Bioprint* with a specific, authorized
     * partner organization. These keys are generated on-demand and on a per-partner basis. Because the use of stub keys
     * depends on a signed payload from an online service, they are revocable by the user. Only the public portion of the
     * *Bioprint* is shared, and can be decrypted, by a stub key.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.StubKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.StubKey) io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_StubKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_StubKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.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(); if (idBuilder_ == null) { id_ = null; } else { id_ = null; idBuilder_ = null; } name_ = ""; disabled_ = false; if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (generatedBuilder_ == null) { generated_ = null; } else { generated_ = null; generatedBuilder_ = null; } if (revokedBuilder_ == null) { revoked_ = null; } else { revoked_ = null; revokedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_StubKey_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey(this); if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } result.name_ = name_; result.disabled_ = disabled_; if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (generatedBuilder_ == null) { result.generated_ = generated_; } else { result.generated_ = generatedBuilder_.build(); } if (revokedBuilder_ == null) { result.revoked_ = revoked_; } else { result.revoked_ = revokedBuilder_.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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasGenerated()) { mergeGenerated(other.getGenerated()); } if (other.hasRevoked()) { mergeRevoked(other.getRevoked()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder> idBuilder_; /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId() { if (idBuilder_ == null) { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder setId(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder setId( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder mergeId(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID value) { if (idBuilder_ == null) { if (id_ != null) { id_ = io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } } /** *
       * Ephemeral ID provisioned for this Bioprint payload.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name for the key, which is generally set from the provider name.
       * 
* * 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 for the key, which is generally set from the provider name.
       * 
* * 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 for the key, which is generally set from the provider name.
       * 
* * string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name for the key, which is generally set from the provider name.
       * 
* * string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name for the key, which is generally set from the provider name.
       * 
* * 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 boolean disabled_ ; /** *
       * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
       * 
* * bool disabled = 3; */ public boolean getDisabled() { return disabled_; } /** *
       * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
       * 
* * bool disabled = 3; */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Whether this key should be considered revoked or not. If not present or false, the key is considered active.
       * 
* * bool disabled = 3; */ public Builder clearDisabled() { disabled_ = false; onChanged(); return this; } private io.opencannabis.schema.crypto.primitives.SymmetricKey key_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder> keyBuilder_; /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey getKey() { if (keyBuilder_ == null) { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public Builder setKey(io.opencannabis.schema.crypto.primitives.SymmetricKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public Builder setKey( io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public Builder mergeKey(io.opencannabis.schema.crypto.primitives.SymmetricKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.opencannabis.schema.crypto.primitives.SymmetricKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ public io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.opencannabis.schema.crypto.primitives.SymmetricKey.getDefaultInstance() : key_; } } /** *
       * Symmetric key material, including the raw bytes of the underlying secret key.
       * 
* * .opencannabis.crypto.SymmetricKey key = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.SymmetricKey, io.opencannabis.schema.crypto.primitives.SymmetricKey.Builder, io.opencannabis.schema.crypto.primitives.SymmetricKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant generated_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> generatedBuilder_; /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public boolean hasGenerated() { return generatedBuilder_ != null || generated_ != null; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getGenerated() { if (generatedBuilder_ == null) { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } else { return generatedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public Builder setGenerated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (generatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } generated_ = value; onChanged(); } else { generatedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public Builder setGenerated( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (generatedBuilder_ == null) { generated_ = builderForValue.build(); onChanged(); } else { generatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public Builder mergeGenerated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (generatedBuilder_ == null) { if (generated_ != null) { generated_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(generated_).mergeFrom(value).buildPartial(); } else { generated_ = value; } onChanged(); } else { generatedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public Builder clearGenerated() { if (generatedBuilder_ == null) { generated_ = null; onChanged(); } else { generated_ = null; generatedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getGeneratedBuilder() { onChanged(); return getGeneratedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getGeneratedOrBuilder() { if (generatedBuilder_ != null) { return generatedBuilder_.getMessageOrBuilder(); } else { return generated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : generated_; } } /** *
       * Timestamp specifying the time this key was last-used.
       * 
* * .opencannabis.temporal.Instant generated = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getGeneratedFieldBuilder() { if (generatedBuilder_ == null) { generatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getGenerated(), getParentForChildren(), isClean()); generated_ = null; } return generatedBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant revoked_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> revokedBuilder_; /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public boolean hasRevoked() { return revokedBuilder_ != null || revoked_ != null; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRevoked() { if (revokedBuilder_ == null) { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } else { return revokedBuilder_.getMessage(); } } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public Builder setRevoked(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (revokedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revoked_ = value; onChanged(); } else { revokedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public Builder setRevoked( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (revokedBuilder_ == null) { revoked_ = builderForValue.build(); onChanged(); } else { revokedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public Builder mergeRevoked(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (revokedBuilder_ == null) { if (revoked_ != null) { revoked_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(revoked_).mergeFrom(value).buildPartial(); } else { revoked_ = value; } onChanged(); } else { revokedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public Builder clearRevoked() { if (revokedBuilder_ == null) { revoked_ = null; onChanged(); } else { revoked_ = null; revokedBuilder_ = null; } return this; } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getRevokedBuilder() { onChanged(); return getRevokedFieldBuilder().getBuilder(); } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRevokedOrBuilder() { if (revokedBuilder_ != null) { return revokedBuilder_.getMessageOrBuilder(); } else { return revoked_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : revoked_; } } /** *
       * Timestamp specifying the time this key was revoked.
       * 
* * .opencannabis.temporal.Instant revoked = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getRevokedFieldBuilder() { if (revokedBuilder_ == null) { revokedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getRevoked(), getParentForChildren(), isClean()); revoked_ = null; } return revokedBuilder_; } @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:bloombox.identity.bioprint.StubKey) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.StubKey) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StubKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StubKey(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.bloombox.schema.identity.bioprint.BioprintOuterClass.StubKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BioprintTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.BioprintToken) com.google.protobuf.MessageOrBuilder { /** *
     * Encoded token payload. Standard JSON Web Token.
     * 
* * .bloombox.security.AuthToken token = 1; */ boolean hasToken(); /** *
     * Encoded token payload. Standard JSON Web Token.
     * 
* * .bloombox.security.AuthToken token = 1; */ io.bloombox.schema.security.AuthToken getToken(); /** *
     * Encoded token payload. Standard JSON Web Token.
     * 
* * .bloombox.security.AuthToken token = 1; */ io.bloombox.schema.security.AuthTokenOrBuilder getTokenOrBuilder(); /** *
     * Fingerprint for the underlying used to sign the enclosed token.
     * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ boolean hasFingerprint(); /** *
     * Fingerprint for the underlying used to sign the enclosed token.
     * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ io.opencannabis.schema.crypto.primitives.integrity.Hash getFingerprint(); /** *
     * Fingerprint for the underlying used to sign the enclosed token.
     * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ io.opencannabis.schema.crypto.primitives.integrity.HashOrBuilder getFingerprintOrBuilder(); /** *
     * Issuance timestamp for the enclosed token.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ boolean hasIssued(); /** *
     * Issuance timestamp for the enclosed token.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getIssued(); /** *
     * Issuance timestamp for the enclosed token.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getIssuedOrBuilder(); } /** *
   * Specifies a JSON Web Token (JWT) issued during the process of updating a *Bioprint*, to form an attestation of user
   * identity provenance and control. Tokens are issued by the user's own device and signed with their key.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintToken} */ public static final class BioprintToken extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.BioprintToken) BioprintTokenOrBuilder { private static final long serialVersionUID = 0L; // Use BioprintToken.newBuilder() to construct. private BioprintToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BioprintToken() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BioprintToken( 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: { io.bloombox.schema.security.AuthToken.Builder subBuilder = null; if (token_ != null) { subBuilder = token_.toBuilder(); } token_ = input.readMessage(io.bloombox.schema.security.AuthToken.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(token_); token_ = subBuilder.buildPartial(); } break; } case 18: { io.opencannabis.schema.crypto.primitives.integrity.Hash.Builder subBuilder = null; if (fingerprint_ != null) { subBuilder = fingerprint_.toBuilder(); } fingerprint_ = input.readMessage(io.opencannabis.schema.crypto.primitives.integrity.Hash.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fingerprint_); fingerprint_ = subBuilder.buildPartial(); } break; } case 26: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (issued_ != null) { subBuilder = issued_.toBuilder(); } issued_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(issued_); issued_ = 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.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintToken_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintToken_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.Builder.class); } public static final int TOKEN_FIELD_NUMBER = 1; private io.bloombox.schema.security.AuthToken token_; /** *
     * Encoded token payload. Standard JSON Web Token.
     * 
* * .bloombox.security.AuthToken token = 1; */ public boolean hasToken() { return token_ != null; } /** *
     * Encoded token payload. Standard JSON Web Token.
     * 
* * .bloombox.security.AuthToken token = 1; */ public io.bloombox.schema.security.AuthToken getToken() { return token_ == null ? io.bloombox.schema.security.AuthToken.getDefaultInstance() : token_; } /** *
     * Encoded token payload. Standard JSON Web Token.
     * 
* * .bloombox.security.AuthToken token = 1; */ public io.bloombox.schema.security.AuthTokenOrBuilder getTokenOrBuilder() { return getToken(); } public static final int FINGERPRINT_FIELD_NUMBER = 2; private io.opencannabis.schema.crypto.primitives.integrity.Hash fingerprint_; /** *
     * Fingerprint for the underlying used to sign the enclosed token.
     * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public boolean hasFingerprint() { return fingerprint_ != null; } /** *
     * Fingerprint for the underlying used to sign the enclosed token.
     * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public io.opencannabis.schema.crypto.primitives.integrity.Hash getFingerprint() { return fingerprint_ == null ? io.opencannabis.schema.crypto.primitives.integrity.Hash.getDefaultInstance() : fingerprint_; } /** *
     * Fingerprint for the underlying used to sign the enclosed token.
     * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public io.opencannabis.schema.crypto.primitives.integrity.HashOrBuilder getFingerprintOrBuilder() { return getFingerprint(); } public static final int ISSUED_FIELD_NUMBER = 3; private io.opencannabis.schema.temporal.TemporalInstant.Instant issued_; /** *
     * Issuance timestamp for the enclosed token.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ public boolean hasIssued() { return issued_ != null; } /** *
     * Issuance timestamp for the enclosed token.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getIssued() { return issued_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : issued_; } /** *
     * Issuance timestamp for the enclosed token.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getIssuedOrBuilder() { return getIssued(); } 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 (token_ != null) { output.writeMessage(1, getToken()); } if (fingerprint_ != null) { output.writeMessage(2, getFingerprint()); } if (issued_ != null) { output.writeMessage(3, getIssued()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (token_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getToken()); } if (fingerprint_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFingerprint()); } if (issued_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getIssued()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken) obj; boolean result = true; result = result && (hasToken() == other.hasToken()); if (hasToken()) { result = result && getToken() .equals(other.getToken()); } result = result && (hasFingerprint() == other.hasFingerprint()); if (hasFingerprint()) { result = result && getFingerprint() .equals(other.getFingerprint()); } result = result && (hasIssued() == other.hasIssued()); if (hasIssued()) { result = result && getIssued() .equals(other.getIssued()); } 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(); if (hasToken()) { hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); } if (hasFingerprint()) { hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getFingerprint().hashCode(); } if (hasIssued()) { hash = (37 * hash) + ISSUED_FIELD_NUMBER; hash = (53 * hash) + getIssued().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken 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; } /** *
     * Specifies a JSON Web Token (JWT) issued during the process of updating a *Bioprint*, to form an attestation of user
     * identity provenance and control. Tokens are issued by the user's own device and signed with their key.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintToken} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.BioprintToken) io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintTokenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintToken_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintToken_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.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(); if (tokenBuilder_ == null) { token_ = null; } else { token_ = null; tokenBuilder_ = null; } if (fingerprintBuilder_ == null) { fingerprint_ = null; } else { fingerprint_ = null; fingerprintBuilder_ = null; } if (issuedBuilder_ == null) { issued_ = null; } else { issued_ = null; issuedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintToken_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken(this); if (tokenBuilder_ == null) { result.token_ = token_; } else { result.token_ = tokenBuilder_.build(); } if (fingerprintBuilder_ == null) { result.fingerprint_ = fingerprint_; } else { result.fingerprint_ = fingerprintBuilder_.build(); } if (issuedBuilder_ == null) { result.issued_ = issued_; } else { result.issued_ = issuedBuilder_.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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken.getDefaultInstance()) return this; if (other.hasToken()) { mergeToken(other.getToken()); } if (other.hasFingerprint()) { mergeFingerprint(other.getFingerprint()); } if (other.hasIssued()) { mergeIssued(other.getIssued()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.security.AuthToken token_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.security.AuthToken, io.bloombox.schema.security.AuthToken.Builder, io.bloombox.schema.security.AuthTokenOrBuilder> tokenBuilder_; /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public boolean hasToken() { return tokenBuilder_ != null || token_ != null; } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public io.bloombox.schema.security.AuthToken getToken() { if (tokenBuilder_ == null) { return token_ == null ? io.bloombox.schema.security.AuthToken.getDefaultInstance() : token_; } else { return tokenBuilder_.getMessage(); } } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public Builder setToken(io.bloombox.schema.security.AuthToken value) { if (tokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } token_ = value; onChanged(); } else { tokenBuilder_.setMessage(value); } return this; } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public Builder setToken( io.bloombox.schema.security.AuthToken.Builder builderForValue) { if (tokenBuilder_ == null) { token_ = builderForValue.build(); onChanged(); } else { tokenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public Builder mergeToken(io.bloombox.schema.security.AuthToken value) { if (tokenBuilder_ == null) { if (token_ != null) { token_ = io.bloombox.schema.security.AuthToken.newBuilder(token_).mergeFrom(value).buildPartial(); } else { token_ = value; } onChanged(); } else { tokenBuilder_.mergeFrom(value); } return this; } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public Builder clearToken() { if (tokenBuilder_ == null) { token_ = null; onChanged(); } else { token_ = null; tokenBuilder_ = null; } return this; } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public io.bloombox.schema.security.AuthToken.Builder getTokenBuilder() { onChanged(); return getTokenFieldBuilder().getBuilder(); } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ public io.bloombox.schema.security.AuthTokenOrBuilder getTokenOrBuilder() { if (tokenBuilder_ != null) { return tokenBuilder_.getMessageOrBuilder(); } else { return token_ == null ? io.bloombox.schema.security.AuthToken.getDefaultInstance() : token_; } } /** *
       * Encoded token payload. Standard JSON Web Token.
       * 
* * .bloombox.security.AuthToken token = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.security.AuthToken, io.bloombox.schema.security.AuthToken.Builder, io.bloombox.schema.security.AuthTokenOrBuilder> getTokenFieldBuilder() { if (tokenBuilder_ == null) { tokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.security.AuthToken, io.bloombox.schema.security.AuthToken.Builder, io.bloombox.schema.security.AuthTokenOrBuilder>( getToken(), getParentForChildren(), isClean()); token_ = null; } return tokenBuilder_; } private io.opencannabis.schema.crypto.primitives.integrity.Hash fingerprint_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.integrity.Hash, io.opencannabis.schema.crypto.primitives.integrity.Hash.Builder, io.opencannabis.schema.crypto.primitives.integrity.HashOrBuilder> fingerprintBuilder_; /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public boolean hasFingerprint() { return fingerprintBuilder_ != null || fingerprint_ != null; } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public io.opencannabis.schema.crypto.primitives.integrity.Hash getFingerprint() { if (fingerprintBuilder_ == null) { return fingerprint_ == null ? io.opencannabis.schema.crypto.primitives.integrity.Hash.getDefaultInstance() : fingerprint_; } else { return fingerprintBuilder_.getMessage(); } } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public Builder setFingerprint(io.opencannabis.schema.crypto.primitives.integrity.Hash value) { if (fingerprintBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fingerprint_ = value; onChanged(); } else { fingerprintBuilder_.setMessage(value); } return this; } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public Builder setFingerprint( io.opencannabis.schema.crypto.primitives.integrity.Hash.Builder builderForValue) { if (fingerprintBuilder_ == null) { fingerprint_ = builderForValue.build(); onChanged(); } else { fingerprintBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public Builder mergeFingerprint(io.opencannabis.schema.crypto.primitives.integrity.Hash value) { if (fingerprintBuilder_ == null) { if (fingerprint_ != null) { fingerprint_ = io.opencannabis.schema.crypto.primitives.integrity.Hash.newBuilder(fingerprint_).mergeFrom(value).buildPartial(); } else { fingerprint_ = value; } onChanged(); } else { fingerprintBuilder_.mergeFrom(value); } return this; } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public Builder clearFingerprint() { if (fingerprintBuilder_ == null) { fingerprint_ = null; onChanged(); } else { fingerprint_ = null; fingerprintBuilder_ = null; } return this; } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public io.opencannabis.schema.crypto.primitives.integrity.Hash.Builder getFingerprintBuilder() { onChanged(); return getFingerprintFieldBuilder().getBuilder(); } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ public io.opencannabis.schema.crypto.primitives.integrity.HashOrBuilder getFingerprintOrBuilder() { if (fingerprintBuilder_ != null) { return fingerprintBuilder_.getMessageOrBuilder(); } else { return fingerprint_ == null ? io.opencannabis.schema.crypto.primitives.integrity.Hash.getDefaultInstance() : fingerprint_; } } /** *
       * Fingerprint for the underlying used to sign the enclosed token.
       * 
* * .opencannabis.crypto.Hash fingerprint = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.integrity.Hash, io.opencannabis.schema.crypto.primitives.integrity.Hash.Builder, io.opencannabis.schema.crypto.primitives.integrity.HashOrBuilder> getFingerprintFieldBuilder() { if (fingerprintBuilder_ == null) { fingerprintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.primitives.integrity.Hash, io.opencannabis.schema.crypto.primitives.integrity.Hash.Builder, io.opencannabis.schema.crypto.primitives.integrity.HashOrBuilder>( getFingerprint(), getParentForChildren(), isClean()); fingerprint_ = null; } return fingerprintBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant issued_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> issuedBuilder_; /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public boolean hasIssued() { return issuedBuilder_ != null || issued_ != null; } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getIssued() { if (issuedBuilder_ == null) { return issued_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : issued_; } else { return issuedBuilder_.getMessage(); } } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder setIssued(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (issuedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } issued_ = value; onChanged(); } else { issuedBuilder_.setMessage(value); } return this; } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder setIssued( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (issuedBuilder_ == null) { issued_ = builderForValue.build(); onChanged(); } else { issuedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder mergeIssued(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (issuedBuilder_ == null) { if (issued_ != null) { issued_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(issued_).mergeFrom(value).buildPartial(); } else { issued_ = value; } onChanged(); } else { issuedBuilder_.mergeFrom(value); } return this; } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder clearIssued() { if (issuedBuilder_ == null) { issued_ = null; onChanged(); } else { issued_ = null; issuedBuilder_ = null; } return this; } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getIssuedBuilder() { onChanged(); return getIssuedFieldBuilder().getBuilder(); } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getIssuedOrBuilder() { if (issuedBuilder_ != null) { return issuedBuilder_.getMessageOrBuilder(); } else { return issued_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : issued_; } } /** *
       * Issuance timestamp for the enclosed token.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getIssuedFieldBuilder() { if (issuedBuilder_ == null) { issuedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getIssued(), getParentForChildren(), isClean()); issued_ = null; } return issuedBuilder_; } @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:bloombox.identity.bioprint.BioprintToken) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.BioprintToken) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BioprintToken parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BioprintToken(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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BioprintIDOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.BioprintID) com.google.protobuf.MessageOrBuilder { /** *
     * Device ID that originated the Bioprint addressed by this identifier.
     * 
* * string origin = 1; */ java.lang.String getOrigin(); /** *
     * Device ID that originated the Bioprint addressed by this identifier.
     * 
* * string origin = 1; */ com.google.protobuf.ByteString getOriginBytes(); /** *
     * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
     * this is the case, the old one is included here, and within the hash.
     * 
* * string ancestor = 2; */ java.lang.String getAncestor(); /** *
     * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
     * this is the case, the old one is included here, and within the hash.
     * 
* * string ancestor = 2; */ com.google.protobuf.ByteString getAncestorBytes(); /** *
     * Timestamp indicating the moment of issuance for this Bioprint ID.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ boolean hasIssued(); /** *
     * Timestamp indicating the moment of issuance for this Bioprint ID.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getIssued(); /** *
     * Timestamp indicating the moment of issuance for this Bioprint ID.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getIssuedOrBuilder(); /** *
     * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
     * 
* * .opencannabis.crypto.Signature signature = 4; */ boolean hasSignature(); /** *
     * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
     * 
* * .opencannabis.crypto.Signature signature = 4; */ io.opencannabis.schema.crypto.Signature getSignature(); /** *
     * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
     * 
* * .opencannabis.crypto.Signature signature = 4; */ io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder(); /** *
     * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
     * partner or ancestor value.
     * 
* * .bloombox.partner.PartnerKey partner = 5; */ boolean hasPartner(); /** *
     * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
     * partner or ancestor value.
     * 
* * .bloombox.partner.PartnerKey partner = 5; */ io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner(); /** *
     * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
     * partner or ancestor value.
     * 
* * .bloombox.partner.PartnerKey partner = 5; */ io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder(); } /** *
   * Specifies a payload that addresses an individual *Bioprint* payload. A Bioprint ID is allocated each time a Bioprint
   * is shared with a given provider (snapshotting that *Bioprint* in time for that moment), and created originally as an
   * anchor in the payload's history. It is composed from a hash algorithm defined in the *Bioprint Architecture* spec.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintID} */ public static final class BioprintID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.BioprintID) BioprintIDOrBuilder { private static final long serialVersionUID = 0L; // Use BioprintID.newBuilder() to construct. private BioprintID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BioprintID() { origin_ = ""; ancestor_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BioprintID( 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(); origin_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); ancestor_ = s; break; } case 26: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (issued_ != null) { subBuilder = issued_.toBuilder(); } issued_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(issued_); issued_ = subBuilder.buildPartial(); } break; } case 34: { io.opencannabis.schema.crypto.Signature.Builder subBuilder = null; if (signature_ != null) { subBuilder = signature_.toBuilder(); } signature_ = input.readMessage(io.opencannabis.schema.crypto.Signature.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signature_); signature_ = subBuilder.buildPartial(); } break; } case 42: { io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder subBuilder = null; if (partner_ != null) { subBuilder = partner_.toBuilder(); } partner_ = input.readMessage(io.bloombox.schema.partner.PartnerMeta.PartnerKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(partner_); partner_ = 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.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintID_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder.class); } public static final int ORIGIN_FIELD_NUMBER = 1; private volatile java.lang.Object origin_; /** *
     * Device ID that originated the Bioprint addressed by this identifier.
     * 
* * string origin = 1; */ public java.lang.String getOrigin() { java.lang.Object ref = origin_; 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(); origin_ = s; return s; } } /** *
     * Device ID that originated the Bioprint addressed by this identifier.
     * 
* * string origin = 1; */ public com.google.protobuf.ByteString getOriginBytes() { java.lang.Object ref = origin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); origin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANCESTOR_FIELD_NUMBER = 2; private volatile java.lang.Object ancestor_; /** *
     * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
     * this is the case, the old one is included here, and within the hash.
     * 
* * string ancestor = 2; */ public java.lang.String getAncestor() { java.lang.Object ref = ancestor_; 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(); ancestor_ = s; return s; } } /** *
     * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
     * this is the case, the old one is included here, and within the hash.
     * 
* * string ancestor = 2; */ public com.google.protobuf.ByteString getAncestorBytes() { java.lang.Object ref = ancestor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ancestor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISSUED_FIELD_NUMBER = 3; private io.opencannabis.schema.temporal.TemporalInstant.Instant issued_; /** *
     * Timestamp indicating the moment of issuance for this Bioprint ID.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ public boolean hasIssued() { return issued_ != null; } /** *
     * Timestamp indicating the moment of issuance for this Bioprint ID.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getIssued() { return issued_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : issued_; } /** *
     * Timestamp indicating the moment of issuance for this Bioprint ID.
     * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getIssuedOrBuilder() { return getIssued(); } public static final int SIGNATURE_FIELD_NUMBER = 4; private io.opencannabis.schema.crypto.Signature signature_; /** *
     * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
     * 
* * .opencannabis.crypto.Signature signature = 4; */ public boolean hasSignature() { return signature_ != null; } /** *
     * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
     * 
* * .opencannabis.crypto.Signature signature = 4; */ public io.opencannabis.schema.crypto.Signature getSignature() { return signature_ == null ? io.opencannabis.schema.crypto.Signature.getDefaultInstance() : signature_; } /** *
     * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
     * 
* * .opencannabis.crypto.Signature signature = 4; */ public io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder() { return getSignature(); } public static final int PARTNER_FIELD_NUMBER = 5; private io.bloombox.schema.partner.PartnerMeta.PartnerKey partner_; /** *
     * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
     * partner or ancestor value.
     * 
* * .bloombox.partner.PartnerKey partner = 5; */ public boolean hasPartner() { return partner_ != null; } /** *
     * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
     * partner or ancestor value.
     * 
* * .bloombox.partner.PartnerKey partner = 5; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner() { return partner_ == null ? io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance() : partner_; } /** *
     * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
     * partner or ancestor value.
     * 
* * .bloombox.partner.PartnerKey partner = 5; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder() { return getPartner(); } 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 (!getOriginBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, origin_); } if (!getAncestorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ancestor_); } if (issued_ != null) { output.writeMessage(3, getIssued()); } if (signature_ != null) { output.writeMessage(4, getSignature()); } if (partner_ != null) { output.writeMessage(5, getPartner()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getOriginBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, origin_); } if (!getAncestorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ancestor_); } if (issued_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getIssued()); } if (signature_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSignature()); } if (partner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPartner()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID) obj; boolean result = true; result = result && getOrigin() .equals(other.getOrigin()); result = result && getAncestor() .equals(other.getAncestor()); result = result && (hasIssued() == other.hasIssued()); if (hasIssued()) { result = result && getIssued() .equals(other.getIssued()); } result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { result = result && getSignature() .equals(other.getSignature()); } result = result && (hasPartner() == other.hasPartner()); if (hasPartner()) { result = result && getPartner() .equals(other.getPartner()); } 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) + ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getOrigin().hashCode(); hash = (37 * hash) + ANCESTOR_FIELD_NUMBER; hash = (53 * hash) + getAncestor().hashCode(); if (hasIssued()) { hash = (37 * hash) + ISSUED_FIELD_NUMBER; hash = (53 * hash) + getIssued().hashCode(); } if (hasSignature()) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); } if (hasPartner()) { hash = (37 * hash) + PARTNER_FIELD_NUMBER; hash = (53 * hash) + getPartner().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID 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; } /** *
     * Specifies a payload that addresses an individual *Bioprint* payload. A Bioprint ID is allocated each time a Bioprint
     * is shared with a given provider (snapshotting that *Bioprint* in time for that moment), and created originally as an
     * anchor in the payload's history. It is composed from a hash algorithm defined in the *Bioprint Architecture* spec.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.BioprintID) io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintID_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.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(); origin_ = ""; ancestor_ = ""; if (issuedBuilder_ == null) { issued_ = null; } else { issued_ = null; issuedBuilder_ = null; } if (signatureBuilder_ == null) { signature_ = null; } else { signature_ = null; signatureBuilder_ = null; } if (partnerBuilder_ == null) { partner_ = null; } else { partner_ = null; partnerBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintID_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID(this); result.origin_ = origin_; result.ancestor_ = ancestor_; if (issuedBuilder_ == null) { result.issued_ = issued_; } else { result.issued_ = issuedBuilder_.build(); } if (signatureBuilder_ == null) { result.signature_ = signature_; } else { result.signature_ = signatureBuilder_.build(); } if (partnerBuilder_ == null) { result.partner_ = partner_; } else { result.partner_ = partnerBuilder_.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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance()) return this; if (!other.getOrigin().isEmpty()) { origin_ = other.origin_; onChanged(); } if (!other.getAncestor().isEmpty()) { ancestor_ = other.ancestor_; onChanged(); } if (other.hasIssued()) { mergeIssued(other.getIssued()); } if (other.hasSignature()) { mergeSignature(other.getSignature()); } if (other.hasPartner()) { mergePartner(other.getPartner()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object origin_ = ""; /** *
       * Device ID that originated the Bioprint addressed by this identifier.
       * 
* * string origin = 1; */ public java.lang.String getOrigin() { java.lang.Object ref = origin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); origin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Device ID that originated the Bioprint addressed by this identifier.
       * 
* * string origin = 1; */ public com.google.protobuf.ByteString getOriginBytes() { java.lang.Object ref = origin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); origin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Device ID that originated the Bioprint addressed by this identifier.
       * 
* * string origin = 1; */ public Builder setOrigin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } origin_ = value; onChanged(); return this; } /** *
       * Device ID that originated the Bioprint addressed by this identifier.
       * 
* * string origin = 1; */ public Builder clearOrigin() { origin_ = getDefaultInstance().getOrigin(); onChanged(); return this; } /** *
       * Device ID that originated the Bioprint addressed by this identifier.
       * 
* * string origin = 1; */ public Builder setOriginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); origin_ = value; onChanged(); return this; } private java.lang.Object ancestor_ = ""; /** *
       * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
       * this is the case, the old one is included here, and within the hash.
       * 
* * string ancestor = 2; */ public java.lang.String getAncestor() { java.lang.Object ref = ancestor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ancestor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
       * this is the case, the old one is included here, and within the hash.
       * 
* * string ancestor = 2; */ public com.google.protobuf.ByteString getAncestorBytes() { java.lang.Object ref = ancestor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ancestor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
       * this is the case, the old one is included here, and within the hash.
       * 
* * string ancestor = 2; */ public Builder setAncestor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ancestor_ = value; onChanged(); return this; } /** *
       * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
       * this is the case, the old one is included here, and within the hash.
       * 
* * string ancestor = 2; */ public Builder clearAncestor() { ancestor_ = getDefaultInstance().getAncestor(); onChanged(); return this; } /** *
       * Parent ID that created this Bioprint ID. When a Bioprint is updated with a provider, a new ID is generated. When
       * this is the case, the old one is included here, and within the hash.
       * 
* * string ancestor = 2; */ public Builder setAncestorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ancestor_ = value; onChanged(); return this; } private io.opencannabis.schema.temporal.TemporalInstant.Instant issued_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> issuedBuilder_; /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public boolean hasIssued() { return issuedBuilder_ != null || issued_ != null; } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getIssued() { if (issuedBuilder_ == null) { return issued_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : issued_; } else { return issuedBuilder_.getMessage(); } } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder setIssued(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (issuedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } issued_ = value; onChanged(); } else { issuedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder setIssued( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (issuedBuilder_ == null) { issued_ = builderForValue.build(); onChanged(); } else { issuedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder mergeIssued(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (issuedBuilder_ == null) { if (issued_ != null) { issued_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(issued_).mergeFrom(value).buildPartial(); } else { issued_ = value; } onChanged(); } else { issuedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public Builder clearIssued() { if (issuedBuilder_ == null) { issued_ = null; onChanged(); } else { issued_ = null; issuedBuilder_ = null; } return this; } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getIssuedBuilder() { onChanged(); return getIssuedFieldBuilder().getBuilder(); } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getIssuedOrBuilder() { if (issuedBuilder_ != null) { return issuedBuilder_.getMessageOrBuilder(); } else { return issued_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : issued_; } } /** *
       * Timestamp indicating the moment of issuance for this Bioprint ID.
       * 
* * .opencannabis.temporal.Instant issued = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getIssuedFieldBuilder() { if (issuedBuilder_ == null) { issuedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getIssued(), getParentForChildren(), isClean()); issued_ = null; } return issuedBuilder_; } private io.opencannabis.schema.crypto.Signature signature_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.Signature, io.opencannabis.schema.crypto.Signature.Builder, io.opencannabis.schema.crypto.SignatureOrBuilder> signatureBuilder_; /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public io.opencannabis.schema.crypto.Signature getSignature() { if (signatureBuilder_ == null) { return signature_ == null ? io.opencannabis.schema.crypto.Signature.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public Builder setSignature(io.opencannabis.schema.crypto.Signature value) { if (signatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); } else { signatureBuilder_.setMessage(value); } return this; } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public Builder setSignature( io.opencannabis.schema.crypto.Signature.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); onChanged(); } else { signatureBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public Builder mergeSignature(io.opencannabis.schema.crypto.Signature value) { if (signatureBuilder_ == null) { if (signature_ != null) { signature_ = io.opencannabis.schema.crypto.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); } else { signature_ = value; } onChanged(); } else { signatureBuilder_.mergeFrom(value); } return this; } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public Builder clearSignature() { if (signatureBuilder_ == null) { signature_ = null; onChanged(); } else { signature_ = null; signatureBuilder_ = null; } return this; } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public io.opencannabis.schema.crypto.Signature.Builder getSignatureBuilder() { onChanged(); return getSignatureFieldBuilder().getBuilder(); } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ public io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder() { if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { return signature_ == null ? io.opencannabis.schema.crypto.Signature.getDefaultInstance() : signature_; } } /** *
       * Signature from the user's key, authorizing this Bioprint ID to be allocated and potentially shared.
       * 
* * .opencannabis.crypto.Signature signature = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.Signature, io.opencannabis.schema.crypto.Signature.Builder, io.opencannabis.schema.crypto.SignatureOrBuilder> getSignatureFieldBuilder() { if (signatureBuilder_ == null) { signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.crypto.Signature, io.opencannabis.schema.crypto.Signature.Builder, io.opencannabis.schema.crypto.SignatureOrBuilder>( getSignature(), getParentForChildren(), isClean()); signature_ = null; } return signatureBuilder_; } private io.bloombox.schema.partner.PartnerMeta.PartnerKey partner_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder> partnerBuilder_; /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public boolean hasPartner() { return partnerBuilder_ != null || partner_ != null; } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner() { if (partnerBuilder_ == null) { return partner_ == null ? io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance() : partner_; } else { return partnerBuilder_.getMessage(); } } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public Builder setPartner(io.bloombox.schema.partner.PartnerMeta.PartnerKey value) { if (partnerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partner_ = value; onChanged(); } else { partnerBuilder_.setMessage(value); } return this; } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public Builder setPartner( io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder builderForValue) { if (partnerBuilder_ == null) { partner_ = builderForValue.build(); onChanged(); } else { partnerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public Builder mergePartner(io.bloombox.schema.partner.PartnerMeta.PartnerKey value) { if (partnerBuilder_ == null) { if (partner_ != null) { partner_ = io.bloombox.schema.partner.PartnerMeta.PartnerKey.newBuilder(partner_).mergeFrom(value).buildPartial(); } else { partner_ = value; } onChanged(); } else { partnerBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public Builder clearPartner() { if (partnerBuilder_ == null) { partner_ = null; onChanged(); } else { partner_ = null; partnerBuilder_ = null; } return this; } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder getPartnerBuilder() { onChanged(); return getPartnerFieldBuilder().getBuilder(); } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder() { if (partnerBuilder_ != null) { return partnerBuilder_.getMessageOrBuilder(); } else { return partner_ == null ? io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance() : partner_; } } /** *
       * Specifies the partner for which this ID was allocated, if applicable. The root Bioprint ID specifies no provider
       * partner or ancestor value.
       * 
* * .bloombox.partner.PartnerKey partner = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder> getPartnerFieldBuilder() { if (partnerBuilder_ == null) { partnerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder>( getPartner(), getParentForChildren(), isClean()); partner_ = null; } return partnerBuilder_; } @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:bloombox.identity.bioprint.BioprintID) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.BioprintID) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BioprintID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BioprintID(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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeychainOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.Keychain) com.google.protobuf.MessageOrBuilder { /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ java.util.List getMasterList(); /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey getMaster(int index); /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ int getMasterCount(); /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ java.util.List getMasterOrBuilderList(); /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder getMasterOrBuilder( int index); /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ java.util.List getRestorationList(); /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey getRestoration(int index); /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ int getRestorationCount(); /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ java.util.List getRestorationOrBuilderList(); /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder getRestorationOrBuilder( int index); /** *
     * Key rotation generation. Indicates the tip of master key history.
     * 
* * uint32 generation = 3; */ int getGeneration(); /** *
     * Timestamp indicating when keys were last rotated.
     * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ boolean hasLastRotated(); /** *
     * Timestamp indicating when keys were last rotated.
     * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getLastRotated(); /** *
     * Timestamp indicating when keys were last rotated.
     * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getLastRotatedOrBuilder(); } /** *
   * Specifies private cryptographic material and access policies for a user's *Bioprint*. The user's master key is stored
   * here, along with each restoration key allocated from this copy of the payload.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.Keychain} */ public static final class Keychain extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.Keychain) KeychainOrBuilder { private static final long serialVersionUID = 0L; // Use Keychain.newBuilder() to construct. private Keychain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Keychain() { master_ = java.util.Collections.emptyList(); restoration_ = java.util.Collections.emptyList(); generation_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Keychain( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { master_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } master_.add( input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { restoration_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } restoration_.add( input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.parser(), extensionRegistry)); break; } case 24: { generation_ = input.readUInt32(); break; } case 34: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (lastRotated_ != null) { subBuilder = lastRotated_.toBuilder(); } lastRotated_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastRotated_); lastRotated_ = 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { master_ = java.util.Collections.unmodifiableList(master_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { restoration_ = java.util.Collections.unmodifiableList(restoration_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Keychain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Keychain_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder.class); } private int bitField0_; public static final int MASTER_FIELD_NUMBER = 1; private java.util.List master_; /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public java.util.List getMasterList() { return master_; } /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public java.util.List getMasterOrBuilderList() { return master_; } /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public int getMasterCount() { return master_.size(); } /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey getMaster(int index) { return master_.get(index); } /** *
     * Master key information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder getMasterOrBuilder( int index) { return master_.get(index); } public static final int RESTORATION_FIELD_NUMBER = 2; private java.util.List restoration_; /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public java.util.List getRestorationList() { return restoration_; } /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public java.util.List getRestorationOrBuilderList() { return restoration_; } /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public int getRestorationCount() { return restoration_.size(); } /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey getRestoration(int index) { return restoration_.get(index); } /** *
     * Export keys, each with their information and raw key material.
     * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder getRestorationOrBuilder( int index) { return restoration_.get(index); } public static final int GENERATION_FIELD_NUMBER = 3; private int generation_; /** *
     * Key rotation generation. Indicates the tip of master key history.
     * 
* * uint32 generation = 3; */ public int getGeneration() { return generation_; } public static final int LAST_ROTATED_FIELD_NUMBER = 4; private io.opencannabis.schema.temporal.TemporalInstant.Instant lastRotated_; /** *
     * Timestamp indicating when keys were last rotated.
     * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public boolean hasLastRotated() { return lastRotated_ != null; } /** *
     * Timestamp indicating when keys were last rotated.
     * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getLastRotated() { return lastRotated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : lastRotated_; } /** *
     * Timestamp indicating when keys were last rotated.
     * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getLastRotatedOrBuilder() { return getLastRotated(); } 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 { for (int i = 0; i < master_.size(); i++) { output.writeMessage(1, master_.get(i)); } for (int i = 0; i < restoration_.size(); i++) { output.writeMessage(2, restoration_.get(i)); } if (generation_ != 0) { output.writeUInt32(3, generation_); } if (lastRotated_ != null) { output.writeMessage(4, getLastRotated()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < master_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, master_.get(i)); } for (int i = 0; i < restoration_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, restoration_.get(i)); } if (generation_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, generation_); } if (lastRotated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLastRotated()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain) obj; boolean result = true; result = result && getMasterList() .equals(other.getMasterList()); result = result && getRestorationList() .equals(other.getRestorationList()); result = result && (getGeneration() == other.getGeneration()); result = result && (hasLastRotated() == other.hasLastRotated()); if (hasLastRotated()) { result = result && getLastRotated() .equals(other.getLastRotated()); } 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(); if (getMasterCount() > 0) { hash = (37 * hash) + MASTER_FIELD_NUMBER; hash = (53 * hash) + getMasterList().hashCode(); } if (getRestorationCount() > 0) { hash = (37 * hash) + RESTORATION_FIELD_NUMBER; hash = (53 * hash) + getRestorationList().hashCode(); } hash = (37 * hash) + GENERATION_FIELD_NUMBER; hash = (53 * hash) + getGeneration(); if (hasLastRotated()) { hash = (37 * hash) + LAST_ROTATED_FIELD_NUMBER; hash = (53 * hash) + getLastRotated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain 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; } /** *
     * Specifies private cryptographic material and access policies for a user's *Bioprint*. The user's master key is stored
     * here, along with each restoration key allocated from this copy of the payload.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.Keychain} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.Keychain) io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Keychain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Keychain_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMasterFieldBuilder(); getRestorationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (masterBuilder_ == null) { master_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { masterBuilder_.clear(); } if (restorationBuilder_ == null) { restoration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { restorationBuilder_.clear(); } generation_ = 0; if (lastRotatedBuilder_ == null) { lastRotated_ = null; } else { lastRotated_ = null; lastRotatedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Keychain_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (masterBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { master_ = java.util.Collections.unmodifiableList(master_); bitField0_ = (bitField0_ & ~0x00000001); } result.master_ = master_; } else { result.master_ = masterBuilder_.build(); } if (restorationBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { restoration_ = java.util.Collections.unmodifiableList(restoration_); bitField0_ = (bitField0_ & ~0x00000002); } result.restoration_ = restoration_; } else { result.restoration_ = restorationBuilder_.build(); } result.generation_ = generation_; if (lastRotatedBuilder_ == null) { result.lastRotated_ = lastRotated_; } else { result.lastRotated_ = lastRotatedBuilder_.build(); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.getDefaultInstance()) return this; if (masterBuilder_ == null) { if (!other.master_.isEmpty()) { if (master_.isEmpty()) { master_ = other.master_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMasterIsMutable(); master_.addAll(other.master_); } onChanged(); } } else { if (!other.master_.isEmpty()) { if (masterBuilder_.isEmpty()) { masterBuilder_.dispose(); masterBuilder_ = null; master_ = other.master_; bitField0_ = (bitField0_ & ~0x00000001); masterBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMasterFieldBuilder() : null; } else { masterBuilder_.addAllMessages(other.master_); } } } if (restorationBuilder_ == null) { if (!other.restoration_.isEmpty()) { if (restoration_.isEmpty()) { restoration_ = other.restoration_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRestorationIsMutable(); restoration_.addAll(other.restoration_); } onChanged(); } } else { if (!other.restoration_.isEmpty()) { if (restorationBuilder_.isEmpty()) { restorationBuilder_.dispose(); restorationBuilder_ = null; restoration_ = other.restoration_; bitField0_ = (bitField0_ & ~0x00000002); restorationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRestorationFieldBuilder() : null; } else { restorationBuilder_.addAllMessages(other.restoration_); } } } if (other.getGeneration() != 0) { setGeneration(other.getGeneration()); } if (other.hasLastRotated()) { mergeLastRotated(other.getLastRotated()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List master_ = java.util.Collections.emptyList(); private void ensureMasterIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { master_ = new java.util.ArrayList(master_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder> masterBuilder_; /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public java.util.List getMasterList() { if (masterBuilder_ == null) { return java.util.Collections.unmodifiableList(master_); } else { return masterBuilder_.getMessageList(); } } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public int getMasterCount() { if (masterBuilder_ == null) { return master_.size(); } else { return masterBuilder_.getCount(); } } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey getMaster(int index) { if (masterBuilder_ == null) { return master_.get(index); } else { return masterBuilder_.getMessage(index); } } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder setMaster( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey value) { if (masterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMasterIsMutable(); master_.set(index, value); onChanged(); } else { masterBuilder_.setMessage(index, value); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder setMaster( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder builderForValue) { if (masterBuilder_ == null) { ensureMasterIsMutable(); master_.set(index, builderForValue.build()); onChanged(); } else { masterBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder addMaster(io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey value) { if (masterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMasterIsMutable(); master_.add(value); onChanged(); } else { masterBuilder_.addMessage(value); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder addMaster( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey value) { if (masterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMasterIsMutable(); master_.add(index, value); onChanged(); } else { masterBuilder_.addMessage(index, value); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder addMaster( io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder builderForValue) { if (masterBuilder_ == null) { ensureMasterIsMutable(); master_.add(builderForValue.build()); onChanged(); } else { masterBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder addMaster( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder builderForValue) { if (masterBuilder_ == null) { ensureMasterIsMutable(); master_.add(index, builderForValue.build()); onChanged(); } else { masterBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder addAllMaster( java.lang.Iterable values) { if (masterBuilder_ == null) { ensureMasterIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, master_); onChanged(); } else { masterBuilder_.addAllMessages(values); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder clearMaster() { if (masterBuilder_ == null) { master_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { masterBuilder_.clear(); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public Builder removeMaster(int index) { if (masterBuilder_ == null) { ensureMasterIsMutable(); master_.remove(index); onChanged(); } else { masterBuilder_.remove(index); } return this; } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder getMasterBuilder( int index) { return getMasterFieldBuilder().getBuilder(index); } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder getMasterOrBuilder( int index) { if (masterBuilder_ == null) { return master_.get(index); } else { return masterBuilder_.getMessageOrBuilder(index); } } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public java.util.List getMasterOrBuilderList() { if (masterBuilder_ != null) { return masterBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(master_); } } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder addMasterBuilder() { return getMasterFieldBuilder().addBuilder( io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.getDefaultInstance()); } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder addMasterBuilder( int index) { return getMasterFieldBuilder().addBuilder( index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.getDefaultInstance()); } /** *
       * Master key information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.MasterKey master = 1; */ public java.util.List getMasterBuilderList() { return getMasterFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder> getMasterFieldBuilder() { if (masterBuilder_ == null) { masterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKey.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.MasterKeyOrBuilder>( master_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); master_ = null; } return masterBuilder_; } private java.util.List restoration_ = java.util.Collections.emptyList(); private void ensureRestorationIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { restoration_ = new java.util.ArrayList(restoration_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder> restorationBuilder_; /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public java.util.List getRestorationList() { if (restorationBuilder_ == null) { return java.util.Collections.unmodifiableList(restoration_); } else { return restorationBuilder_.getMessageList(); } } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public int getRestorationCount() { if (restorationBuilder_ == null) { return restoration_.size(); } else { return restorationBuilder_.getCount(); } } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey getRestoration(int index) { if (restorationBuilder_ == null) { return restoration_.get(index); } else { return restorationBuilder_.getMessage(index); } } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder setRestoration( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey value) { if (restorationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestorationIsMutable(); restoration_.set(index, value); onChanged(); } else { restorationBuilder_.setMessage(index, value); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder setRestoration( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder builderForValue) { if (restorationBuilder_ == null) { ensureRestorationIsMutable(); restoration_.set(index, builderForValue.build()); onChanged(); } else { restorationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder addRestoration(io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey value) { if (restorationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestorationIsMutable(); restoration_.add(value); onChanged(); } else { restorationBuilder_.addMessage(value); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder addRestoration( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey value) { if (restorationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestorationIsMutable(); restoration_.add(index, value); onChanged(); } else { restorationBuilder_.addMessage(index, value); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder addRestoration( io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder builderForValue) { if (restorationBuilder_ == null) { ensureRestorationIsMutable(); restoration_.add(builderForValue.build()); onChanged(); } else { restorationBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder addRestoration( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder builderForValue) { if (restorationBuilder_ == null) { ensureRestorationIsMutable(); restoration_.add(index, builderForValue.build()); onChanged(); } else { restorationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder addAllRestoration( java.lang.Iterable values) { if (restorationBuilder_ == null) { ensureRestorationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, restoration_); onChanged(); } else { restorationBuilder_.addAllMessages(values); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder clearRestoration() { if (restorationBuilder_ == null) { restoration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { restorationBuilder_.clear(); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public Builder removeRestoration(int index) { if (restorationBuilder_ == null) { ensureRestorationIsMutable(); restoration_.remove(index); onChanged(); } else { restorationBuilder_.remove(index); } return this; } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder getRestorationBuilder( int index) { return getRestorationFieldBuilder().getBuilder(index); } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder getRestorationOrBuilder( int index) { if (restorationBuilder_ == null) { return restoration_.get(index); } else { return restorationBuilder_.getMessageOrBuilder(index); } } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public java.util.List getRestorationOrBuilderList() { if (restorationBuilder_ != null) { return restorationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(restoration_); } } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder addRestorationBuilder() { return getRestorationFieldBuilder().addBuilder( io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.getDefaultInstance()); } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder addRestorationBuilder( int index) { return getRestorationFieldBuilder().addBuilder( index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.getDefaultInstance()); } /** *
       * Export keys, each with their information and raw key material.
       * 
* * repeated .bloombox.identity.bioprint.RestorationKey restoration = 2; */ public java.util.List getRestorationBuilderList() { return getRestorationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder> getRestorationFieldBuilder() { if (restorationBuilder_ == null) { restorationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKey.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.RestorationKeyOrBuilder>( restoration_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); restoration_ = null; } return restorationBuilder_; } private int generation_ ; /** *
       * Key rotation generation. Indicates the tip of master key history.
       * 
* * uint32 generation = 3; */ public int getGeneration() { return generation_; } /** *
       * Key rotation generation. Indicates the tip of master key history.
       * 
* * uint32 generation = 3; */ public Builder setGeneration(int value) { generation_ = value; onChanged(); return this; } /** *
       * Key rotation generation. Indicates the tip of master key history.
       * 
* * uint32 generation = 3; */ public Builder clearGeneration() { generation_ = 0; onChanged(); return this; } private io.opencannabis.schema.temporal.TemporalInstant.Instant lastRotated_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> lastRotatedBuilder_; /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public boolean hasLastRotated() { return lastRotatedBuilder_ != null || lastRotated_ != null; } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getLastRotated() { if (lastRotatedBuilder_ == null) { return lastRotated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : lastRotated_; } else { return lastRotatedBuilder_.getMessage(); } } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public Builder setLastRotated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (lastRotatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastRotated_ = value; onChanged(); } else { lastRotatedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public Builder setLastRotated( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (lastRotatedBuilder_ == null) { lastRotated_ = builderForValue.build(); onChanged(); } else { lastRotatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public Builder mergeLastRotated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (lastRotatedBuilder_ == null) { if (lastRotated_ != null) { lastRotated_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(lastRotated_).mergeFrom(value).buildPartial(); } else { lastRotated_ = value; } onChanged(); } else { lastRotatedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public Builder clearLastRotated() { if (lastRotatedBuilder_ == null) { lastRotated_ = null; onChanged(); } else { lastRotated_ = null; lastRotatedBuilder_ = null; } return this; } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getLastRotatedBuilder() { onChanged(); return getLastRotatedFieldBuilder().getBuilder(); } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getLastRotatedOrBuilder() { if (lastRotatedBuilder_ != null) { return lastRotatedBuilder_.getMessageOrBuilder(); } else { return lastRotated_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : lastRotated_; } } /** *
       * Timestamp indicating when keys were last rotated.
       * 
* * .opencannabis.temporal.Instant last_rotated = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getLastRotatedFieldBuilder() { if (lastRotatedBuilder_ == null) { lastRotatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getLastRotated(), getParentForChildren(), isClean()); lastRotated_ = null; } return lastRotatedBuilder_; } @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:bloombox.identity.bioprint.Keychain) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.Keychain) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Keychain parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Keychain(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.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BioprintPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.BioprintPayload) com.google.protobuf.MessageOrBuilder { /** *
     * Integer that indicates the generation ID of this Bioprint payload. Each time a Bioprint is regenerated, the value
     * in this property is incremented, to give a rough idea of the "maturity" of the Bioprint relative to when it was
     * first provisioned on behalf of the subject user.
     * 
* * uint32 generation = 1; */ int getGeneration(); /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ java.util.List getAffinityList(); /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ io.bloombox.schema.identity.bioprint.Affinities.Affinity getAffinity(int index); /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ int getAffinityCount(); /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ java.util.List getAffinityOrBuilderList(); /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ io.bloombox.schema.identity.bioprint.Affinities.AffinityOrBuilder getAffinityOrBuilder( int index); /** *
     * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
     * ingestion, their preferred product types, cannabinoid ratios, and more.
     * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ boolean hasPreferences(); /** *
     * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
     * ingestion, their preferred product types, cannabinoid ratios, and more.
     * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ io.bloombox.schema.identity.AppUser.ConsumerPreferences getPreferences(); /** *
     * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
     * ingestion, their preferred product types, cannabinoid ratios, and more.
     * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ io.bloombox.schema.identity.AppUser.ConsumerPreferencesOrBuilder getPreferencesOrBuilder(); } /** *
   * Describes the content of a user's *Bioprint*. This is considered the "inner" payload, and it contains references to
   * each of the major components, that, together, form the user's cannabis purchase and experience response history. Hash
   * calculations based on *Bioprint* content occur based on this record.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintPayload} */ public static final class BioprintPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.BioprintPayload) BioprintPayloadOrBuilder { private static final long serialVersionUID = 0L; // Use BioprintPayload.newBuilder() to construct. private BioprintPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BioprintPayload() { generation_ = 0; affinity_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BioprintPayload( 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 8: { generation_ = input.readUInt32(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { affinity_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } affinity_.add( input.readMessage(io.bloombox.schema.identity.bioprint.Affinities.Affinity.parser(), extensionRegistry)); break; } case 26: { io.bloombox.schema.identity.AppUser.ConsumerPreferences.Builder subBuilder = null; if (preferences_ != null) { subBuilder = preferences_.toBuilder(); } preferences_ = input.readMessage(io.bloombox.schema.identity.AppUser.ConsumerPreferences.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preferences_); preferences_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { affinity_ = java.util.Collections.unmodifiableList(affinity_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder.class); } private int bitField0_; public static final int GENERATION_FIELD_NUMBER = 1; private int generation_; /** *
     * Integer that indicates the generation ID of this Bioprint payload. Each time a Bioprint is regenerated, the value
     * in this property is incremented, to give a rough idea of the "maturity" of the Bioprint relative to when it was
     * first provisioned on behalf of the subject user.
     * 
* * uint32 generation = 1; */ public int getGeneration() { return generation_; } public static final int AFFINITY_FIELD_NUMBER = 2; private java.util.List affinity_; /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public java.util.List getAffinityList() { return affinity_; } /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public java.util.List getAffinityOrBuilderList() { return affinity_; } /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public int getAffinityCount() { return affinity_.size(); } /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.Affinity getAffinity(int index) { return affinity_.get(index); } /** *
     * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
     * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
     * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.AffinityOrBuilder getAffinityOrBuilder( int index) { return affinity_.get(index); } public static final int PREFERENCES_FIELD_NUMBER = 3; private io.bloombox.schema.identity.AppUser.ConsumerPreferences preferences_; /** *
     * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
     * ingestion, their preferred product types, cannabinoid ratios, and more.
     * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public boolean hasPreferences() { return preferences_ != null; } /** *
     * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
     * ingestion, their preferred product types, cannabinoid ratios, and more.
     * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public io.bloombox.schema.identity.AppUser.ConsumerPreferences getPreferences() { return preferences_ == null ? io.bloombox.schema.identity.AppUser.ConsumerPreferences.getDefaultInstance() : preferences_; } /** *
     * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
     * ingestion, their preferred product types, cannabinoid ratios, and more.
     * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public io.bloombox.schema.identity.AppUser.ConsumerPreferencesOrBuilder getPreferencesOrBuilder() { return getPreferences(); } 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 (generation_ != 0) { output.writeUInt32(1, generation_); } for (int i = 0; i < affinity_.size(); i++) { output.writeMessage(2, affinity_.get(i)); } if (preferences_ != null) { output.writeMessage(3, getPreferences()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (generation_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, generation_); } for (int i = 0; i < affinity_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, affinity_.get(i)); } if (preferences_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPreferences()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload) obj; boolean result = true; result = result && (getGeneration() == other.getGeneration()); result = result && getAffinityList() .equals(other.getAffinityList()); result = result && (hasPreferences() == other.hasPreferences()); if (hasPreferences()) { result = result && getPreferences() .equals(other.getPreferences()); } 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) + GENERATION_FIELD_NUMBER; hash = (53 * hash) + getGeneration(); if (getAffinityCount() > 0) { hash = (37 * hash) + AFFINITY_FIELD_NUMBER; hash = (53 * hash) + getAffinityList().hashCode(); } if (hasPreferences()) { hash = (37 * hash) + PREFERENCES_FIELD_NUMBER; hash = (53 * hash) + getPreferences().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload 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; } /** *
     * Describes the content of a user's *Bioprint*. This is considered the "inner" payload, and it contains references to
     * each of the major components, that, together, form the user's cannabis purchase and experience response history. Hash
     * calculations based on *Bioprint* content occur based on this record.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.BioprintPayload) io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAffinityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); generation_ = 0; if (affinityBuilder_ == null) { affinity_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { affinityBuilder_.clear(); } if (preferencesBuilder_ == null) { preferences_ = null; } else { preferences_ = null; preferencesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintPayload_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.generation_ = generation_; if (affinityBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { affinity_ = java.util.Collections.unmodifiableList(affinity_); bitField0_ = (bitField0_ & ~0x00000002); } result.affinity_ = affinity_; } else { result.affinity_ = affinityBuilder_.build(); } if (preferencesBuilder_ == null) { result.preferences_ = preferences_; } else { result.preferences_ = preferencesBuilder_.build(); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance()) return this; if (other.getGeneration() != 0) { setGeneration(other.getGeneration()); } if (affinityBuilder_ == null) { if (!other.affinity_.isEmpty()) { if (affinity_.isEmpty()) { affinity_ = other.affinity_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAffinityIsMutable(); affinity_.addAll(other.affinity_); } onChanged(); } } else { if (!other.affinity_.isEmpty()) { if (affinityBuilder_.isEmpty()) { affinityBuilder_.dispose(); affinityBuilder_ = null; affinity_ = other.affinity_; bitField0_ = (bitField0_ & ~0x00000002); affinityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAffinityFieldBuilder() : null; } else { affinityBuilder_.addAllMessages(other.affinity_); } } } if (other.hasPreferences()) { mergePreferences(other.getPreferences()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int generation_ ; /** *
       * Integer that indicates the generation ID of this Bioprint payload. Each time a Bioprint is regenerated, the value
       * in this property is incremented, to give a rough idea of the "maturity" of the Bioprint relative to when it was
       * first provisioned on behalf of the subject user.
       * 
* * uint32 generation = 1; */ public int getGeneration() { return generation_; } /** *
       * Integer that indicates the generation ID of this Bioprint payload. Each time a Bioprint is regenerated, the value
       * in this property is incremented, to give a rough idea of the "maturity" of the Bioprint relative to when it was
       * first provisioned on behalf of the subject user.
       * 
* * uint32 generation = 1; */ public Builder setGeneration(int value) { generation_ = value; onChanged(); return this; } /** *
       * Integer that indicates the generation ID of this Bioprint payload. Each time a Bioprint is regenerated, the value
       * in this property is incremented, to give a rough idea of the "maturity" of the Bioprint relative to when it was
       * first provisioned on behalf of the subject user.
       * 
* * uint32 generation = 1; */ public Builder clearGeneration() { generation_ = 0; onChanged(); return this; } private java.util.List affinity_ = java.util.Collections.emptyList(); private void ensureAffinityIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { affinity_ = new java.util.ArrayList(affinity_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.Affinities.Affinity, io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder, io.bloombox.schema.identity.bioprint.Affinities.AffinityOrBuilder> affinityBuilder_; /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public java.util.List getAffinityList() { if (affinityBuilder_ == null) { return java.util.Collections.unmodifiableList(affinity_); } else { return affinityBuilder_.getMessageList(); } } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public int getAffinityCount() { if (affinityBuilder_ == null) { return affinity_.size(); } else { return affinityBuilder_.getCount(); } } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.Affinity getAffinity(int index) { if (affinityBuilder_ == null) { return affinity_.get(index); } else { return affinityBuilder_.getMessage(index); } } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder setAffinity( int index, io.bloombox.schema.identity.bioprint.Affinities.Affinity value) { if (affinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAffinityIsMutable(); affinity_.set(index, value); onChanged(); } else { affinityBuilder_.setMessage(index, value); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder setAffinity( int index, io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder builderForValue) { if (affinityBuilder_ == null) { ensureAffinityIsMutable(); affinity_.set(index, builderForValue.build()); onChanged(); } else { affinityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder addAffinity(io.bloombox.schema.identity.bioprint.Affinities.Affinity value) { if (affinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAffinityIsMutable(); affinity_.add(value); onChanged(); } else { affinityBuilder_.addMessage(value); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder addAffinity( int index, io.bloombox.schema.identity.bioprint.Affinities.Affinity value) { if (affinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAffinityIsMutable(); affinity_.add(index, value); onChanged(); } else { affinityBuilder_.addMessage(index, value); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder addAffinity( io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder builderForValue) { if (affinityBuilder_ == null) { ensureAffinityIsMutable(); affinity_.add(builderForValue.build()); onChanged(); } else { affinityBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder addAffinity( int index, io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder builderForValue) { if (affinityBuilder_ == null) { ensureAffinityIsMutable(); affinity_.add(index, builderForValue.build()); onChanged(); } else { affinityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder addAllAffinity( java.lang.Iterable values) { if (affinityBuilder_ == null) { ensureAffinityIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, affinity_); onChanged(); } else { affinityBuilder_.addAllMessages(values); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder clearAffinity() { if (affinityBuilder_ == null) { affinity_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { affinityBuilder_.clear(); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public Builder removeAffinity(int index) { if (affinityBuilder_ == null) { ensureAffinityIsMutable(); affinity_.remove(index); onChanged(); } else { affinityBuilder_.remove(index); } return this; } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder getAffinityBuilder( int index) { return getAffinityFieldBuilder().getBuilder(index); } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.AffinityOrBuilder getAffinityOrBuilder( int index) { if (affinityBuilder_ == null) { return affinity_.get(index); } else { return affinityBuilder_.getMessageOrBuilder(index); } } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public java.util.List getAffinityOrBuilderList() { if (affinityBuilder_ != null) { return affinityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(affinity_); } } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder addAffinityBuilder() { return getAffinityFieldBuilder().addBuilder( io.bloombox.schema.identity.bioprint.Affinities.Affinity.getDefaultInstance()); } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder addAffinityBuilder( int index) { return getAffinityFieldBuilder().addBuilder( index, io.bloombox.schema.identity.bioprint.Affinities.Affinity.getDefaultInstance()); } /** *
       * Specifies affinities, calculated and otherwise, for each aspect-of-use, as they relate to the subject consumer that
       * owns this Bioprint payload. Affinities are opaque occur individually or in groups, via categorization.
       * 
* * repeated .bloombox.identity.bioprint.Affinity affinity = 2; */ public java.util.List getAffinityBuilderList() { return getAffinityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.Affinities.Affinity, io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder, io.bloombox.schema.identity.bioprint.Affinities.AffinityOrBuilder> getAffinityFieldBuilder() { if (affinityBuilder_ == null) { affinityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.Affinities.Affinity, io.bloombox.schema.identity.bioprint.Affinities.Affinity.Builder, io.bloombox.schema.identity.bioprint.Affinities.AffinityOrBuilder>( affinity_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); affinity_ = null; } return affinityBuilder_; } private io.bloombox.schema.identity.AppUser.ConsumerPreferences preferences_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppUser.ConsumerPreferences, io.bloombox.schema.identity.AppUser.ConsumerPreferences.Builder, io.bloombox.schema.identity.AppUser.ConsumerPreferencesOrBuilder> preferencesBuilder_; /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public boolean hasPreferences() { return preferencesBuilder_ != null || preferences_ != null; } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public io.bloombox.schema.identity.AppUser.ConsumerPreferences getPreferences() { if (preferencesBuilder_ == null) { return preferences_ == null ? io.bloombox.schema.identity.AppUser.ConsumerPreferences.getDefaultInstance() : preferences_; } else { return preferencesBuilder_.getMessage(); } } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public Builder setPreferences(io.bloombox.schema.identity.AppUser.ConsumerPreferences value) { if (preferencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preferences_ = value; onChanged(); } else { preferencesBuilder_.setMessage(value); } return this; } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public Builder setPreferences( io.bloombox.schema.identity.AppUser.ConsumerPreferences.Builder builderForValue) { if (preferencesBuilder_ == null) { preferences_ = builderForValue.build(); onChanged(); } else { preferencesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public Builder mergePreferences(io.bloombox.schema.identity.AppUser.ConsumerPreferences value) { if (preferencesBuilder_ == null) { if (preferences_ != null) { preferences_ = io.bloombox.schema.identity.AppUser.ConsumerPreferences.newBuilder(preferences_).mergeFrom(value).buildPartial(); } else { preferences_ = value; } onChanged(); } else { preferencesBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public Builder clearPreferences() { if (preferencesBuilder_ == null) { preferences_ = null; onChanged(); } else { preferences_ = null; preferencesBuilder_ = null; } return this; } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public io.bloombox.schema.identity.AppUser.ConsumerPreferences.Builder getPreferencesBuilder() { onChanged(); return getPreferencesFieldBuilder().getBuilder(); } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ public io.bloombox.schema.identity.AppUser.ConsumerPreferencesOrBuilder getPreferencesOrBuilder() { if (preferencesBuilder_ != null) { return preferencesBuilder_.getMessageOrBuilder(); } else { return preferences_ == null ? io.bloombox.schema.identity.AppUser.ConsumerPreferences.getDefaultInstance() : preferences_; } } /** *
       * Specifies details regarding this consumer's declared use preferences. This includes their stated preferred mode of
       * ingestion, their preferred product types, cannabinoid ratios, and more.
       * 
* * .bloombox.identity.ConsumerPreferences preferences = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppUser.ConsumerPreferences, io.bloombox.schema.identity.AppUser.ConsumerPreferences.Builder, io.bloombox.schema.identity.AppUser.ConsumerPreferencesOrBuilder> getPreferencesFieldBuilder() { if (preferencesBuilder_ == null) { preferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppUser.ConsumerPreferences, io.bloombox.schema.identity.AppUser.ConsumerPreferences.Builder, io.bloombox.schema.identity.AppUser.ConsumerPreferencesOrBuilder>( getPreferences(), getParentForChildren(), isClean()); preferences_ = null; } return preferencesBuilder_; } @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:bloombox.identity.bioprint.BioprintPayload) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.BioprintPayload) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BioprintPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BioprintPayload(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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BioprintRevisionOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.BioprintRevision) com.google.protobuf.MessageOrBuilder { /** *
     * ID that resulted after computing and applying this revision.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ boolean hasId(); /** *
     * ID that resulted after computing and applying this revision.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId(); /** *
     * ID that resulted after computing and applying this revision.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder(); /** *
     * Timestamp for the moment this revision was applied.
     * 
* * .opencannabis.temporal.Instant applied = 2; */ boolean hasApplied(); /** *
     * Timestamp for the moment this revision was applied.
     * 
* * .opencannabis.temporal.Instant applied = 2; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getApplied(); /** *
     * Timestamp for the moment this revision was applied.
     * 
* * .opencannabis.temporal.Instant applied = 2; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getAppliedOrBuilder(); /** *
     * Archived copy of the profile, after this revision was applied.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ boolean hasProfile(); /** *
     * Archived copy of the profile, after this revision was applied.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getProfile(); /** *
     * Archived copy of the profile, after this revision was applied.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder getProfileOrBuilder(); } /** *
   * Specifies a substantive revision made to a *Bioprint* payload. "Substantive" is defined as, any data mutation that
   * might amount to a potential outcome change when querying the resulting *Bioprint*.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintRevision} */ public static final class BioprintRevision extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.BioprintRevision) BioprintRevisionOrBuilder { private static final long serialVersionUID = 0L; // Use BioprintRevision.newBuilder() to construct. private BioprintRevision(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BioprintRevision() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BioprintRevision( 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: { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } break; } case 18: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (applied_ != null) { subBuilder = applied_.toBuilder(); } applied_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(applied_); applied_ = subBuilder.buildPartial(); } break; } case 26: { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder subBuilder = null; if (profile_ != null) { subBuilder = profile_.toBuilder(); } profile_ = input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(profile_); profile_ = 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.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintRevision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintRevision_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID id_; /** *
     * ID that resulted after computing and applying this revision.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public boolean hasId() { return id_ != null; } /** *
     * ID that resulted after computing and applying this revision.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId() { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } /** *
     * ID that resulted after computing and applying this revision.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder() { return getId(); } public static final int APPLIED_FIELD_NUMBER = 2; private io.opencannabis.schema.temporal.TemporalInstant.Instant applied_; /** *
     * Timestamp for the moment this revision was applied.
     * 
* * .opencannabis.temporal.Instant applied = 2; */ public boolean hasApplied() { return applied_ != null; } /** *
     * Timestamp for the moment this revision was applied.
     * 
* * .opencannabis.temporal.Instant applied = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getApplied() { return applied_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : applied_; } /** *
     * Timestamp for the moment this revision was applied.
     * 
* * .opencannabis.temporal.Instant applied = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getAppliedOrBuilder() { return getApplied(); } public static final int PROFILE_FIELD_NUMBER = 3; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload profile_; /** *
     * Archived copy of the profile, after this revision was applied.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public boolean hasProfile() { return profile_ != null; } /** *
     * Archived copy of the profile, after this revision was applied.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getProfile() { return profile_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance() : profile_; } /** *
     * Archived copy of the profile, after this revision was applied.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder getProfileOrBuilder() { return getProfile(); } 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 (id_ != null) { output.writeMessage(1, getId()); } if (applied_ != null) { output.writeMessage(2, getApplied()); } if (profile_ != null) { output.writeMessage(3, getProfile()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (applied_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getApplied()); } if (profile_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getProfile()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasApplied() == other.hasApplied()); if (hasApplied()) { result = result && getApplied() .equals(other.getApplied()); } result = result && (hasProfile() == other.hasProfile()); if (hasProfile()) { result = result && getProfile() .equals(other.getProfile()); } 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasApplied()) { hash = (37 * hash) + APPLIED_FIELD_NUMBER; hash = (53 * hash) + getApplied().hashCode(); } if (hasProfile()) { hash = (37 * hash) + PROFILE_FIELD_NUMBER; hash = (53 * hash) + getProfile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision 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; } /** *
     * Specifies a substantive revision made to a *Bioprint* payload. "Substantive" is defined as, any data mutation that
     * might amount to a potential outcome change when querying the resulting *Bioprint*.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.BioprintRevision} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.BioprintRevision) io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintRevision_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintRevision_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.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(); if (idBuilder_ == null) { id_ = null; } else { id_ = null; idBuilder_ = null; } if (appliedBuilder_ == null) { applied_ = null; } else { applied_ = null; appliedBuilder_ = null; } if (profileBuilder_ == null) { profile_ = null; } else { profile_ = null; profileBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_BioprintRevision_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision(this); if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (appliedBuilder_ == null) { result.applied_ = applied_; } else { result.applied_ = appliedBuilder_.build(); } if (profileBuilder_ == null) { result.profile_ = profile_; } else { result.profile_ = profileBuilder_.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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasApplied()) { mergeApplied(other.getApplied()); } if (other.hasProfile()) { mergeProfile(other.getProfile()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder> idBuilder_; /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId() { if (idBuilder_ == null) { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder setId(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder setId( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder mergeId(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID value) { if (idBuilder_ == null) { if (id_ != null) { id_ = io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } } /** *
       * ID that resulted after computing and applying this revision.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant applied_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> appliedBuilder_; /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public boolean hasApplied() { return appliedBuilder_ != null || applied_ != null; } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getApplied() { if (appliedBuilder_ == null) { return applied_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : applied_; } else { return appliedBuilder_.getMessage(); } } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public Builder setApplied(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (appliedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } applied_ = value; onChanged(); } else { appliedBuilder_.setMessage(value); } return this; } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public Builder setApplied( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (appliedBuilder_ == null) { applied_ = builderForValue.build(); onChanged(); } else { appliedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public Builder mergeApplied(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (appliedBuilder_ == null) { if (applied_ != null) { applied_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(applied_).mergeFrom(value).buildPartial(); } else { applied_ = value; } onChanged(); } else { appliedBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public Builder clearApplied() { if (appliedBuilder_ == null) { applied_ = null; onChanged(); } else { applied_ = null; appliedBuilder_ = null; } return this; } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getAppliedBuilder() { onChanged(); return getAppliedFieldBuilder().getBuilder(); } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getAppliedOrBuilder() { if (appliedBuilder_ != null) { return appliedBuilder_.getMessageOrBuilder(); } else { return applied_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : applied_; } } /** *
       * Timestamp for the moment this revision was applied.
       * 
* * .opencannabis.temporal.Instant applied = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getAppliedFieldBuilder() { if (appliedBuilder_ == null) { appliedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getApplied(), getParentForChildren(), isClean()); applied_ = null; } return appliedBuilder_; } private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload profile_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder> profileBuilder_; /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public boolean hasProfile() { return profileBuilder_ != null || profile_ != null; } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getProfile() { if (profileBuilder_ == null) { return profile_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance() : profile_; } else { return profileBuilder_.getMessage(); } } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder setProfile(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload value) { if (profileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } profile_ = value; onChanged(); } else { profileBuilder_.setMessage(value); } return this; } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder setProfile( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder builderForValue) { if (profileBuilder_ == null) { profile_ = builderForValue.build(); onChanged(); } else { profileBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder mergeProfile(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload value) { if (profileBuilder_ == null) { if (profile_ != null) { profile_ = io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.newBuilder(profile_).mergeFrom(value).buildPartial(); } else { profile_ = value; } onChanged(); } else { profileBuilder_.mergeFrom(value); } return this; } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder clearProfile() { if (profileBuilder_ == null) { profile_ = null; onChanged(); } else { profile_ = null; profileBuilder_ = null; } return this; } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder getProfileBuilder() { onChanged(); return getProfileFieldBuilder().getBuilder(); } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder getProfileOrBuilder() { if (profileBuilder_ != null) { return profileBuilder_.getMessageOrBuilder(); } else { return profile_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance() : profile_; } } /** *
       * Archived copy of the profile, after this revision was applied.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder> getProfileFieldBuilder() { if (profileBuilder_ == null) { profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder>( getProfile(), getParentForChildren(), isClean()); profile_ = null; } return profileBuilder_; } @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:bloombox.identity.bioprint.BioprintRevision) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.BioprintRevision) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BioprintRevision parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BioprintRevision(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.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BioprintOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.bioprint.Bioprint) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ boolean hasId(); /** *
     * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId(); /** *
     * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder(); /** *
     * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
     * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ boolean hasKeychain(); /** *
     * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
     * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain getKeychain(); /** *
     * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
     * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder getKeychainOrBuilder(); /** *
     * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ boolean hasProfile(); /** *
     * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getProfile(); /** *
     * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder getProfileOrBuilder(); /** *
     * Contains the user's verified government identification.
     * 
* * .bloombox.identity.ID identification = 4; */ boolean hasIdentification(); /** *
     * Contains the user's verified government identification.
     * 
* * .bloombox.identity.ID identification = 4; */ io.bloombox.schema.identity.IdentityID.ID getIdentification(); /** *
     * Contains the user's verified government identification.
     * 
* * .bloombox.identity.ID identification = 4; */ io.bloombox.schema.identity.IdentityID.IDOrBuilder getIdentificationOrBuilder(); /** *
     * Specifies the user's globally-unique profile key.
     * 
* * .bloombox.identity.UserKey user = 5; */ boolean hasUser(); /** *
     * Specifies the user's globally-unique profile key.
     * 
* * .bloombox.identity.UserKey user = 5; */ io.bloombox.schema.identity.AppUserKey.UserKey getUser(); /** *
     * Specifies the user's globally-unique profile key.
     * 
* * .bloombox.identity.UserKey user = 5; */ io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder(); /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ int getMembershipsCount(); /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ boolean containsMemberships( java.lang.String key); /** * Use {@link #getMembershipsMap()} instead. */ @java.lang.Deprecated java.util.Map getMemberships(); /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ java.util.Map getMembershipsMap(); /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ io.bloombox.schema.identity.AppUser.ConsumerMembership getMembershipsOrDefault( java.lang.String key, io.bloombox.schema.identity.AppUser.ConsumerMembership defaultValue); /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ io.bloombox.schema.identity.AppUser.ConsumerMembership getMembershipsOrThrow( java.lang.String key); /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ java.util.List getRevisionList(); /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision getRevision(int index); /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ int getRevisionCount(); /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ java.util.List getRevisionOrBuilderList(); /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder getRevisionOrBuilder( int index); /** *
     * Indicates the precise moment this Bioprint was last mutated or updated.
     * 
* * .opencannabis.temporal.Instant modified = 8; */ boolean hasModified(); /** *
     * Indicates the precise moment this Bioprint was last mutated or updated.
     * 
* * .opencannabis.temporal.Instant modified = 8; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getModified(); /** *
     * Indicates the precise moment this Bioprint was last mutated or updated.
     * 
* * .opencannabis.temporal.Instant modified = 8; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getModifiedOrBuilder(); /** *
     * Indicates the precise moment this Bioprint was originally created.
     * 
* * .opencannabis.temporal.Instant created = 9; */ boolean hasCreated(); /** *
     * Indicates the precise moment this Bioprint was originally created.
     * 
* * .opencannabis.temporal.Instant created = 9; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getCreated(); /** *
     * Indicates the precise moment this Bioprint was originally created.
     * 
* * .opencannabis.temporal.Instant created = 9; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedOrBuilder(); } /** *
   * Describes the main Bioprint outer wrapping, which is encoded and placed in an encrypted container for storage. This
   * is the outermost payload in the Bioprint that is structurally defined. It is responsible for storing revision history
   * and cryptographic material, among other metadata.
   * 
* * Protobuf type {@code bloombox.identity.bioprint.Bioprint} */ public static final class Bioprint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.bioprint.Bioprint) BioprintOrBuilder { private static final long serialVersionUID = 0L; // Use Bioprint.newBuilder() to construct. private Bioprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Bioprint() { revision_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Bioprint( 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: { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } break; } case 18: { io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder subBuilder = null; if (keychain_ != null) { subBuilder = keychain_.toBuilder(); } keychain_ = input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keychain_); keychain_ = subBuilder.buildPartial(); } break; } case 26: { io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder subBuilder = null; if (profile_ != null) { subBuilder = profile_.toBuilder(); } profile_ = input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(profile_); profile_ = subBuilder.buildPartial(); } break; } case 34: { io.bloombox.schema.identity.IdentityID.ID.Builder subBuilder = null; if (identification_ != null) { subBuilder = identification_.toBuilder(); } identification_ = input.readMessage(io.bloombox.schema.identity.IdentityID.ID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(identification_); identification_ = subBuilder.buildPartial(); } break; } case 42: { io.bloombox.schema.identity.AppUserKey.UserKey.Builder subBuilder = null; if (user_ != null) { subBuilder = user_.toBuilder(); } user_ = input.readMessage(io.bloombox.schema.identity.AppUserKey.UserKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(user_); user_ = subBuilder.buildPartial(); } break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { memberships_ = com.google.protobuf.MapField.newMapField( MembershipsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000020; } com.google.protobuf.MapEntry memberships__ = input.readMessage( MembershipsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); memberships_.getMutableMap().put( memberships__.getKey(), memberships__.getValue()); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { revision_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } revision_.add( input.readMessage(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.parser(), extensionRegistry)); break; } case 66: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (modified_ != null) { subBuilder = modified_.toBuilder(); } modified_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modified_); modified_ = subBuilder.buildPartial(); } break; } case 74: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (created_ != null) { subBuilder = created_.toBuilder(); } created_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(created_); created_ = 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 { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { revision_ = java.util.Collections.unmodifiableList(revision_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Bioprint_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetMemberships(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Bioprint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID id_; /** *
     * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public boolean hasId() { return id_ != null; } /** *
     * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId() { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } /** *
     * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
     * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder() { return getId(); } public static final int KEYCHAIN_FIELD_NUMBER = 2; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain keychain_; /** *
     * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
     * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public boolean hasKeychain() { return keychain_ != null; } /** *
     * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
     * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain getKeychain() { return keychain_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.getDefaultInstance() : keychain_; } /** *
     * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
     * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder getKeychainOrBuilder() { return getKeychain(); } public static final int PROFILE_FIELD_NUMBER = 3; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload profile_; /** *
     * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public boolean hasProfile() { return profile_ != null; } /** *
     * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getProfile() { return profile_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance() : profile_; } /** *
     * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
     * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder getProfileOrBuilder() { return getProfile(); } public static final int IDENTIFICATION_FIELD_NUMBER = 4; private io.bloombox.schema.identity.IdentityID.ID identification_; /** *
     * Contains the user's verified government identification.
     * 
* * .bloombox.identity.ID identification = 4; */ public boolean hasIdentification() { return identification_ != null; } /** *
     * Contains the user's verified government identification.
     * 
* * .bloombox.identity.ID identification = 4; */ public io.bloombox.schema.identity.IdentityID.ID getIdentification() { return identification_ == null ? io.bloombox.schema.identity.IdentityID.ID.getDefaultInstance() : identification_; } /** *
     * Contains the user's verified government identification.
     * 
* * .bloombox.identity.ID identification = 4; */ public io.bloombox.schema.identity.IdentityID.IDOrBuilder getIdentificationOrBuilder() { return getIdentification(); } public static final int USER_FIELD_NUMBER = 5; private io.bloombox.schema.identity.AppUserKey.UserKey user_; /** *
     * Specifies the user's globally-unique profile key.
     * 
* * .bloombox.identity.UserKey user = 5; */ public boolean hasUser() { return user_ != null; } /** *
     * Specifies the user's globally-unique profile key.
     * 
* * .bloombox.identity.UserKey user = 5; */ public io.bloombox.schema.identity.AppUserKey.UserKey getUser() { return user_ == null ? io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_; } /** *
     * Specifies the user's globally-unique profile key.
     * 
* * .bloombox.identity.UserKey user = 5; */ public io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder() { return getUser(); } public static final int MEMBERSHIPS_FIELD_NUMBER = 6; private static final class MembershipsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.bloombox.schema.identity.AppUser.ConsumerMembership> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Bioprint_MembershipsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.bloombox.schema.identity.AppUser.ConsumerMembership.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.bloombox.schema.identity.AppUser.ConsumerMembership> memberships_; private com.google.protobuf.MapField internalGetMemberships() { if (memberships_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipsDefaultEntryHolder.defaultEntry); } return memberships_; } public int getMembershipsCount() { return internalGetMemberships().getMap().size(); } /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public boolean containsMemberships( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMemberships().getMap().containsKey(key); } /** * Use {@link #getMembershipsMap()} instead. */ @java.lang.Deprecated public java.util.Map getMemberships() { return getMembershipsMap(); } /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public java.util.Map getMembershipsMap() { return internalGetMemberships().getMap(); } /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public io.bloombox.schema.identity.AppUser.ConsumerMembership getMembershipsOrDefault( java.lang.String key, io.bloombox.schema.identity.AppUser.ConsumerMembership defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMemberships().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Specifies consumer memberships stored for express check-in.
     * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public io.bloombox.schema.identity.AppUser.ConsumerMembership getMembershipsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMemberships().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int REVISION_FIELD_NUMBER = 7; private java.util.List revision_; /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public java.util.List getRevisionList() { return revision_; } /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public java.util.List getRevisionOrBuilderList() { return revision_; } /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public int getRevisionCount() { return revision_.size(); } /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision getRevision(int index) { return revision_.get(index); } /** *
     * Revision history for this Bioprint, including each ID and signature.
     * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder getRevisionOrBuilder( int index) { return revision_.get(index); } public static final int MODIFIED_FIELD_NUMBER = 8; private io.opencannabis.schema.temporal.TemporalInstant.Instant modified_; /** *
     * Indicates the precise moment this Bioprint was last mutated or updated.
     * 
* * .opencannabis.temporal.Instant modified = 8; */ public boolean hasModified() { return modified_ != null; } /** *
     * Indicates the precise moment this Bioprint was last mutated or updated.
     * 
* * .opencannabis.temporal.Instant modified = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getModified() { return modified_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : modified_; } /** *
     * Indicates the precise moment this Bioprint was last mutated or updated.
     * 
* * .opencannabis.temporal.Instant modified = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getModifiedOrBuilder() { return getModified(); } public static final int CREATED_FIELD_NUMBER = 9; private io.opencannabis.schema.temporal.TemporalInstant.Instant created_; /** *
     * Indicates the precise moment this Bioprint was originally created.
     * 
* * .opencannabis.temporal.Instant created = 9; */ public boolean hasCreated() { return created_ != null; } /** *
     * Indicates the precise moment this Bioprint was originally created.
     * 
* * .opencannabis.temporal.Instant created = 9; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getCreated() { return created_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : created_; } /** *
     * Indicates the precise moment this Bioprint was originally created.
     * 
* * .opencannabis.temporal.Instant created = 9; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedOrBuilder() { return getCreated(); } 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 (id_ != null) { output.writeMessage(1, getId()); } if (keychain_ != null) { output.writeMessage(2, getKeychain()); } if (profile_ != null) { output.writeMessage(3, getProfile()); } if (identification_ != null) { output.writeMessage(4, getIdentification()); } if (user_ != null) { output.writeMessage(5, getUser()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMemberships(), MembershipsDefaultEntryHolder.defaultEntry, 6); for (int i = 0; i < revision_.size(); i++) { output.writeMessage(7, revision_.get(i)); } if (modified_ != null) { output.writeMessage(8, getModified()); } if (created_ != null) { output.writeMessage(9, getCreated()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (keychain_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKeychain()); } if (profile_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getProfile()); } if (identification_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getIdentification()); } if (user_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUser()); } for (java.util.Map.Entry entry : internalGetMemberships().getMap().entrySet()) { com.google.protobuf.MapEntry memberships__ = MembershipsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, memberships__); } for (int i = 0; i < revision_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, revision_.get(i)); } if (modified_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getModified()); } if (created_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getCreated()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint)) { return super.equals(obj); } io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint other = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasKeychain() == other.hasKeychain()); if (hasKeychain()) { result = result && getKeychain() .equals(other.getKeychain()); } result = result && (hasProfile() == other.hasProfile()); if (hasProfile()) { result = result && getProfile() .equals(other.getProfile()); } result = result && (hasIdentification() == other.hasIdentification()); if (hasIdentification()) { result = result && getIdentification() .equals(other.getIdentification()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser() .equals(other.getUser()); } result = result && internalGetMemberships().equals( other.internalGetMemberships()); result = result && getRevisionList() .equals(other.getRevisionList()); result = result && (hasModified() == other.hasModified()); if (hasModified()) { result = result && getModified() .equals(other.getModified()); } result = result && (hasCreated() == other.hasCreated()); if (hasCreated()) { result = result && getCreated() .equals(other.getCreated()); } 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasKeychain()) { hash = (37 * hash) + KEYCHAIN_FIELD_NUMBER; hash = (53 * hash) + getKeychain().hashCode(); } if (hasProfile()) { hash = (37 * hash) + PROFILE_FIELD_NUMBER; hash = (53 * hash) + getProfile().hashCode(); } if (hasIdentification()) { hash = (37 * hash) + IDENTIFICATION_FIELD_NUMBER; hash = (53 * hash) + getIdentification().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (!internalGetMemberships().getMap().isEmpty()) { hash = (37 * hash) + MEMBERSHIPS_FIELD_NUMBER; hash = (53 * hash) + internalGetMemberships().hashCode(); } if (getRevisionCount() > 0) { hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevisionList().hashCode(); } if (hasModified()) { hash = (37 * hash) + MODIFIED_FIELD_NUMBER; hash = (53 * hash) + getModified().hashCode(); } if (hasCreated()) { hash = (37 * hash) + CREATED_FIELD_NUMBER; hash = (53 * hash) + getCreated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint 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; } /** *
     * Describes the main Bioprint outer wrapping, which is encoded and placed in an encrypted container for storage. This
     * is the outermost payload in the Bioprint that is structurally defined. It is responsible for storing revision history
     * and cryptographic material, among other metadata.
     * 
* * Protobuf type {@code bloombox.identity.bioprint.Bioprint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.bioprint.Bioprint) io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Bioprint_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetMemberships(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableMemberships(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Bioprint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.class, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.Builder.class); } // Construct using io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRevisionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { id_ = null; idBuilder_ = null; } if (keychainBuilder_ == null) { keychain_ = null; } else { keychain_ = null; keychainBuilder_ = null; } if (profileBuilder_ == null) { profile_ = null; } else { profile_ = null; profileBuilder_ = null; } if (identificationBuilder_ == null) { identification_ = null; } else { identification_ = null; identificationBuilder_ = null; } if (userBuilder_ == null) { user_ = null; } else { user_ = null; userBuilder_ = null; } internalGetMutableMemberships().clear(); if (revisionBuilder_ == null) { revision_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { revisionBuilder_.clear(); } if (modifiedBuilder_ == null) { modified_ = null; } else { modified_ = null; modifiedBuilder_ = null; } if (createdBuilder_ == null) { created_ = null; } else { created_ = null; createdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.internal_static_bloombox_identity_bioprint_Bioprint_descriptor; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint getDefaultInstanceForType() { return io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint build() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint buildPartial() { io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint result = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (keychainBuilder_ == null) { result.keychain_ = keychain_; } else { result.keychain_ = keychainBuilder_.build(); } if (profileBuilder_ == null) { result.profile_ = profile_; } else { result.profile_ = profileBuilder_.build(); } if (identificationBuilder_ == null) { result.identification_ = identification_; } else { result.identification_ = identificationBuilder_.build(); } if (userBuilder_ == null) { result.user_ = user_; } else { result.user_ = userBuilder_.build(); } result.memberships_ = internalGetMemberships(); result.memberships_.makeImmutable(); if (revisionBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { revision_ = java.util.Collections.unmodifiableList(revision_); bitField0_ = (bitField0_ & ~0x00000040); } result.revision_ = revision_; } else { result.revision_ = revisionBuilder_.build(); } if (modifiedBuilder_ == null) { result.modified_ = modified_; } else { result.modified_ = modifiedBuilder_.build(); } if (createdBuilder_ == null) { result.created_ = created_; } else { result.created_ = createdBuilder_.build(); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint) { return mergeFrom((io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint other) { if (other == io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasKeychain()) { mergeKeychain(other.getKeychain()); } if (other.hasProfile()) { mergeProfile(other.getProfile()); } if (other.hasIdentification()) { mergeIdentification(other.getIdentification()); } if (other.hasUser()) { mergeUser(other.getUser()); } internalGetMutableMemberships().mergeFrom( other.internalGetMemberships()); if (revisionBuilder_ == null) { if (!other.revision_.isEmpty()) { if (revision_.isEmpty()) { revision_ = other.revision_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureRevisionIsMutable(); revision_.addAll(other.revision_); } onChanged(); } } else { if (!other.revision_.isEmpty()) { if (revisionBuilder_.isEmpty()) { revisionBuilder_.dispose(); revisionBuilder_ = null; revision_ = other.revision_; bitField0_ = (bitField0_ & ~0x00000040); revisionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRevisionFieldBuilder() : null; } else { revisionBuilder_.addAllMessages(other.revision_); } } } if (other.hasModified()) { mergeModified(other.getModified()); } if (other.hasCreated()) { mergeCreated(other.getCreated()); } 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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder> idBuilder_; /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID getId() { if (idBuilder_ == null) { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder setId(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder setId( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder mergeId(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID value) { if (idBuilder_ == null) { if (id_ != null) { id_ = io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.getDefaultInstance() : id_; } } /** *
       * Specifies the current and active identifier that addresses this Bioprint. This value is considered globally unique.
       * 
* * .bloombox.identity.bioprint.BioprintID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintID.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain keychain_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder> keychainBuilder_; /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public boolean hasKeychain() { return keychainBuilder_ != null || keychain_ != null; } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain getKeychain() { if (keychainBuilder_ == null) { return keychain_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.getDefaultInstance() : keychain_; } else { return keychainBuilder_.getMessage(); } } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public Builder setKeychain(io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain value) { if (keychainBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keychain_ = value; onChanged(); } else { keychainBuilder_.setMessage(value); } return this; } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public Builder setKeychain( io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder builderForValue) { if (keychainBuilder_ == null) { keychain_ = builderForValue.build(); onChanged(); } else { keychainBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public Builder mergeKeychain(io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain value) { if (keychainBuilder_ == null) { if (keychain_ != null) { keychain_ = io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.newBuilder(keychain_).mergeFrom(value).buildPartial(); } else { keychain_ = value; } onChanged(); } else { keychainBuilder_.mergeFrom(value); } return this; } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public Builder clearKeychain() { if (keychainBuilder_ == null) { keychain_ = null; onChanged(); } else { keychain_ = null; keychainBuilder_ = null; } return this; } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder getKeychainBuilder() { onChanged(); return getKeychainFieldBuilder().getBuilder(); } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder getKeychainOrBuilder() { if (keychainBuilder_ != null) { return keychainBuilder_.getMessageOrBuilder(); } else { return keychain_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.getDefaultInstance() : keychain_; } } /** *
       * Auth and crypto keychain, specifying master and recovery keys attached to this Bioprint.
       * 
* * .bloombox.identity.bioprint.Keychain keychain = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder> getKeychainFieldBuilder() { if (keychainBuilder_ == null) { keychainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain, io.bloombox.schema.identity.bioprint.BioprintOuterClass.Keychain.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.KeychainOrBuilder>( getKeychain(), getParentForChildren(), isClean()); keychain_ = null; } return keychainBuilder_; } private io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload profile_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder> profileBuilder_; /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public boolean hasProfile() { return profileBuilder_ != null || profile_ != null; } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload getProfile() { if (profileBuilder_ == null) { return profile_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance() : profile_; } else { return profileBuilder_.getMessage(); } } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder setProfile(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload value) { if (profileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } profile_ = value; onChanged(); } else { profileBuilder_.setMessage(value); } return this; } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder setProfile( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder builderForValue) { if (profileBuilder_ == null) { profile_ = builderForValue.build(); onChanged(); } else { profileBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder mergeProfile(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload value) { if (profileBuilder_ == null) { if (profile_ != null) { profile_ = io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.newBuilder(profile_).mergeFrom(value).buildPartial(); } else { profile_ = value; } onChanged(); } else { profileBuilder_.mergeFrom(value); } return this; } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public Builder clearProfile() { if (profileBuilder_ == null) { profile_ = null; onChanged(); } else { profile_ = null; profileBuilder_ = null; } return this; } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder getProfileBuilder() { onChanged(); return getProfileFieldBuilder().getBuilder(); } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder getProfileOrBuilder() { if (profileBuilder_ != null) { return profileBuilder_.getMessageOrBuilder(); } else { return profile_ == null ? io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.getDefaultInstance() : profile_; } } /** *
       * Bioprint profile payload, which includes the actual content of the user's private and public Bioprint components.
       * 
* * .bloombox.identity.bioprint.BioprintPayload profile = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder> getProfileFieldBuilder() { if (profileBuilder_ == null) { profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayload.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintPayloadOrBuilder>( getProfile(), getParentForChildren(), isClean()); profile_ = null; } return profileBuilder_; } private io.bloombox.schema.identity.IdentityID.ID identification_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.IdentityID.ID, io.bloombox.schema.identity.IdentityID.ID.Builder, io.bloombox.schema.identity.IdentityID.IDOrBuilder> identificationBuilder_; /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public boolean hasIdentification() { return identificationBuilder_ != null || identification_ != null; } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public io.bloombox.schema.identity.IdentityID.ID getIdentification() { if (identificationBuilder_ == null) { return identification_ == null ? io.bloombox.schema.identity.IdentityID.ID.getDefaultInstance() : identification_; } else { return identificationBuilder_.getMessage(); } } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public Builder setIdentification(io.bloombox.schema.identity.IdentityID.ID value) { if (identificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identification_ = value; onChanged(); } else { identificationBuilder_.setMessage(value); } return this; } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public Builder setIdentification( io.bloombox.schema.identity.IdentityID.ID.Builder builderForValue) { if (identificationBuilder_ == null) { identification_ = builderForValue.build(); onChanged(); } else { identificationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public Builder mergeIdentification(io.bloombox.schema.identity.IdentityID.ID value) { if (identificationBuilder_ == null) { if (identification_ != null) { identification_ = io.bloombox.schema.identity.IdentityID.ID.newBuilder(identification_).mergeFrom(value).buildPartial(); } else { identification_ = value; } onChanged(); } else { identificationBuilder_.mergeFrom(value); } return this; } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public Builder clearIdentification() { if (identificationBuilder_ == null) { identification_ = null; onChanged(); } else { identification_ = null; identificationBuilder_ = null; } return this; } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public io.bloombox.schema.identity.IdentityID.ID.Builder getIdentificationBuilder() { onChanged(); return getIdentificationFieldBuilder().getBuilder(); } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ public io.bloombox.schema.identity.IdentityID.IDOrBuilder getIdentificationOrBuilder() { if (identificationBuilder_ != null) { return identificationBuilder_.getMessageOrBuilder(); } else { return identification_ == null ? io.bloombox.schema.identity.IdentityID.ID.getDefaultInstance() : identification_; } } /** *
       * Contains the user's verified government identification.
       * 
* * .bloombox.identity.ID identification = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.IdentityID.ID, io.bloombox.schema.identity.IdentityID.ID.Builder, io.bloombox.schema.identity.IdentityID.IDOrBuilder> getIdentificationFieldBuilder() { if (identificationBuilder_ == null) { identificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.IdentityID.ID, io.bloombox.schema.identity.IdentityID.ID.Builder, io.bloombox.schema.identity.IdentityID.IDOrBuilder>( getIdentification(), getParentForChildren(), isClean()); identification_ = null; } return identificationBuilder_; } private io.bloombox.schema.identity.AppUserKey.UserKey user_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppUserKey.UserKey, io.bloombox.schema.identity.AppUserKey.UserKey.Builder, io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder> userBuilder_; /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public boolean hasUser() { return userBuilder_ != null || user_ != null; } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public io.bloombox.schema.identity.AppUserKey.UserKey getUser() { if (userBuilder_ == null) { return user_ == null ? io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_; } else { return userBuilder_.getMessage(); } } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public Builder setUser(io.bloombox.schema.identity.AppUserKey.UserKey value) { if (userBuilder_ == null) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); } else { userBuilder_.setMessage(value); } return this; } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public Builder setUser( io.bloombox.schema.identity.AppUserKey.UserKey.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); onChanged(); } else { userBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public Builder mergeUser(io.bloombox.schema.identity.AppUserKey.UserKey value) { if (userBuilder_ == null) { if (user_ != null) { user_ = io.bloombox.schema.identity.AppUserKey.UserKey.newBuilder(user_).mergeFrom(value).buildPartial(); } else { user_ = value; } onChanged(); } else { userBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public Builder clearUser() { if (userBuilder_ == null) { user_ = null; onChanged(); } else { user_ = null; userBuilder_ = null; } return this; } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public io.bloombox.schema.identity.AppUserKey.UserKey.Builder getUserBuilder() { onChanged(); return getUserFieldBuilder().getBuilder(); } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ public io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { return user_ == null ? io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_; } } /** *
       * Specifies the user's globally-unique profile key.
       * 
* * .bloombox.identity.UserKey user = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppUserKey.UserKey, io.bloombox.schema.identity.AppUserKey.UserKey.Builder, io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppUserKey.UserKey, io.bloombox.schema.identity.AppUserKey.UserKey.Builder, io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder>( getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } private com.google.protobuf.MapField< java.lang.String, io.bloombox.schema.identity.AppUser.ConsumerMembership> memberships_; private com.google.protobuf.MapField internalGetMemberships() { if (memberships_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipsDefaultEntryHolder.defaultEntry); } return memberships_; } private com.google.protobuf.MapField internalGetMutableMemberships() { onChanged();; if (memberships_ == null) { memberships_ = com.google.protobuf.MapField.newMapField( MembershipsDefaultEntryHolder.defaultEntry); } if (!memberships_.isMutable()) { memberships_ = memberships_.copy(); } return memberships_; } public int getMembershipsCount() { return internalGetMemberships().getMap().size(); } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public boolean containsMemberships( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMemberships().getMap().containsKey(key); } /** * Use {@link #getMembershipsMap()} instead. */ @java.lang.Deprecated public java.util.Map getMemberships() { return getMembershipsMap(); } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public java.util.Map getMembershipsMap() { return internalGetMemberships().getMap(); } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public io.bloombox.schema.identity.AppUser.ConsumerMembership getMembershipsOrDefault( java.lang.String key, io.bloombox.schema.identity.AppUser.ConsumerMembership defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMemberships().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public io.bloombox.schema.identity.AppUser.ConsumerMembership getMembershipsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMemberships().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMemberships() { internalGetMutableMemberships().getMutableMap() .clear(); return this; } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public Builder removeMemberships( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableMemberships().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMemberships() { return internalGetMutableMemberships().getMutableMap(); } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public Builder putMemberships( java.lang.String key, io.bloombox.schema.identity.AppUser.ConsumerMembership value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableMemberships().getMutableMap() .put(key, value); return this; } /** *
       * Specifies consumer memberships stored for express check-in.
       * 
* * map<string, .bloombox.identity.ConsumerMembership> memberships = 6; */ public Builder putAllMemberships( java.util.Map values) { internalGetMutableMemberships().getMutableMap() .putAll(values); return this; } private java.util.List revision_ = java.util.Collections.emptyList(); private void ensureRevisionIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { revision_ = new java.util.ArrayList(revision_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder> revisionBuilder_; /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public java.util.List getRevisionList() { if (revisionBuilder_ == null) { return java.util.Collections.unmodifiableList(revision_); } else { return revisionBuilder_.getMessageList(); } } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public int getRevisionCount() { if (revisionBuilder_ == null) { return revision_.size(); } else { return revisionBuilder_.getCount(); } } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision getRevision(int index) { if (revisionBuilder_ == null) { return revision_.get(index); } else { return revisionBuilder_.getMessage(index); } } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder setRevision( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision value) { if (revisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRevisionIsMutable(); revision_.set(index, value); onChanged(); } else { revisionBuilder_.setMessage(index, value); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder setRevision( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder builderForValue) { if (revisionBuilder_ == null) { ensureRevisionIsMutable(); revision_.set(index, builderForValue.build()); onChanged(); } else { revisionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder addRevision(io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision value) { if (revisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRevisionIsMutable(); revision_.add(value); onChanged(); } else { revisionBuilder_.addMessage(value); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder addRevision( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision value) { if (revisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRevisionIsMutable(); revision_.add(index, value); onChanged(); } else { revisionBuilder_.addMessage(index, value); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder addRevision( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder builderForValue) { if (revisionBuilder_ == null) { ensureRevisionIsMutable(); revision_.add(builderForValue.build()); onChanged(); } else { revisionBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder addRevision( int index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder builderForValue) { if (revisionBuilder_ == null) { ensureRevisionIsMutable(); revision_.add(index, builderForValue.build()); onChanged(); } else { revisionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder addAllRevision( java.lang.Iterable values) { if (revisionBuilder_ == null) { ensureRevisionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, revision_); onChanged(); } else { revisionBuilder_.addAllMessages(values); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder clearRevision() { if (revisionBuilder_ == null) { revision_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { revisionBuilder_.clear(); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public Builder removeRevision(int index) { if (revisionBuilder_ == null) { ensureRevisionIsMutable(); revision_.remove(index); onChanged(); } else { revisionBuilder_.remove(index); } return this; } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder getRevisionBuilder( int index) { return getRevisionFieldBuilder().getBuilder(index); } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder getRevisionOrBuilder( int index) { if (revisionBuilder_ == null) { return revision_.get(index); } else { return revisionBuilder_.getMessageOrBuilder(index); } } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public java.util.List getRevisionOrBuilderList() { if (revisionBuilder_ != null) { return revisionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(revision_); } } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder addRevisionBuilder() { return getRevisionFieldBuilder().addBuilder( io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.getDefaultInstance()); } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder addRevisionBuilder( int index) { return getRevisionFieldBuilder().addBuilder( index, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.getDefaultInstance()); } /** *
       * Revision history for this Bioprint, including each ID and signature.
       * 
* * repeated .bloombox.identity.bioprint.BioprintRevision revision = 7; */ public java.util.List getRevisionBuilderList() { return getRevisionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder> getRevisionFieldBuilder() { if (revisionBuilder_ == null) { revisionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevision.Builder, io.bloombox.schema.identity.bioprint.BioprintOuterClass.BioprintRevisionOrBuilder>( revision_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); revision_ = null; } return revisionBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant modified_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> modifiedBuilder_; /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public boolean hasModified() { return modifiedBuilder_ != null || modified_ != null; } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getModified() { if (modifiedBuilder_ == null) { return modified_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : modified_; } else { return modifiedBuilder_.getMessage(); } } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public Builder setModified(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (modifiedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modified_ = value; onChanged(); } else { modifiedBuilder_.setMessage(value); } return this; } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public Builder setModified( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (modifiedBuilder_ == null) { modified_ = builderForValue.build(); onChanged(); } else { modifiedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public Builder mergeModified(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (modifiedBuilder_ == null) { if (modified_ != null) { modified_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(modified_).mergeFrom(value).buildPartial(); } else { modified_ = value; } onChanged(); } else { modifiedBuilder_.mergeFrom(value); } return this; } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public Builder clearModified() { if (modifiedBuilder_ == null) { modified_ = null; onChanged(); } else { modified_ = null; modifiedBuilder_ = null; } return this; } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getModifiedBuilder() { onChanged(); return getModifiedFieldBuilder().getBuilder(); } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getModifiedOrBuilder() { if (modifiedBuilder_ != null) { return modifiedBuilder_.getMessageOrBuilder(); } else { return modified_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : modified_; } } /** *
       * Indicates the precise moment this Bioprint was last mutated or updated.
       * 
* * .opencannabis.temporal.Instant modified = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getModifiedFieldBuilder() { if (modifiedBuilder_ == null) { modifiedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getModified(), getParentForChildren(), isClean()); modified_ = null; } return modifiedBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant created_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> createdBuilder_; /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public boolean hasCreated() { return createdBuilder_ != null || created_ != null; } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getCreated() { if (createdBuilder_ == null) { return created_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : created_; } else { return createdBuilder_.getMessage(); } } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public Builder setCreated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (createdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } created_ = value; onChanged(); } else { createdBuilder_.setMessage(value); } return this; } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public Builder setCreated( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (createdBuilder_ == null) { created_ = builderForValue.build(); onChanged(); } else { createdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public Builder mergeCreated(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (createdBuilder_ == null) { if (created_ != null) { created_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(created_).mergeFrom(value).buildPartial(); } else { created_ = value; } onChanged(); } else { createdBuilder_.mergeFrom(value); } return this; } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public Builder clearCreated() { if (createdBuilder_ == null) { created_ = null; onChanged(); } else { created_ = null; createdBuilder_ = null; } return this; } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getCreatedBuilder() { onChanged(); return getCreatedFieldBuilder().getBuilder(); } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedOrBuilder() { if (createdBuilder_ != null) { return createdBuilder_.getMessageOrBuilder(); } else { return created_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : created_; } } /** *
       * Indicates the precise moment this Bioprint was originally created.
       * 
* * .opencannabis.temporal.Instant created = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getCreatedFieldBuilder() { if (createdBuilder_ == null) { createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getCreated(), getParentForChildren(), isClean()); created_ = null; } return createdBuilder_; } @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:bloombox.identity.bioprint.Bioprint) } // @@protoc_insertion_point(class_scope:bloombox.identity.bioprint.Bioprint) private static final io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint(); } public static io.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Bioprint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Bioprint(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.bloombox.schema.identity.bioprint.BioprintOuterClass.Bioprint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_MasterKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_MasterKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_RestorationKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_RestorationKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_StubKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_StubKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_BioprintToken_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_BioprintToken_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_BioprintID_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_BioprintID_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_Keychain_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_Keychain_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_BioprintPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_BioprintPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_BioprintRevision_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_BioprintRevision_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_Bioprint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_Bioprint_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_bioprint_Bioprint_MembershipsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_bioprint_Bioprint_MembershipsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n identity/bioprint/Bioprint.proto\022\032bloo" + "mbox.identity.bioprint\032\024security/Token.p" + "roto\032\026temporal/Instant.proto\032\030partner/Pa" + "rtnerKey.proto\032\021identity/ID.proto\032\023ident" + "ity/User.proto\032\026identity/UserKey.proto\032\"" + "identity/bioprint/Affinities.proto\032\026cryp" + "to/Signature.proto\032\034crypto/primitives/Ke" + "ys.proto\032!crypto/primitives/Integrity.pr" + "oto\"\223\002\n\tMasterKey\022\014\n\004name\030\001 \001(\t\022\020\n\010seque" + "nce\030\002 \001(\r\022\020\n\010disabled\030\003 \001(\010\022\022\n\nsupersede" + "d\030\004 \001(\010\022.\n\003key\030\005 \001(\0132!.opencannabis.cryp" + "to.SymmetricKey\022,\n\004used\030\006 \001(\0132\036.opencann" + "abis.temporal.Instant\0221\n\tgenerated\030\007 \001(\013" + "2\036.opencannabis.temporal.Instant\022/\n\007revo" + "ked\030\010 \001(\0132\036.opencannabis.temporal.Instan" + "t\"\304\001\n\016RestorationKey\022\014\n\004name\030\001 \001(\t\022\020\n\010di" + "sabled\030\002 \001(\010\022.\n\003key\030\003 \001(\0132!.opencannabis" + ".crypto.SymmetricKey\0221\n\tgenerated\030\004 \001(\0132" + "\036.opencannabis.temporal.Instant\022/\n\007revok" + "ed\030\005 \001(\0132\036.opencannabis.temporal.Instant" + "\"\361\001\n\007StubKey\0222\n\002id\030\001 \001(\0132&.bloombox.iden" + "tity.bioprint.BioprintID\022\014\n\004name\030\002 \001(\t\022\020" + "\n\010disabled\030\003 \001(\010\022.\n\003key\030\004 \001(\0132!.opencann" + "abis.crypto.SymmetricKey\0221\n\tgenerated\030\005 " + "\001(\0132\036.opencannabis.temporal.Instant\022/\n\007r" + "evoked\030\006 \001(\0132\036.opencannabis.temporal.Ins" + "tant\"\234\001\n\rBioprintToken\022+\n\005token\030\001 \001(\0132\034." + "bloombox.security.AuthToken\022.\n\013fingerpri" + "nt\030\002 \001(\0132\031.opencannabis.crypto.Hash\022.\n\006i" + "ssued\030\003 \001(\0132\036.opencannabis.temporal.Inst" + "ant\"\300\001\n\nBioprintID\022\016\n\006origin\030\001 \001(\t\022\020\n\010an" + "cestor\030\002 \001(\t\022.\n\006issued\030\003 \001(\0132\036.opencanna" + "bis.temporal.Instant\0221\n\tsignature\030\004 \001(\0132" + "\036.opencannabis.crypto.Signature\022-\n\007partn" + "er\030\005 \001(\0132\034.bloombox.partner.PartnerKey\"\314" + "\001\n\010Keychain\0225\n\006master\030\001 \003(\0132%.bloombox.i" + "dentity.bioprint.MasterKey\022?\n\013restoratio" + "n\030\002 \003(\0132*.bloombox.identity.bioprint.Res" + "torationKey\022\022\n\ngeneration\030\003 \001(\r\0224\n\014last_" + "rotated\030\004 \001(\0132\036.opencannabis.temporal.In" + "stant\"\232\001\n\017BioprintPayload\022\022\n\ngeneration\030" + "\001 \001(\r\0226\n\010affinity\030\002 \003(\0132$.bloombox.ident" + "ity.bioprint.Affinity\022;\n\013preferences\030\003 \001" + "(\0132&.bloombox.identity.ConsumerPreferenc" + "es\"\265\001\n\020BioprintRevision\0222\n\002id\030\001 \001(\0132&.bl" + "oombox.identity.bioprint.BioprintID\022/\n\007a" + "pplied\030\002 \001(\0132\036.opencannabis.temporal.Ins" + "tant\022<\n\007profile\030\003 \001(\0132+.bloombox.identit" + "y.bioprint.BioprintPayload\"\327\004\n\010Bioprint\022" + "2\n\002id\030\001 \001(\0132&.bloombox.identity.bioprint" + ".BioprintID\0226\n\010keychain\030\002 \001(\0132$.bloombox" + ".identity.bioprint.Keychain\022<\n\007profile\030\003" + " \001(\0132+.bloombox.identity.bioprint.Biopri" + "ntPayload\022-\n\016identification\030\004 \001(\0132\025.bloo" + "mbox.identity.ID\022(\n\004user\030\005 \001(\0132\032.bloombo" + "x.identity.UserKey\022J\n\013memberships\030\006 \003(\0132" + "5.bloombox.identity.bioprint.Bioprint.Me" + "mbershipsEntry\022>\n\010revision\030\007 \003(\0132,.bloom" + "box.identity.bioprint.BioprintRevision\0220" + "\n\010modified\030\010 \001(\0132\036.opencannabis.temporal" + ".Instant\022/\n\007created\030\t \001(\0132\036.opencannabis" + ".temporal.Instant\032Y\n\020MembershipsEntry\022\013\n" + "\003key\030\001 \001(\t\0224\n\005value\030\002 \001(\0132%.bloombox.ide" + "ntity.ConsumerMembership:\0028\001B0\n$io.bloom" + "box.schema.identity.bioprintH\001P\000\242\002\003BBSb\006" + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.bloombox.schema.security.Token.getDescriptor(), io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(), io.bloombox.schema.partner.PartnerMeta.getDescriptor(), io.bloombox.schema.identity.IdentityID.getDescriptor(), io.bloombox.schema.identity.AppUser.getDescriptor(), io.bloombox.schema.identity.AppUserKey.getDescriptor(), io.bloombox.schema.identity.bioprint.Affinities.getDescriptor(), io.opencannabis.schema.crypto.SignatureOuterClass.getDescriptor(), io.opencannabis.schema.crypto.primitives.Keys.getDescriptor(), io.opencannabis.schema.crypto.primitives.integrity.Integrity.getDescriptor(), }, assigner); internal_static_bloombox_identity_bioprint_MasterKey_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_identity_bioprint_MasterKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_MasterKey_descriptor, new java.lang.String[] { "Name", "Sequence", "Disabled", "Superseded", "Key", "Used", "Generated", "Revoked", }); internal_static_bloombox_identity_bioprint_RestorationKey_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_bloombox_identity_bioprint_RestorationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_RestorationKey_descriptor, new java.lang.String[] { "Name", "Disabled", "Key", "Generated", "Revoked", }); internal_static_bloombox_identity_bioprint_StubKey_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_bloombox_identity_bioprint_StubKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_StubKey_descriptor, new java.lang.String[] { "Id", "Name", "Disabled", "Key", "Generated", "Revoked", }); internal_static_bloombox_identity_bioprint_BioprintToken_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_bloombox_identity_bioprint_BioprintToken_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_BioprintToken_descriptor, new java.lang.String[] { "Token", "Fingerprint", "Issued", }); internal_static_bloombox_identity_bioprint_BioprintID_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_bloombox_identity_bioprint_BioprintID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_BioprintID_descriptor, new java.lang.String[] { "Origin", "Ancestor", "Issued", "Signature", "Partner", }); internal_static_bloombox_identity_bioprint_Keychain_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_bloombox_identity_bioprint_Keychain_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_Keychain_descriptor, new java.lang.String[] { "Master", "Restoration", "Generation", "LastRotated", }); internal_static_bloombox_identity_bioprint_BioprintPayload_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_bloombox_identity_bioprint_BioprintPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_BioprintPayload_descriptor, new java.lang.String[] { "Generation", "Affinity", "Preferences", }); internal_static_bloombox_identity_bioprint_BioprintRevision_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_bloombox_identity_bioprint_BioprintRevision_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_BioprintRevision_descriptor, new java.lang.String[] { "Id", "Applied", "Profile", }); internal_static_bloombox_identity_bioprint_Bioprint_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_bloombox_identity_bioprint_Bioprint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_Bioprint_descriptor, new java.lang.String[] { "Id", "Keychain", "Profile", "Identification", "User", "Memberships", "Revision", "Modified", "Created", }); internal_static_bloombox_identity_bioprint_Bioprint_MembershipsEntry_descriptor = internal_static_bloombox_identity_bioprint_Bioprint_descriptor.getNestedTypes().get(0); internal_static_bloombox_identity_bioprint_Bioprint_MembershipsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_bioprint_Bioprint_MembershipsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); io.bloombox.schema.security.Token.getDescriptor(); io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(); io.bloombox.schema.partner.PartnerMeta.getDescriptor(); io.bloombox.schema.identity.IdentityID.getDescriptor(); io.bloombox.schema.identity.AppUser.getDescriptor(); io.bloombox.schema.identity.AppUserKey.getDescriptor(); io.bloombox.schema.identity.bioprint.Affinities.getDescriptor(); io.opencannabis.schema.crypto.SignatureOuterClass.getDescriptor(); io.opencannabis.schema.crypto.primitives.Keys.getDescriptor(); io.opencannabis.schema.crypto.primitives.integrity.Integrity.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy