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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AppPlatformEventBody.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AppPlatformEventBody build()
buildPartial()
public AppPlatformEventBody buildPartial()
clear()
public AppPlatformEventBody.Builder clear()
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;
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;
clearField(Descriptors.FieldDescriptor field)
public AppPlatformEventBody.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AppPlatformEventBody.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public AppPlatformEventBody.Builder clone()
Overrides
getDefaultInstanceForType()
public AppPlatformEventBody getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AppPlatformEventBody other)
public AppPlatformEventBody.Builder mergeFrom(AppPlatformEventBody other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AppPlatformEventBody.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AppPlatformEventBody.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AppPlatformEventBody.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AppPlatformEventBody.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AppPlatformEventBody.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AppPlatformEventBody.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides