blob: 375d8abc5b455bf6245b8edf408dc74f9e60868f [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: org/waveprotocol/box/profile/profiles.proto
package org.waveprotocol.box.profile;
public final class ProfilesProto {
private ProfilesProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ProfileRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated string addresses = 1;
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
java.util.List<java.lang.String>
getAddressesList();
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
int getAddressesCount();
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
java.lang.String getAddresses(int index);
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
com.google.protobuf.ByteString
getAddressesBytes(int index);
}
/**
* Protobuf type {@code profile.ProfileRequest}
*/
public static final class ProfileRequest extends
com.google.protobuf.GeneratedMessage
implements ProfileRequestOrBuilder {
// Use ProfileRequest.newBuilder() to construct.
private ProfileRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProfileRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProfileRequest defaultInstance;
public static ProfileRequest getDefaultInstance() {
return defaultInstance;
}
public ProfileRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProfileRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
addresses_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
addresses_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
addresses_ = new com.google.protobuf.UnmodifiableLazyStringList(addresses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.class, org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.Builder.class);
}
public static com.google.protobuf.Parser<ProfileRequest> PARSER =
new com.google.protobuf.AbstractParser<ProfileRequest>() {
public ProfileRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProfileRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ProfileRequest> getParserForType() {
return PARSER;
}
// repeated string addresses = 1;
public static final int ADDRESSES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList addresses_;
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public java.util.List<java.lang.String>
getAddressesList() {
return addresses_;
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public int getAddressesCount() {
return addresses_.size();
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public java.lang.String getAddresses(int index) {
return addresses_.get(index);
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public com.google.protobuf.ByteString
getAddressesBytes(int index) {
return addresses_.getByteString(index);
}
private void initFields() {
addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < addresses_.size(); i++) {
output.writeBytes(1, addresses_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < addresses_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(addresses_.getByteString(i));
}
size += dataSize;
size += 1 * getAddressesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.waveprotocol.box.profile.ProfilesProto.ProfileRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code profile.ProfileRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.waveprotocol.box.profile.ProfilesProto.ProfileRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.class, org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.Builder.class);
}
// Construct using org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileRequest_descriptor;
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileRequest getDefaultInstanceForType() {
return org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.getDefaultInstance();
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileRequest build() {
org.waveprotocol.box.profile.ProfilesProto.ProfileRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileRequest buildPartial() {
org.waveprotocol.box.profile.ProfilesProto.ProfileRequest result = new org.waveprotocol.box.profile.ProfilesProto.ProfileRequest(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
addresses_ = new com.google.protobuf.UnmodifiableLazyStringList(
addresses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.addresses_ = addresses_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.waveprotocol.box.profile.ProfilesProto.ProfileRequest) {
return mergeFrom((org.waveprotocol.box.profile.ProfilesProto.ProfileRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.waveprotocol.box.profile.ProfilesProto.ProfileRequest other) {
if (other == org.waveprotocol.box.profile.ProfilesProto.ProfileRequest.getDefaultInstance()) return this;
if (!other.addresses_.isEmpty()) {
if (addresses_.isEmpty()) {
addresses_ = other.addresses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddressesIsMutable();
addresses_.addAll(other.addresses_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
org.waveprotocol.box.profile.ProfilesProto.ProfileRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.waveprotocol.box.profile.ProfilesProto.ProfileRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated string addresses = 1;
private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddressesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public java.util.List<java.lang.String>
getAddressesList() {
return java.util.Collections.unmodifiableList(addresses_);
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public int getAddressesCount() {
return addresses_.size();
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public java.lang.String getAddresses(int index) {
return addresses_.get(index);
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public com.google.protobuf.ByteString
getAddressesBytes(int index) {
return addresses_.getByteString(index);
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public Builder setAddresses(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public Builder addAddresses(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public Builder addAllAddresses(
java.lang.Iterable<java.lang.String> values) {
ensureAddressesIsMutable();
super.addAll(values, addresses_);
onChanged();
return this;
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public Builder clearAddresses() {
addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>repeated string addresses = 1;</code>
*
* <pre>
* The profile addresses in email format.
* </pre>
*/
public Builder addAddressesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:profile.ProfileRequest)
}
static {
defaultInstance = new ProfileRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:profile.ProfileRequest)
}
public interface ProfileResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .profile.ProfileResponse.FetchedProfile profiles = 1;
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
java.util.List<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile>
getProfilesList();
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile getProfiles(int index);
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
int getProfilesCount();
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
java.util.List<? extends org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder>
getProfilesOrBuilderList();
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder getProfilesOrBuilder(
int index);
}
/**
* Protobuf type {@code profile.ProfileResponse}
*/
public static final class ProfileResponse extends
com.google.protobuf.GeneratedMessage
implements ProfileResponseOrBuilder {
// Use ProfileResponse.newBuilder() to construct.
private ProfileResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProfileResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProfileResponse defaultInstance;
public static ProfileResponse getDefaultInstance() {
return defaultInstance;
}
public ProfileResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProfileResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
profiles_ = new java.util.ArrayList<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile>();
mutable_bitField0_ |= 0x00000001;
}
profiles_.add(input.readMessage(org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.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.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
profiles_ = java.util.Collections.unmodifiableList(profiles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.class, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.Builder.class);
}
public static com.google.protobuf.Parser<ProfileResponse> PARSER =
new com.google.protobuf.AbstractParser<ProfileResponse>() {
public ProfileResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProfileResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ProfileResponse> getParserForType() {
return PARSER;
}
public interface FetchedProfileOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string address = 1;
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
boolean hasAddress();
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
java.lang.String getAddress();
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
com.google.protobuf.ByteString
getAddressBytes();
// required string name = 2;
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
boolean hasName();
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
java.lang.String getName();
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
com.google.protobuf.ByteString
getNameBytes();
// required string imageUrl = 3;
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
boolean hasImageUrl();
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
java.lang.String getImageUrl();
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
com.google.protobuf.ByteString
getImageUrlBytes();
// optional string profileUrl = 4;
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
boolean hasProfileUrl();
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
java.lang.String getProfileUrl();
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
com.google.protobuf.ByteString
getProfileUrlBytes();
}
/**
* Protobuf type {@code profile.ProfileResponse.FetchedProfile}
*/
public static final class FetchedProfile extends
com.google.protobuf.GeneratedMessage
implements FetchedProfileOrBuilder {
// Use FetchedProfile.newBuilder() to construct.
private FetchedProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FetchedProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FetchedProfile defaultInstance;
public static FetchedProfile getDefaultInstance() {
return defaultInstance;
}
public FetchedProfile getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FetchedProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
address_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
name_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
imageUrl_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
profileUrl_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_FetchedProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_FetchedProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.class, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder.class);
}
public static com.google.protobuf.Parser<FetchedProfile> PARSER =
new com.google.protobuf.AbstractParser<FetchedProfile>() {
public FetchedProfile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FetchedProfile(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<FetchedProfile> getParserForType() {
return PARSER;
}
private int bitField0_;
// required string address = 1;
public static final int ADDRESS_FIELD_NUMBER = 1;
private java.lang.Object address_;
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
if (bs.isValidUtf8()) {
address_ = s;
}
return s;
}
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.Object name_;
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
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;
}
}
// required string imageUrl = 3;
public static final int IMAGEURL_FIELD_NUMBER = 3;
private java.lang.Object imageUrl_;
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public boolean hasImageUrl() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public java.lang.String getImageUrl() {
java.lang.Object ref = imageUrl_;
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();
if (bs.isValidUtf8()) {
imageUrl_ = s;
}
return s;
}
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public com.google.protobuf.ByteString
getImageUrlBytes() {
java.lang.Object ref = imageUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string profileUrl = 4;
public static final int PROFILEURL_FIELD_NUMBER = 4;
private java.lang.Object profileUrl_;
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public boolean hasProfileUrl() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public java.lang.String getProfileUrl() {
java.lang.Object ref = profileUrl_;
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();
if (bs.isValidUtf8()) {
profileUrl_ = s;
}
return s;
}
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public com.google.protobuf.ByteString
getProfileUrlBytes() {
java.lang.Object ref = profileUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profileUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
address_ = "";
name_ = "";
imageUrl_ = "";
profileUrl_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasAddress()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasImageUrl()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getAddressBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getImageUrlBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getProfileUrlBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getAddressBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getImageUrlBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getProfileUrlBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code profile.ProfileResponse.FetchedProfile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_FetchedProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_FetchedProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.class, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder.class);
}
// Construct using org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
address_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
imageUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
profileUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_FetchedProfile_descriptor;
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile getDefaultInstanceForType() {
return org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.getDefaultInstance();
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile build() {
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile buildPartial() {
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile result = new org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.address_ = address_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.imageUrl_ = imageUrl_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.profileUrl_ = profileUrl_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile) {
return mergeFrom((org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile other) {
if (other == org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.getDefaultInstance()) return this;
if (other.hasAddress()) {
bitField0_ |= 0x00000001;
address_ = other.address_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasImageUrl()) {
bitField0_ |= 0x00000004;
imageUrl_ = other.imageUrl_;
onChanged();
}
if (other.hasProfileUrl()) {
bitField0_ |= 0x00000008;
profileUrl_ = other.profileUrl_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasAddress()) {
return false;
}
if (!hasName()) {
return false;
}
if (!hasImageUrl()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string address = 1;
private java.lang.Object address_ = "";
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
address_ = value;
onChanged();
return this;
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* <code>required string address = 1;</code>
*
* <pre>
* The profile address in email format.
* </pre>
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
address_ = value;
onChanged();
return this;
}
// required string name = 2;
private java.lang.Object name_ = "";
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
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>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 2;</code>
*
* <pre>
* The name.
* </pre>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
// required string imageUrl = 3;
private java.lang.Object imageUrl_ = "";
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public boolean hasImageUrl() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public java.lang.String getImageUrl() {
java.lang.Object ref = imageUrl_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
imageUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public com.google.protobuf.ByteString
getImageUrlBytes() {
java.lang.Object ref = imageUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public Builder setImageUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
imageUrl_ = value;
onChanged();
return this;
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public Builder clearImageUrl() {
bitField0_ = (bitField0_ & ~0x00000004);
imageUrl_ = getDefaultInstance().getImageUrl();
onChanged();
return this;
}
/**
* <code>required string imageUrl = 3;</code>
*
* <pre>
* The image URL.
* </pre>
*/
public Builder setImageUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
imageUrl_ = value;
onChanged();
return this;
}
// optional string profileUrl = 4;
private java.lang.Object profileUrl_ = "";
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public boolean hasProfileUrl() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public java.lang.String getProfileUrl() {
java.lang.Object ref = profileUrl_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
profileUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public com.google.protobuf.ByteString
getProfileUrlBytes() {
java.lang.Object ref = profileUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profileUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public Builder setProfileUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
profileUrl_ = value;
onChanged();
return this;
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public Builder clearProfileUrl() {
bitField0_ = (bitField0_ & ~0x00000008);
profileUrl_ = getDefaultInstance().getProfileUrl();
onChanged();
return this;
}
/**
* <code>optional string profileUrl = 4;</code>
*
* <pre>
* The link to website.
* </pre>
*/
public Builder setProfileUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
profileUrl_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:profile.ProfileResponse.FetchedProfile)
}
static {
defaultInstance = new FetchedProfile(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:profile.ProfileResponse.FetchedProfile)
}
// repeated .profile.ProfileResponse.FetchedProfile profiles = 1;
public static final int PROFILES_FIELD_NUMBER = 1;
private java.util.List<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile> profiles_;
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public java.util.List<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile> getProfilesList() {
return profiles_;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public java.util.List<? extends org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder>
getProfilesOrBuilderList() {
return profiles_;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public int getProfilesCount() {
return profiles_.size();
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile getProfiles(int index) {
return profiles_.get(index);
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder getProfilesOrBuilder(
int index) {
return profiles_.get(index);
}
private void initFields() {
profiles_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getProfilesCount(); i++) {
if (!getProfiles(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < profiles_.size(); i++) {
output.writeMessage(1, profiles_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < profiles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, profiles_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.waveprotocol.box.profile.ProfilesProto.ProfileResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code profile.ProfileResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.waveprotocol.box.profile.ProfilesProto.ProfileResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.class, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.Builder.class);
}
// Construct using org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getProfilesFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (profilesBuilder_ == null) {
profiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
profilesBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.waveprotocol.box.profile.ProfilesProto.internal_static_profile_ProfileResponse_descriptor;
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse getDefaultInstanceForType() {
return org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.getDefaultInstance();
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse build() {
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse buildPartial() {
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse result = new org.waveprotocol.box.profile.ProfilesProto.ProfileResponse(this);
int from_bitField0_ = bitField0_;
if (profilesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
profiles_ = java.util.Collections.unmodifiableList(profiles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.profiles_ = profiles_;
} else {
result.profiles_ = profilesBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.waveprotocol.box.profile.ProfilesProto.ProfileResponse) {
return mergeFrom((org.waveprotocol.box.profile.ProfilesProto.ProfileResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.waveprotocol.box.profile.ProfilesProto.ProfileResponse other) {
if (other == org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.getDefaultInstance()) return this;
if (profilesBuilder_ == null) {
if (!other.profiles_.isEmpty()) {
if (profiles_.isEmpty()) {
profiles_ = other.profiles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProfilesIsMutable();
profiles_.addAll(other.profiles_);
}
onChanged();
}
} else {
if (!other.profiles_.isEmpty()) {
if (profilesBuilder_.isEmpty()) {
profilesBuilder_.dispose();
profilesBuilder_ = null;
profiles_ = other.profiles_;
bitField0_ = (bitField0_ & ~0x00000001);
profilesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getProfilesFieldBuilder() : null;
} else {
profilesBuilder_.addAllMessages(other.profiles_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getProfilesCount(); i++) {
if (!getProfiles(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.waveprotocol.box.profile.ProfilesProto.ProfileResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .profile.ProfileResponse.FetchedProfile profiles = 1;
private java.util.List<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile> profiles_ =
java.util.Collections.emptyList();
private void ensureProfilesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
profiles_ = new java.util.ArrayList<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile>(profiles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder> profilesBuilder_;
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public java.util.List<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile> getProfilesList() {
if (profilesBuilder_ == null) {
return java.util.Collections.unmodifiableList(profiles_);
} else {
return profilesBuilder_.getMessageList();
}
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public int getProfilesCount() {
if (profilesBuilder_ == null) {
return profiles_.size();
} else {
return profilesBuilder_.getCount();
}
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile getProfiles(int index) {
if (profilesBuilder_ == null) {
return profiles_.get(index);
} else {
return profilesBuilder_.getMessage(index);
}
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder setProfiles(
int index, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile value) {
if (profilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProfilesIsMutable();
profiles_.set(index, value);
onChanged();
} else {
profilesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder setProfiles(
int index, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder builderForValue) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.set(index, builderForValue.build());
onChanged();
} else {
profilesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder addProfiles(org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile value) {
if (profilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProfilesIsMutable();
profiles_.add(value);
onChanged();
} else {
profilesBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder addProfiles(
int index, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile value) {
if (profilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProfilesIsMutable();
profiles_.add(index, value);
onChanged();
} else {
profilesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder addProfiles(
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder builderForValue) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.add(builderForValue.build());
onChanged();
} else {
profilesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder addProfiles(
int index, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder builderForValue) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.add(index, builderForValue.build());
onChanged();
} else {
profilesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder addAllProfiles(
java.lang.Iterable<? extends org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile> values) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
super.addAll(values, profiles_);
onChanged();
} else {
profilesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder clearProfiles() {
if (profilesBuilder_ == null) {
profiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
profilesBuilder_.clear();
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public Builder removeProfiles(int index) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.remove(index);
onChanged();
} else {
profilesBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder getProfilesBuilder(
int index) {
return getProfilesFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder getProfilesOrBuilder(
int index) {
if (profilesBuilder_ == null) {
return profiles_.get(index); } else {
return profilesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public java.util.List<? extends org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder>
getProfilesOrBuilderList() {
if (profilesBuilder_ != null) {
return profilesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(profiles_);
}
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder addProfilesBuilder() {
return getProfilesFieldBuilder().addBuilder(
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.getDefaultInstance());
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder addProfilesBuilder(
int index) {
return getProfilesFieldBuilder().addBuilder(
index, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.getDefaultInstance());
}
/**
* <code>repeated .profile.ProfileResponse.FetchedProfile profiles = 1;</code>
*
* <pre>
* The fetched profiles.
* </pre>
*/
public java.util.List<org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder>
getProfilesBuilderList() {
return getProfilesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder>
getProfilesFieldBuilder() {
if (profilesBuilder_ == null) {
profilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfile.Builder, org.waveprotocol.box.profile.ProfilesProto.ProfileResponse.FetchedProfileOrBuilder>(
profiles_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
profiles_ = null;
}
return profilesBuilder_;
}
// @@protoc_insertion_point(builder_scope:profile.ProfileResponse)
}
static {
defaultInstance = new ProfileResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:profile.ProfileResponse)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_profile_ProfileRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_profile_ProfileRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_profile_ProfileResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_profile_ProfileResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_profile_ProfileResponse_FetchedProfile_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_profile_ProfileResponse_FetchedProfile_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+org/waveprotocol/box/profile/profiles." +
"proto\022\007profile\"#\n\016ProfileRequest\022\021\n\taddr" +
"esses\030\001 \003(\t\"\243\001\n\017ProfileResponse\0229\n\010profi" +
"les\030\001 \003(\0132\'.profile.ProfileResponse.Fetc" +
"hedProfile\032U\n\016FetchedProfile\022\017\n\007address\030" +
"\001 \002(\t\022\014\n\004name\030\002 \002(\t\022\020\n\010imageUrl\030\003 \002(\t\022\022\n" +
"\nprofileUrl\030\004 \001(\tB-\n\034org.waveprotocol.bo" +
"x.profileB\rProfilesProto"
};
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;
internal_static_profile_ProfileRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_profile_ProfileRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_profile_ProfileRequest_descriptor,
new java.lang.String[] { "Addresses", });
internal_static_profile_ProfileResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_profile_ProfileResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_profile_ProfileResponse_descriptor,
new java.lang.String[] { "Profiles", });
internal_static_profile_ProfileResponse_FetchedProfile_descriptor =
internal_static_profile_ProfileResponse_descriptor.getNestedTypes().get(0);
internal_static_profile_ProfileResponse_FetchedProfile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_profile_ProfileResponse_FetchedProfile_descriptor,
new java.lang.String[] { "Address", "Name", "ImageUrl", "ProfileUrl", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}