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

com.factset.protobuf.stach.table.HorizontalAlignmentProto Maven / Gradle / Ivy

Go to download

Google Protocol buffer classes for FactSet STACH tabular format which represents complex multi-dimensional array of data. These classes help in the serialization and deserialization of STACH formatted data. See GitHub repository documentation for more information.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: fds/protobuf/stach/table/HorizontalAlignment.proto

package com.factset.protobuf.stach.table;

public final class HorizontalAlignmentProto {
  private HorizontalAlignmentProto() {}
  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 factset.protobuf.stach.table.HorizontalAlignment}
   */
  public enum HorizontalAlignment
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * UNKNOWN_HALIGN = 0;
     */
    UNKNOWN_HALIGN(0),
    /**
     * LEFT = 1;
     */
    LEFT(1),
    /**
     * CENTER = 2;
     */
    CENTER(2),
    /**
     * RIGHT = 3;
     */
    RIGHT(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * UNKNOWN_HALIGN = 0;
     */
    public static final int UNKNOWN_HALIGN_VALUE = 0;
    /**
     * LEFT = 1;
     */
    public static final int LEFT_VALUE = 1;
    /**
     * CENTER = 2;
     */
    public static final int CENTER_VALUE = 2;
    /**
     * RIGHT = 3;
     */
    public static final int RIGHT_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 HorizontalAlignment valueOf(int value) {
      return forNumber(value);
    }

    public static HorizontalAlignment forNumber(int value) {
      switch (value) {
        case 0: return UNKNOWN_HALIGN;
        case 1: return LEFT;
        case 2: return CENTER;
        case 3: return RIGHT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        HorizontalAlignment> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public HorizontalAlignment findValueByNumber(int number) {
              return HorizontalAlignment.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 com.factset.protobuf.stach.table.HorizontalAlignmentProto.getDescriptor().getEnumTypes().get(0);
    }

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

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

    // @@protoc_insertion_point(enum_scope:factset.protobuf.stach.table.HorizontalAlignment)
  }


  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n2fds/protobuf/stach/table/HorizontalAli" +
      "gnment.proto\022\034factset.protobuf.stach.tab" +
      "le*J\n\023HorizontalAlignment\022\022\n\016UNKNOWN_HAL" +
      "IGN\020\000\022\010\n\004LEFT\020\001\022\n\n\006CENTER\020\002\022\t\n\005RIGHT\020\003B[" +
      "\n com.factset.protobuf.stach.tableB\030Hori" +
      "zontalAlignmentProto\252\002\034FactSet.Protobuf." +
      "Stach.Tableb\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[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy