The example follows these steps: + * + *
POP = 0;
+ */
+ POP(0),
+ /**
+ * JAZZ = 1;
+ */
+ JAZZ(1),
+ /**
+ * FOLK = 2;
+ */
+ FOLK(2),
+ /**
+ * ROCK = 3;
+ */
+ ROCK(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 32,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Genre.class.getName());
+ }
+ /**
+ * POP = 0;
+ */
+ public static final int POP_VALUE = 0;
+ /**
+ * JAZZ = 1;
+ */
+ public static final int JAZZ_VALUE = 1;
+ /**
+ * FOLK = 2;
+ */
+ public static final int FOLK_VALUE = 2;
+ /**
+ * ROCK = 3;
+ */
+ public static final int ROCK_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;
+ }
+
+ /**
+ * @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 Genre 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 Genre forNumber(int value) {
+ switch (value) {
+ case 0: return POP;
+ case 1: return JAZZ;
+ case 2: return FOLK;
+ case 3: return ROCK;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapoptional int64 singer_id = 1;
+ * @return Whether the singerId field is set.
+ */
+ boolean hasSingerId();
+ /**
+ * optional int64 singer_id = 1;
+ * @return The singerId.
+ */
+ long getSingerId();
+
+ /**
+ * optional string birth_date = 2;
+ * @return Whether the birthDate field is set.
+ */
+ boolean hasBirthDate();
+ /**
+ * optional string birth_date = 2;
+ * @return The birthDate.
+ */
+ java.lang.String getBirthDate();
+ /**
+ * optional string birth_date = 2;
+ * @return The bytes for birthDate.
+ */
+ com.google.protobuf.ByteString
+ getBirthDateBytes();
+
+ /**
+ * optional string nationality = 3;
+ * @return Whether the nationality field is set.
+ */
+ boolean hasNationality();
+ /**
+ * optional string nationality = 3;
+ * @return The nationality.
+ */
+ java.lang.String getNationality();
+ /**
+ * optional string nationality = 3;
+ * @return The bytes for nationality.
+ */
+ com.google.protobuf.ByteString
+ getNationalityBytes();
+
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return Whether the genre field is set.
+ */
+ boolean hasGenre();
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return The enum numeric value on the wire for genre.
+ */
+ int getGenreValue();
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return The genre.
+ */
+ com.example.bigtable.SingerProto.Genre getGenre();
+ }
+ /**
+ * Protobuf type {@code examples.bigtable.music.SingerInfo}
+ */
+ public static final class SingerInfo extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:examples.bigtable.music.SingerInfo)
+ SingerInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 32,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ SingerInfo.class.getName());
+ }
+ // Use SingerInfo.newBuilder() to construct.
+ private SingerInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private SingerInfo() {
+ birthDate_ = "";
+ nationality_ = "";
+ genre_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.example.bigtable.SingerProto.internal_static_examples_bigtable_music_SingerInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.example.bigtable.SingerProto.internal_static_examples_bigtable_music_SingerInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.example.bigtable.SingerProto.SingerInfo.class, com.example.bigtable.SingerProto.SingerInfo.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int SINGER_ID_FIELD_NUMBER = 1;
+ private long singerId_ = 0L;
+ /**
+ * optional int64 singer_id = 1;
+ * @return Whether the singerId field is set.
+ */
+ @java.lang.Override
+ public boolean hasSingerId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 singer_id = 1;
+ * @return The singerId.
+ */
+ @java.lang.Override
+ public long getSingerId() {
+ return singerId_;
+ }
+
+ public static final int BIRTH_DATE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object birthDate_ = "";
+ /**
+ * optional string birth_date = 2;
+ * @return Whether the birthDate field is set.
+ */
+ @java.lang.Override
+ public boolean hasBirthDate() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string birth_date = 2;
+ * @return The birthDate.
+ */
+ @java.lang.Override
+ public java.lang.String getBirthDate() {
+ java.lang.Object ref = birthDate_;
+ 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();
+ birthDate_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string birth_date = 2;
+ * @return The bytes for birthDate.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBirthDateBytes() {
+ java.lang.Object ref = birthDate_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ birthDate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NATIONALITY_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nationality_ = "";
+ /**
+ * optional string nationality = 3;
+ * @return Whether the nationality field is set.
+ */
+ @java.lang.Override
+ public boolean hasNationality() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string nationality = 3;
+ * @return The nationality.
+ */
+ @java.lang.Override
+ public java.lang.String getNationality() {
+ java.lang.Object ref = nationality_;
+ 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();
+ nationality_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string nationality = 3;
+ * @return The bytes for nationality.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNationalityBytes() {
+ java.lang.Object ref = nationality_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nationality_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GENRE_FIELD_NUMBER = 4;
+ private int genre_ = 0;
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return Whether the genre field is set.
+ */
+ @java.lang.Override public boolean hasGenre() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return The enum numeric value on the wire for genre.
+ */
+ @java.lang.Override public int getGenreValue() {
+ return genre_;
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return The genre.
+ */
+ @java.lang.Override public com.example.bigtable.SingerProto.Genre getGenre() {
+ com.example.bigtable.SingerProto.Genre result = com.example.bigtable.SingerProto.Genre.forNumber(genre_);
+ return result == null ? com.example.bigtable.SingerProto.Genre.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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, singerId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, birthDate_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, nationality_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeEnum(4, genre_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, singerId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, birthDate_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, nationality_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, genre_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.example.bigtable.SingerProto.SingerInfo)) {
+ return super.equals(obj);
+ }
+ com.example.bigtable.SingerProto.SingerInfo other = (com.example.bigtable.SingerProto.SingerInfo) obj;
+
+ if (hasSingerId() != other.hasSingerId()) return false;
+ if (hasSingerId()) {
+ if (getSingerId()
+ != other.getSingerId()) return false;
+ }
+ if (hasBirthDate() != other.hasBirthDate()) return false;
+ if (hasBirthDate()) {
+ if (!getBirthDate()
+ .equals(other.getBirthDate())) return false;
+ }
+ if (hasNationality() != other.hasNationality()) return false;
+ if (hasNationality()) {
+ if (!getNationality()
+ .equals(other.getNationality())) return false;
+ }
+ if (hasGenre() != other.hasGenre()) return false;
+ if (hasGenre()) {
+ if (genre_ != other.genre_) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSingerId()) {
+ hash = (37 * hash) + SINGER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSingerId());
+ }
+ if (hasBirthDate()) {
+ hash = (37 * hash) + BIRTH_DATE_FIELD_NUMBER;
+ hash = (53 * hash) + getBirthDate().hashCode();
+ }
+ if (hasNationality()) {
+ hash = (37 * hash) + NATIONALITY_FIELD_NUMBER;
+ hash = (53 * hash) + getNationality().hashCode();
+ }
+ if (hasGenre()) {
+ hash = (37 * hash) + GENRE_FIELD_NUMBER;
+ hash = (53 * hash) + genre_;
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.example.bigtable.SingerProto.SingerInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.example.bigtable.SingerProto.SingerInfo parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.example.bigtable.SingerProto.SingerInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.example.bigtable.SingerProto.SingerInfo 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code examples.bigtable.music.SingerInfo}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderoptional int64 singer_id = 1;
+ * @return Whether the singerId field is set.
+ */
+ @java.lang.Override
+ public boolean hasSingerId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 singer_id = 1;
+ * @return The singerId.
+ */
+ @java.lang.Override
+ public long getSingerId() {
+ return singerId_;
+ }
+ /**
+ * optional int64 singer_id = 1;
+ * @param value The singerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSingerId(long value) {
+
+ singerId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 singer_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSingerId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ singerId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object birthDate_ = "";
+ /**
+ * optional string birth_date = 2;
+ * @return Whether the birthDate field is set.
+ */
+ public boolean hasBirthDate() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string birth_date = 2;
+ * @return The birthDate.
+ */
+ public java.lang.String getBirthDate() {
+ java.lang.Object ref = birthDate_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ birthDate_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string birth_date = 2;
+ * @return The bytes for birthDate.
+ */
+ public com.google.protobuf.ByteString
+ getBirthDateBytes() {
+ java.lang.Object ref = birthDate_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ birthDate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string birth_date = 2;
+ * @param value The birthDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBirthDate(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ birthDate_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string birth_date = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearBirthDate() {
+ birthDate_ = getDefaultInstance().getBirthDate();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string birth_date = 2;
+ * @param value The bytes for birthDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBirthDateBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ birthDate_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object nationality_ = "";
+ /**
+ * optional string nationality = 3;
+ * @return Whether the nationality field is set.
+ */
+ public boolean hasNationality() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string nationality = 3;
+ * @return The nationality.
+ */
+ public java.lang.String getNationality() {
+ java.lang.Object ref = nationality_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nationality_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string nationality = 3;
+ * @return The bytes for nationality.
+ */
+ public com.google.protobuf.ByteString
+ getNationalityBytes() {
+ java.lang.Object ref = nationality_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nationality_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string nationality = 3;
+ * @param value The nationality to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNationality(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ nationality_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string nationality = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearNationality() {
+ nationality_ = getDefaultInstance().getNationality();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string nationality = 3;
+ * @param value The bytes for nationality to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNationalityBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ nationality_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int genre_ = 0;
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return Whether the genre field is set.
+ */
+ @java.lang.Override public boolean hasGenre() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return The enum numeric value on the wire for genre.
+ */
+ @java.lang.Override public int getGenreValue() {
+ return genre_;
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @param value The enum numeric value on the wire for genre to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGenreValue(int value) {
+ genre_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return The genre.
+ */
+ @java.lang.Override
+ public com.example.bigtable.SingerProto.Genre getGenre() {
+ com.example.bigtable.SingerProto.Genre result = com.example.bigtable.SingerProto.Genre.forNumber(genre_);
+ return result == null ? com.example.bigtable.SingerProto.Genre.UNRECOGNIZED : result;
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @param value The genre to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGenre(com.example.bigtable.SingerProto.Genre value) {
+ if (value == null) { throw new NullPointerException(); }
+ bitField0_ |= 0x00000008;
+ genre_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .examples.bigtable.music.Genre genre = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearGenre() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ genre_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:examples.bigtable.music.SingerInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:examples.bigtable.music.SingerInfo)
+ private static final com.example.bigtable.SingerProto.SingerInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.example.bigtable.SingerProto.SingerInfo();
+ }
+
+ public static com.example.bigtable.SingerProto.SingerInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser