Class AppPlatformEventBody (0.1.0)

public final class AppPlatformEventBody extends GeneratedMessageV3 implements AppPlatformEventBodyOrBuilder

Message of content of appPlatform event

Protobuf type google.cloud.visionai.v1.AppPlatformEventBody

Static Fields

EVENT_ID_FIELD_NUMBER

public static final int EVENT_ID_FIELD_NUMBER
Field Value
Type Description
int

EVENT_MESSAGE_FIELD_NUMBER

public static final int EVENT_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AppPlatformEventBody getDefaultInstance()
Returns
Type Description
AppPlatformEventBody

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AppPlatformEventBody.Builder newBuilder()
Returns
Type Description
AppPlatformEventBody.Builder

newBuilder(AppPlatformEventBody prototype)

public static AppPlatformEventBody.Builder newBuilder(AppPlatformEventBody prototype)
Parameter
Name Description
prototype AppPlatformEventBody
Returns
Type Description
AppPlatformEventBody.Builder

parseDelimitedFrom(InputStream input)

public static AppPlatformEventBody parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AppPlatformEventBody parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AppPlatformEventBody parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AppPlatformEventBody parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AppPlatformEventBody parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AppPlatformEventBody parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AppPlatformEventBody parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AppPlatformEventBody parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AppPlatformEventBody parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AppPlatformEventBody parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AppPlatformEventBody parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AppPlatformEventBody parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformEventBody
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AppPlatformEventBody> parser()
Returns
Type Description
Parser<AppPlatformEventBody>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AppPlatformEventBody getDefaultInstanceForType()
Returns
Type Description
AppPlatformEventBody

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.

getParserForType()

public Parser<AppPlatformEventBody> getParserForType()
Returns
Type Description
Parser<AppPlatformEventBody>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AppPlatformEventBody.Builder newBuilderForType()
Returns
Type Description
AppPlatformEventBody.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AppPlatformEventBody.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AppPlatformEventBody.Builder toBuilder()
Returns
Type Description
AppPlatformEventBody.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException