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

io.bloombox.schema.partner.PartnerDevices 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: partner/PartnerDevice.proto

package io.bloombox.schema.partner;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Specifies types of partner co-located devices.
   * 
* * Protobuf enum {@code bloombox.partner.PartnerDeviceType} */ public enum PartnerDeviceType implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Unspecified, or unrecognized, device type.
     * 
* * UNSPECIFIED_DEVICE_TYPE = 0; */ UNSPECIFIED_DEVICE_TYPE(0), /** *
     * Internal devices. Used for sandbox/development operations.
     * 
* * INTERNAL = 1; */ INTERNAL(1), /** *
     * Menu tablet devices.
     * 
* * MENU_TABLET = 10; */ MENU_TABLET(10), /** *
     * Menu TV (display) devices.
     * 
* * MENU_TV = 11; */ MENU_TV(11), /** *
     * Checkin station units.
     * 
* * CHECKIN_STATION = 20; */ CHECKIN_STATION(20), /** *
     * Checkin queue TV (display) devices.
     * 
* * CHECKIN_TV = 21; */ CHECKIN_TV(21), /** *
     * Point-of-Sale/cash register devices.
     * 
* * POS_REGISTER = 30; */ POS_REGISTER(30), UNRECOGNIZED(-1), ; /** *
     * Unspecified, or unrecognized, device type.
     * 
* * UNSPECIFIED_DEVICE_TYPE = 0; */ public static final int UNSPECIFIED_DEVICE_TYPE_VALUE = 0; /** *
     * Internal devices. Used for sandbox/development operations.
     * 
* * INTERNAL = 1; */ public static final int INTERNAL_VALUE = 1; /** *
     * Menu tablet devices.
     * 
* * MENU_TABLET = 10; */ public static final int MENU_TABLET_VALUE = 10; /** *
     * Menu TV (display) devices.
     * 
* * MENU_TV = 11; */ public static final int MENU_TV_VALUE = 11; /** *
     * Checkin station units.
     * 
* * CHECKIN_STATION = 20; */ public static final int CHECKIN_STATION_VALUE = 20; /** *
     * Checkin queue TV (display) devices.
     * 
* * CHECKIN_TV = 21; */ public static final int CHECKIN_TV_VALUE = 21; /** *
     * Point-of-Sale/cash register devices.
     * 
* * POS_REGISTER = 30; */ public static final int POS_REGISTER_VALUE = 30; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PartnerDeviceType valueOf(int value) { return forNumber(value); } public static PartnerDeviceType forNumber(int value) { switch (value) { case 0: return UNSPECIFIED_DEVICE_TYPE; case 1: return INTERNAL; case 10: return MENU_TABLET; case 11: return MENU_TV; case 20: return CHECKIN_STATION; case 21: return CHECKIN_TV; case 30: return POS_REGISTER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PartnerDeviceType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PartnerDeviceType findValueByNumber(int number) { return PartnerDeviceType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.bloombox.schema.partner.PartnerDevices.getDescriptor().getEnumTypes().get(0); } private static final PartnerDeviceType[] VALUES = values(); public static PartnerDeviceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PartnerDeviceType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.partner.PartnerDeviceType) } public interface PartnerDeviceKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.partner.PartnerDeviceKey) com.google.protobuf.MessageOrBuilder { /** *
     * Partner location that owns/co-locates this device.
     * 
* * .bloombox.partner.LocationKey location = 1; */ boolean hasLocation(); /** *
     * Partner location that owns/co-locates this device.
     * 
* * .bloombox.partner.LocationKey location = 1; */ io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation(); /** *
     * Partner location that owns/co-locates this device.
     * 
* * .bloombox.partner.LocationKey location = 1; */ io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder(); /** *
     * UUID for this particular device.
     * 
* * string uuid = 2 [(.core.field) = { ... } */ java.lang.String getUuid(); /** *
     * UUID for this particular device.
     * 
* * string uuid = 2 [(.core.field) = { ... } */ com.google.protobuf.ByteString getUuidBytes(); } /** *
   * Specifies the structure of a key for a given partner device.
   * 
* * Protobuf type {@code bloombox.partner.PartnerDeviceKey} */ public static final class PartnerDeviceKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.partner.PartnerDeviceKey) PartnerDeviceKeyOrBuilder { private static final long serialVersionUID = 0L; // Use PartnerDeviceKey.newBuilder() to construct. private PartnerDeviceKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartnerDeviceKey() { uuid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PartnerDeviceKey( 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.partner.LocationAccountKey.LocationKey.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(io.bloombox.schema.partner.LocationAccountKey.LocationKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); uuid_ = s; 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.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.class, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private io.bloombox.schema.partner.LocationAccountKey.LocationKey location_; /** *
     * Partner location that owns/co-locates this device.
     * 
* * .bloombox.partner.LocationKey location = 1; */ public boolean hasLocation() { return location_ != null; } /** *
     * Partner location that owns/co-locates this device.
     * 
* * .bloombox.partner.LocationKey location = 1; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } /** *
     * Partner location that owns/co-locates this device.
     * 
* * .bloombox.partner.LocationKey location = 1; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int UUID_FIELD_NUMBER = 2; private volatile java.lang.Object uuid_; /** *
     * UUID for this particular device.
     * 
* * string uuid = 2 [(.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; } } /** *
     * UUID for this particular device.
     * 
* * string uuid = 2 [(.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; } } 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 (location_ != null) { output.writeMessage(1, getLocation()); } if (!getUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } if (!getUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); } 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.partner.PartnerDevices.PartnerDeviceKey)) { return super.equals(obj); } io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey other = (io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getUuid() .equals(other.getUuid())) 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 (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey 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.partner.PartnerDevices.PartnerDeviceKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey 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.partner.PartnerDevices.PartnerDeviceKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey 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.partner.PartnerDevices.PartnerDeviceKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey 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.partner.PartnerDevices.PartnerDeviceKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey 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.partner.PartnerDevices.PartnerDeviceKey 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 structure of a key for a given partner device.
     * 
* * Protobuf type {@code bloombox.partner.PartnerDeviceKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.partner.PartnerDeviceKey) io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.class, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder.class); } // Construct using io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.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 (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } uuid_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceKey_descriptor; } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getDefaultInstanceForType() { return io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey build() { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey buildPartial() { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey result = new io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey(this); if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.uuid_ = uuid_; 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.partner.PartnerDevices.PartnerDeviceKey) { return mergeFrom((io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey other) { if (other == io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (!other.getUuid().isEmpty()) { uuid_ = other.uuid_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.partner.LocationAccountKey.LocationKey location_; 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_; /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { if (locationBuilder_ == null) { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public Builder setLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public Builder setLocation( io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public Builder mergeLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } } /** *
       * Partner location that owns/co-locates this device.
       * 
* * .bloombox.partner.LocationKey location = 1; */ 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) { 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>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private java.lang.Object uuid_ = ""; /** *
       * UUID for this particular device.
       * 
* * string uuid = 2 [(.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; } } /** *
       * UUID for this particular device.
       * 
* * string uuid = 2 [(.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; } } /** *
       * UUID for this particular device.
       * 
* * string uuid = 2 [(.core.field) = { ... } */ public Builder setUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** *
       * UUID for this particular device.
       * 
* * string uuid = 2 [(.core.field) = { ... } */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** *
       * UUID for this particular device.
       * 
* * string uuid = 2 [(.core.field) = { ... } */ public Builder setUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uuid_ = value; onChanged(); return this; } @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.partner.PartnerDeviceKey) } // @@protoc_insertion_point(class_scope:bloombox.partner.PartnerDeviceKey) private static final io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey(); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartnerDeviceKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PartnerDeviceKey(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.partner.PartnerDevices.PartnerDeviceKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartnerDeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.partner.PartnerDevice) com.google.protobuf.MessageOrBuilder { /** *
     * Unique ID for this partner device.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ java.lang.String getUuid(); /** *
     * Unique ID for this partner device.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ com.google.protobuf.ByteString getUuidBytes(); /** *
     * Partner that owns this device.
     * 
* * .bloombox.partner.LocationKey location = 2; */ boolean hasLocation(); /** *
     * Partner that owns this device.
     * 
* * .bloombox.partner.LocationKey location = 2; */ io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation(); /** *
     * Partner that owns this device.
     * 
* * .bloombox.partner.LocationKey location = 2; */ io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder(); /** *
     * Type of the device this record represents.
     * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ int getTypeValue(); /** *
     * Type of the device this record represents.
     * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType getType(); /** *
     * Flags for this device.
     * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ boolean hasFlags(); /** *
     * Flags for this device.
     * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags getFlags(); /** *
     * Flags for this device.
     * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder getFlagsOrBuilder(); /** *
     * Device-specific information.
     * 
* * .opencannabis.device.Device device = 5; */ boolean hasDevice(); /** *
     * Device-specific information.
     * 
* * .opencannabis.device.Device device = 5; */ io.opencannabis.schema.device.Device getDevice(); /** *
     * Device-specific information.
     * 
* * .opencannabis.device.Device device = 5; */ io.opencannabis.schema.device.DeviceOrBuilder getDeviceOrBuilder(); /** *
     * Timestamp for the last time this device was "seen" on the API.
     * 
* * .opencannabis.temporal.Instant seen = 6; */ boolean hasSeen(); /** *
     * Timestamp for the last time this device was "seen" on the API.
     * 
* * .opencannabis.temporal.Instant seen = 6; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getSeen(); /** *
     * Timestamp for the last time this device was "seen" on the API.
     * 
* * .opencannabis.temporal.Instant seen = 6; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getSeenOrBuilder(); /** *
     * Timestamp for when this device originally registered.
     * 
* * .opencannabis.temporal.Instant registered = 7; */ boolean hasRegistered(); /** *
     * Timestamp for when this device originally registered.
     * 
* * .opencannabis.temporal.Instant registered = 7; */ io.opencannabis.schema.temporal.TemporalInstant.Instant getRegistered(); /** *
     * Timestamp for when this device originally registered.
     * 
* * .opencannabis.temporal.Instant registered = 7; */ io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRegisteredOrBuilder(); } /** *
   * Specifies the structure of partner co-located device records.
   * 
* * Protobuf type {@code bloombox.partner.PartnerDevice} */ public static final class PartnerDevice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.partner.PartnerDevice) PartnerDeviceOrBuilder { private static final long serialVersionUID = 0L; // Use PartnerDevice.newBuilder() to construct. private PartnerDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartnerDevice() { uuid_ = ""; type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PartnerDevice( 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.partner.LocationAccountKey.LocationKey.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(io.bloombox.schema.partner.LocationAccountKey.LocationKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 24: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 34: { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder subBuilder = null; if (flags_ != null) { subBuilder = flags_.toBuilder(); } flags_ = input.readMessage(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flags_); flags_ = subBuilder.buildPartial(); } break; } case 42: { io.opencannabis.schema.device.Device.Builder subBuilder = null; if (device_ != null) { subBuilder = device_.toBuilder(); } device_ = input.readMessage(io.opencannabis.schema.device.Device.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(device_); device_ = subBuilder.buildPartial(); } break; } case 50: { 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 58: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (registered_ != null) { subBuilder = registered_.toBuilder(); } registered_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(registered_); registered_ = 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.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDevice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDevice_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.PartnerDevices.PartnerDevice.class, io.bloombox.schema.partner.PartnerDevices.PartnerDevice.Builder.class); } public static final int UUID_FIELD_NUMBER = 1; private volatile java.lang.Object uuid_; /** *
     * Unique ID for this partner device.
     * 
* * 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; } } /** *
     * Unique ID for this partner device.
     * 
* * 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 LOCATION_FIELD_NUMBER = 2; private io.bloombox.schema.partner.LocationAccountKey.LocationKey location_; /** *
     * Partner that owns this device.
     * 
* * .bloombox.partner.LocationKey location = 2; */ public boolean hasLocation() { return location_ != null; } /** *
     * Partner that owns this device.
     * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } /** *
     * Partner that owns this device.
     * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** *
     * Type of the device this record represents.
     * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public int getTypeValue() { return type_; } /** *
     * Type of the device this record represents.
     * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType getType() { @SuppressWarnings("deprecation") io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType result = io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType.valueOf(type_); return result == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType.UNRECOGNIZED : result; } public static final int FLAGS_FIELD_NUMBER = 4; private io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags flags_; /** *
     * Flags for this device.
     * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public boolean hasFlags() { return flags_ != null; } /** *
     * Flags for this device.
     * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags getFlags() { return flags_ == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.getDefaultInstance() : flags_; } /** *
     * Flags for this device.
     * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder getFlagsOrBuilder() { return getFlags(); } public static final int DEVICE_FIELD_NUMBER = 5; private io.opencannabis.schema.device.Device device_; /** *
     * Device-specific information.
     * 
* * .opencannabis.device.Device device = 5; */ public boolean hasDevice() { return device_ != null; } /** *
     * Device-specific information.
     * 
* * .opencannabis.device.Device device = 5; */ public io.opencannabis.schema.device.Device getDevice() { return device_ == null ? io.opencannabis.schema.device.Device.getDefaultInstance() : device_; } /** *
     * Device-specific information.
     * 
* * .opencannabis.device.Device device = 5; */ public io.opencannabis.schema.device.DeviceOrBuilder getDeviceOrBuilder() { return getDevice(); } public static final int SEEN_FIELD_NUMBER = 6; private io.opencannabis.schema.temporal.TemporalInstant.Instant seen_; /** *
     * Timestamp for the last time this device was "seen" on the API.
     * 
* * .opencannabis.temporal.Instant seen = 6; */ public boolean hasSeen() { return seen_ != null; } /** *
     * Timestamp for the last time this device was "seen" on the API.
     * 
* * .opencannabis.temporal.Instant seen = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getSeen() { return seen_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : seen_; } /** *
     * Timestamp for the last time this device was "seen" on the API.
     * 
* * .opencannabis.temporal.Instant seen = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getSeenOrBuilder() { return getSeen(); } public static final int REGISTERED_FIELD_NUMBER = 7; private io.opencannabis.schema.temporal.TemporalInstant.Instant registered_; /** *
     * Timestamp for when this device originally registered.
     * 
* * .opencannabis.temporal.Instant registered = 7; */ public boolean hasRegistered() { return registered_ != null; } /** *
     * Timestamp for when this device originally registered.
     * 
* * .opencannabis.temporal.Instant registered = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRegistered() { return registered_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : registered_; } /** *
     * Timestamp for when this device originally registered.
     * 
* * .opencannabis.temporal.Instant registered = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRegisteredOrBuilder() { return getRegistered(); } 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 (location_ != null) { output.writeMessage(2, getLocation()); } if (type_ != io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType.UNSPECIFIED_DEVICE_TYPE.getNumber()) { output.writeEnum(3, type_); } if (flags_ != null) { output.writeMessage(4, getFlags()); } if (device_ != null) { output.writeMessage(5, getDevice()); } if (seen_ != null) { output.writeMessage(6, getSeen()); } if (registered_ != null) { output.writeMessage(7, getRegistered()); } 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 (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocation()); } if (type_ != io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType.UNSPECIFIED_DEVICE_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (flags_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFlags()); } if (device_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDevice()); } if (seen_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSeen()); } if (registered_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getRegistered()); } 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.partner.PartnerDevices.PartnerDevice)) { return super.equals(obj); } io.bloombox.schema.partner.PartnerDevices.PartnerDevice other = (io.bloombox.schema.partner.PartnerDevices.PartnerDevice) obj; if (!getUuid() .equals(other.getUuid())) return false; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (type_ != other.type_) return false; if (hasFlags() != other.hasFlags()) return false; if (hasFlags()) { if (!getFlags() .equals(other.getFlags())) return false; } if (hasDevice() != other.hasDevice()) return false; if (hasDevice()) { if (!getDevice() .equals(other.getDevice())) return false; } if (hasSeen() != other.hasSeen()) return false; if (hasSeen()) { if (!getSeen() .equals(other.getSeen())) return false; } if (hasRegistered() != other.hasRegistered()) return false; if (hasRegistered()) { if (!getRegistered() .equals(other.getRegistered())) 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(); hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasFlags()) { hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlags().hashCode(); } if (hasDevice()) { hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); } if (hasSeen()) { hash = (37 * hash) + SEEN_FIELD_NUMBER; hash = (53 * hash) + getSeen().hashCode(); } if (hasRegistered()) { hash = (37 * hash) + REGISTERED_FIELD_NUMBER; hash = (53 * hash) + getRegistered().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice 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.partner.PartnerDevices.PartnerDevice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice 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.partner.PartnerDevices.PartnerDevice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice 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.partner.PartnerDevices.PartnerDevice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice 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.partner.PartnerDevices.PartnerDevice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice 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.partner.PartnerDevices.PartnerDevice 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 structure of partner co-located device records.
     * 
* * Protobuf type {@code bloombox.partner.PartnerDevice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.partner.PartnerDevice) io.bloombox.schema.partner.PartnerDevices.PartnerDeviceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDevice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDevice_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.PartnerDevices.PartnerDevice.class, io.bloombox.schema.partner.PartnerDevices.PartnerDevice.Builder.class); } // Construct using io.bloombox.schema.partner.PartnerDevices.PartnerDevice.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 (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } type_ = 0; if (flagsBuilder_ == null) { flags_ = null; } else { flags_ = null; flagsBuilder_ = null; } if (deviceBuilder_ == null) { device_ = null; } else { device_ = null; deviceBuilder_ = null; } if (seenBuilder_ == null) { seen_ = null; } else { seen_ = null; seenBuilder_ = null; } if (registeredBuilder_ == null) { registered_ = null; } else { registered_ = null; registeredBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDevice_descriptor; } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDevice getDefaultInstanceForType() { return io.bloombox.schema.partner.PartnerDevices.PartnerDevice.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDevice build() { io.bloombox.schema.partner.PartnerDevices.PartnerDevice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDevice buildPartial() { io.bloombox.schema.partner.PartnerDevices.PartnerDevice result = new io.bloombox.schema.partner.PartnerDevices.PartnerDevice(this); result.uuid_ = uuid_; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.type_ = type_; if (flagsBuilder_ == null) { result.flags_ = flags_; } else { result.flags_ = flagsBuilder_.build(); } if (deviceBuilder_ == null) { result.device_ = device_; } else { result.device_ = deviceBuilder_.build(); } if (seenBuilder_ == null) { result.seen_ = seen_; } else { result.seen_ = seenBuilder_.build(); } if (registeredBuilder_ == null) { result.registered_ = registered_; } else { result.registered_ = registeredBuilder_.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.partner.PartnerDevices.PartnerDevice) { return mergeFrom((io.bloombox.schema.partner.PartnerDevices.PartnerDevice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.partner.PartnerDevices.PartnerDevice other) { if (other == io.bloombox.schema.partner.PartnerDevices.PartnerDevice.getDefaultInstance()) return this; if (!other.getUuid().isEmpty()) { uuid_ = other.uuid_; onChanged(); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasFlags()) { mergeFlags(other.getFlags()); } if (other.hasDevice()) { mergeDevice(other.getDevice()); } if (other.hasSeen()) { mergeSeen(other.getSeen()); } if (other.hasRegistered()) { mergeRegistered(other.getRegistered()); } 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.partner.PartnerDevices.PartnerDevice parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.partner.PartnerDevices.PartnerDevice) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object uuid_ = ""; /** *
       * Unique ID for this partner device.
       * 
* * 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; } } /** *
       * Unique ID for this partner device.
       * 
* * 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; } } /** *
       * Unique ID for this partner device.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder setUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** *
       * Unique ID for this partner device.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** *
       * Unique ID for this partner device.
       * 
* * 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.partner.LocationAccountKey.LocationKey location_; 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_; /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { if (locationBuilder_ == null) { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder setLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder setLocation( io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder mergeLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } } /** *
       * Partner that owns this device.
       * 
* * .bloombox.partner.LocationKey location = 2; */ 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) { 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>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private int type_ = 0; /** *
       * Type of the device this record represents.
       * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public int getTypeValue() { return type_; } /** *
       * Type of the device this record represents.
       * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * Type of the device this record represents.
       * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType getType() { @SuppressWarnings("deprecation") io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType result = io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType.valueOf(type_); return result == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType.UNRECOGNIZED : result; } /** *
       * Type of the device this record represents.
       * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public Builder setType(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of the device this record represents.
       * 
* * .bloombox.partner.PartnerDeviceType type = 3; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags flags_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder> flagsBuilder_; /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public boolean hasFlags() { return flagsBuilder_ != null || flags_ != null; } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags getFlags() { if (flagsBuilder_ == null) { return flags_ == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.getDefaultInstance() : flags_; } else { return flagsBuilder_.getMessage(); } } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public Builder setFlags(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flags_ = value; onChanged(); } else { flagsBuilder_.setMessage(value); } return this; } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public Builder setFlags( io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder builderForValue) { if (flagsBuilder_ == null) { flags_ = builderForValue.build(); onChanged(); } else { flagsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public Builder mergeFlags(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags value) { if (flagsBuilder_ == null) { if (flags_ != null) { flags_ = io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.newBuilder(flags_).mergeFrom(value).buildPartial(); } else { flags_ = value; } onChanged(); } else { flagsBuilder_.mergeFrom(value); } return this; } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = null; onChanged(); } else { flags_ = null; flagsBuilder_ = null; } return this; } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder getFlagsBuilder() { onChanged(); return getFlagsFieldBuilder().getBuilder(); } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder getFlagsOrBuilder() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilder(); } else { return flags_ == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.getDefaultInstance() : flags_; } } /** *
       * Flags for this device.
       * 
* * .bloombox.partner.PartnerDeviceFlags flags = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder>( getFlags(), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } private io.opencannabis.schema.device.Device device_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.device.Device, io.opencannabis.schema.device.Device.Builder, io.opencannabis.schema.device.DeviceOrBuilder> deviceBuilder_; /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public boolean hasDevice() { return deviceBuilder_ != null || device_ != null; } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public io.opencannabis.schema.device.Device getDevice() { if (deviceBuilder_ == null) { return device_ == null ? io.opencannabis.schema.device.Device.getDefaultInstance() : device_; } else { return deviceBuilder_.getMessage(); } } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public Builder setDevice(io.opencannabis.schema.device.Device value) { if (deviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); } else { deviceBuilder_.setMessage(value); } return this; } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public Builder setDevice( io.opencannabis.schema.device.Device.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); } else { deviceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public Builder mergeDevice(io.opencannabis.schema.device.Device value) { if (deviceBuilder_ == null) { if (device_ != null) { device_ = io.opencannabis.schema.device.Device.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } onChanged(); } else { deviceBuilder_.mergeFrom(value); } return this; } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public Builder clearDevice() { if (deviceBuilder_ == null) { device_ = null; onChanged(); } else { device_ = null; deviceBuilder_ = null; } return this; } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public io.opencannabis.schema.device.Device.Builder getDeviceBuilder() { onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ public io.opencannabis.schema.device.DeviceOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { return device_ == null ? io.opencannabis.schema.device.Device.getDefaultInstance() : device_; } } /** *
       * Device-specific information.
       * 
* * .opencannabis.device.Device device = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.device.Device, io.opencannabis.schema.device.Device.Builder, io.opencannabis.schema.device.DeviceOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.device.Device, io.opencannabis.schema.device.Device.Builder, io.opencannabis.schema.device.DeviceOrBuilder>( getDevice(), getParentForChildren(), isClean()); device_ = null; } return deviceBuilder_; } 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_; /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ public boolean hasSeen() { return seenBuilder_ != null || seen_ != null; } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ 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(); } } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ 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; } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ 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; } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ 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; } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ public Builder clearSeen() { if (seenBuilder_ == null) { seen_ = null; onChanged(); } else { seen_ = null; seenBuilder_ = null; } return this; } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getSeenBuilder() { onChanged(); return getSeenFieldBuilder().getBuilder(); } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ 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_; } } /** *
       * Timestamp for the last time this device was "seen" on the API.
       * 
* * .opencannabis.temporal.Instant seen = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> 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 registered_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> registeredBuilder_; /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public boolean hasRegistered() { return registeredBuilder_ != null || registered_ != null; } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getRegistered() { if (registeredBuilder_ == null) { return registered_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : registered_; } else { return registeredBuilder_.getMessage(); } } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public Builder setRegistered(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (registeredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } registered_ = value; onChanged(); } else { registeredBuilder_.setMessage(value); } return this; } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public Builder setRegistered( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (registeredBuilder_ == null) { registered_ = builderForValue.build(); onChanged(); } else { registeredBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public Builder mergeRegistered(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (registeredBuilder_ == null) { if (registered_ != null) { registered_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(registered_).mergeFrom(value).buildPartial(); } else { registered_ = value; } onChanged(); } else { registeredBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public Builder clearRegistered() { if (registeredBuilder_ == null) { registered_ = null; onChanged(); } else { registered_ = null; registeredBuilder_ = null; } return this; } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getRegisteredBuilder() { onChanged(); return getRegisteredFieldBuilder().getBuilder(); } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getRegisteredOrBuilder() { if (registeredBuilder_ != null) { return registeredBuilder_.getMessageOrBuilder(); } else { return registered_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : registered_; } } /** *
       * Timestamp for when this device originally registered.
       * 
* * .opencannabis.temporal.Instant registered = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getRegisteredFieldBuilder() { if (registeredBuilder_ == null) { registeredBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getRegistered(), getParentForChildren(), isClean()); registered_ = null; } return registeredBuilder_; } @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.partner.PartnerDevice) } // @@protoc_insertion_point(class_scope:bloombox.partner.PartnerDevice) private static final io.bloombox.schema.partner.PartnerDevices.PartnerDevice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.partner.PartnerDevices.PartnerDevice(); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDevice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartnerDevice parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PartnerDevice(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.partner.PartnerDevices.PartnerDevice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartnerDeviceFlagsOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.partner.PartnerDeviceFlags) com.google.protobuf.MessageOrBuilder { /** *
     * Indicates this device is active, or inactive.
     * 
* * bool active = 1; */ boolean getActive(); /** *
     * Indicates this device is suspended.
     * 
* * bool suspended = 2; */ boolean getSuspended(); /** *
     * Indicates this device has beta access.
     * 
* * bool beta = 3; */ boolean getBeta(); /** *
     * Indicates this device has sandbox access.
     * 
* * bool sandbox = 4; */ boolean getSandbox(); } /** *
   * Enumerates flags that may be applied to partner co-located devices.
   * 
* * Protobuf type {@code bloombox.partner.PartnerDeviceFlags} */ public static final class PartnerDeviceFlags extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.partner.PartnerDeviceFlags) PartnerDeviceFlagsOrBuilder { private static final long serialVersionUID = 0L; // Use PartnerDeviceFlags.newBuilder() to construct. private PartnerDeviceFlags(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartnerDeviceFlags() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PartnerDeviceFlags( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { active_ = input.readBool(); break; } case 16: { suspended_ = input.readBool(); break; } case 24: { beta_ = input.readBool(); break; } case 32: { sandbox_ = input.readBool(); 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.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.class, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder.class); } public static final int ACTIVE_FIELD_NUMBER = 1; private boolean active_; /** *
     * Indicates this device is active, or inactive.
     * 
* * bool active = 1; */ public boolean getActive() { return active_; } public static final int SUSPENDED_FIELD_NUMBER = 2; private boolean suspended_; /** *
     * Indicates this device is suspended.
     * 
* * bool suspended = 2; */ public boolean getSuspended() { return suspended_; } public static final int BETA_FIELD_NUMBER = 3; private boolean beta_; /** *
     * Indicates this device has beta access.
     * 
* * bool beta = 3; */ public boolean getBeta() { return beta_; } public static final int SANDBOX_FIELD_NUMBER = 4; private boolean sandbox_; /** *
     * Indicates this device has sandbox access.
     * 
* * bool sandbox = 4; */ public boolean getSandbox() { return sandbox_; } 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 (active_ != false) { output.writeBool(1, active_); } if (suspended_ != false) { output.writeBool(2, suspended_); } if (beta_ != false) { output.writeBool(3, beta_); } if (sandbox_ != false) { output.writeBool(4, sandbox_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (active_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, active_); } if (suspended_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, suspended_); } if (beta_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, beta_); } if (sandbox_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, sandbox_); } 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.partner.PartnerDevices.PartnerDeviceFlags)) { return super.equals(obj); } io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags other = (io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags) obj; if (getActive() != other.getActive()) return false; if (getSuspended() != other.getSuspended()) return false; if (getBeta() != other.getBeta()) return false; if (getSandbox() != other.getSandbox()) 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(); hash = (37 * hash) + ACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getActive()); hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSuspended()); hash = (37 * hash) + BETA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBeta()); hash = (37 * hash) + SANDBOX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSandbox()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags 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.partner.PartnerDevices.PartnerDeviceFlags parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags 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.partner.PartnerDevices.PartnerDeviceFlags parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags 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.partner.PartnerDevices.PartnerDeviceFlags parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags 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.partner.PartnerDevices.PartnerDeviceFlags parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags 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.partner.PartnerDevices.PartnerDeviceFlags 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; } /** *
     * Enumerates flags that may be applied to partner co-located devices.
     * 
* * Protobuf type {@code bloombox.partner.PartnerDeviceFlags} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.partner.PartnerDeviceFlags) io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlagsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.class, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.Builder.class); } // Construct using io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.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(); active_ = false; suspended_ = false; beta_ = false; sandbox_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.partner.PartnerDevices.internal_static_bloombox_partner_PartnerDeviceFlags_descriptor; } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags getDefaultInstanceForType() { return io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags build() { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags buildPartial() { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags result = new io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags(this); result.active_ = active_; result.suspended_ = suspended_; result.beta_ = beta_; result.sandbox_ = sandbox_; 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.partner.PartnerDevices.PartnerDeviceFlags) { return mergeFrom((io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags other) { if (other == io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags.getDefaultInstance()) return this; if (other.getActive() != false) { setActive(other.getActive()); } if (other.getSuspended() != false) { setSuspended(other.getSuspended()); } if (other.getBeta() != false) { setBeta(other.getBeta()); } if (other.getSandbox() != false) { setSandbox(other.getSandbox()); } 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.partner.PartnerDevices.PartnerDeviceFlags parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean active_ ; /** *
       * Indicates this device is active, or inactive.
       * 
* * bool active = 1; */ public boolean getActive() { return active_; } /** *
       * Indicates this device is active, or inactive.
       * 
* * bool active = 1; */ public Builder setActive(boolean value) { active_ = value; onChanged(); return this; } /** *
       * Indicates this device is active, or inactive.
       * 
* * bool active = 1; */ public Builder clearActive() { active_ = false; onChanged(); return this; } private boolean suspended_ ; /** *
       * Indicates this device is suspended.
       * 
* * bool suspended = 2; */ public boolean getSuspended() { return suspended_; } /** *
       * Indicates this device is suspended.
       * 
* * bool suspended = 2; */ public Builder setSuspended(boolean value) { suspended_ = value; onChanged(); return this; } /** *
       * Indicates this device is suspended.
       * 
* * bool suspended = 2; */ public Builder clearSuspended() { suspended_ = false; onChanged(); return this; } private boolean beta_ ; /** *
       * Indicates this device has beta access.
       * 
* * bool beta = 3; */ public boolean getBeta() { return beta_; } /** *
       * Indicates this device has beta access.
       * 
* * bool beta = 3; */ public Builder setBeta(boolean value) { beta_ = value; onChanged(); return this; } /** *
       * Indicates this device has beta access.
       * 
* * bool beta = 3; */ public Builder clearBeta() { beta_ = false; onChanged(); return this; } private boolean sandbox_ ; /** *
       * Indicates this device has sandbox access.
       * 
* * bool sandbox = 4; */ public boolean getSandbox() { return sandbox_; } /** *
       * Indicates this device has sandbox access.
       * 
* * bool sandbox = 4; */ public Builder setSandbox(boolean value) { sandbox_ = value; onChanged(); return this; } /** *
       * Indicates this device has sandbox access.
       * 
* * bool sandbox = 4; */ public Builder clearSandbox() { sandbox_ = false; onChanged(); return this; } @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.partner.PartnerDeviceFlags) } // @@protoc_insertion_point(class_scope:bloombox.partner.PartnerDeviceFlags) private static final io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags(); } public static io.bloombox.schema.partner.PartnerDevices.PartnerDeviceFlags getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartnerDeviceFlags parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PartnerDeviceFlags(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.partner.PartnerDevices.PartnerDeviceFlags getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_partner_PartnerDeviceKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_partner_PartnerDeviceKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_partner_PartnerDevice_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_partner_PartnerDevice_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_partner_PartnerDeviceFlags_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_partner_PartnerDeviceFlags_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\033partner/PartnerDevice.proto\022\020bloombox." + "partner\032\024core/Datamodel.proto\032\026temporal/" + "Instant.proto\032\023device/Device.proto\032\031part" + "ner/LocationKey.proto\"Y\n\020PartnerDeviceKe" + "y\022/\n\010location\030\001 \001(\0132\035.bloombox.partner.L" + "ocationKey\022\024\n\004uuid\030\002 \001(\tB\006\302\265\003\002\010\002\"\315\002\n\rPar" + "tnerDevice\022\024\n\004uuid\030\001 \001(\tB\006\302\265\003\002\010\002\022/\n\010loca" + "tion\030\002 \001(\0132\035.bloombox.partner.LocationKe" + "y\0221\n\004type\030\003 \001(\0162#.bloombox.partner.Partn" + "erDeviceType\0223\n\005flags\030\004 \001(\0132$.bloombox.p" + "artner.PartnerDeviceFlags\022+\n\006device\030\005 \001(" + "\0132\033.opencannabis.device.Device\022,\n\004seen\030\006" + " \001(\0132\036.opencannabis.temporal.Instant\0222\n\n" + "registered\030\007 \001(\0132\036.opencannabis.temporal" + ".Instant\"V\n\022PartnerDeviceFlags\022\016\n\006active" + "\030\001 \001(\010\022\021\n\tsuspended\030\002 \001(\010\022\014\n\004beta\030\003 \001(\010\022" + "\017\n\007sandbox\030\004 \001(\010*\223\001\n\021PartnerDeviceType\022\033" + "\n\027UNSPECIFIED_DEVICE_TYPE\020\000\022\014\n\010INTERNAL\020" + "\001\022\017\n\013MENU_TABLET\020\n\022\013\n\007MENU_TV\020\013\022\023\n\017CHECK" + "IN_STATION\020\024\022\016\n\nCHECKIN_TV\020\025\022\020\n\014POS_REGI" + "STER\020\036B6\n\032io.bloombox.schema.partnerB\016Pa" + "rtnerDevicesH\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[] { core.Datamodel.getDescriptor(), io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(), io.opencannabis.schema.device.DeviceOuterClass.getDescriptor(), io.bloombox.schema.partner.LocationAccountKey.getDescriptor(), }, assigner); internal_static_bloombox_partner_PartnerDeviceKey_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_partner_PartnerDeviceKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_partner_PartnerDeviceKey_descriptor, new java.lang.String[] { "Location", "Uuid", }); internal_static_bloombox_partner_PartnerDevice_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_bloombox_partner_PartnerDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_partner_PartnerDevice_descriptor, new java.lang.String[] { "Uuid", "Location", "Type", "Flags", "Device", "Seen", "Registered", }); internal_static_bloombox_partner_PartnerDeviceFlags_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_bloombox_partner_PartnerDeviceFlags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_partner_PartnerDeviceFlags_descriptor, new java.lang.String[] { "Active", "Suspended", "Beta", "Sandbox", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(core.Datamodel.field); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); core.Datamodel.getDescriptor(); io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(); io.opencannabis.schema.device.DeviceOuterClass.getDescriptor(); io.bloombox.schema.partner.LocationAccountKey.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy