Class AppPlatformEventBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AppPlatformEventBody.Builder>
com.google.cloud.visionai.v1.AppPlatformEventBody.Builder
All Implemented Interfaces:
AppPlatformEventBodyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AppPlatformEventBody

public static final class AppPlatformEventBody.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppPlatformEventBody.Builder> implements AppPlatformEventBodyOrBuilder
 Message of content of appPlatform event
 
Protobuf type google.cloud.visionai.v1.AppPlatformEventBody
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated & only first one will be sent out.
    Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated & only first one will be sent out.
    com.google.protobuf.ByteString
    User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated & only first one will be sent out.
    Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".
    com.google.protobuf.ByteString
    Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".
    com.google.protobuf.Struct
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
    com.google.protobuf.Struct.Builder
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
    com.google.protobuf.StructOrBuilder
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
    boolean
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergePayload(com.google.protobuf.Struct value)
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
    User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated & only first one will be sent out.
    setEventIdBytes(com.google.protobuf.ByteString value)
    User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated & only first one will be sent out.
    Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".
    setEventMessageBytes(com.google.protobuf.ByteString value)
    Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".
    setPayload(com.google.protobuf.Struct value)
    For the case of Pub/Sub, it will be stored in the message attributes. ​​
    setPayload(com.google.protobuf.Struct.Builder builderForValue)
    For the case of Pub/Sub, it will be stored in the message attributes. ​​

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AppPlatformEventBody.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.GeneratedMessage.Builder<AppPlatformEventBody.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.GeneratedMessage.Builder<AppPlatformEventBody.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public AppPlatformEventBody.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<AppPlatformEventBody.Builder>
      Throws:
      IOException
    • getEventMessage

      public String getEventMessage()
       Human readable string of the event like "There are more than 6 people in
       the scene". or "Shelf is empty!".
       
      string event_message = 1;
      Specified by:
      getEventMessage in interface AppPlatformEventBodyOrBuilder
      Returns:
      The eventMessage.
    • getEventMessageBytes

      public com.google.protobuf.ByteString getEventMessageBytes()
       Human readable string of the event like "There are more than 6 people in
       the scene". or "Shelf is empty!".
       
      string event_message = 1;
      Specified by:
      getEventMessageBytes in interface AppPlatformEventBodyOrBuilder
      Returns:
      The bytes for eventMessage.
    • setEventMessage

      public AppPlatformEventBody.Builder setEventMessage(String value)
       Human readable string of the event like "There are more than 6 people in
       the scene". or "Shelf is empty!".
       
      string event_message = 1;
      Parameters:
      value - The eventMessage to set.
      Returns:
      This builder for chaining.
    • clearEventMessage

      public AppPlatformEventBody.Builder clearEventMessage()
       Human readable string of the event like "There are more than 6 people in
       the scene". or "Shelf is empty!".
       
      string event_message = 1;
      Returns:
      This builder for chaining.
    • setEventMessageBytes

      public AppPlatformEventBody.Builder setEventMessageBytes(com.google.protobuf.ByteString value)
       Human readable string of the event like "There are more than 6 people in
       the scene". or "Shelf is empty!".
       
      string event_message = 1;
      Parameters:
      value - The bytes for eventMessage to set.
      Returns:
      This builder for chaining.
    • hasPayload

      public boolean hasPayload()
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
      Specified by:
      hasPayload in interface AppPlatformEventBodyOrBuilder
      Returns:
      Whether the payload field is set.
    • getPayload

      public com.google.protobuf.Struct getPayload()
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
      Specified by:
      getPayload in interface AppPlatformEventBodyOrBuilder
      Returns:
      The payload.
    • setPayload

      public AppPlatformEventBody.Builder setPayload(com.google.protobuf.Struct value)
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
    • setPayload

      public AppPlatformEventBody.Builder setPayload(com.google.protobuf.Struct.Builder builderForValue)
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
    • mergePayload

      public AppPlatformEventBody.Builder mergePayload(com.google.protobuf.Struct value)
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
    • clearPayload

      public AppPlatformEventBody.Builder clearPayload()
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
    • getPayloadBuilder

      public com.google.protobuf.Struct.Builder getPayloadBuilder()
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
    • getPayloadOrBuilder

      public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
       For the case of Pub/Sub, it will be stored in the message attributes.
       ​​pubsub.proto
       
      .google.protobuf.Struct payload = 2;
      Specified by:
      getPayloadOrBuilder in interface AppPlatformEventBodyOrBuilder
    • getEventId

      public String getEventId()
       User defined Event Id, used to classify event, within a delivery interval,
       events from the same application instance with the same id will be
       de-duplicated & only first one will be sent out. Empty event_id will be
       treated as "".
       
      string event_id = 3;
      Specified by:
      getEventId in interface AppPlatformEventBodyOrBuilder
      Returns:
      The eventId.
    • getEventIdBytes

      public com.google.protobuf.ByteString getEventIdBytes()
       User defined Event Id, used to classify event, within a delivery interval,
       events from the same application instance with the same id will be
       de-duplicated & only first one will be sent out. Empty event_id will be
       treated as "".
       
      string event_id = 3;
      Specified by:
      getEventIdBytes in interface AppPlatformEventBodyOrBuilder
      Returns:
      The bytes for eventId.
    • setEventId

      public AppPlatformEventBody.Builder setEventId(String value)
       User defined Event Id, used to classify event, within a delivery interval,
       events from the same application instance with the same id will be
       de-duplicated & only first one will be sent out. Empty event_id will be
       treated as "".
       
      string event_id = 3;
      Parameters:
      value - The eventId to set.
      Returns:
      This builder for chaining.
    • clearEventId

      public AppPlatformEventBody.Builder clearEventId()
       User defined Event Id, used to classify event, within a delivery interval,
       events from the same application instance with the same id will be
       de-duplicated & only first one will be sent out. Empty event_id will be
       treated as "".
       
      string event_id = 3;
      Returns:
      This builder for chaining.
    • setEventIdBytes

      public AppPlatformEventBody.Builder setEventIdBytes(com.google.protobuf.ByteString value)
       User defined Event Id, used to classify event, within a delivery interval,
       events from the same application instance with the same id will be
       de-duplicated & only first one will be sent out. Empty event_id will be
       treated as "".
       
      string event_id = 3;
      Parameters:
      value - The bytes for eventId to set.
      Returns:
      This builder for chaining.