Package com.iotics.api
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()data is the actual set of datapoints, encoded according the the mime type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) mime is the mime type of the encoded data.occurredAt is the UTC timestamp of the sample.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()com.google.protobuf.ByteStringgetData()data is the actual set of datapoints, encoded according the the mime type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMime()mime is the mime type of the encoded data.com.google.protobuf.ByteStringmime is the mime type of the encoded data.occurredAt is the UTC timestamp of the sample.occurredAt is the UTC timestamp of the sample.occurredAt is the UTC timestamp of the sample.booleanoccurredAt is the UTC timestamp of the sample.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOccurredAt(Timestamp value) occurredAt is the UTC timestamp of the sample.final FeedData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setData(com.google.protobuf.ByteString value) data is the actual set of datapoints, encoded according the the mime type.mime is the mime type of the encoded data.setMimeBytes(com.google.protobuf.ByteString value) mime is the mime type of the encoded data.setOccurredAt(Timestamp value) occurredAt is the UTC timestamp of the sample.setOccurredAt(Timestamp.Builder builderForValue) occurredAt is the UTC timestamp of the sample.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final FeedData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
setField
public FeedData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
setRepeatedField
public FeedData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
addRepeatedField
public FeedData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeedData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasOccurredAtin interfaceFeedDataOrBuilder- Returns:
- Whether the occurredAt field is set.
-
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:
getOccurredAtin interfaceFeedDataOrBuilder- Returns:
- The occurredAt.
-
setOccurredAt
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
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
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
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
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
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:
getOccurredAtOrBuilderin interfaceFeedDataOrBuilder
-
getMime
mime is the mime type of the encoded data.
string mime = 3;- Specified by:
getMimein interfaceFeedDataOrBuilder- Returns:
- The mime.
-
getMimeBytes
public com.google.protobuf.ByteString getMimeBytes()mime is the mime type of the encoded data.
string mime = 3;- Specified by:
getMimeBytesin interfaceFeedDataOrBuilder- Returns:
- The bytes for mime.
-
setMime
mime is the mime type of the encoded data.
string mime = 3;- Parameters:
value- The mime to set.- Returns:
- This builder for chaining.
-
clearMime
mime is the mime type of the encoded data.
string mime = 3;- Returns:
- This builder for chaining.
-
setMimeBytes
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:
getDatain interfaceFeedDataOrBuilder- Returns:
- The data.
-
setData
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
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
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedData.Builder>
-