Package com.iotics.api
Class InputMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
com.iotics.api.InputMessage.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InputMessageOrBuilder,Cloneable
- Enclosing class:
- InputMessage
public static final class InputMessage.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
implements InputMessageOrBuilder
InputMessage describe a message that can be sent to an inputProtobuf type
iotics.api.InputMessage-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Data is the actual message, 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 message.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()com.google.protobuf.ByteStringgetData()Data is the actual message, 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 message.OccurredAt is the UTC timestamp of the message.OccurredAt is the UTC timestamp of the message.booleanOccurredAt is the UTC timestamp of the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(InputMessage other) mergeOccurredAt(Timestamp value) OccurredAt is the UTC timestamp of the message.final InputMessage.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setData(com.google.protobuf.ByteString value) Data is the actual message, 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 message.setOccurredAt(Timestamp.Builder builderForValue) OccurredAt is the UTC timestamp of the message.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final InputMessage.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<InputMessage.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<InputMessage.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<InputMessage.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<InputMessage.Builder>
-
setField
public InputMessage.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<InputMessage.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
-
setRepeatedField
public InputMessage.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<InputMessage.Builder>
-
addRepeatedField
public InputMessage.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<InputMessage.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InputMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
-
mergeFrom
public InputMessage.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<InputMessage.Builder>- Throws:
IOException
-
hasOccurredAt
public boolean hasOccurredAt()OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1;- Specified by:
hasOccurredAtin interfaceInputMessageOrBuilder- Returns:
- Whether the occurredAt field is set.
-
getOccurredAt
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1;- Specified by:
getOccurredAtin interfaceInputMessageOrBuilder- Returns:
- The occurredAt.
-
setOccurredAt
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1; -
setOccurredAt
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1; -
mergeOccurredAt
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1; -
clearOccurredAt
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1; -
getOccurredAtBuilder
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1; -
getOccurredAtOrBuilder
OccurredAt is the UTC timestamp of the message. Typically this is either the time at which an application sent this message or the time applicable to the message itself. (Optional: set to host time if not provided)
.google.protobuf.Timestamp occurredAt = 1;- Specified by:
getOccurredAtOrBuilderin interfaceInputMessageOrBuilder
-
getMime
Mime is the mime type of the encoded data.
string mime = 2;- Specified by:
getMimein interfaceInputMessageOrBuilder- Returns:
- The mime.
-
getMimeBytes
public com.google.protobuf.ByteString getMimeBytes()Mime is the mime type of the encoded data.
string mime = 2;- Specified by:
getMimeBytesin interfaceInputMessageOrBuilder- Returns:
- The bytes for mime.
-
setMime
Mime is the mime type of the encoded data.
string mime = 2;- Parameters:
value- The mime to set.- Returns:
- This builder for chaining.
-
clearMime
Mime is the mime type of the encoded data.
string mime = 2;- Returns:
- This builder for chaining.
-
setMimeBytes
Mime is the mime type of the encoded data.
string mime = 2;- Parameters:
value- The bytes for mime to set.- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()Data is the actual message, encoded according the the mime type. The data should follow the Input's value definitions but that is not enforced. (See also Value)
bytes data = 3;- Specified by:
getDatain interfaceInputMessageOrBuilder- Returns:
- The data.
-
setData
Data is the actual message, encoded according the the mime type. The data should follow the Input's value definitions but that is not enforced. (See also Value)
bytes data = 3;- Parameters:
value- The data to set.- Returns:
- This builder for chaining.
-
clearData
Data is the actual message, encoded according the the mime type. The data should follow the Input's value definitions but that is not enforced. (See also Value)
bytes data = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final InputMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
-
mergeUnknownFields
public final InputMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
-