Class DataSync.SensorMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<DataSync.SensorMetadata,DataSync.SensorMetadata.Builder>
viam.app.datasync.v1.DataSync.SensorMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, DataSync.SensorMetadataOrBuilder
Enclosing class:
DataSync.SensorMetadata

public static final class DataSync.SensorMetadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<DataSync.SensorMetadata,DataSync.SensorMetadata.Builder> implements DataSync.SensorMetadataOrBuilder
 SensorMetadata contains the time the sensor data was requested and was
 received.
 
Protobuf type viam.app.datasync.v1.SensorMetadata
  • Method Details

    • hasTimeRequested

      public boolean hasTimeRequested()
      .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"];
      Specified by:
      hasTimeRequested in interface DataSync.SensorMetadataOrBuilder
      Returns:
      Whether the timeRequested field is set.
    • getTimeRequested

      public com.google.protobuf.Timestamp getTimeRequested()
      .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"];
      Specified by:
      getTimeRequested in interface DataSync.SensorMetadataOrBuilder
      Returns:
      The timeRequested.
    • setTimeRequested

      public DataSync.SensorMetadata.Builder setTimeRequested(com.google.protobuf.Timestamp value)
      .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"];
    • setTimeRequested

      public DataSync.SensorMetadata.Builder setTimeRequested(com.google.protobuf.Timestamp.Builder builderForValue)
      .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"];
    • mergeTimeRequested

      public DataSync.SensorMetadata.Builder mergeTimeRequested(com.google.protobuf.Timestamp value)
      .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"];
    • clearTimeRequested

      public DataSync.SensorMetadata.Builder clearTimeRequested()
      .google.protobuf.Timestamp time_requested = 1 [json_name = "timeRequested"];
    • hasTimeReceived

      public boolean hasTimeReceived()
      .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"];
      Specified by:
      hasTimeReceived in interface DataSync.SensorMetadataOrBuilder
      Returns:
      Whether the timeReceived field is set.
    • getTimeReceived

      public com.google.protobuf.Timestamp getTimeReceived()
      .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"];
      Specified by:
      getTimeReceived in interface DataSync.SensorMetadataOrBuilder
      Returns:
      The timeReceived.
    • setTimeReceived

      public DataSync.SensorMetadata.Builder setTimeReceived(com.google.protobuf.Timestamp value)
      .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"];
    • setTimeReceived

      public DataSync.SensorMetadata.Builder setTimeReceived(com.google.protobuf.Timestamp.Builder builderForValue)
      .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"];
    • mergeTimeReceived

      public DataSync.SensorMetadata.Builder mergeTimeReceived(com.google.protobuf.Timestamp value)
      .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"];
    • clearTimeReceived

      public DataSync.SensorMetadata.Builder clearTimeReceived()
      .google.protobuf.Timestamp time_received = 2 [json_name = "timeReceived"];
    • getMimeTypeValue

      public int getMimeTypeValue()
      .viam.app.datasync.v1.MimeType mime_type = 3 [json_name = "mimeType"];
      Specified by:
      getMimeTypeValue in interface DataSync.SensorMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for mimeType.
    • setMimeTypeValue

      public DataSync.SensorMetadata.Builder setMimeTypeValue(int value)
      .viam.app.datasync.v1.MimeType mime_type = 3 [json_name = "mimeType"];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • getMimeType

      public DataSync.MimeType getMimeType()
      .viam.app.datasync.v1.MimeType mime_type = 3 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface DataSync.SensorMetadataOrBuilder
      Returns:
      The mimeType.
    • setMimeType

      .viam.app.datasync.v1.MimeType mime_type = 3 [json_name = "mimeType"];
      Parameters:
      value - The enum numeric value on the wire for mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public DataSync.SensorMetadata.Builder clearMimeType()
      .viam.app.datasync.v1.MimeType mime_type = 3 [json_name = "mimeType"];
      Returns:
      This builder for chaining.
    • hasAnnotations

      public boolean hasAnnotations()
      .viam.app.data.v1.Annotations annotations = 4 [json_name = "annotations"];
      Specified by:
      hasAnnotations in interface DataSync.SensorMetadataOrBuilder
      Returns:
      Whether the annotations field is set.
    • getAnnotations

      public Data.Annotations getAnnotations()
      .viam.app.data.v1.Annotations annotations = 4 [json_name = "annotations"];
      Specified by:
      getAnnotations in interface DataSync.SensorMetadataOrBuilder
      Returns:
      The annotations.
    • setAnnotations

      public DataSync.SensorMetadata.Builder setAnnotations(Data.Annotations value)
      .viam.app.data.v1.Annotations annotations = 4 [json_name = "annotations"];
    • setAnnotations

      public DataSync.SensorMetadata.Builder setAnnotations(Data.Annotations.Builder builderForValue)
      .viam.app.data.v1.Annotations annotations = 4 [json_name = "annotations"];
    • mergeAnnotations

      public DataSync.SensorMetadata.Builder mergeAnnotations(Data.Annotations value)
      .viam.app.data.v1.Annotations annotations = 4 [json_name = "annotations"];
    • clearAnnotations

      public DataSync.SensorMetadata.Builder clearAnnotations()
      .viam.app.data.v1.Annotations annotations = 4 [json_name = "annotations"];