Package com.google.cloud.visionai.v1
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 eventProtobuf type
google.cloud.visionai.v1.AppPlatformEventBody-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorUser 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.ByteStringUser 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.ByteStringHuman readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".com.google.protobuf.StructFor the case of Pub/Sub, it will be stored in the message attributes. com.google.protobuf.Struct.BuilderFor the case of Pub/Sub, it will be stored in the message attributes. com.google.protobuf.StructOrBuilderFor the case of Pub/Sub, it will be stored in the message attributes. booleanFor the case of Pub/Sub, it will be stored in the message attributes. protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AppPlatformEventBody other) 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. 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.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.setEventMessage(String value) 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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AppPlatformEventBody.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AppPlatformEventBody.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.GeneratedMessage.Builder<AppPlatformEventBody.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppPlatformEventBody.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppPlatformEventBody.Builder>- Throws:
IOException
-
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:
getEventMessagein interfaceAppPlatformEventBodyOrBuilder- 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:
getEventMessageBytesin interfaceAppPlatformEventBodyOrBuilder- Returns:
- The bytes for eventMessage.
-
setEventMessage
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
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
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:
hasPayloadin interfaceAppPlatformEventBodyOrBuilder- 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:
getPayloadin interfaceAppPlatformEventBodyOrBuilder- Returns:
- The payload.
-
setPayload
For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2; -
setPayload
For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2; -
mergePayload
For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2; -
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:
getPayloadOrBuilderin interfaceAppPlatformEventBodyOrBuilder
-
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:
getEventIdin interfaceAppPlatformEventBodyOrBuilder- 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:
getEventIdBytesin interfaceAppPlatformEventBodyOrBuilder- Returns:
- The bytes for eventId.
-
setEventId
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
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
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.
-