Class AppPlatformEventBody.Builder (0.2.0)

public static final class AppPlatformEventBody.Builder extends GeneratedMessageV3.Builder<AppPlatformEventBody.Builder> implements AppPlatformEventBodyOrBuilder

Message of content of appPlatform event

Protobuf type google.cloud.visionai.v1.AppPlatformEventBody

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AppPlatformEventBody.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public AppPlatformEventBody.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AppPlatformEventBody.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

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

clone()

public AppPlatformEventBody.Builder clone()
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

getDefaultInstanceForType()

public AppPlatformEventBody getDefaultInstanceForType()
Returns
Type Description
AppPlatformEventBody

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AppPlatformEventBody.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AppPlatformEventBody.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for eventMessage to set.

Returns
Type Description
AppPlatformEventBody.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AppPlatformEventBody.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AppPlatformEventBody.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AppPlatformEventBody.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AppPlatformEventBody.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AppPlatformEventBody.Builder
Overrides