Class FeedData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
com.iotics.api.FeedData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FeedDataOrBuilder, Cloneable
Enclosing class:
FeedData

public static final class FeedData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder> implements FeedDataOrBuilder
 FeedData is set of datapoints shared via a Feed.
 
Protobuf type iotics.api.FeedData
  • Method Details

    • getDescriptor

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

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

      public FeedData.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.GeneratedMessageV3.Builder<FeedData.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.GeneratedMessageV3.Builder<FeedData.Builder>
    • getDefaultInstanceForType

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

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

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

      public FeedData.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • setField

      public FeedData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • clearField

      public FeedData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • clearOneof

      public FeedData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • setRepeatedField

      public FeedData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • addRepeatedField

      public FeedData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • mergeFrom

      public FeedData.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<FeedData.Builder>
    • mergeFrom

      public FeedData.Builder mergeFrom(FeedData other)
    • isInitialized

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

      public FeedData.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<FeedData.Builder>
      Throws:
      IOException
    • hasOccurredAt

      public boolean hasOccurredAt()
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
      Specified by:
      hasOccurredAt in interface FeedDataOrBuilder
      Returns:
      Whether the occurredAt field is set.
    • getOccurredAt

      public Timestamp getOccurredAt()
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
      Specified by:
      getOccurredAt in interface FeedDataOrBuilder
      Returns:
      The occurredAt.
    • setOccurredAt

      public FeedData.Builder setOccurredAt(Timestamp value)
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
    • setOccurredAt

      public FeedData.Builder setOccurredAt(Timestamp.Builder builderForValue)
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
    • mergeOccurredAt

      public FeedData.Builder mergeOccurredAt(Timestamp value)
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
    • clearOccurredAt

      public FeedData.Builder clearOccurredAt()
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
    • getOccurredAtBuilder

      public Timestamp.Builder getOccurredAtBuilder()
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
    • getOccurredAtOrBuilder

      public TimestampOrBuilder getOccurredAtOrBuilder()
       occurredAt is the UTC timestamp of the sample. Typically this is either the time at which an application shared
       this sample or the time applicable to the sample itself (such as an hourly weather observation).
       (Optional: set to host time if not provided)
       
      .google.protobuf.Timestamp occurredAt = 2;
      Specified by:
      getOccurredAtOrBuilder in interface FeedDataOrBuilder
    • getMime

      public String getMime()
       mime is the mime type of the encoded data.
       
      string mime = 3;
      Specified by:
      getMime in interface FeedDataOrBuilder
      Returns:
      The mime.
    • getMimeBytes

      public com.google.protobuf.ByteString getMimeBytes()
       mime is the mime type of the encoded data.
       
      string mime = 3;
      Specified by:
      getMimeBytes in interface FeedDataOrBuilder
      Returns:
      The bytes for mime.
    • setMime

      public FeedData.Builder setMime(String value)
       mime is the mime type of the encoded data.
       
      string mime = 3;
      Parameters:
      value - The mime to set.
      Returns:
      This builder for chaining.
    • clearMime

      public FeedData.Builder clearMime()
       mime is the mime type of the encoded data.
       
      string mime = 3;
      Returns:
      This builder for chaining.
    • setMimeBytes

      public FeedData.Builder setMimeBytes(com.google.protobuf.ByteString value)
       mime is the mime type of the encoded data.
       
      string mime = 3;
      Parameters:
      value - The bytes for mime to set.
      Returns:
      This builder for chaining.
    • getData

      public com.google.protobuf.ByteString getData()
       data is the actual set of datapoints, encoded according the the mime type. The data should follow the Feed's
       value definitions but that is not enforced. (See also Value)
       
      bytes data = 4;
      Specified by:
      getData in interface FeedDataOrBuilder
      Returns:
      The data.
    • setData

      public FeedData.Builder setData(com.google.protobuf.ByteString value)
       data is the actual set of datapoints, encoded according the the mime type. The data should follow the Feed's
       value definitions but that is not enforced. (See also Value)
       
      bytes data = 4;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public FeedData.Builder clearData()
       data is the actual set of datapoints, encoded according the the mime type. The data should follow the Feed's
       value definitions but that is not enforced. (See also Value)
       
      bytes data = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final FeedData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
    • mergeUnknownFields

      public final FeedData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>