Package io.dapr.v1
Class DaprAppCallbackProtos.TopicEventRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DaprAppCallbackProtos.TopicEventRequestOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DaprAppCallbackProtos.TopicEventRequest
public static final class DaprAppCallbackProtos.TopicEventRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder> implements DaprAppCallbackProtos.TopicEventRequestOrBuilder
TopicEventRequest message is compatiable with CloudEvent spec v1.0 https://github.com/cloudevents/spec/blob/v1.0/spec.mdProtobuf type
dapr.proto.runtime.v1.TopicEventRequest
-
Method Summary
Modifier and Type Method Description DaprAppCallbackProtos.TopicEventRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DaprAppCallbackProtos.TopicEventRequest
build()
DaprAppCallbackProtos.TopicEventRequest
buildPartial()
DaprAppCallbackProtos.TopicEventRequest.Builder
clear()
DaprAppCallbackProtos.TopicEventRequest.Builder
clearData()
The content of the event.DaprAppCallbackProtos.TopicEventRequest.Builder
clearDataContentType()
The content type of data value.DaprAppCallbackProtos.TopicEventRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DaprAppCallbackProtos.TopicEventRequest.Builder
clearId()
id identifies the event.DaprAppCallbackProtos.TopicEventRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DaprAppCallbackProtos.TopicEventRequest.Builder
clearSource()
source identifies the context in which an event happened.DaprAppCallbackProtos.TopicEventRequest.Builder
clearSpecVersion()
The version of the CloudEvents specification.DaprAppCallbackProtos.TopicEventRequest.Builder
clearTopic()
The pubsub topic which publisher sent to.DaprAppCallbackProtos.TopicEventRequest.Builder
clearType()
The type of event related to the originating occurrence.DaprAppCallbackProtos.TopicEventRequest.Builder
clone()
com.google.protobuf.ByteString
getData()
The content of the event.java.lang.String
getDataContentType()
The content type of data value.com.google.protobuf.ByteString
getDataContentTypeBytes()
The content type of data value.DaprAppCallbackProtos.TopicEventRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getId()
id identifies the event.com.google.protobuf.ByteString
getIdBytes()
id identifies the event.java.lang.String
getSource()
source identifies the context in which an event happened.com.google.protobuf.ByteString
getSourceBytes()
source identifies the context in which an event happened.java.lang.String
getSpecVersion()
The version of the CloudEvents specification.com.google.protobuf.ByteString
getSpecVersionBytes()
The version of the CloudEvents specification.java.lang.String
getTopic()
The pubsub topic which publisher sent to.com.google.protobuf.ByteString
getTopicBytes()
The pubsub topic which publisher sent to.java.lang.String
getType()
The type of event related to the originating occurrence.com.google.protobuf.ByteString
getTypeBytes()
The type of event related to the originating occurrence.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DaprAppCallbackProtos.TopicEventRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DaprAppCallbackProtos.TopicEventRequest.Builder
mergeFrom(com.google.protobuf.Message other)
DaprAppCallbackProtos.TopicEventRequest.Builder
mergeFrom(DaprAppCallbackProtos.TopicEventRequest other)
DaprAppCallbackProtos.TopicEventRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DaprAppCallbackProtos.TopicEventRequest.Builder
setData(com.google.protobuf.ByteString value)
The content of the event.DaprAppCallbackProtos.TopicEventRequest.Builder
setDataContentType(java.lang.String value)
The content type of data value.DaprAppCallbackProtos.TopicEventRequest.Builder
setDataContentTypeBytes(com.google.protobuf.ByteString value)
The content type of data value.DaprAppCallbackProtos.TopicEventRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DaprAppCallbackProtos.TopicEventRequest.Builder
setId(java.lang.String value)
id identifies the event.DaprAppCallbackProtos.TopicEventRequest.Builder
setIdBytes(com.google.protobuf.ByteString value)
id identifies the event.DaprAppCallbackProtos.TopicEventRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DaprAppCallbackProtos.TopicEventRequest.Builder
setSource(java.lang.String value)
source identifies the context in which an event happened.DaprAppCallbackProtos.TopicEventRequest.Builder
setSourceBytes(com.google.protobuf.ByteString value)
source identifies the context in which an event happened.DaprAppCallbackProtos.TopicEventRequest.Builder
setSpecVersion(java.lang.String value)
The version of the CloudEvents specification.DaprAppCallbackProtos.TopicEventRequest.Builder
setSpecVersionBytes(com.google.protobuf.ByteString value)
The version of the CloudEvents specification.DaprAppCallbackProtos.TopicEventRequest.Builder
setTopic(java.lang.String value)
The pubsub topic which publisher sent to.DaprAppCallbackProtos.TopicEventRequest.Builder
setTopicBytes(com.google.protobuf.ByteString value)
The pubsub topic which publisher sent to.DaprAppCallbackProtos.TopicEventRequest.Builder
setType(java.lang.String value)
The type of event related to the originating occurrence.DaprAppCallbackProtos.TopicEventRequest.Builder
setTypeBytes(com.google.protobuf.ByteString value)
The type of event related to the originating occurrence.DaprAppCallbackProtos.TopicEventRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
setField
public DaprAppCallbackProtos.TopicEventRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
clearField
public DaprAppCallbackProtos.TopicEventRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
clearOneof
public DaprAppCallbackProtos.TopicEventRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
setRepeatedField
public DaprAppCallbackProtos.TopicEventRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
addRepeatedField
public DaprAppCallbackProtos.TopicEventRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
mergeFrom
public DaprAppCallbackProtos.TopicEventRequest.Builder mergeFrom(com.google.protobuf.Message other)- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
mergeFrom
public DaprAppCallbackProtos.TopicEventRequest.Builder mergeFrom(DaprAppCallbackProtos.TopicEventRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
mergeFrom
public DaprAppCallbackProtos.TopicEventRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
- Throws:
java.io.IOException
-
getId
public java.lang.String getId()id identifies the event. Producers MUST ensure that source + id is unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it MAY have the same id.
string id = 1;
- Specified by:
getId
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()id identifies the event. Producers MUST ensure that source + id is unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it MAY have the same id.
string id = 1;
- Specified by:
getIdBytes
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The bytes for id.
-
setId
id identifies the event. Producers MUST ensure that source + id is unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it MAY have the same id.
string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
id identifies the event. Producers MUST ensure that source + id is unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it MAY have the same id.
string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
public DaprAppCallbackProtos.TopicEventRequest.Builder setIdBytes(com.google.protobuf.ByteString value)id identifies the event. Producers MUST ensure that source + id is unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it MAY have the same id.
string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getSource
public java.lang.String getSource()source identifies the context in which an event happened. Often this will include information such as the type of the event source, the organization publishing the event or the process that produced the event. The exact syntax and semantics behind the data encoded in the URI is defined by the event producer.
string source = 2;
- Specified by:
getSource
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()source identifies the context in which an event happened. Often this will include information such as the type of the event source, the organization publishing the event or the process that produced the event. The exact syntax and semantics behind the data encoded in the URI is defined by the event producer.
string source = 2;
- Specified by:
getSourceBytes
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The bytes for source.
-
setSource
source identifies the context in which an event happened. Often this will include information such as the type of the event source, the organization publishing the event or the process that produced the event. The exact syntax and semantics behind the data encoded in the URI is defined by the event producer.
string source = 2;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
source identifies the context in which an event happened. Often this will include information such as the type of the event source, the organization publishing the event or the process that produced the event. The exact syntax and semantics behind the data encoded in the URI is defined by the event producer.
string source = 2;
- Returns:
- This builder for chaining.
-
setSourceBytes
public DaprAppCallbackProtos.TopicEventRequest.Builder setSourceBytes(com.google.protobuf.ByteString value)source identifies the context in which an event happened. Often this will include information such as the type of the event source, the organization publishing the event or the process that produced the event. The exact syntax and semantics behind the data encoded in the URI is defined by the event producer.
string source = 2;
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
getType
public java.lang.String getType()The type of event related to the originating occurrence.
string type = 3;
- Specified by:
getType
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The type of event related to the originating occurrence.
string type = 3;
- Specified by:
getTypeBytes
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The bytes for type.
-
setType
The type of event related to the originating occurrence.
string type = 3;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of event related to the originating occurrence.
string type = 3;
- Returns:
- This builder for chaining.
-
setTypeBytes
public DaprAppCallbackProtos.TopicEventRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)The type of event related to the originating occurrence.
string type = 3;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
getSpecVersion
public java.lang.String getSpecVersion()The version of the CloudEvents specification.
string spec_version = 4;
- Specified by:
getSpecVersion
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The specVersion.
-
getSpecVersionBytes
public com.google.protobuf.ByteString getSpecVersionBytes()The version of the CloudEvents specification.
string spec_version = 4;
- Specified by:
getSpecVersionBytes
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The bytes for specVersion.
-
setSpecVersion
The version of the CloudEvents specification.
string spec_version = 4;
- Parameters:
value
- The specVersion to set.- Returns:
- This builder for chaining.
-
clearSpecVersion
The version of the CloudEvents specification.
string spec_version = 4;
- Returns:
- This builder for chaining.
-
setSpecVersionBytes
public DaprAppCallbackProtos.TopicEventRequest.Builder setSpecVersionBytes(com.google.protobuf.ByteString value)The version of the CloudEvents specification.
string spec_version = 4;
- Parameters:
value
- The bytes for specVersion to set.- Returns:
- This builder for chaining.
-
getDataContentType
public java.lang.String getDataContentType()The content type of data value.
string data_content_type = 5;
- Specified by:
getDataContentType
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The dataContentType.
-
getDataContentTypeBytes
public com.google.protobuf.ByteString getDataContentTypeBytes()The content type of data value.
string data_content_type = 5;
- Specified by:
getDataContentTypeBytes
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The bytes for dataContentType.
-
setDataContentType
The content type of data value.
string data_content_type = 5;
- Parameters:
value
- The dataContentType to set.- Returns:
- This builder for chaining.
-
clearDataContentType
The content type of data value.
string data_content_type = 5;
- Returns:
- This builder for chaining.
-
setDataContentTypeBytes
public DaprAppCallbackProtos.TopicEventRequest.Builder setDataContentTypeBytes(com.google.protobuf.ByteString value)The content type of data value.
string data_content_type = 5;
- Parameters:
value
- The bytes for dataContentType to set.- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()The content of the event.
bytes data = 7;
- Specified by:
getData
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The data.
-
setData
public DaprAppCallbackProtos.TopicEventRequest.Builder setData(com.google.protobuf.ByteString value)The content of the event.
bytes data = 7;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
The content of the event.
bytes data = 7;
- Returns:
- This builder for chaining.
-
getTopic
public java.lang.String getTopic()The pubsub topic which publisher sent to.
string topic = 6;
- Specified by:
getTopic
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()The pubsub topic which publisher sent to.
string topic = 6;
- Specified by:
getTopicBytes
in interfaceDaprAppCallbackProtos.TopicEventRequestOrBuilder
- Returns:
- The bytes for topic.
-
setTopic
The pubsub topic which publisher sent to.
string topic = 6;
- Parameters:
value
- The topic to set.- Returns:
- This builder for chaining.
-
clearTopic
The pubsub topic which publisher sent to.
string topic = 6;
- Returns:
- This builder for chaining.
-
setTopicBytes
public DaprAppCallbackProtos.TopicEventRequest.Builder setTopicBytes(com.google.protobuf.ByteString value)The pubsub topic which publisher sent to.
string topic = 6;
- Parameters:
value
- The bytes for topic to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DaprAppCallbackProtos.TopicEventRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-
mergeUnknownFields
public final DaprAppCallbackProtos.TopicEventRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicEventRequest.Builder>
-