subBuilder.mergeFrom(time_); time_ = subBuilder.buildPartial();
/** <code>.google.type.TimeOfDay time = 3;</code> */ public Builder setTime(com.google.type.TimeOfDay.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); } else { timeBuilder_.setMessage(builderForValue.build()); } return this; } /** <code>.google.type.TimeOfDay time = 3;</code> */
input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.type.TimeOfDay) type_); type_ = subBuilder.buildPartial();
subBuilder.mergeFrom(time_); time_ = subBuilder.buildPartial();
/** * <code>.google.type.TimeOfDay time_value = 6;</code> */ public Builder mergeTimeValue(com.google.type.TimeOfDay value) { if (timeValueBuilder_ == null) { if (typeCase_ == 6 && type_ != com.google.type.TimeOfDay.getDefaultInstance()) { type_ = com.google.type.TimeOfDay.newBuilder((com.google.type.TimeOfDay) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 6) { timeValueBuilder_.mergeFrom(value); } timeValueBuilder_.setMessage(value); } typeCase_ = 6; return this; } /**
/** * <code>.google.type.TimeOfDay time = 3;</code> */ public Builder mergeTime(com.google.type.TimeOfDay value) { if (timeBuilder_ == null) { if (time_ != null) { time_ = com.google.type.TimeOfDay.newBuilder(time_).mergeFrom(value).buildPartial(); } else { time_ = value; } onChanged(); } else { timeBuilder_.mergeFrom(value); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.type.TimeOfDay parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.type.TimeOfDay) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>.google.type.TimeOfDay time_value = 6;</code> */ public Builder setTimeValue( com.google.type.TimeOfDay.Builder builderForValue) { if (timeValueBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { timeValueBuilder_.setMessage(builderForValue.build()); } typeCase_ = 6; return this; } /**
public Builder mergeFrom(com.google.type.TimeOfDay other) { if (other == com.google.type.TimeOfDay.getDefaultInstance()) return this; if (other.getHours() != 0) { setHours(other.getHours()); } if (other.getMinutes() != 0) { setMinutes(other.getMinutes()); } if (other.getSeconds() != 0) { setSeconds(other.getSeconds()); } if (other.getNanos() != 0) { setNanos(other.getNanos()); } onChanged(); return this; }
private Builder() { maybeForceBuilderInitialization(); }
/** * <pre> * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * </pre> * * <code>int32 hours = 1;</code> */ public Builder setHours(int value) { hours_ = value; onChanged(); return this; } /**
public static Builder newBuilder(com.google.type.TimeOfDay prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <pre> * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * </pre> * * <code>int32 nanos = 4;</code> */ public Builder clearNanos() { nanos_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Minutes of hour of day. Must be from 0 to 59. * </pre> * * <code>int32 minutes = 2;</code> */ public Builder setMinutes(int value) { minutes_ = value; onChanged(); return this; } /**
/** * <pre> * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * </pre> * * <code>int32 seconds = 3;</code> */ public Builder setSeconds(int value) { seconds_ = value; onChanged(); return this; } /**
/** * <pre> * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * </pre> * * <code>int32 nanos = 4;</code> */ public Builder setNanos(int value) { nanos_ = value; onChanged(); return this; } /**
/** * <pre> * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * </pre> * * <code>int32 hours = 1;</code> */ public Builder clearHours() { hours_ = 0; onChanged(); return this; }
public com.google.type.TimeOfDay buildPartial() { com.google.type.TimeOfDay result = new com.google.type.TimeOfDay(this); result.hours_ = hours_; result.minutes_ = minutes_; result.seconds_ = seconds_; result.nanos_ = nanos_; onBuilt(); return result; }
/** * <pre> * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * </pre> * * <code>int32 seconds = 3;</code> */ public Builder clearSeconds() { seconds_ = 0; onChanged(); return this; }