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

io.bloombox.schema.identity.AppMemberKey Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, 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/MembershipKey.proto

package io.bloombox.schema.identity;

public final class AppMemberKey {
  private AppMemberKey() {}
  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 MembershipKeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bloombox.identity.MembershipKey)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Specifies a unique ID identifying this user membership.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ java.lang.String getUuid(); /** *
     * Specifies a unique ID identifying this user membership.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ com.google.protobuf.ByteString getUuidBytes(); /** *
     * Key specifying the user for which this membership was established.
     * 
* * .bloombox.identity.UserKey user = 2; */ boolean hasUser(); /** *
     * Key specifying the user for which this membership was established.
     * 
* * .bloombox.identity.UserKey user = 2; */ io.bloombox.schema.identity.AppUserKey.UserKey getUser(); /** *
     * Key specifying the user for which this membership was established.
     * 
* * .bloombox.identity.UserKey user = 2; */ io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder(); /** *
     * Specifies the partner under which this membership applies.
     * 
* * .bloombox.partner.PartnerKey partner = 3; */ boolean hasPartner(); /** *
     * Specifies the partner under which this membership applies.
     * 
* * .bloombox.partner.PartnerKey partner = 3; */ io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner(); /** *
     * Specifies the partner under which this membership applies.
     * 
* * .bloombox.partner.PartnerKey partner = 3; */ io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder(); /** *
     * Specifies the location under which this membership applies.
     * 
* * .bloombox.partner.LocationKey location = 4; */ boolean hasLocation(); /** *
     * Specifies the location under which this membership applies.
     * 
* * .bloombox.partner.LocationKey location = 4; */ io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation(); /** *
     * Specifies the location under which this membership applies.
     * 
* * .bloombox.partner.LocationKey location = 4; */ io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder(); public io.bloombox.schema.identity.AppMemberKey.MembershipKey.ScopeCase getScopeCase(); } /** *
   * Represents a key that refers to a user account identity, as it is connected (if applicable) within a given partner or
   * location scope.
   * 
* * Protobuf type {@code bloombox.identity.MembershipKey} */ public static final class MembershipKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.MembershipKey) MembershipKeyOrBuilder { private static final long serialVersionUID = 0L; // Use MembershipKey.newBuilder() to construct. private MembershipKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MembershipKey() { uuid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MembershipKey( 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(); uuid_ = s; break; } case 18: { 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 26: { io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder subBuilder = null; if (scopeCase_ == 3) { subBuilder = ((io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_).toBuilder(); } scope_ = input.readMessage(io.bloombox.schema.partner.PartnerMeta.PartnerKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_); scope_ = subBuilder.buildPartial(); } scopeCase_ = 3; break; } case 34: { io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder subBuilder = null; if (scopeCase_ == 4) { subBuilder = ((io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_).toBuilder(); } scope_ = input.readMessage(io.bloombox.schema.partner.LocationAccountKey.LocationKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_); scope_ = subBuilder.buildPartial(); } scopeCase_ = 4; break; } default: { if (!parseUnknownField( 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.AppMemberKey.internal_static_bloombox_identity_MembershipKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMemberKey.MembershipKey.class, io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder.class); } private int scopeCase_ = 0; private java.lang.Object scope_; public enum ScopeCase implements com.google.protobuf.Internal.EnumLite { PARTNER(3), LOCATION(4), SCOPE_NOT_SET(0); private final int value; private ScopeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ScopeCase valueOf(int value) { return forNumber(value); } public static ScopeCase forNumber(int value) { switch (value) { case 3: return PARTNER; case 4: return LOCATION; case 0: return SCOPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ScopeCase getScopeCase() { return ScopeCase.forNumber( scopeCase_); } public static final int UUID_FIELD_NUMBER = 1; private volatile java.lang.Object uuid_; /** *
     * Specifies a unique ID identifying this user membership.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; 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(); uuid_ = s; return s; } } /** *
     * Specifies a unique ID identifying this user membership.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 2; private io.bloombox.schema.identity.AppUserKey.UserKey user_; /** *
     * Key specifying the user for which this membership was established.
     * 
* * .bloombox.identity.UserKey user = 2; */ public boolean hasUser() { return user_ != null; } /** *
     * Key specifying the user for which this membership was established.
     * 
* * .bloombox.identity.UserKey user = 2; */ public io.bloombox.schema.identity.AppUserKey.UserKey getUser() { return user_ == null ? io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_; } /** *
     * Key specifying the user for which this membership was established.
     * 
* * .bloombox.identity.UserKey user = 2; */ public io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder() { return getUser(); } public static final int PARTNER_FIELD_NUMBER = 3; /** *
     * Specifies the partner under which this membership applies.
     * 
* * .bloombox.partner.PartnerKey partner = 3; */ public boolean hasPartner() { return scopeCase_ == 3; } /** *
     * Specifies the partner under which this membership applies.
     * 
* * .bloombox.partner.PartnerKey partner = 3; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner() { if (scopeCase_ == 3) { return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_; } return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance(); } /** *
     * Specifies the partner under which this membership applies.
     * 
* * .bloombox.partner.PartnerKey partner = 3; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder() { if (scopeCase_ == 3) { return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_; } return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance(); } public static final int LOCATION_FIELD_NUMBER = 4; /** *
     * Specifies the location under which this membership applies.
     * 
* * .bloombox.partner.LocationKey location = 4; */ public boolean hasLocation() { return scopeCase_ == 4; } /** *
     * Specifies the location under which this membership applies.
     * 
* * .bloombox.partner.LocationKey location = 4; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { if (scopeCase_ == 4) { return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_; } return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance(); } /** *
     * Specifies the location under which this membership applies.
     * 
* * .bloombox.partner.LocationKey location = 4; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { if (scopeCase_ == 4) { return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_; } return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance(); } 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 (!getUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); } if (user_ != null) { output.writeMessage(2, getUser()); } if (scopeCase_ == 3) { output.writeMessage(3, (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_); } if (scopeCase_ == 4) { output.writeMessage(4, (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); } if (user_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUser()); } if (scopeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_); } if (scopeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_); } 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.AppMemberKey.MembershipKey)) { return super.equals(obj); } io.bloombox.schema.identity.AppMemberKey.MembershipKey other = (io.bloombox.schema.identity.AppMemberKey.MembershipKey) obj; if (!getUuid() .equals(other.getUuid())) return false; if (hasUser() != other.hasUser()) return false; if (hasUser()) { if (!getUser() .equals(other.getUser())) return false; } if (!getScopeCase().equals(other.getScopeCase())) return false; switch (scopeCase_) { case 3: if (!getPartner() .equals(other.getPartner())) return false; break; case 4: if (!getLocation() .equals(other.getLocation())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } switch (scopeCase_) { case 3: hash = (37 * hash) + PARTNER_FIELD_NUMBER; hash = (53 * hash) + getPartner().hashCode(); break; case 4: hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey 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.AppMemberKey.MembershipKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey 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.AppMemberKey.MembershipKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey 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.AppMemberKey.MembershipKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey 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.AppMemberKey.MembershipKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey 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.AppMemberKey.MembershipKey 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; } /** *
     * Represents a key that refers to a user account identity, as it is connected (if applicable) within a given partner or
     * location scope.
     * 
* * Protobuf type {@code bloombox.identity.MembershipKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.MembershipKey) io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMemberKey.MembershipKey.class, io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder.class); } // Construct using io.bloombox.schema.identity.AppMemberKey.MembershipKey.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(); uuid_ = ""; if (userBuilder_ == null) { user_ = null; } else { user_ = null; userBuilder_ = null; } scopeCase_ = 0; scope_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipKey_descriptor; } @java.lang.Override public io.bloombox.schema.identity.AppMemberKey.MembershipKey getDefaultInstanceForType() { return io.bloombox.schema.identity.AppMemberKey.MembershipKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.AppMemberKey.MembershipKey build() { io.bloombox.schema.identity.AppMemberKey.MembershipKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.AppMemberKey.MembershipKey buildPartial() { io.bloombox.schema.identity.AppMemberKey.MembershipKey result = new io.bloombox.schema.identity.AppMemberKey.MembershipKey(this); result.uuid_ = uuid_; if (userBuilder_ == null) { result.user_ = user_; } else { result.user_ = userBuilder_.build(); } if (scopeCase_ == 3) { if (partnerBuilder_ == null) { result.scope_ = scope_; } else { result.scope_ = partnerBuilder_.build(); } } if (scopeCase_ == 4) { if (locationBuilder_ == null) { result.scope_ = scope_; } else { result.scope_ = locationBuilder_.build(); } } result.scopeCase_ = scopeCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.identity.AppMemberKey.MembershipKey) { return mergeFrom((io.bloombox.schema.identity.AppMemberKey.MembershipKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.AppMemberKey.MembershipKey other) { if (other == io.bloombox.schema.identity.AppMemberKey.MembershipKey.getDefaultInstance()) return this; if (!other.getUuid().isEmpty()) { uuid_ = other.uuid_; onChanged(); } if (other.hasUser()) { mergeUser(other.getUser()); } switch (other.getScopeCase()) { case PARTNER: { mergePartner(other.getPartner()); break; } case LOCATION: { mergeLocation(other.getLocation()); break; } case SCOPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.identity.AppMemberKey.MembershipKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.AppMemberKey.MembershipKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int scopeCase_ = 0; private java.lang.Object scope_; public ScopeCase getScopeCase() { return ScopeCase.forNumber( scopeCase_); } public Builder clearScope() { scopeCase_ = 0; scope_ = null; onChanged(); return this; } private java.lang.Object uuid_ = ""; /** *
       * Specifies a unique ID identifying this user membership.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uuid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies a unique ID identifying this user membership.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies a unique ID identifying this user membership.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder setUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** *
       * Specifies a unique ID identifying this user membership.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** *
       * Specifies a unique ID identifying this user membership.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder setUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uuid_ = value; onChanged(); return this; } private io.bloombox.schema.identity.AppUserKey.UserKey user_; 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_; /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ public boolean hasUser() { return userBuilder_ != null || user_ != null; } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ 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(); } } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ 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; } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ 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; } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ 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; } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ public Builder clearUser() { if (userBuilder_ == null) { user_ = null; onChanged(); } else { user_ = null; userBuilder_ = null; } return this; } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ public io.bloombox.schema.identity.AppUserKey.UserKey.Builder getUserBuilder() { onChanged(); return getUserFieldBuilder().getBuilder(); } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ 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_; } } /** *
       * Key specifying the user for which this membership was established.
       * 
* * .bloombox.identity.UserKey user = 2; */ 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.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder> partnerBuilder_; /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public boolean hasPartner() { return scopeCase_ == 3; } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner() { if (partnerBuilder_ == null) { if (scopeCase_ == 3) { return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_; } return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance(); } else { if (scopeCase_ == 3) { return partnerBuilder_.getMessage(); } return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance(); } } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public Builder setPartner(io.bloombox.schema.partner.PartnerMeta.PartnerKey value) { if (partnerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scope_ = value; onChanged(); } else { partnerBuilder_.setMessage(value); } scopeCase_ = 3; return this; } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public Builder setPartner( io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder builderForValue) { if (partnerBuilder_ == null) { scope_ = builderForValue.build(); onChanged(); } else { partnerBuilder_.setMessage(builderForValue.build()); } scopeCase_ = 3; return this; } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public Builder mergePartner(io.bloombox.schema.partner.PartnerMeta.PartnerKey value) { if (partnerBuilder_ == null) { if (scopeCase_ == 3 && scope_ != io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance()) { scope_ = io.bloombox.schema.partner.PartnerMeta.PartnerKey.newBuilder((io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_) .mergeFrom(value).buildPartial(); } else { scope_ = value; } onChanged(); } else { if (scopeCase_ == 3) { partnerBuilder_.mergeFrom(value); } partnerBuilder_.setMessage(value); } scopeCase_ = 3; return this; } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public Builder clearPartner() { if (partnerBuilder_ == null) { if (scopeCase_ == 3) { scopeCase_ = 0; scope_ = null; onChanged(); } } else { if (scopeCase_ == 3) { scopeCase_ = 0; scope_ = null; } partnerBuilder_.clear(); } return this; } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder getPartnerBuilder() { return getPartnerFieldBuilder().getBuilder(); } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ public io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder() { if ((scopeCase_ == 3) && (partnerBuilder_ != null)) { return partnerBuilder_.getMessageOrBuilder(); } else { if (scopeCase_ == 3) { return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_; } return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance(); } } /** *
       * Specifies the partner under which this membership applies.
       * 
* * .bloombox.partner.PartnerKey partner = 3; */ 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) { if (!(scopeCase_ == 3)) { scope_ = io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance(); } 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>( (io.bloombox.schema.partner.PartnerMeta.PartnerKey) scope_, getParentForChildren(), isClean()); scope_ = null; } scopeCase_ = 3; onChanged();; return partnerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder> locationBuilder_; /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public boolean hasLocation() { return scopeCase_ == 4; } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { if (locationBuilder_ == null) { if (scopeCase_ == 4) { return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_; } return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance(); } else { if (scopeCase_ == 4) { return locationBuilder_.getMessage(); } return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance(); } } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public Builder setLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scope_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } scopeCase_ = 4; return this; } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public Builder setLocation( io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder builderForValue) { if (locationBuilder_ == null) { scope_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } scopeCase_ = 4; return this; } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public Builder mergeLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (scopeCase_ == 4 && scope_ != io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance()) { scope_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.newBuilder((io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_) .mergeFrom(value).buildPartial(); } else { scope_ = value; } onChanged(); } else { if (scopeCase_ == 4) { locationBuilder_.mergeFrom(value); } locationBuilder_.setMessage(value); } scopeCase_ = 4; return this; } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public Builder clearLocation() { if (locationBuilder_ == null) { if (scopeCase_ == 4) { scopeCase_ = 0; scope_ = null; onChanged(); } } else { if (scopeCase_ == 4) { scopeCase_ = 0; scope_ = null; } locationBuilder_.clear(); } return this; } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder getLocationBuilder() { return getLocationFieldBuilder().getBuilder(); } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { if ((scopeCase_ == 4) && (locationBuilder_ != null)) { return locationBuilder_.getMessageOrBuilder(); } else { if (scopeCase_ == 4) { return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_; } return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance(); } } /** *
       * Specifies the location under which this membership applies.
       * 
* * .bloombox.partner.LocationKey location = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { if (!(scopeCase_ == 4)) { scope_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance(); } locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder>( (io.bloombox.schema.partner.LocationAccountKey.LocationKey) scope_, getParentForChildren(), isClean()); scope_ = null; } scopeCase_ = 4; onChanged();; return locationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(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.MembershipKey) } // @@protoc_insertion_point(class_scope:bloombox.identity.MembershipKey) private static final io.bloombox.schema.identity.AppMemberKey.MembershipKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.AppMemberKey.MembershipKey(); } public static io.bloombox.schema.identity.AppMemberKey.MembershipKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MembershipKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MembershipKey(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.AppMemberKey.MembershipKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MembershipReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.MembershipReference) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies a unique code identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1; */ boolean hasKey(); /** *
     * Specifies a unique code identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1; */ io.bloombox.schema.identity.AppMemberKey.MembershipKey getKey(); /** *
     * Specifies a unique code identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1; */ io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder getKeyOrBuilder(); /** *
     * Display name for the logged-in user.
     * 
* * .opencannabis.person.Name name = 2; */ boolean hasName(); /** *
     * Display name for the logged-in user.
     * 
* * .opencannabis.person.Name name = 2; */ io.opencannabis.schema.person.Name getName(); /** *
     * Display name for the logged-in user.
     * 
* * .opencannabis.person.Name name = 2; */ io.opencannabis.schema.person.NameOrBuilder getNameOrBuilder(); /** *
     * Avatar/portrait for the logged-in user.
     * 
* * .opencannabis.media.MediaKey portrait = 3; */ boolean hasPortrait(); /** *
     * Avatar/portrait for the logged-in user.
     * 
* * .opencannabis.media.MediaKey portrait = 3; */ io.opencannabis.schema.media.MediaItemKey.MediaKey getPortrait(); /** *
     * Avatar/portrait for the logged-in user.
     * 
* * .opencannabis.media.MediaKey portrait = 3; */ io.opencannabis.schema.media.MediaItemKey.MediaKeyOrBuilder getPortraitOrBuilder(); } /** *
   * Makes reference to a user in a particular membership context.
   * 
* * Protobuf type {@code bloombox.identity.MembershipReference} */ public static final class MembershipReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.MembershipReference) MembershipReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use MembershipReference.newBuilder() to construct. private MembershipReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MembershipReference() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MembershipReference( 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.AppMemberKey.MembershipKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(io.bloombox.schema.identity.AppMemberKey.MembershipKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 18: { io.opencannabis.schema.person.Name.Builder subBuilder = null; if (name_ != null) { subBuilder = name_.toBuilder(); } name_ = input.readMessage(io.opencannabis.schema.person.Name.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(name_); name_ = subBuilder.buildPartial(); } break; } case 26: { io.opencannabis.schema.media.MediaItemKey.MediaKey.Builder subBuilder = null; if (portrait_ != null) { subBuilder = portrait_.toBuilder(); } portrait_ = input.readMessage(io.opencannabis.schema.media.MediaItemKey.MediaKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(portrait_); portrait_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( 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.AppMemberKey.internal_static_bloombox_identity_MembershipReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMemberKey.MembershipReference.class, io.bloombox.schema.identity.AppMemberKey.MembershipReference.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private io.bloombox.schema.identity.AppMemberKey.MembershipKey key_; /** *
     * Specifies a unique code identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1; */ public boolean hasKey() { return key_ != null; } /** *
     * Specifies a unique code identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1; */ public io.bloombox.schema.identity.AppMemberKey.MembershipKey getKey() { return key_ == null ? io.bloombox.schema.identity.AppMemberKey.MembershipKey.getDefaultInstance() : key_; } /** *
     * Specifies a unique code identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1; */ public io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder getKeyOrBuilder() { return getKey(); } public static final int NAME_FIELD_NUMBER = 2; private io.opencannabis.schema.person.Name name_; /** *
     * Display name for the logged-in user.
     * 
* * .opencannabis.person.Name name = 2; */ public boolean hasName() { return name_ != null; } /** *
     * Display name for the logged-in user.
     * 
* * .opencannabis.person.Name name = 2; */ public io.opencannabis.schema.person.Name getName() { return name_ == null ? io.opencannabis.schema.person.Name.getDefaultInstance() : name_; } /** *
     * Display name for the logged-in user.
     * 
* * .opencannabis.person.Name name = 2; */ public io.opencannabis.schema.person.NameOrBuilder getNameOrBuilder() { return getName(); } public static final int PORTRAIT_FIELD_NUMBER = 3; private io.opencannabis.schema.media.MediaItemKey.MediaKey portrait_; /** *
     * Avatar/portrait for the logged-in user.
     * 
* * .opencannabis.media.MediaKey portrait = 3; */ public boolean hasPortrait() { return portrait_ != null; } /** *
     * Avatar/portrait for the logged-in user.
     * 
* * .opencannabis.media.MediaKey portrait = 3; */ public io.opencannabis.schema.media.MediaItemKey.MediaKey getPortrait() { return portrait_ == null ? io.opencannabis.schema.media.MediaItemKey.MediaKey.getDefaultInstance() : portrait_; } /** *
     * Avatar/portrait for the logged-in user.
     * 
* * .opencannabis.media.MediaKey portrait = 3; */ public io.opencannabis.schema.media.MediaItemKey.MediaKeyOrBuilder getPortraitOrBuilder() { return getPortrait(); } 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 (key_ != null) { output.writeMessage(1, getKey()); } if (name_ != null) { output.writeMessage(2, getName()); } if (portrait_ != null) { output.writeMessage(3, getPortrait()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKey()); } if (name_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getName()); } if (portrait_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPortrait()); } 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.AppMemberKey.MembershipReference)) { return super.equals(obj); } io.bloombox.schema.identity.AppMemberKey.MembershipReference other = (io.bloombox.schema.identity.AppMemberKey.MembershipReference) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasPortrait() != other.hasPortrait()) return false; if (hasPortrait()) { if (!getPortrait() .equals(other.getPortrait())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasPortrait()) { hash = (37 * hash) + PORTRAIT_FIELD_NUMBER; hash = (53 * hash) + getPortrait().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference 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.AppMemberKey.MembershipReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference 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.AppMemberKey.MembershipReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference 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.AppMemberKey.MembershipReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference 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.AppMemberKey.MembershipReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference 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.AppMemberKey.MembershipReference 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; } /** *
     * Makes reference to a user in a particular membership context.
     * 
* * Protobuf type {@code bloombox.identity.MembershipReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.MembershipReference) io.bloombox.schema.identity.AppMemberKey.MembershipReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMemberKey.MembershipReference.class, io.bloombox.schema.identity.AppMemberKey.MembershipReference.Builder.class); } // Construct using io.bloombox.schema.identity.AppMemberKey.MembershipReference.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 (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (nameBuilder_ == null) { name_ = null; } else { name_ = null; nameBuilder_ = null; } if (portraitBuilder_ == null) { portrait_ = null; } else { portrait_ = null; portraitBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.AppMemberKey.internal_static_bloombox_identity_MembershipReference_descriptor; } @java.lang.Override public io.bloombox.schema.identity.AppMemberKey.MembershipReference getDefaultInstanceForType() { return io.bloombox.schema.identity.AppMemberKey.MembershipReference.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.AppMemberKey.MembershipReference build() { io.bloombox.schema.identity.AppMemberKey.MembershipReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.AppMemberKey.MembershipReference buildPartial() { io.bloombox.schema.identity.AppMemberKey.MembershipReference result = new io.bloombox.schema.identity.AppMemberKey.MembershipReference(this); if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (nameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } if (portraitBuilder_ == null) { result.portrait_ = portrait_; } else { result.portrait_ = portraitBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.identity.AppMemberKey.MembershipReference) { return mergeFrom((io.bloombox.schema.identity.AppMemberKey.MembershipReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.AppMemberKey.MembershipReference other) { if (other == io.bloombox.schema.identity.AppMemberKey.MembershipReference.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasName()) { mergeName(other.getName()); } if (other.hasPortrait()) { mergePortrait(other.getPortrait()); } 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.AppMemberKey.MembershipReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.AppMemberKey.MembershipReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.identity.AppMemberKey.MembershipKey key_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppMemberKey.MembershipKey, io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder, io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder> keyBuilder_; /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public io.bloombox.schema.identity.AppMemberKey.MembershipKey getKey() { if (keyBuilder_ == null) { return key_ == null ? io.bloombox.schema.identity.AppMemberKey.MembershipKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public Builder setKey(io.bloombox.schema.identity.AppMemberKey.MembershipKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public Builder setKey( io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public Builder mergeKey(io.bloombox.schema.identity.AppMemberKey.MembershipKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.bloombox.schema.identity.AppMemberKey.MembershipKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ public io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.bloombox.schema.identity.AppMemberKey.MembershipKey.getDefaultInstance() : key_; } } /** *
       * Specifies a unique code identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppMemberKey.MembershipKey, io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder, io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppMemberKey.MembershipKey, io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder, io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private io.opencannabis.schema.person.Name name_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.person.Name, io.opencannabis.schema.person.Name.Builder, io.opencannabis.schema.person.NameOrBuilder> nameBuilder_; /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public boolean hasName() { return nameBuilder_ != null || name_ != null; } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public io.opencannabis.schema.person.Name getName() { if (nameBuilder_ == null) { return name_ == null ? io.opencannabis.schema.person.Name.getDefaultInstance() : name_; } else { return nameBuilder_.getMessage(); } } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public Builder setName(io.opencannabis.schema.person.Name value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameBuilder_.setMessage(value); } return this; } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public Builder setName( io.opencannabis.schema.person.Name.Builder builderForValue) { if (nameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public Builder mergeName(io.opencannabis.schema.person.Name value) { if (nameBuilder_ == null) { if (name_ != null) { name_ = io.opencannabis.schema.person.Name.newBuilder(name_).mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { nameBuilder_.mergeFrom(value); } return this; } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public Builder clearName() { if (nameBuilder_ == null) { name_ = null; onChanged(); } else { name_ = null; nameBuilder_ = null; } return this; } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public io.opencannabis.schema.person.Name.Builder getNameBuilder() { onChanged(); return getNameFieldBuilder().getBuilder(); } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ public io.opencannabis.schema.person.NameOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilder(); } else { return name_ == null ? io.opencannabis.schema.person.Name.getDefaultInstance() : name_; } } /** *
       * Display name for the logged-in user.
       * 
* * .opencannabis.person.Name name = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.person.Name, io.opencannabis.schema.person.Name.Builder, io.opencannabis.schema.person.NameOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.person.Name, io.opencannabis.schema.person.Name.Builder, io.opencannabis.schema.person.NameOrBuilder>( getName(), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } private io.opencannabis.schema.media.MediaItemKey.MediaKey portrait_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.media.MediaItemKey.MediaKey, io.opencannabis.schema.media.MediaItemKey.MediaKey.Builder, io.opencannabis.schema.media.MediaItemKey.MediaKeyOrBuilder> portraitBuilder_; /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public boolean hasPortrait() { return portraitBuilder_ != null || portrait_ != null; } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public io.opencannabis.schema.media.MediaItemKey.MediaKey getPortrait() { if (portraitBuilder_ == null) { return portrait_ == null ? io.opencannabis.schema.media.MediaItemKey.MediaKey.getDefaultInstance() : portrait_; } else { return portraitBuilder_.getMessage(); } } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public Builder setPortrait(io.opencannabis.schema.media.MediaItemKey.MediaKey value) { if (portraitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } portrait_ = value; onChanged(); } else { portraitBuilder_.setMessage(value); } return this; } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public Builder setPortrait( io.opencannabis.schema.media.MediaItemKey.MediaKey.Builder builderForValue) { if (portraitBuilder_ == null) { portrait_ = builderForValue.build(); onChanged(); } else { portraitBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public Builder mergePortrait(io.opencannabis.schema.media.MediaItemKey.MediaKey value) { if (portraitBuilder_ == null) { if (portrait_ != null) { portrait_ = io.opencannabis.schema.media.MediaItemKey.MediaKey.newBuilder(portrait_).mergeFrom(value).buildPartial(); } else { portrait_ = value; } onChanged(); } else { portraitBuilder_.mergeFrom(value); } return this; } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public Builder clearPortrait() { if (portraitBuilder_ == null) { portrait_ = null; onChanged(); } else { portrait_ = null; portraitBuilder_ = null; } return this; } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public io.opencannabis.schema.media.MediaItemKey.MediaKey.Builder getPortraitBuilder() { onChanged(); return getPortraitFieldBuilder().getBuilder(); } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ public io.opencannabis.schema.media.MediaItemKey.MediaKeyOrBuilder getPortraitOrBuilder() { if (portraitBuilder_ != null) { return portraitBuilder_.getMessageOrBuilder(); } else { return portrait_ == null ? io.opencannabis.schema.media.MediaItemKey.MediaKey.getDefaultInstance() : portrait_; } } /** *
       * Avatar/portrait for the logged-in user.
       * 
* * .opencannabis.media.MediaKey portrait = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.media.MediaItemKey.MediaKey, io.opencannabis.schema.media.MediaItemKey.MediaKey.Builder, io.opencannabis.schema.media.MediaItemKey.MediaKeyOrBuilder> getPortraitFieldBuilder() { if (portraitBuilder_ == null) { portraitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.media.MediaItemKey.MediaKey, io.opencannabis.schema.media.MediaItemKey.MediaKey.Builder, io.opencannabis.schema.media.MediaItemKey.MediaKeyOrBuilder>( getPortrait(), getParentForChildren(), isClean()); portrait_ = null; } return portraitBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(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.MembershipReference) } // @@protoc_insertion_point(class_scope:bloombox.identity.MembershipReference) private static final io.bloombox.schema.identity.AppMemberKey.MembershipReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.AppMemberKey.MembershipReference(); } public static io.bloombox.schema.identity.AppMemberKey.MembershipReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MembershipReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MembershipReference(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.AppMemberKey.MembershipReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_MembershipKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_MembershipKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_MembershipReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_MembershipReference_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\034identity/MembershipKey.proto\022\021bloombox" + ".identity\032\016bq_field.proto\032\024core/Datamode" + "l.proto\032\024media/MediaKey.proto\032\026identity/" + "UserKey.proto\032\027person/PersonName.proto\032\030" + "partner/PartnerKey.proto\032\031partner/Locati" + "onKey.proto\"\274\001\n\rMembershipKey\022\024\n\004uuid\030\001 " + "\001(\tB\006\302\265\003\002\010\002\022(\n\004user\030\002 \001(\0132\032.bloombox.ide" + "ntity.UserKey\022/\n\007partner\030\003 \001(\0132\034.bloombo" + "x.partner.PartnerKeyH\000\0221\n\010location\030\004 \001(\013" + "2\035.bloombox.partner.LocationKeyH\000B\007\n\005sco" + "pe\"\235\001\n\023MembershipReference\022-\n\003key\030\001 \001(\0132" + " .bloombox.identity.MembershipKey\022\'\n\004nam" + "e\030\002 \001(\0132\031.opencannabis.person.Name\022.\n\010po" + "rtrait\030\003 \001(\0132\034.opencannabis.media.MediaK" + "eyB5\n\033io.bloombox.schema.identityB\014AppMe" + "mberKeyH\001P\000\242\002\003BBSb\006proto3" }; 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[] { gen_bq_schema.BqField.getDescriptor(), core.Datamodel.getDescriptor(), io.opencannabis.schema.media.MediaItemKey.getDescriptor(), io.bloombox.schema.identity.AppUserKey.getDescriptor(), io.opencannabis.schema.person.PersonName.getDescriptor(), io.bloombox.schema.partner.PartnerMeta.getDescriptor(), io.bloombox.schema.partner.LocationAccountKey.getDescriptor(), }, assigner); internal_static_bloombox_identity_MembershipKey_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_identity_MembershipKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_MembershipKey_descriptor, new java.lang.String[] { "Uuid", "User", "Partner", "Location", "Scope", }); internal_static_bloombox_identity_MembershipReference_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_bloombox_identity_MembershipReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_MembershipReference_descriptor, new java.lang.String[] { "Key", "Name", "Portrait", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(core.Datamodel.field); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); gen_bq_schema.BqField.getDescriptor(); core.Datamodel.getDescriptor(); io.opencannabis.schema.media.MediaItemKey.getDescriptor(); io.bloombox.schema.identity.AppUserKey.getDescriptor(); io.opencannabis.schema.person.PersonName.getDescriptor(); io.bloombox.schema.partner.PartnerMeta.getDescriptor(); io.bloombox.schema.partner.LocationAccountKey.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy