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 input
 
Protobuf type iotics.api.InputMessage
  • 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<InputMessage.Builder>
    • clear

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

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

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

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

      public InputMessage.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<InputMessage.Builder>
    • setField

      public InputMessage.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<InputMessage.Builder>
    • clearField

      public InputMessage.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<InputMessage.Builder>
    • clearOneof

      public InputMessage.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<InputMessage.Builder>
    • setRepeatedField

      public InputMessage.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<InputMessage.Builder>
    • addRepeatedField

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

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

      public InputMessage.Builder mergeFrom(InputMessage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      hasOccurredAt in interface InputMessageOrBuilder
      Returns:
      Whether the occurredAt field is set.
    • getOccurredAt

      public Timestamp 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:
      getOccurredAt in interface InputMessageOrBuilder
      Returns:
      The occurredAt.
    • setOccurredAt

      public InputMessage.Builder setOccurredAt(Timestamp value)
       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

      public InputMessage.Builder setOccurredAt(Timestamp.Builder builderForValue)
       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

      public InputMessage.Builder mergeOccurredAt(Timestamp value)
       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

      public InputMessage.Builder 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

      public Timestamp.Builder 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

      public TimestampOrBuilder 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:
      getOccurredAtOrBuilder in interface InputMessageOrBuilder
    • getMime

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

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

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

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

      public InputMessage.Builder setMimeBytes(com.google.protobuf.ByteString value)
       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:
      getData in interface InputMessageOrBuilder
      Returns:
      The data.
    • setData

      public InputMessage.Builder setData(com.google.protobuf.ByteString value)
       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

      public InputMessage.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputMessage.Builder>
    • mergeUnknownFields

      public final InputMessage.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<InputMessage.Builder>