Exemple #1
0
 /**
  * Gets the Builder instance for the 'flag_tresholds' field and creates one if it doesn't exist
  * yet. see above
  *
  * @return This builder.
  */
 public convertor.encoders.bridgeStatus.FlagTresholds.Builder getFlagTresholdsBuilder() {
   if (flag_tresholdsBuilder == null) {
     if (hasFlagTresholds()) {
       setFlagTresholdsBuilder(
           convertor.encoders.bridgeStatus.FlagTresholds.newBuilder(flag_tresholds));
     } else {
       setFlagTresholdsBuilder(convertor.encoders.bridgeStatus.FlagTresholds.newBuilder());
     }
   }
   return flag_tresholdsBuilder;
 }
Exemple #2
0
 /**
  * Creates a Builder by copying an existing Builder.
  *
  * @param other The existing Builder to copy.
  */
 private Builder(convertor.encoders.bridgeStatus.BridgeStatus.Builder other) {
   super(other);
   if (isValidValue(fields()[0], other.descriptor_type)) {
     this.descriptor_type = data().deepCopy(fields()[0].schema(), other.descriptor_type);
     fieldSetFlags()[0] = true;
   }
   if (isValidValue(fields()[1], other.published)) {
     this.published = data().deepCopy(fields()[1].schema(), other.published);
     fieldSetFlags()[1] = true;
   }
   if (isValidValue(fields()[2], other.flag_tresholds)) {
     this.flag_tresholds = data().deepCopy(fields()[2].schema(), other.flag_tresholds);
     fieldSetFlags()[2] = true;
   }
   if (other.hasFlagTresholdsBuilder()) {
     this.flag_tresholdsBuilder =
         convertor.encoders.bridgeStatus.FlagTresholds.newBuilder(
             other.getFlagTresholdsBuilder());
   }
   if (isValidValue(fields()[3], other.status)) {
     this.status = data().deepCopy(fields()[3].schema(), other.status);
     fieldSetFlags()[3] = true;
   }
 }