Java 类com.google.protobuf.LazyStringArrayList 实例源码

项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
public PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Builder clear() {
    super.clear();
    this.id_ = ByteString.EMPTY;
    this.bitField0_ &= -2;
    this.type_ = PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Type.UNKNOWN;
    this.bitField0_ &= -3;
    this.name_ = "";
    this.bitField0_ &= -5;
    this.members_ = LazyStringArrayList.EMPTY;
    this.bitField0_ &= -9;
    if(this.avatarBuilder_ == null) {
        this.avatar_ = PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer.defaultInstance;
    } else {
        this.avatarBuilder_.clear();
    }

    this.bitField0_ &= -17;
    return this;
}
项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
private void initFields() {
    this.id_ = ByteString.EMPTY;
    this.type_ = PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Type.UNKNOWN;
    this.name_ = "";
    this.members_ = LazyStringArrayList.EMPTY;
    this.avatar_ = PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer.defaultInstance;
}
项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
private Builder() {
    this.id_ = ByteString.EMPTY;
    this.type_ = PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Type.UNKNOWN;
    this.name_ = "";
    this.members_ = LazyStringArrayList.EMPTY;
    this.avatar_ = PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer.defaultInstance;
    this.maybeForceBuilderInitialization();
}
项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
private Builder(BuilderParent parent) {
    super(parent);
    this.id_ = ByteString.EMPTY;
    this.type_ = PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Type.UNKNOWN;
    this.name_ = "";
    this.members_ = LazyStringArrayList.EMPTY;
    this.avatar_ = PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer.defaultInstance;
    this.maybeForceBuilderInitialization();
}
项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
private void ensureMembersIsMutable() {
    if((this.bitField0_ & 8) != 8) {
        this.members_ = new LazyStringArrayList(this.members_);
        this.bitField0_ |= 8;
    }

}
项目:grumble    文件:Mumble.java   
private void initFields() {
    username_ = "";
    password_ = "";
    tokens_ = LazyStringArrayList.EMPTY;
    celtVersions_ = Collections.emptyList();
    opus_ = false;
}
项目:grumble    文件:Mumble.java   
public Builder clear() {
    super.clear();
    username_ = "";
    bitField0_ = (bitField0_ & ~0x00000001);
    password_ = "";
    bitField0_ = (bitField0_ & ~0x00000002);
    tokens_ = LazyStringArrayList.EMPTY;
    bitField0_ = (bitField0_ & ~0x00000004);
    celtVersions_ = Collections.emptyList();
    bitField0_ = (bitField0_ & ~0x00000008);
    opus_ = false;
    bitField0_ = (bitField0_ & ~0x00000010);
    return this;
}
项目:grumble    文件:Mumble.java   
/**
 * <code>repeated string tokens = 3;</code>
 */
public Builder clearTokens() {
    tokens_ = LazyStringArrayList.EMPTY;
    bitField0_ = (bitField0_ & ~0x00000004);
    onChanged();
    return this;
}
项目:grumble    文件:Mumble.java   
public Builder clear() {
    super.clear();
    ids_ = Collections.emptyList();
    bitField0_ = (bitField0_ & ~0x00000001);
    names_ = LazyStringArrayList.EMPTY;
    bitField0_ = (bitField0_ & ~0x00000002);
    return this;
}
项目:grumble    文件:Mumble.java   
/**
 * <code>repeated string names = 2;</code>
 */
public Builder clearNames() {
    names_ = LazyStringArrayList.EMPTY;
    bitField0_ = (bitField0_ & ~0x00000002);
    onChanged();
    return this;
}
项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
private GroupContext(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
    this.memoizedIsInitialized = -1;
    this.memoizedSerializedSize = -1;
    this.initFields();
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields = UnknownFieldSet.newBuilder();

    try {
        boolean e = false;

        while(!e) {
            int tag = input.readTag();
            switch(tag) {
                case 0:
                    e = true;
                    break;
                case 10:
                    this.bitField0_ |= 1;
                    this.id_ = input.readBytes();
                    break;
                case 16:
                    int subBuilder1 = input.readEnum();
                    PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Type value = PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Type.valueOf(subBuilder1);
                    if(value == null) {
                        unknownFields.mergeVarintField(2, subBuilder1);
                    } else {
                        this.bitField0_ |= 2;
                        this.type_ = value;
                    }
                    break;
                case 26:
                    this.bitField0_ |= 4;
                    this.name_ = input.readBytes();
                    break;
                case 34:
                    if((mutable_bitField0_ & 8) != 8) {
                        this.members_ = new LazyStringArrayList();
                        mutable_bitField0_ |= 8;
                    }

                    this.members_.add(input.readBytes());
                    break;
                case 42:
                    PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer.Builder subBuilder = null;
                    if((this.bitField0_ & 8) == 8) {
                        subBuilder = this.avatar_.toBuilder();
                    }

                    this.avatar_ = (PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer)input.readMessage(PushSMPMessageProtos.PushSMPMessageContent.AttachmentPointer.PARSER, extensionRegistry);
                    if(subBuilder != null) {
                        subBuilder.mergeFrom(this.avatar_);
                        this.avatar_ = subBuilder.buildPartial();
                    }

                    this.bitField0_ |= 8;
                    break;
                default:
                    if(!this.parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                        e = true;
                    }
            }
        }
    } catch (InvalidProtocolBufferException var13) {
        throw var13.setUnfinishedMessage(this);
    } catch (IOException var14) {
        throw (new InvalidProtocolBufferException(var14.getMessage())).setUnfinishedMessage(this);
    } finally {
        if((mutable_bitField0_ & 8) == 8) {
            this.members_ = new UnmodifiableLazyStringList(this.members_);
        }

        this.unknownFields = unknownFields.build();
        this.makeExtensionsImmutable();
    }

}
项目:TextSecureSMP    文件:PushSMPMessageProtos.java   
public PushSMPMessageProtos.PushSMPMessageContent.GroupContext.Builder clearMembers() {
    this.members_ = LazyStringArrayList.EMPTY;
    this.bitField0_ &= -9;
    this.onChanged();
    return this;
}
项目:grumble    文件:Mumble.java   
private void ensureTokensIsMutable() {
    if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        tokens_ = new LazyStringArrayList(tokens_);
        bitField0_ |= 0x00000004;
    }
}
项目:grumble    文件:Mumble.java   
private void initFields() {
    ids_ = Collections.emptyList();
    names_ = LazyStringArrayList.EMPTY;
}
项目:grumble    文件:Mumble.java   
private void ensureNamesIsMutable() {
    if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        names_ = new LazyStringArrayList(names_);
        bitField0_ |= 0x00000002;
    }
}