// Generated by the protocol buffer compiler. DO NOT EDIT! // source: User.proto package com.weibo.api.motan.serialize.protobuf.gen; public final class UserProto { private UserProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:User) com.google.protobuf.MessageOrBuilder { /** * <code>int32 id = 1;</code> */ int getId(); /** * <code>string name = 2;</code> */ java.lang.String getName(); /** * <code>string name = 2;</code> */ com.google.protobuf.ByteString getNameBytes(); /** * <code>bool gender = 3;</code> */ boolean getGender(); /** * <code>repeated .Address address = 4;</code> */ java.util.List<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address> getAddressList(); /** * <code>repeated .Address address = 4;</code> */ com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address getAddress(int index); /** * <code>repeated .Address address = 4;</code> */ int getAddressCount(); /** * <code>repeated .Address address = 4;</code> */ java.util.List<? extends com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder> getAddressOrBuilderList(); /** * <code>repeated .Address address = 4;</code> */ com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder getAddressOrBuilder( int index); } /** * Protobuf type {@code User} */ public static final class User extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:User) UserOrBuilder { // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private User() { id_ = 0; name_ = ""; gender_ = false; address_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private User( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { id_ = input.readInt32(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 24: { gender_ = input.readBool(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { address_ = new java.util.ArrayList<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address>(); mutable_bitField0_ |= 0x00000008; } address_.add( input.readMessage(com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { address_ = java.util.Collections.unmodifiableList(address_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_User_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_User_fieldAccessorTable .ensureFieldAccessorsInitialized( com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.class, com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>int32 id = 1;</code> */ public int getId() { return id_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * <code>string name = 2;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * <code>string name = 2;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GENDER_FIELD_NUMBER = 3; private boolean gender_; /** * <code>bool gender = 3;</code> */ public boolean getGender() { return gender_; } public static final int ADDRESS_FIELD_NUMBER = 4; private java.util.List<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address> address_; /** * <code>repeated .Address address = 4;</code> */ public java.util.List<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address> getAddressList() { return address_; } /** * <code>repeated .Address address = 4;</code> */ public java.util.List<? extends com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder> getAddressOrBuilderList() { return address_; } /** * <code>repeated .Address address = 4;</code> */ public int getAddressCount() { return address_.size(); } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address getAddress(int index) { return address_.get(index); } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder getAddressOrBuilder( int index) { return address_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0) { output.writeInt32(1, id_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (gender_ != false) { output.writeBool(3, gender_); } for (int i = 0; i < address_.size(); i++) { output.writeMessage(4, address_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, id_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (gender_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, gender_); } for (int i = 0; i < address_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, address_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.weibo.api.motan.serialize.protobuf.gen.UserProto.User)) { return super.equals(obj); } com.weibo.api.motan.serialize.protobuf.gen.UserProto.User other = (com.weibo.api.motan.serialize.protobuf.gen.UserProto.User) obj; boolean result = true; result = result && (getId() == other.getId()); result = result && getName() .equals(other.getName()); result = result && (getGender() == other.getGender()); result = result && getAddressList() .equals(other.getAddressList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + GENDER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getGender()); if (getAddressCount() > 0) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddressList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.weibo.api.motan.serialize.protobuf.gen.UserProto.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code User} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:User) com.weibo.api.motan.serialize.protobuf.gen.UserProto.UserOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_User_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_User_fieldAccessorTable .ensureFieldAccessorsInitialized( com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.class, com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.Builder.class); } // Construct using com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAddressFieldBuilder(); } } public Builder clear() { super.clear(); id_ = 0; name_ = ""; gender_ = false; if (addressBuilder_ == null) { address_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { addressBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_User_descriptor; } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.User getDefaultInstanceForType() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.getDefaultInstance(); } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.User build() { com.weibo.api.motan.serialize.protobuf.gen.UserProto.User result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.User buildPartial() { com.weibo.api.motan.serialize.protobuf.gen.UserProto.User result = new com.weibo.api.motan.serialize.protobuf.gen.UserProto.User(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.id_ = id_; result.name_ = name_; result.gender_ = gender_; if (addressBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { address_ = java.util.Collections.unmodifiableList(address_); bitField0_ = (bitField0_ & ~0x00000008); } result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.weibo.api.motan.serialize.protobuf.gen.UserProto.User) { return mergeFrom((com.weibo.api.motan.serialize.protobuf.gen.UserProto.User)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.weibo.api.motan.serialize.protobuf.gen.UserProto.User other) { if (other == com.weibo.api.motan.serialize.protobuf.gen.UserProto.User.getDefaultInstance()) return this; if (other.getId() != 0) { setId(other.getId()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getGender() != false) { setGender(other.getGender()); } if (addressBuilder_ == null) { if (!other.address_.isEmpty()) { if (address_.isEmpty()) { address_ = other.address_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAddressIsMutable(); address_.addAll(other.address_); } onChanged(); } } else { if (!other.address_.isEmpty()) { if (addressBuilder_.isEmpty()) { addressBuilder_.dispose(); addressBuilder_ = null; address_ = other.address_; bitField0_ = (bitField0_ & ~0x00000008); addressBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAddressFieldBuilder() : null; } else { addressBuilder_.addAllMessages(other.address_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.weibo.api.motan.serialize.protobuf.gen.UserProto.User parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.weibo.api.motan.serialize.protobuf.gen.UserProto.User) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int id_ ; /** * <code>int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>int32 id = 1;</code> */ public Builder clearId() { id_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * <code>string name = 2;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string name = 2;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string name = 2;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * <code>string name = 2;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>string name = 2;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean gender_ ; /** * <code>bool gender = 3;</code> */ public boolean getGender() { return gender_; } /** * <code>bool gender = 3;</code> */ public Builder setGender(boolean value) { gender_ = value; onChanged(); return this; } /** * <code>bool gender = 3;</code> */ public Builder clearGender() { gender_ = false; onChanged(); return this; } private java.util.List<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address> address_ = java.util.Collections.emptyList(); private void ensureAddressIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { address_ = new java.util.ArrayList<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address>(address_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder, com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder> addressBuilder_; /** * <code>repeated .Address address = 4;</code> */ public java.util.List<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address> getAddressList() { if (addressBuilder_ == null) { return java.util.Collections.unmodifiableList(address_); } else { return addressBuilder_.getMessageList(); } } /** * <code>repeated .Address address = 4;</code> */ public int getAddressCount() { if (addressBuilder_ == null) { return address_.size(); } else { return addressBuilder_.getCount(); } } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address getAddress(int index) { if (addressBuilder_ == null) { return address_.get(index); } else { return addressBuilder_.getMessage(index); } } /** * <code>repeated .Address address = 4;</code> */ public Builder setAddress( int index, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.set(index, value); onChanged(); } else { addressBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder setAddress( int index, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder builderForValue) { if (addressBuilder_ == null) { ensureAddressIsMutable(); address_.set(index, builderForValue.build()); onChanged(); } else { addressBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder addAddress(com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.add(value); onChanged(); } else { addressBuilder_.addMessage(value); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder addAddress( int index, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.add(index, value); onChanged(); } else { addressBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder addAddress( com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder builderForValue) { if (addressBuilder_ == null) { ensureAddressIsMutable(); address_.add(builderForValue.build()); onChanged(); } else { addressBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder addAddress( int index, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder builderForValue) { if (addressBuilder_ == null) { ensureAddressIsMutable(); address_.add(index, builderForValue.build()); onChanged(); } else { addressBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder addAllAddress( java.lang.Iterable<? extends com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address> values) { if (addressBuilder_ == null) { ensureAddressIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, address_); onChanged(); } else { addressBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { addressBuilder_.clear(); } return this; } /** * <code>repeated .Address address = 4;</code> */ public Builder removeAddress(int index) { if (addressBuilder_ == null) { ensureAddressIsMutable(); address_.remove(index); onChanged(); } else { addressBuilder_.remove(index); } return this; } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder getAddressBuilder( int index) { return getAddressFieldBuilder().getBuilder(index); } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder getAddressOrBuilder( int index) { if (addressBuilder_ == null) { return address_.get(index); } else { return addressBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .Address address = 4;</code> */ public java.util.List<? extends com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder> getAddressOrBuilderList() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(address_); } } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder addAddressBuilder() { return getAddressFieldBuilder().addBuilder( com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.getDefaultInstance()); } /** * <code>repeated .Address address = 4;</code> */ public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder addAddressBuilder( int index) { return getAddressFieldBuilder().addBuilder( index, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.getDefaultInstance()); } /** * <code>repeated .Address address = 4;</code> */ public java.util.List<com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder> getAddressBuilderList() { return getAddressFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder, com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder, com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder>( address_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:User) } // @@protoc_insertion_point(class_scope:User) private static final com.weibo.api.motan.serialize.protobuf.gen.UserProto.User DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.weibo.api.motan.serialize.protobuf.gen.UserProto.User(); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.User getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<User> PARSER = new com.google.protobuf.AbstractParser<User>() { public User parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new User(input, extensionRegistry); } }; public static com.google.protobuf.Parser<User> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<User> getParserForType() { return PARSER; } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddressOrBuilder extends // @@protoc_insertion_point(interface_extends:Address) com.google.protobuf.MessageOrBuilder { /** * <code>int32 id = 1;</code> */ int getId(); /** * <code>string province = 2;</code> */ java.lang.String getProvince(); /** * <code>string province = 2;</code> */ com.google.protobuf.ByteString getProvinceBytes(); /** * <code>string city = 3;</code> */ java.lang.String getCity(); /** * <code>string city = 3;</code> */ com.google.protobuf.ByteString getCityBytes(); /** * <code>string street = 4;</code> */ java.lang.String getStreet(); /** * <code>string street = 4;</code> */ com.google.protobuf.ByteString getStreetBytes(); /** * <code>string phone = 5;</code> */ java.lang.String getPhone(); /** * <code>string phone = 5;</code> */ com.google.protobuf.ByteString getPhoneBytes(); } /** * Protobuf type {@code Address} */ public static final class Address extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Address) AddressOrBuilder { // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Address() { id_ = 0; province_ = ""; city_ = ""; street_ = ""; phone_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Address( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { id_ = input.readInt32(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); province_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); city_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); street_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); phone_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_Address_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.class, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private int id_; /** * <code>int32 id = 1;</code> */ public int getId() { return id_; } public static final int PROVINCE_FIELD_NUMBER = 2; private volatile java.lang.Object province_; /** * <code>string province = 2;</code> */ public java.lang.String getProvince() { java.lang.Object ref = province_; 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(); province_ = s; return s; } } /** * <code>string province = 2;</code> */ public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); province_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CITY_FIELD_NUMBER = 3; private volatile java.lang.Object city_; /** * <code>string city = 3;</code> */ public java.lang.String getCity() { java.lang.Object ref = city_; 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(); city_ = s; return s; } } /** * <code>string city = 3;</code> */ public com.google.protobuf.ByteString getCityBytes() { java.lang.Object ref = city_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); city_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STREET_FIELD_NUMBER = 4; private volatile java.lang.Object street_; /** * <code>string street = 4;</code> */ public java.lang.String getStreet() { java.lang.Object ref = street_; 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(); street_ = s; return s; } } /** * <code>string street = 4;</code> */ public com.google.protobuf.ByteString getStreetBytes() { java.lang.Object ref = street_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); street_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHONE_FIELD_NUMBER = 5; private volatile java.lang.Object phone_; /** * <code>string phone = 5;</code> */ public java.lang.String getPhone() { java.lang.Object ref = phone_; 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(); phone_ = s; return s; } } /** * <code>string phone = 5;</code> */ public com.google.protobuf.ByteString getPhoneBytes() { java.lang.Object ref = phone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0) { output.writeInt32(1, id_); } if (!getProvinceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, province_); } if (!getCityBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, city_); } if (!getStreetBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, street_); } if (!getPhoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, phone_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, id_); } if (!getProvinceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, province_); } if (!getCityBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, city_); } if (!getStreetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, street_); } if (!getPhoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, phone_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address)) { return super.equals(obj); } com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address other = (com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address) obj; boolean result = true; result = result && (getId() == other.getId()); result = result && getProvince() .equals(other.getProvince()); result = result && getCity() .equals(other.getCity()); result = result && getStreet() .equals(other.getStreet()); result = result && getPhone() .equals(other.getPhone()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); hash = (37 * hash) + PROVINCE_FIELD_NUMBER; hash = (53 * hash) + getProvince().hashCode(); hash = (37 * hash) + CITY_FIELD_NUMBER; hash = (53 * hash) + getCity().hashCode(); hash = (37 * hash) + STREET_FIELD_NUMBER; hash = (53 * hash) + getStreet().hashCode(); hash = (37 * hash) + PHONE_FIELD_NUMBER; hash = (53 * hash) + getPhone().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Address} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:Address) com.weibo.api.motan.serialize.protobuf.gen.UserProto.AddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_Address_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.class, com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.Builder.class); } // Construct using com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = 0; province_ = ""; city_ = ""; street_ = ""; phone_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.internal_static_Address_descriptor; } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address getDefaultInstanceForType() { return com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.getDefaultInstance(); } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address build() { com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address buildPartial() { com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address result = new com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address(this); result.id_ = id_; result.province_ = province_; result.city_ = city_; result.street_ = street_; result.phone_ = phone_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address) { return mergeFrom((com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address other) { if (other == com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address.getDefaultInstance()) return this; if (other.getId() != 0) { setId(other.getId()); } if (!other.getProvince().isEmpty()) { province_ = other.province_; onChanged(); } if (!other.getCity().isEmpty()) { city_ = other.city_; onChanged(); } if (!other.getStreet().isEmpty()) { street_ = other.street_; onChanged(); } if (!other.getPhone().isEmpty()) { phone_ = other.phone_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int id_ ; /** * <code>int32 id = 1;</code> */ public int getId() { return id_; } /** * <code>int32 id = 1;</code> */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * <code>int32 id = 1;</code> */ public Builder clearId() { id_ = 0; onChanged(); return this; } private java.lang.Object province_ = ""; /** * <code>string province = 2;</code> */ public java.lang.String getProvince() { java.lang.Object ref = province_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string province = 2;</code> */ public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); province_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string province = 2;</code> */ public Builder setProvince( java.lang.String value) { if (value == null) { throw new NullPointerException(); } province_ = value; onChanged(); return this; } /** * <code>string province = 2;</code> */ public Builder clearProvince() { province_ = getDefaultInstance().getProvince(); onChanged(); return this; } /** * <code>string province = 2;</code> */ public Builder setProvinceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); province_ = value; onChanged(); return this; } private java.lang.Object city_ = ""; /** * <code>string city = 3;</code> */ public java.lang.String getCity() { java.lang.Object ref = city_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); city_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string city = 3;</code> */ public com.google.protobuf.ByteString getCityBytes() { java.lang.Object ref = city_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); city_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string city = 3;</code> */ public Builder setCity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } city_ = value; onChanged(); return this; } /** * <code>string city = 3;</code> */ public Builder clearCity() { city_ = getDefaultInstance().getCity(); onChanged(); return this; } /** * <code>string city = 3;</code> */ public Builder setCityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); city_ = value; onChanged(); return this; } private java.lang.Object street_ = ""; /** * <code>string street = 4;</code> */ public java.lang.String getStreet() { java.lang.Object ref = street_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); street_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string street = 4;</code> */ public com.google.protobuf.ByteString getStreetBytes() { java.lang.Object ref = street_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); street_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string street = 4;</code> */ public Builder setStreet( java.lang.String value) { if (value == null) { throw new NullPointerException(); } street_ = value; onChanged(); return this; } /** * <code>string street = 4;</code> */ public Builder clearStreet() { street_ = getDefaultInstance().getStreet(); onChanged(); return this; } /** * <code>string street = 4;</code> */ public Builder setStreetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); street_ = value; onChanged(); return this; } private java.lang.Object phone_ = ""; /** * <code>string phone = 5;</code> */ public java.lang.String getPhone() { java.lang.Object ref = phone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phone_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string phone = 5;</code> */ public com.google.protobuf.ByteString getPhoneBytes() { java.lang.Object ref = phone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string phone = 5;</code> */ public Builder setPhone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } phone_ = value; onChanged(); return this; } /** * <code>string phone = 5;</code> */ public Builder clearPhone() { phone_ = getDefaultInstance().getPhone(); onChanged(); return this; } /** * <code>string phone = 5;</code> */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phone_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:Address) } // @@protoc_insertion_point(class_scope:Address) private static final com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address(); } public static com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Address> PARSER = new com.google.protobuf.AbstractParser<Address>() { public Address parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Address(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Address> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Address> getParserForType() { return PARSER; } public com.weibo.api.motan.serialize.protobuf.gen.UserProto.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_User_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_User_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Address_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Address_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\nUser.proto\"K\n\004User\022\n\n\002id\030\001 \001(\005\022\014\n\004name" + "\030\002 \001(\t\022\016\n\006gender\030\003 \001(\010\022\031\n\007address\030\004 \003(\0132" + "\010.Address\"T\n\007Address\022\n\n\002id\030\001 \001(\005\022\020\n\010prov" + "ince\030\002 \001(\t\022\014\n\004city\030\003 \001(\t\022\016\n\006street\030\004 \001(\t" + "\022\r\n\005phone\030\005 \001(\tB7\n*com.weibo.api.motan.s" + "erialize.protobuf.genB\tUserProtob\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); internal_static_User_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_User_descriptor, new java.lang.String[] { "Id", "Name", "Gender", "Address", }); internal_static_Address_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Address_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Address_descriptor, new java.lang.String[] { "Id", "Province", "City", "Street", "Phone", }); } // @@protoc_insertion_point(outer_class_scope) }