Class Weight.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Weight.Builder>
com.google.devicesandservices.health.v4.Weight.Builder
All Implemented Interfaces:
WeightOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Weight

public static final class Weight.Builder extends com.google.protobuf.GeneratedMessage.Builder<Weight.Builder> implements WeightOrBuilder
 Body weight measurement.
 
Protobuf type google.devicesandservices.health.v4.Weight
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Weight.Builder>
    • clear

      public Weight.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Weight.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Weight.Builder>
    • getDefaultInstanceForType

      public Weight getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Weight build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Weight buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Weight.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Weight.Builder>
    • mergeFrom

      public Weight.Builder mergeFrom(Weight other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Weight.Builder>
    • mergeFrom

      public Weight.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Weight.Builder>
      Throws:
      IOException
    • hasSampleTime

      public boolean hasSampleTime()
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSampleTime in interface WeightOrBuilder
      Returns:
      Whether the sampleTime field is set.
    • getSampleTime

      public ObservationSampleTime getSampleTime()
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleTime in interface WeightOrBuilder
      Returns:
      The sampleTime.
    • setSampleTime

      public Weight.Builder setSampleTime(ObservationSampleTime value)
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSampleTime

      public Weight.Builder setSampleTime(ObservationSampleTime.Builder builderForValue)
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSampleTime

      public Weight.Builder mergeSampleTime(ObservationSampleTime value)
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSampleTime

      public Weight.Builder clearSampleTime()
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSampleTimeBuilder

      public ObservationSampleTime.Builder getSampleTimeBuilder()
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSampleTimeOrBuilder

      public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()
       Required. The time at which the weight was measured
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleTimeOrBuilder in interface WeightOrBuilder
    • getWeightGrams

      public double getWeightGrams()
       Required. Weight of a user in grams.
       
      double weight_grams = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWeightGrams in interface WeightOrBuilder
      Returns:
      The weightGrams.
    • setWeightGrams

      public Weight.Builder setWeightGrams(double value)
       Required. Weight of a user in grams.
       
      double weight_grams = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The weightGrams to set.
      Returns:
      This builder for chaining.
    • clearWeightGrams

      public Weight.Builder clearWeightGrams()
       Required. Weight of a user in grams.
       
      double weight_grams = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getNotes

      public String getNotes()
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotes in interface WeightOrBuilder
      Returns:
      The notes.
    • getNotesBytes

      public com.google.protobuf.ByteString getNotesBytes()
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotesBytes in interface WeightOrBuilder
      Returns:
      The bytes for notes.
    • setNotes

      public Weight.Builder setNotes(String value)
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The notes to set.
      Returns:
      This builder for chaining.
    • clearNotes

      public Weight.Builder clearNotes()
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNotesBytes

      public Weight.Builder setNotesBytes(com.google.protobuf.ByteString value)
       Optional. Standard free-form notes captured at manual logging.
       
      string notes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for notes to set.
      Returns:
      This builder for chaining.