/** * <code>optional .org.drools.marshalling.ActionQueue.SignalProcessInstance signal_process_instance = 9;</code> */ public Builder setSignalProcessInstance( org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance.Builder builderForValue) { if (signalProcessInstanceBuilder_ == null) { signalProcessInstance_ = builderForValue.build(); onChanged(); } else { signalProcessInstanceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /**
subBuilder.mergeFrom(signalProcessInstance_); signalProcessInstance_ = subBuilder.buildPartial();
/** * <code>optional string type = 1;</code> */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /**
public org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance buildPartial() { org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance result = new org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.event_ = event_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.processInstanceId_ = processInstanceId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional .org.drools.marshalling.ActionQueue.SignalProcessInstance signal_process_instance = 9;</code> */ public Builder mergeSignalProcessInstance(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance value) { if (signalProcessInstanceBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && signalProcessInstance_ != org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance.getDefaultInstance()) { signalProcessInstance_ = org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance.newBuilder(signalProcessInstance_).mergeFrom(value).buildPartial(); } else { signalProcessInstance_ = value; } onChanged(); } else { signalProcessInstanceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance other) { if (other == org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasEvent()) { setEvent(other.getEvent()); } if (other.hasProcessInstanceId()) { setProcessInstanceId(other.getProcessInstanceId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private static Builder create() { return new Builder(); }
/** * <code>optional int64 process_instance_id = 3;</code> */ public Builder clearProcessInstanceId() { bitField0_ = (bitField0_ & ~0x00000004); processInstanceId_ = 0L; onChanged(); return this; }
/** * <code>optional int64 process_instance_id = 3;</code> */ public Builder setProcessInstanceId(long value) { bitField0_ |= 0x00000004; processInstanceId_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance) { return mergeFrom((org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public Builder clone() { return create().mergeFrom(buildPartial()); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
/** * <code>optional string type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
/** * <code>optional string type = 1;</code> */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; }
public static Builder newBuilder(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.SignalProcessInstance prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
/** * <code>optional bytes event = 2;</code> */ public Builder setEvent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; event_ = value; onChanged(); return this; } /**
/** * <code>optional bytes event = 2;</code> */ public Builder clearEvent() { bitField0_ = (bitField0_ & ~0x00000002); event_ = getDefaultInstance().getEvent(); onChanged(); return this; }