PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/serde/src/gen/protobuf/gen-java/org/apache/hadoop/hive/serde2/proto/test/Complexpb.java

#
Java | 118 lines | 88 code | 17 blank | 13 comment | 0 complexity | 544cac0efffa0c536a9ae8c03e0e68c2 MD5 | raw file
  1// Generated by the protocol buffer compiler.  DO NOT EDIT!
  2// source: complexpb.proto
  3
  4package org.apache.hadoop.hive.serde2.proto.test;
  5
  6public final class Complexpb {
  7  private Complexpb() {}
  8
  9  public static final class IntString {
 10    public IntString(int myInt, String myString, int underscoreInt) {
 11      this.myint_ = myInt;
 12      this.hasMyint = true;
 13      this.myString_ = myString;
 14      this.hasMyString = true;
 15      this.underscoreInt_ = underscoreInt;
 16      this.hasUnderscoreInt = true;
 17    }
 18
 19    // optional int32 myint = 1;
 20    public static final int MYINT_FIELD_NUMBER = 1;
 21    private final boolean hasMyint;
 22    private int myint_ = 0;
 23    public boolean hasMyint() { return hasMyint; }
 24    public int getMyint() { return myint_; }
 25
 26    // optional string myString = 2;
 27    public static final int MYSTRING_FIELD_NUMBER = 2;
 28    private final boolean hasMyString;
 29    private java.lang.String myString_ = "";
 30    public boolean hasMyString() { return hasMyString; }
 31    public java.lang.String getMyString() { return myString_; }
 32
 33    // optional int32 underscore_int = 3;
 34    public static final int UNDERSCORE_INT_FIELD_NUMBER = 3;
 35    private final boolean hasUnderscoreInt;
 36    private int underscoreInt_ = 0;
 37    public boolean hasUnderscoreInt() { return hasUnderscoreInt; }
 38    public int getUnderscoreInt() { return underscoreInt_; }
 39
 40    public final boolean isInitialized() {
 41      return true;
 42    }
 43
 44  }
 45
 46  public static final class Complex {
 47    // Use Complex.newBuilder() to construct.
 48    public Complex(int aint, String aString, java.util.List<Integer> lint, java.util.List<String> lString, java.util.List<IntString> lintString) {
 49      this.aint_ = aint;
 50      this.hasAint = true;
 51      this.aString_ = aString;
 52      this.hasAString = true;
 53      this.lint_ = lint;
 54      this.lString_ = lString;
 55      this.lintString_ = lintString;
 56    }
 57
 58    // optional int32 aint = 1;
 59    public static final int AINT_FIELD_NUMBER = 1;
 60    private final boolean hasAint;
 61    private int aint_ = 0;
 62    public boolean hasAint() { return hasAint; }
 63    public int getAint() { return aint_; }
 64
 65    // optional string aString = 2;
 66    public static final int ASTRING_FIELD_NUMBER = 2;
 67    private final boolean hasAString;
 68    private java.lang.String aString_ = "";
 69    public boolean hasAString() { return hasAString; }
 70    public java.lang.String getAString() { return aString_; }
 71
 72    // repeated int32 lint = 3;
 73    public static final int LINT_FIELD_NUMBER = 3;
 74    private java.util.List<java.lang.Integer> lint_ =
 75      java.util.Collections.emptyList();
 76    public java.util.List<java.lang.Integer> getLintList() {
 77      return lint_;
 78    }
 79    public int getLintCount() { return lint_.size(); }
 80    public int getLint(int index) {
 81      return lint_.get(index);
 82    }
 83
 84    // repeated string lString = 4;
 85    public static final int LSTRING_FIELD_NUMBER = 4;
 86    private java.util.List<java.lang.String> lString_ =
 87      java.util.Collections.emptyList();
 88    public java.util.List<java.lang.String> getLStringList() {
 89      return lString_;
 90    }
 91    public int getLStringCount() { return lString_.size(); }
 92    public java.lang.String getLString(int index) {
 93      return lString_.get(index);
 94    }
 95
 96    // repeated .org.apache.hadoop.hive.serde2.proto.test.IntString lintString = 5;
 97    public static final int LINTSTRING_FIELD_NUMBER = 5;
 98    private java.util.List<org.apache.hadoop.hive.serde2.proto.test.Complexpb.IntString> lintString_ =
 99      java.util.Collections.emptyList();
100    public java.util.List<org.apache.hadoop.hive.serde2.proto.test.Complexpb.IntString> getLintStringList() {
101      return lintString_;
102    }
103    public int getLintStringCount() { return lintString_.size(); }
104    public org.apache.hadoop.hive.serde2.proto.test.Complexpb.IntString getLintString(int index) {
105      return lintString_.get(index);
106    }
107
108    private void initFields() {
109    }
110    public final boolean isInitialized() {
111      return true;
112    }
113
114    // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.serde2.proto.test.Complex)
115  }
116
117  // @@protoc_insertion_point(outer_class_scope)
118}