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

io.bloombox.schema.identity.AppMember 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/Membership.proto

package io.bloombox.schema.identity;

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

    /**
     * 
     * Specifies when a membership was first established.
     * 
* * .opencannabis.temporal.Instant established = 1; */ boolean hasEstablished(); /** *
     * Specifies when a membership was first established.
     * 
* * .opencannabis.temporal.Instant established = 1; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getEstablished(); /** *
     * Specifies when a membership was first established.
     * 
* * .opencannabis.temporal.Instant established = 1; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getEstablishedOrBuilder(); /** *
     * Specifies the last time a user checked-in or made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant seen = 2; */ boolean hasSeen(); /** *
     * Specifies the last time a user checked-in or made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant seen = 2; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getSeen(); /** *
     * Specifies the last time a user checked-in or made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant seen = 2; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getSeenOrBuilder(); /** *
     * Specifies the last time a user made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant purchase = 3; */ boolean hasPurchase(); /** *
     * Specifies the last time a user made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant purchase = 3; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getPurchase(); /** *
     * Specifies the last time a user made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant purchase = 3; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getPurchaseOrBuilder(); } /** *
   * Specifies the temporal position of various events related to a user's membership with a particular partner location.
   * 
* * Protobuf type {@code bloombox.identity.MembershipTimestamps} */ public static final class MembershipTimestamps extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.MembershipTimestamps) MembershipTimestampsOrBuilder { private static final long serialVersionUID = 0L; // Use MembershipTimestamps.newBuilder() to construct. private MembershipTimestamps(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MembershipTimestamps() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MembershipTimestamps( 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.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (established_ != null) { subBuilder = established_.toBuilder(); } established_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(established_); established_ = subBuilder.buildPartial(); } break; } case 18: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (seen_ != null) { subBuilder = seen_.toBuilder(); } seen_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seen_); seen_ = subBuilder.buildPartial(); } break; } case 26: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (purchase_ != null) { subBuilder = purchase_.toBuilder(); } purchase_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(purchase_); purchase_ = 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.AppMember.internal_static_bloombox_identity_MembershipTimestamps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_MembershipTimestamps_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMember.MembershipTimestamps.class, io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder.class); } public static final int ESTABLISHED_FIELD_NUMBER = 1; private io.opencannabis.schema.temporal.TemporalInstant.Instant established_; /** *
     * Specifies when a membership was first established.
     * 
* * .opencannabis.temporal.Instant established = 1; */ public boolean hasEstablished() { return established_ != null; } /** *
     * Specifies when a membership was first established.
     * 
* * .opencannabis.temporal.Instant established = 1; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getEstablished() { return established_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : established_; } /** *
     * Specifies when a membership was first established.
     * 
* * .opencannabis.temporal.Instant established = 1; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getEstablishedOrBuilder() { return getEstablished(); } public static final int SEEN_FIELD_NUMBER = 2; private io.opencannabis.schema.temporal.TemporalInstant.Instant seen_; /** *
     * Specifies the last time a user checked-in or made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant seen = 2; */ public boolean hasSeen() { return seen_ != null; } /** *
     * Specifies the last time a user checked-in or made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant seen = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getSeen() { return seen_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : seen_; } /** *
     * Specifies the last time a user checked-in or made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant seen = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getSeenOrBuilder() { return getSeen(); } public static final int PURCHASE_FIELD_NUMBER = 3; private io.opencannabis.schema.temporal.TemporalInstant.Instant purchase_; /** *
     * Specifies the last time a user made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant purchase = 3; */ public boolean hasPurchase() { return purchase_ != null; } /** *
     * Specifies the last time a user made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant purchase = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getPurchase() { return purchase_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : purchase_; } /** *
     * Specifies the last time a user made a purchase using this membership.
     * 
* * .opencannabis.temporal.Instant purchase = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getPurchaseOrBuilder() { return getPurchase(); } 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 (established_ != null) { output.writeMessage(1, getEstablished()); } if (seen_ != null) { output.writeMessage(2, getSeen()); } if (purchase_ != null) { output.writeMessage(3, getPurchase()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (established_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEstablished()); } if (seen_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSeen()); } if (purchase_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPurchase()); } 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.AppMember.MembershipTimestamps)) { return super.equals(obj); } io.bloombox.schema.identity.AppMember.MembershipTimestamps other = (io.bloombox.schema.identity.AppMember.MembershipTimestamps) obj; if (hasEstablished() != other.hasEstablished()) return false; if (hasEstablished()) { if (!getEstablished() .equals(other.getEstablished())) return false; } if (hasSeen() != other.hasSeen()) return false; if (hasSeen()) { if (!getSeen() .equals(other.getSeen())) return false; } if (hasPurchase() != other.hasPurchase()) return false; if (hasPurchase()) { if (!getPurchase() .equals(other.getPurchase())) 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 (hasEstablished()) { hash = (37 * hash) + ESTABLISHED_FIELD_NUMBER; hash = (53 * hash) + getEstablished().hashCode(); } if (hasSeen()) { hash = (37 * hash) + SEEN_FIELD_NUMBER; hash = (53 * hash) + getSeen().hashCode(); } if (hasPurchase()) { hash = (37 * hash) + PURCHASE_FIELD_NUMBER; hash = (53 * hash) + getPurchase().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps 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.AppMember.MembershipTimestamps parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps 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.AppMember.MembershipTimestamps parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps 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.AppMember.MembershipTimestamps parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps 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.AppMember.MembershipTimestamps parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps 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.AppMember.MembershipTimestamps 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 the temporal position of various events related to a user's membership with a particular partner location.
     * 
* * Protobuf type {@code bloombox.identity.MembershipTimestamps} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.MembershipTimestamps) io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_MembershipTimestamps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_MembershipTimestamps_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMember.MembershipTimestamps.class, io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder.class); } // Construct using io.bloombox.schema.identity.AppMember.MembershipTimestamps.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 (establishedBuilder_ == null) { established_ = null; } else { established_ = null; establishedBuilder_ = null; } if (seenBuilder_ == null) { seen_ = null; } else { seen_ = null; seenBuilder_ = null; } if (purchaseBuilder_ == null) { purchase_ = null; } else { purchase_ = null; purchaseBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_MembershipTimestamps_descriptor; } @java.lang.Override public io.bloombox.schema.identity.AppMember.MembershipTimestamps getDefaultInstanceForType() { return io.bloombox.schema.identity.AppMember.MembershipTimestamps.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.AppMember.MembershipTimestamps build() { io.bloombox.schema.identity.AppMember.MembershipTimestamps result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.AppMember.MembershipTimestamps buildPartial() { io.bloombox.schema.identity.AppMember.MembershipTimestamps result = new io.bloombox.schema.identity.AppMember.MembershipTimestamps(this); if (establishedBuilder_ == null) { result.established_ = established_; } else { result.established_ = establishedBuilder_.build(); } if (seenBuilder_ == null) { result.seen_ = seen_; } else { result.seen_ = seenBuilder_.build(); } if (purchaseBuilder_ == null) { result.purchase_ = purchase_; } else { result.purchase_ = purchaseBuilder_.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.AppMember.MembershipTimestamps) { return mergeFrom((io.bloombox.schema.identity.AppMember.MembershipTimestamps)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.AppMember.MembershipTimestamps other) { if (other == io.bloombox.schema.identity.AppMember.MembershipTimestamps.getDefaultInstance()) return this; if (other.hasEstablished()) { mergeEstablished(other.getEstablished()); } if (other.hasSeen()) { mergeSeen(other.getSeen()); } if (other.hasPurchase()) { mergePurchase(other.getPurchase()); } 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.AppMember.MembershipTimestamps parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.AppMember.MembershipTimestamps) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.opencannabis.schema.temporal.TemporalInstant.Instant established_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> establishedBuilder_; /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public boolean hasEstablished() { return establishedBuilder_ != null || established_ != null; } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getEstablished() { if (establishedBuilder_ == null) { return established_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : established_; } else { return establishedBuilder_.getMessage(); } } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public Builder setEstablished(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (establishedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } established_ = value; onChanged(); } else { establishedBuilder_.setMessage(value); } return this; } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public Builder setEstablished( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (establishedBuilder_ == null) { established_ = builderForValue.build(); onChanged(); } else { establishedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public Builder mergeEstablished(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (establishedBuilder_ == null) { if (established_ != null) { established_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(established_).mergeFrom(value).buildPartial(); } else { established_ = value; } onChanged(); } else { establishedBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public Builder clearEstablished() { if (establishedBuilder_ == null) { established_ = null; onChanged(); } else { established_ = null; establishedBuilder_ = null; } return this; } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getEstablishedBuilder() { onChanged(); return getEstablishedFieldBuilder().getBuilder(); } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getEstablishedOrBuilder() { if (establishedBuilder_ != null) { return establishedBuilder_.getMessageOrBuilder(); } else { return established_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : established_; } } /** *
       * Specifies when a membership was first established.
       * 
* * .opencannabis.temporal.Instant established = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getEstablishedFieldBuilder() { if (establishedBuilder_ == null) { establishedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getEstablished(), getParentForChildren(), isClean()); established_ = null; } return establishedBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant seen_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> seenBuilder_; /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public boolean hasSeen() { return seenBuilder_ != null || seen_ != null; } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getSeen() { if (seenBuilder_ == null) { return seen_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : seen_; } else { return seenBuilder_.getMessage(); } } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public Builder setSeen(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (seenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seen_ = value; onChanged(); } else { seenBuilder_.setMessage(value); } return this; } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public Builder setSeen( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (seenBuilder_ == null) { seen_ = builderForValue.build(); onChanged(); } else { seenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public Builder mergeSeen(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (seenBuilder_ == null) { if (seen_ != null) { seen_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(seen_).mergeFrom(value).buildPartial(); } else { seen_ = value; } onChanged(); } else { seenBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public Builder clearSeen() { if (seenBuilder_ == null) { seen_ = null; onChanged(); } else { seen_ = null; seenBuilder_ = null; } return this; } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getSeenBuilder() { onChanged(); return getSeenFieldBuilder().getBuilder(); } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 2; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getSeenOrBuilder() { if (seenBuilder_ != null) { return seenBuilder_.getMessageOrBuilder(); } else { return seen_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : seen_; } } /** *
       * Specifies the last time a user checked-in or made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant seen = 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> getSeenFieldBuilder() { if (seenBuilder_ == null) { seenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getSeen(), getParentForChildren(), isClean()); seen_ = null; } return seenBuilder_; } private io.opencannabis.schema.temporal.TemporalInstant.Instant purchase_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> purchaseBuilder_; /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public boolean hasPurchase() { return purchaseBuilder_ != null || purchase_ != null; } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getPurchase() { if (purchaseBuilder_ == null) { return purchase_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : purchase_; } else { return purchaseBuilder_.getMessage(); } } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public Builder setPurchase(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (purchaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } purchase_ = value; onChanged(); } else { purchaseBuilder_.setMessage(value); } return this; } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public Builder setPurchase( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (purchaseBuilder_ == null) { purchase_ = builderForValue.build(); onChanged(); } else { purchaseBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public Builder mergePurchase(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (purchaseBuilder_ == null) { if (purchase_ != null) { purchase_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(purchase_).mergeFrom(value).buildPartial(); } else { purchase_ = value; } onChanged(); } else { purchaseBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public Builder clearPurchase() { if (purchaseBuilder_ == null) { purchase_ = null; onChanged(); } else { purchase_ = null; purchaseBuilder_ = null; } return this; } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getPurchaseBuilder() { onChanged(); return getPurchaseFieldBuilder().getBuilder(); } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getPurchaseOrBuilder() { if (purchaseBuilder_ != null) { return purchaseBuilder_.getMessageOrBuilder(); } else { return purchase_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : purchase_; } } /** *
       * Specifies the last time a user made a purchase using this membership.
       * 
* * .opencannabis.temporal.Instant purchase = 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> getPurchaseFieldBuilder() { if (purchaseBuilder_ == null) { purchaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getPurchase(), getParentForChildren(), isClean()); purchase_ = null; } return purchaseBuilder_; } @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.MembershipTimestamps) } // @@protoc_insertion_point(class_scope:bloombox.identity.MembershipTimestamps) private static final io.bloombox.schema.identity.AppMember.MembershipTimestamps DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.AppMember.MembershipTimestamps(); } public static io.bloombox.schema.identity.AppMember.MembershipTimestamps getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MembershipTimestamps parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MembershipTimestamps(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.AppMember.MembershipTimestamps getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MembershipOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.Membership) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies a unique key identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ boolean hasKey(); /** *
     * Specifies a unique key identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ io.bloombox.schema.identity.AppMemberKey.MembershipKey getKey(); /** *
     * Specifies a unique key identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder getKeyOrBuilder(); /** *
     * Specifies when various events occurred in the lifecycle of this user membership.
     * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ boolean hasTs(); /** *
     * Specifies when various events occurred in the lifecycle of this user membership.
     * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ io.bloombox.schema.identity.AppMember.MembershipTimestamps getTs(); /** *
     * Specifies when various events occurred in the lifecycle of this user membership.
     * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder getTsOrBuilder(); } /** *
   * Represents a user's membership within a given Bloombox partner organization or partner location.
   * 
* * Protobuf type {@code bloombox.identity.Membership} */ public static final class Membership extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.Membership) MembershipOrBuilder { private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Membership() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Membership( 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 794: { io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder subBuilder = null; if (ts_ != null) { subBuilder = ts_.toBuilder(); } ts_ = input.readMessage(io.bloombox.schema.identity.AppMember.MembershipTimestamps.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ts_); ts_ = 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.AppMember.internal_static_bloombox_identity_Membership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMember.Membership.class, io.bloombox.schema.identity.AppMember.Membership.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private io.bloombox.schema.identity.AppMemberKey.MembershipKey key_; /** *
     * Specifies a unique key identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ public boolean hasKey() { return key_ != null; } /** *
     * Specifies a unique key identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ public io.bloombox.schema.identity.AppMemberKey.MembershipKey getKey() { return key_ == null ? io.bloombox.schema.identity.AppMemberKey.MembershipKey.getDefaultInstance() : key_; } /** *
     * Specifies a unique key identifying this user membership.
     * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ public io.bloombox.schema.identity.AppMemberKey.MembershipKeyOrBuilder getKeyOrBuilder() { return getKey(); } public static final int TS_FIELD_NUMBER = 99; private io.bloombox.schema.identity.AppMember.MembershipTimestamps ts_; /** *
     * Specifies when various events occurred in the lifecycle of this user membership.
     * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public boolean hasTs() { return ts_ != null; } /** *
     * Specifies when various events occurred in the lifecycle of this user membership.
     * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public io.bloombox.schema.identity.AppMember.MembershipTimestamps getTs() { return ts_ == null ? io.bloombox.schema.identity.AppMember.MembershipTimestamps.getDefaultInstance() : ts_; } /** *
     * Specifies when various events occurred in the lifecycle of this user membership.
     * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder getTsOrBuilder() { return getTs(); } 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 (ts_ != null) { output.writeMessage(99, getTs()); } 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 (ts_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(99, getTs()); } 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.AppMember.Membership)) { return super.equals(obj); } io.bloombox.schema.identity.AppMember.Membership other = (io.bloombox.schema.identity.AppMember.Membership) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasTs() != other.hasTs()) return false; if (hasTs()) { if (!getTs() .equals(other.getTs())) 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 (hasTs()) { hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + getTs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.AppMember.Membership parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMember.Membership 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.AppMember.Membership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMember.Membership 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.AppMember.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.AppMember.Membership parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.AppMember.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMember.Membership 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.AppMember.Membership parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMember.Membership 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.AppMember.Membership parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.AppMember.Membership 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.AppMember.Membership 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 user's membership within a given Bloombox partner organization or partner location.
     * 
* * Protobuf type {@code bloombox.identity.Membership} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.Membership) io.bloombox.schema.identity.AppMember.MembershipOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_Membership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.AppMember.Membership.class, io.bloombox.schema.identity.AppMember.Membership.Builder.class); } // Construct using io.bloombox.schema.identity.AppMember.Membership.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 (tsBuilder_ == null) { ts_ = null; } else { ts_ = null; tsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.AppMember.internal_static_bloombox_identity_Membership_descriptor; } @java.lang.Override public io.bloombox.schema.identity.AppMember.Membership getDefaultInstanceForType() { return io.bloombox.schema.identity.AppMember.Membership.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.AppMember.Membership build() { io.bloombox.schema.identity.AppMember.Membership result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.AppMember.Membership buildPartial() { io.bloombox.schema.identity.AppMember.Membership result = new io.bloombox.schema.identity.AppMember.Membership(this); if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (tsBuilder_ == null) { result.ts_ = ts_; } else { result.ts_ = tsBuilder_.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.AppMember.Membership) { return mergeFrom((io.bloombox.schema.identity.AppMember.Membership)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.AppMember.Membership other) { if (other == io.bloombox.schema.identity.AppMember.Membership.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasTs()) { mergeTs(other.getTs()); } 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.AppMember.Membership parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.AppMember.Membership) 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 key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * Specifies a unique key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ 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 key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ 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 key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ 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 key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ 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 key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * Specifies a unique key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ public io.bloombox.schema.identity.AppMemberKey.MembershipKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * Specifies a unique key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ 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 key identifying this user membership.
       * 
* * .bloombox.identity.MembershipKey key = 1 [(.core.field) = { ... } */ 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.bloombox.schema.identity.AppMember.MembershipTimestamps ts_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppMember.MembershipTimestamps, io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder, io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder> tsBuilder_; /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public boolean hasTs() { return tsBuilder_ != null || ts_ != null; } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public io.bloombox.schema.identity.AppMember.MembershipTimestamps getTs() { if (tsBuilder_ == null) { return ts_ == null ? io.bloombox.schema.identity.AppMember.MembershipTimestamps.getDefaultInstance() : ts_; } else { return tsBuilder_.getMessage(); } } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public Builder setTs(io.bloombox.schema.identity.AppMember.MembershipTimestamps value) { if (tsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ts_ = value; onChanged(); } else { tsBuilder_.setMessage(value); } return this; } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public Builder setTs( io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder builderForValue) { if (tsBuilder_ == null) { ts_ = builderForValue.build(); onChanged(); } else { tsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public Builder mergeTs(io.bloombox.schema.identity.AppMember.MembershipTimestamps value) { if (tsBuilder_ == null) { if (ts_ != null) { ts_ = io.bloombox.schema.identity.AppMember.MembershipTimestamps.newBuilder(ts_).mergeFrom(value).buildPartial(); } else { ts_ = value; } onChanged(); } else { tsBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public Builder clearTs() { if (tsBuilder_ == null) { ts_ = null; onChanged(); } else { ts_ = null; tsBuilder_ = null; } return this; } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder getTsBuilder() { onChanged(); return getTsFieldBuilder().getBuilder(); } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ public io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder getTsOrBuilder() { if (tsBuilder_ != null) { return tsBuilder_.getMessageOrBuilder(); } else { return ts_ == null ? io.bloombox.schema.identity.AppMember.MembershipTimestamps.getDefaultInstance() : ts_; } } /** *
       * Specifies when various events occurred in the lifecycle of this user membership.
       * 
* * .bloombox.identity.MembershipTimestamps ts = 99; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppMember.MembershipTimestamps, io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder, io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder> getTsFieldBuilder() { if (tsBuilder_ == null) { tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.identity.AppMember.MembershipTimestamps, io.bloombox.schema.identity.AppMember.MembershipTimestamps.Builder, io.bloombox.schema.identity.AppMember.MembershipTimestampsOrBuilder>( getTs(), getParentForChildren(), isClean()); ts_ = null; } return tsBuilder_; } @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.Membership) } // @@protoc_insertion_point(class_scope:bloombox.identity.Membership) private static final io.bloombox.schema.identity.AppMember.Membership DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.AppMember.Membership(); } public static io.bloombox.schema.identity.AppMember.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Membership parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Membership(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.AppMember.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_MembershipTimestamps_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_MembershipTimestamps_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_Membership_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_Membership_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\031identity/Membership.proto\022\021bloombox.id" + "entity\032\016bq_field.proto\032\024core/Datamodel.p" + "roto\032\034identity/MembershipKey.proto\032\026temp" + "oral/Instant.proto\"\253\001\n\024MembershipTimesta" + "mps\0223\n\013established\030\001 \001(\0132\036.opencannabis." + "temporal.Instant\022,\n\004seen\030\002 \001(\0132\036.opencan" + "nabis.temporal.Instant\0220\n\010purchase\030\003 \001(\013" + "2\036.opencannabis.temporal.Instant\"x\n\nMemb" + "ership\0225\n\003key\030\001 \001(\0132 .bloombox.identity." + "MembershipKeyB\006\302\265\003\002\010\001\0223\n\002ts\030c \001(\0132\'.bloo" + "mbox.identity.MembershipTimestampsB2\n\033io" + ".bloombox.schema.identityB\tAppMemberH\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.bloombox.schema.identity.AppMemberKey.getDescriptor(), io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(), }, assigner); internal_static_bloombox_identity_MembershipTimestamps_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_identity_MembershipTimestamps_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_MembershipTimestamps_descriptor, new java.lang.String[] { "Established", "Seen", "Purchase", }); internal_static_bloombox_identity_Membership_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_bloombox_identity_Membership_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_Membership_descriptor, new java.lang.String[] { "Key", "Ts", }); 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.bloombox.schema.identity.AppMemberKey.getDescriptor(); io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy