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

io.bloombox.schema.telemetry.context.LibraryContext Maven / Gradle / Ivy

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: analytics/context/Library.proto

package io.bloombox.schema.telemetry.context;

public final class LibraryContext {
  private LibraryContext() {}
  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 known API client libraries, produced internally by Bloombox.
   * 
* * Protobuf enum {@code bloombox.analytics.context.APIClient} */ public enum APIClient implements com.google.protobuf.ProtocolMessageEnum { /** *
     * The underlying library specified no known API client library.
     * 
* * UNIDENTIFIED = 0; */ UNIDENTIFIED(0), /** *
     * The underlying library is the official Bloombox JS Client.
     * 
* * JAVA_SCRIPT = 1; */ JAVA_SCRIPT(1), /** *
     * The underlying library is the official Bloombox Swift Client.
     * 
* * SWIFT = 2; */ SWIFT(2), /** *
     * The underlying library is the official Bloombox Java Client.
     * 
* * JAVA = 3; */ JAVA(3), UNRECOGNIZED(-1), ; /** *
     * The underlying library specified no known API client library.
     * 
* * UNIDENTIFIED = 0; */ public static final int UNIDENTIFIED_VALUE = 0; /** *
     * The underlying library is the official Bloombox JS Client.
     * 
* * JAVA_SCRIPT = 1; */ public static final int JAVA_SCRIPT_VALUE = 1; /** *
     * The underlying library is the official Bloombox Swift Client.
     * 
* * SWIFT = 2; */ public static final int SWIFT_VALUE = 2; /** *
     * The underlying library is the official Bloombox Java Client.
     * 
* * JAVA = 3; */ public static final int JAVA_VALUE = 3; 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 APIClient valueOf(int value) { return forNumber(value); } public static APIClient forNumber(int value) { switch (value) { case 0: return UNIDENTIFIED; case 1: return JAVA_SCRIPT; case 2: return SWIFT; case 3: return JAVA; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< APIClient> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public APIClient findValueByNumber(int number) { return APIClient.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.telemetry.context.LibraryContext.getDescriptor().getEnumTypes().get(0); } private static final APIClient[] VALUES = values(); public static APIClient 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 APIClient(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.analytics.context.APIClient) } public interface DeviceLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.analytics.context.DeviceLibrary) com.google.protobuf.MessageOrBuilder { /** *
     * Variant name of the library being used to transmit data.
     * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ java.lang.String getVariant(); /** *
     * Variant name of the library being used to transmit data.
     * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ com.google.protobuf.ByteString getVariantBytes(); /** *
     * Version specification for the library being used to transmit data.
     * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ boolean hasVersion(); /** *
     * Version specification for the library being used to transmit data.
     * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ io.opencannabis.schema.struct.VersionSpec getVersion(); /** *
     * Version specification for the library being used to transmit data.
     * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ io.opencannabis.schema.struct.VersionSpecOrBuilder getVersionOrBuilder(); /** *
     * Specifies, if applicable, the internally-produced client library in use.
     * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ int getClientValue(); /** *
     * Specifies, if applicable, the internally-produced client library in use.
     * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ io.bloombox.schema.telemetry.context.LibraryContext.APIClient getClient(); } /** *
   * Specifies information about the library being used to transmit data.
   * 
* * Protobuf type {@code bloombox.analytics.context.DeviceLibrary} */ public static final class DeviceLibrary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.analytics.context.DeviceLibrary) DeviceLibraryOrBuilder { private static final long serialVersionUID = 0L; // Use DeviceLibrary.newBuilder() to construct. private DeviceLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeviceLibrary() { variant_ = ""; client_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeviceLibrary( 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(); variant_ = s; break; } case 18: { io.opencannabis.schema.struct.VersionSpec.Builder subBuilder = null; if (version_ != null) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(io.opencannabis.schema.struct.VersionSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } break; } case 24: { int rawValue = input.readEnum(); client_ = rawValue; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.telemetry.context.LibraryContext.internal_static_bloombox_analytics_context_DeviceLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.telemetry.context.LibraryContext.internal_static_bloombox_analytics_context_DeviceLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.class, io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.Builder.class); } public static final int VARIANT_FIELD_NUMBER = 1; private volatile java.lang.Object variant_; /** *
     * Variant name of the library being used to transmit data.
     * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public java.lang.String getVariant() { java.lang.Object ref = variant_; 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(); variant_ = s; return s; } } /** *
     * Variant name of the library being used to transmit data.
     * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public com.google.protobuf.ByteString getVariantBytes() { java.lang.Object ref = variant_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); variant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 2; private io.opencannabis.schema.struct.VersionSpec version_; /** *
     * Version specification for the library being used to transmit data.
     * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public boolean hasVersion() { return version_ != null; } /** *
     * Version specification for the library being used to transmit data.
     * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public io.opencannabis.schema.struct.VersionSpec getVersion() { return version_ == null ? io.opencannabis.schema.struct.VersionSpec.getDefaultInstance() : version_; } /** *
     * Version specification for the library being used to transmit data.
     * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public io.opencannabis.schema.struct.VersionSpecOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int CLIENT_FIELD_NUMBER = 3; private int client_; /** *
     * Specifies, if applicable, the internally-produced client library in use.
     * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public int getClientValue() { return client_; } /** *
     * Specifies, if applicable, the internally-produced client library in use.
     * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public io.bloombox.schema.telemetry.context.LibraryContext.APIClient getClient() { @SuppressWarnings("deprecation") io.bloombox.schema.telemetry.context.LibraryContext.APIClient result = io.bloombox.schema.telemetry.context.LibraryContext.APIClient.valueOf(client_); return result == null ? io.bloombox.schema.telemetry.context.LibraryContext.APIClient.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVariantBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, variant_); } if (version_ != null) { output.writeMessage(2, getVersion()); } if (client_ != io.bloombox.schema.telemetry.context.LibraryContext.APIClient.UNIDENTIFIED.getNumber()) { output.writeEnum(3, client_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getVariantBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, variant_); } if (version_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getVersion()); } if (client_ != io.bloombox.schema.telemetry.context.LibraryContext.APIClient.UNIDENTIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, client_); } 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.telemetry.context.LibraryContext.DeviceLibrary)) { return super.equals(obj); } io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary other = (io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary) obj; boolean result = true; result = result && getVariant() .equals(other.getVariant()); result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && getVersion() .equals(other.getVersion()); } result = result && client_ == other.client_; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VARIANT_FIELD_NUMBER; hash = (53 * hash) + getVariant().hashCode(); if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } hash = (37 * hash) + CLIENT_FIELD_NUMBER; hash = (53 * hash) + client_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary 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.telemetry.context.LibraryContext.DeviceLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary 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.telemetry.context.LibraryContext.DeviceLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary 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.telemetry.context.LibraryContext.DeviceLibrary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary 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.telemetry.context.LibraryContext.DeviceLibrary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary 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.telemetry.context.LibraryContext.DeviceLibrary 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 information about the library being used to transmit data.
     * 
* * Protobuf type {@code bloombox.analytics.context.DeviceLibrary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.analytics.context.DeviceLibrary) io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibraryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.telemetry.context.LibraryContext.internal_static_bloombox_analytics_context_DeviceLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.telemetry.context.LibraryContext.internal_static_bloombox_analytics_context_DeviceLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.class, io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.Builder.class); } // Construct using io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.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(); variant_ = ""; if (versionBuilder_ == null) { version_ = null; } else { version_ = null; versionBuilder_ = null; } client_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.telemetry.context.LibraryContext.internal_static_bloombox_analytics_context_DeviceLibrary_descriptor; } @java.lang.Override public io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary getDefaultInstanceForType() { return io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary build() { io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary buildPartial() { io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary result = new io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary(this); result.variant_ = variant_; if (versionBuilder_ == null) { result.version_ = version_; } else { result.version_ = versionBuilder_.build(); } result.client_ = client_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary) { return mergeFrom((io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary other) { if (other == io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary.getDefaultInstance()) return this; if (!other.getVariant().isEmpty()) { variant_ = other.variant_; onChanged(); } if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (other.client_ != 0) { setClientValue(other.getClientValue()); } 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.telemetry.context.LibraryContext.DeviceLibrary parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object variant_ = ""; /** *
       * Variant name of the library being used to transmit data.
       * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public java.lang.String getVariant() { java.lang.Object ref = variant_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); variant_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Variant name of the library being used to transmit data.
       * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public com.google.protobuf.ByteString getVariantBytes() { java.lang.Object ref = variant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); variant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Variant name of the library being used to transmit data.
       * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public Builder setVariant( java.lang.String value) { if (value == null) { throw new NullPointerException(); } variant_ = value; onChanged(); return this; } /** *
       * Variant name of the library being used to transmit data.
       * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public Builder clearVariant() { variant_ = getDefaultInstance().getVariant(); onChanged(); return this; } /** *
       * Variant name of the library being used to transmit data.
       * 
* * string variant = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Variant name of the library being used to transmit data."]; */ public Builder setVariantBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); variant_ = value; onChanged(); return this; } private io.opencannabis.schema.struct.VersionSpec version_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.struct.VersionSpec, io.opencannabis.schema.struct.VersionSpec.Builder, io.opencannabis.schema.struct.VersionSpecOrBuilder> versionBuilder_; /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public io.opencannabis.schema.struct.VersionSpec getVersion() { if (versionBuilder_ == null) { return version_ == null ? io.opencannabis.schema.struct.VersionSpec.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public Builder setVersion(io.opencannabis.schema.struct.VersionSpec value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); } else { versionBuilder_.setMessage(value); } return this; } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public Builder setVersion( io.opencannabis.schema.struct.VersionSpec.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public Builder mergeVersion(io.opencannabis.schema.struct.VersionSpec value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = io.opencannabis.schema.struct.VersionSpec.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } onChanged(); } else { versionBuilder_.mergeFrom(value); } return this; } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = null; onChanged(); } else { version_ = null; versionBuilder_ = null; } return this; } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public io.opencannabis.schema.struct.VersionSpec.Builder getVersionBuilder() { onChanged(); return getVersionFieldBuilder().getBuilder(); } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ public io.opencannabis.schema.struct.VersionSpecOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_ == null ? io.opencannabis.schema.struct.VersionSpec.getDefaultInstance() : version_; } } /** *
       * Version specification for the library being used to transmit data.
       * 
* * .opencannabis.structs.VersionSpec version = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Version specification for the library being used to transmit data."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.struct.VersionSpec, io.opencannabis.schema.struct.VersionSpec.Builder, io.opencannabis.schema.struct.VersionSpecOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.struct.VersionSpec, io.opencannabis.schema.struct.VersionSpec.Builder, io.opencannabis.schema.struct.VersionSpecOrBuilder>( getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } private int client_ = 0; /** *
       * Specifies, if applicable, the internally-produced client library in use.
       * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public int getClientValue() { return client_; } /** *
       * Specifies, if applicable, the internally-produced client library in use.
       * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public Builder setClientValue(int value) { client_ = value; onChanged(); return this; } /** *
       * Specifies, if applicable, the internally-produced client library in use.
       * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public io.bloombox.schema.telemetry.context.LibraryContext.APIClient getClient() { @SuppressWarnings("deprecation") io.bloombox.schema.telemetry.context.LibraryContext.APIClient result = io.bloombox.schema.telemetry.context.LibraryContext.APIClient.valueOf(client_); return result == null ? io.bloombox.schema.telemetry.context.LibraryContext.APIClient.UNRECOGNIZED : result; } /** *
       * Specifies, if applicable, the internally-produced client library in use.
       * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public Builder setClient(io.bloombox.schema.telemetry.context.LibraryContext.APIClient value) { if (value == null) { throw new NullPointerException(); } client_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies, if applicable, the internally-produced client library in use.
       * 
* * .bloombox.analytics.context.APIClient client = 3 [(.gen_bq_schema.description) = "Specifies which internal Bloombox library sent this event, if any."]; */ public Builder clearClient() { client_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.analytics.context.DeviceLibrary) } // @@protoc_insertion_point(class_scope:bloombox.analytics.context.DeviceLibrary) private static final io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary(); } public static io.bloombox.schema.telemetry.context.LibraryContext.DeviceLibrary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeviceLibrary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeviceLibrary(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.telemetry.context.LibraryContext.DeviceLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_analytics_context_DeviceLibrary_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_analytics_context_DeviceLibrary_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\037analytics/context/Library.proto\022\032bloom" + "box.analytics.context\032\016bq_field.proto\032\025s" + "tructs/Version.proto\"\334\002\n\rDeviceLibrary\022O" + "\n\007variant\030\001 \001(\tB>\360?\001\212@8Variant name of t" + "he library being used to transmit data.\022" + "|\n\007version\030\002 \001(\0132!.opencannabis.structs." + "VersionSpecBH\360?\001\212@BVersion specification" + " for the library being used to transmit " + "data.\022|\n\006client\030\003 \001(\0162%.bloombox.analyti" + "cs.context.APIClientBE\212@BSpecifies which" + " internal Bloombox library sent this eve" + "nt, if any.*C\n\tAPIClient\022\020\n\014UNIDENTIFIED" + "\020\000\022\017\n\013JAVA_SCRIPT\020\001\022\t\n\005SWIFT\020\002\022\010\n\004JAVA\020\003" + "B@\n$io.bloombox.schema.telemetry.context" + "B\016LibraryContextH\001P\000\242\002\003BBSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { gen_bq_schema.BqField.getDescriptor(), io.opencannabis.schema.struct.Version.getDescriptor(), }, assigner); internal_static_bloombox_analytics_context_DeviceLibrary_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_analytics_context_DeviceLibrary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_analytics_context_DeviceLibrary_descriptor, new java.lang.String[] { "Variant", "Version", "Client", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(gen_bq_schema.BqField.description); registry.add(gen_bq_schema.BqField.require); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); gen_bq_schema.BqField.getDescriptor(); io.opencannabis.schema.struct.Version.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy