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