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

com.passkit.grpc.Attributes Maven / Gradle / Ivy

Go to download

SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.

There is a newer version: 1.1.97
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/common/attributes.proto

package com.passkit.grpc;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code io.DeviceAttributes}
   */
  public enum DeviceAttributes
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NoAttributes = 0;
     */
    NoAttributes(0),
    /**
     * Ios = 1;
     */
    Ios(1),
    /**
     * Android = 2;
     */
    Android(2),
    /**
     * SupportWallet = 4;
     */
    SupportWallet(4),
    /**
     * WalletScanner = 8;
     */
    WalletScanner(8),
    /**
     * WalletDaemon = 16;
     */
    WalletDaemon(16),
    /**
     * WalletPasses = 32;
     */
    WalletPasses(32),
    /**
     * Windows = 64;
     */
    Windows(64),
    /**
     * OSX = 128;
     */
    OSX(128),
    /**
     * Linux = 256;
     */
    Linux(256),
    /**
     * Mobile = 512;
     */
    Mobile(512),
    /**
     * Desktop = 1024;
     */
    Desktop(1024),
    /**
     * Tablet = 2048;
     */
    Tablet(2048),
    /**
     * UnsupportedIos = 4096;
     */
    UnsupportedIos(4096),
    UNRECOGNIZED(-1),
    ;

    /**
     * NoAttributes = 0;
     */
    public static final int NoAttributes_VALUE = 0;
    /**
     * Ios = 1;
     */
    public static final int Ios_VALUE = 1;
    /**
     * Android = 2;
     */
    public static final int Android_VALUE = 2;
    /**
     * SupportWallet = 4;
     */
    public static final int SupportWallet_VALUE = 4;
    /**
     * WalletScanner = 8;
     */
    public static final int WalletScanner_VALUE = 8;
    /**
     * WalletDaemon = 16;
     */
    public static final int WalletDaemon_VALUE = 16;
    /**
     * WalletPasses = 32;
     */
    public static final int WalletPasses_VALUE = 32;
    /**
     * Windows = 64;
     */
    public static final int Windows_VALUE = 64;
    /**
     * OSX = 128;
     */
    public static final int OSX_VALUE = 128;
    /**
     * Linux = 256;
     */
    public static final int Linux_VALUE = 256;
    /**
     * Mobile = 512;
     */
    public static final int Mobile_VALUE = 512;
    /**
     * Desktop = 1024;
     */
    public static final int Desktop_VALUE = 1024;
    /**
     * Tablet = 2048;
     */
    public static final int Tablet_VALUE = 2048;
    /**
     * UnsupportedIos = 4096;
     */
    public static final int UnsupportedIos_VALUE = 4096;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static DeviceAttributes valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static DeviceAttributes forNumber(int value) {
      switch (value) {
        case 0: return NoAttributes;
        case 1: return Ios;
        case 2: return Android;
        case 4: return SupportWallet;
        case 8: return WalletScanner;
        case 16: return WalletDaemon;
        case 32: return WalletPasses;
        case 64: return Windows;
        case 128: return OSX;
        case 256: return Linux;
        case 512: return Mobile;
        case 1024: return Desktop;
        case 2048: return Tablet;
        case 4096: return UnsupportedIos;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        DeviceAttributes> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public DeviceAttributes findValueByNumber(int number) {
              return DeviceAttributes.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      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 com.passkit.grpc.Attributes.getDescriptor().getEnumTypes().get(0);
    }

    private static final DeviceAttributes[] VALUES = values();

    public static DeviceAttributes 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 DeviceAttributes(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:io.DeviceAttributes)
  }


  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\032io/common/attributes.proto\022\002io*\344\001\n\020Dev" +
      "iceAttributes\022\020\n\014NoAttributes\020\000\022\007\n\003Ios\020\001" +
      "\022\013\n\007Android\020\002\022\021\n\rSupportWallet\020\004\022\021\n\rWall" +
      "etScanner\020\010\022\020\n\014WalletDaemon\020\020\022\020\n\014WalletP" +
      "asses\020 \022\013\n\007Windows\020@\022\010\n\003OSX\020\200\001\022\n\n\005Linux\020" +
      "\200\002\022\013\n\006Mobile\020\200\004\022\014\n\007Desktop\020\200\010\022\013\n\006Tablet\020" +
      "\200\020\022\023\n\016UnsupportedIos\020\200 BG\n\020com.passkit.g" +
      "rpcZ$stash.passkit.com/io/model/sdk/go/i" +
      "o\252\002\014PassKit.Grpcb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy