public org.jbpm.marshalling.impl.JBPMMessages.VariableContainer buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.VariableContainer result = new org.jbpm.marshalling.impl.JBPMMessages.VariableContainer(this); int from_bitField0_ = bitField0_; if (variableBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { variable_ = java.util.Collections.unmodifiableList(variable_); bitField0_ = (bitField0_ & ~0x00000001); } result.variable_ = variable_; } else { result.variable_ = variableBuilder_.build(); } onBuilt(); return result; }
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.VariableContainer other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.VariableContainer.getDefaultInstance()) return this; if (variableBuilder_ == null) { if (!other.variable_.isEmpty()) {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVariableCount() > 0) { hash = (37 * hash) + VARIABLE_FIELD_NUMBER; hash = (53 * hash) + getVariableList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
public Builder mergeFrom(org.jbpm.marshalling.impl.JBPMMessages.VariableContainer other) { if (other == org.jbpm.marshalling.impl.JBPMMessages.VariableContainer.getDefaultInstance()) return this; if (variableBuilder_ == null) { if (!other.variable_.isEmpty()) {
public static VariableContainer marshallVariablesContainer(MarshallerWriteContext context, Map<String, Object> variables) throws IOException{ JBPMMessages.VariableContainer.Builder vcbuilder = JBPMMessages.VariableContainer.newBuilder(); for(String key : variables.keySet()){ JBPMMessages.Variable.Builder builder = JBPMMessages.Variable.newBuilder().setName( key ); if(variables.get(key) != null){ ObjectMarshallingStrategy strategy = context.objectMarshallingStrategyStore.getStrategyObject( variables.get(key) ); Integer index = context.getStrategyIndex( strategy ); builder.setStrategyIndex( index ) .setValue( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ), context, variables.get(key) ) ) ); } vcbuilder.addVariable(builder.build()); } return vcbuilder.build(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.jbpm.marshalling.impl.JBPMMessages.VariableContainer)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.VariableContainer other = (org.jbpm.marshalling.impl.JBPMMessages.VariableContainer) obj; boolean result = true; result = result && getVariableList() .equals(other.getVariableList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.jbpm.marshalling.impl.JBPMMessages.VariableContainer buildPartial() { org.jbpm.marshalling.impl.JBPMMessages.VariableContainer result = new org.jbpm.marshalling.impl.JBPMMessages.VariableContainer(this); int from_bitField0_ = bitField0_; if (variableBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { variable_ = java.util.Collections.unmodifiableList(variable_); bitField0_ = (bitField0_ & ~0x00000001); } result.variable_ = variable_; } else { result.variable_ = variableBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVariableCount() > 0) { hash = (37 * hash) + VARIABLE_FIELD_NUMBER; hash = (53 * hash) + getVariableList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.jbpm.marshalling.impl.JBPMMessages.VariableContainer getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.VariableContainer.getDefaultInstance(); }
public static Map<String, Object> unmarshallVariableContainerValue(MarshallerReaderContext context, JBPMMessages.VariableContainer _variableContiner) throws IOException, ClassNotFoundException { Map<String, Object> variables = new HashMap<String, Object>(); if (_variableContiner.getVariableCount() == 0) { return variables; } for (Variable _variable : _variableContiner.getVariableList()) { Object value = ProtobufProcessMarshaller.unmarshallVariableValue(context, _variable); variables.put(_variable.getName(), value); } return variables; }
public org.jbpm.marshalling.impl.JBPMMessages.VariableContainer build() { org.jbpm.marshalling.impl.JBPMMessages.VariableContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
VariableContainer parseFrom = JBPMMessages.VariableContainer.parseFrom(_header.getPayload(), registry); Map<String, Object> value = ProtobufProcessMarshaller.unmarshallVariableContainerValue(context, parseFrom);
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.jbpm.marshalling.impl.JBPMMessages.VariableContainer)) { return super.equals(obj); } org.jbpm.marshalling.impl.JBPMMessages.VariableContainer other = (org.jbpm.marshalling.impl.JBPMMessages.VariableContainer) obj; boolean result = true; result = result && getVariableList() .equals(other.getVariableList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static VariableContainer marshallVariablesContainer(MarshallerWriteContext context, Map<String, Object> variables) throws IOException{ JBPMMessages.VariableContainer.Builder vcbuilder = JBPMMessages.VariableContainer.newBuilder(); for(String key : variables.keySet()){ JBPMMessages.Variable.Builder builder = JBPMMessages.Variable.newBuilder().setName( key ); if(variables.get(key) != null){ ObjectMarshallingStrategy strategy = context.objectMarshallingStrategyStore.getStrategyObject( variables.get(key) ); Integer index = context.getStrategyIndex( strategy ); builder.setStrategyIndex( index ) .setValue( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ), context, variables.get(key) ) ) ); } vcbuilder.addVariable(builder.build()); } return vcbuilder.build(); }
public org.jbpm.marshalling.impl.JBPMMessages.VariableContainer getDefaultInstanceForType() { return org.jbpm.marshalling.impl.JBPMMessages.VariableContainer.getDefaultInstance(); }
public static Map<String, Object> unmarshallVariableContainerValue(MarshallerReaderContext context, JBPMMessages.VariableContainer _variableContiner) throws IOException, ClassNotFoundException { Map<String, Object> variables = new HashMap<String, Object>(); if (_variableContiner.getVariableCount() == 0) { return variables; } for (Variable _variable : _variableContiner.getVariableList()) { Object value = ProtobufProcessMarshaller.unmarshallVariableValue(context, _variable); variables.put(_variable.getName(), value); } return variables; }