/** * <code>optional .CSVCMsg_UserMessage msg = 2;</code> */ public Builder setMsg( skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage.Builder builderForValue) { if (msgBuilder_ == null) { msg_ = builderForValue.build(); onChanged(); } else { msgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
subBuilder.mergeFrom(msg_); msg_ = subBuilder.buildPartial();
/** * <code>optional bytes msg_data = 2;</code> */ public Builder setMsgData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; msgData_ = value; onChanged(); return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional .CSVCMsg_UserMessage msg = 2;</code> */ public Builder mergeMsg(skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage value) { if (msgBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && msg_ != skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage.getDefaultInstance()) { msg_ = skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage.newBuilder(msg_).mergeFrom(value).buildPartial(); } else { msg_ = value; } onChanged(); } else { msgBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
public skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage buildPartial() { skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage result = new skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.msgType_ = msgType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.msgData_ = msgData_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
public static Builder newBuilder(skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage 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; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
public skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage build() { skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional bytes msg_data = 2;</code> */ public Builder clearMsgData() { bitField0_ = (bitField0_ & ~0x00000002); msgData_ = getDefaultInstance().getMsgData(); onChanged(); return this; }
/** * <code>optional int32 msg_type = 1;</code> */ public Builder setMsgType(int value) { bitField0_ |= 0x00000001; msgType_ = value; onChanged(); return this; } /**
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
/** * <code>optional int32 msg_type = 1;</code> */ public Builder clearMsgType() { bitField0_ = (bitField0_ & ~0x00000001); msgType_ = 0; onChanged(); return this; }
public Builder mergeFrom(skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage other) { if (other == skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage.getDefaultInstance()) return this; if (other.hasMsgType()) { setMsgType(other.getMsgType()); } if (other.hasMsgData()) { setMsgData(other.getMsgData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage) { return mergeFrom((skadistats.clarity.wire.common.proto.NetworkBaseTypes.CSVCMsg_UserMessage)other); } else { super.mergeFrom(other); return this; } }