public static final class AppPlatformEventBody.Builder extends GeneratedMessage.Builder<AppPlatformEventBody.Builder> implements AppPlatformEventBodyOrBuilderMessage of content of appPlatform event
Protobuf type google.cloud.visionai.v1.AppPlatformEventBody
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AppPlatformEventBody.BuilderImplements
AppPlatformEventBodyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AppPlatformEventBody build()| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody |
|
buildPartial()
public AppPlatformEventBody buildPartial()| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody |
|
clear()
public AppPlatformEventBody.Builder clear()| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
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 | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
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 | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
This builder for chaining. |
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;
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
getDefaultInstanceForType()
public AppPlatformEventBody getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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;
| Returns | |
|---|---|
| Type | Description |
String |
The eventId. |
getEventIdBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for eventId. |
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;
| Returns | |
|---|---|
| Type | Description |
String |
The eventMessage. |
getEventMessageBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for eventMessage. |
getPayload()
public Struct getPayload()For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2;
| Returns | |
|---|---|
| Type | Description |
Struct |
The payload. |
getPayloadBuilder()
public Struct.Builder getPayloadBuilder()For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2;
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the payload field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AppPlatformEventBody other)
public AppPlatformEventBody.Builder mergeFrom(AppPlatformEventBody other)| Parameter | |
|---|---|
| Name | Description |
other |
AppPlatformEventBody |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AppPlatformEventBody.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AppPlatformEventBody.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
mergePayload(Struct value)
public AppPlatformEventBody.Builder mergePayload(Struct value)For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
setEventId(String value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe eventId to set. |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
This builder for chaining. |
setEventIdBytes(ByteString value)
public AppPlatformEventBody.Builder setEventIdBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for eventId to set. |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
This builder for chaining. |
setEventMessage(String value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe eventMessage to set. |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
This builder for chaining. |
setEventMessageBytes(ByteString value)
public AppPlatformEventBody.Builder setEventMessageBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for eventMessage to set. |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
This builder for chaining. |
setPayload(Struct value)
public AppPlatformEventBody.Builder setPayload(Struct value)For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|
setPayload(Struct.Builder builderForValue)
public AppPlatformEventBody.Builder setPayload(Struct.Builder builderForValue)For the case of Pub/Sub, it will be stored in the message attributes. pubsub.proto
.google.protobuf.Struct payload = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AppPlatformEventBody.Builder |
|