/** * <code>optional string string_value = 2;</code> */ public Builder setStringValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stringValue_ = value; onChanged(); return this; }
/** * <code>optional string string_value = 2;</code> */ public Builder setStringValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stringValue_ = value; onChanged(); return this; } /**
/** * <code>optional .openxc.DynamicField.Type type = 1;</code> */ public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /**
public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) { if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasStringValue()) { bitField0_ |= 0x00000002; stringValue_ = other.stringValue_; onChanged(); } if (other.hasNumericValue()) { setNumericValue(other.getNumericValue()); } if (other.hasBooleanValue()) { setBooleanValue(other.getBooleanValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>optional bool boolean_value = 4;</code> */ public Builder clearBooleanValue() { bitField0_ = (bitField0_ & ~0x00000008); booleanValue_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional bool boolean_value = 4;</code> */ public Builder setBooleanValue(boolean value) { bitField0_ |= 0x00000008; booleanValue_ = value; onChanged(); return this; } /**
/** * <code>optional double numeric_value = 3;</code> */ public Builder setNumericValue(double value) { bitField0_ |= 0x00000004; numericValue_ = value; onChanged(); return this; } /**
/** * <code>optional double numeric_value = 3;</code> */ public Builder clearNumericValue() { bitField0_ = (bitField0_ & ~0x00000004); numericValue_ = 0D; onChanged(); return this; }
/** * <code>optional string string_value = 2;</code> */ public Builder clearStringValue() { bitField0_ = (bitField0_ & ~0x00000002); stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; } /**
/** * <code>optional .openxc.DynamicField.Type type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; }