Package io.dapr.v1
Class DaprAppCallbackProtos.TopicSubscription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
io.dapr.v1.DaprAppCallbackProtos.TopicSubscription.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DaprAppCallbackProtos.TopicSubscriptionOrBuilder
,Cloneable
- Enclosing class:
- DaprAppCallbackProtos.TopicSubscription
public static final class DaprAppCallbackProtos.TopicSubscription.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
implements DaprAppCallbackProtos.TopicSubscriptionOrBuilder
TopicSubscription represents topic and metadata.Protobuf type
dapr.proto.runtime.v1.TopicSubscription
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The optional bulk subscribe settings for this topic.The optional dead letter queue for this topic to send events to.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.The optional routing rules to match against.Required.clone()
boolean
containsMetadata
(String key) The optional properties used for this topic's subscription e.g.The optional bulk subscribe settings for this topic.The optional bulk subscribe settings for this topic.The optional bulk subscribe settings for this topic.The optional dead letter queue for this topic to send events to.com.google.protobuf.ByteString
The optional dead letter queue for this topic to send events to.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.int
The optional properties used for this topic's subscription e.g.The optional properties used for this topic's subscription e.g.getMetadataOrDefault
(String key, String defaultValue) The optional properties used for this topic's subscription e.g.getMetadataOrThrow
(String key) The optional properties used for this topic's subscription e.g.Deprecated.Required.com.google.protobuf.ByteString
Required.The optional routing rules to match against.The optional routing rules to match against.The optional routing rules to match against.getTopic()
Required.com.google.protobuf.ByteString
Required.boolean
The optional bulk subscribe settings for this topic.boolean
The optional routing rules to match against.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
The optional bulk subscribe settings for this topic.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) The optional routing rules to match against.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata
(Map<String, String> values) The optional properties used for this topic's subscription e.g.putMetadata
(String key, String value) The optional properties used for this topic's subscription e.g.removeMetadata
(String key) The optional properties used for this topic's subscription e.g.The optional bulk subscribe settings for this topic.setBulkSubscribe
(DaprAppCallbackProtos.BulkSubscribeConfig.Builder builderForValue) The optional bulk subscribe settings for this topic.setDeadLetterTopic
(String value) The optional dead letter queue for this topic to send events to.setDeadLetterTopicBytes
(com.google.protobuf.ByteString value) The optional dead letter queue for this topic to send events to.setPubsubName
(String value) Required.setPubsubNameBytes
(com.google.protobuf.ByteString value) Required.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The optional routing rules to match against.setRoutes
(DaprAppCallbackProtos.TopicRoutes.Builder builderForValue) The optional routing rules to match against.Required.setTopicBytes
(com.google.protobuf.ByteString value) Required.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.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.TopicSubscription.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.TopicSubscription.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.TopicSubscription.Builder>
-
setField
public DaprAppCallbackProtos.TopicSubscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
clearField
public DaprAppCallbackProtos.TopicSubscription.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.TopicSubscription.Builder>
-
clearOneof
public DaprAppCallbackProtos.TopicSubscription.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.TopicSubscription.Builder>
-
setRepeatedField
public DaprAppCallbackProtos.TopicSubscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
addRepeatedField
public DaprAppCallbackProtos.TopicSubscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
mergeFrom
public DaprAppCallbackProtos.TopicSubscription.Builder mergeFrom(DaprAppCallbackProtos.TopicSubscription other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprAppCallbackProtos.TopicSubscription.Builder>
-
mergeFrom
public DaprAppCallbackProtos.TopicSubscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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.TopicSubscription.Builder>
- Throws:
IOException
-
getPubsubName
Required. The name of the pubsub containing the topic below to subscribe to.
string pubsub_name = 1;
- Specified by:
getPubsubName
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The pubsubName.
-
getPubsubNameBytes
public com.google.protobuf.ByteString getPubsubNameBytes()Required. The name of the pubsub containing the topic below to subscribe to.
string pubsub_name = 1;
- Specified by:
getPubsubNameBytes
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The bytes for pubsubName.
-
setPubsubName
Required. The name of the pubsub containing the topic below to subscribe to.
string pubsub_name = 1;
- Parameters:
value
- The pubsubName to set.- Returns:
- This builder for chaining.
-
clearPubsubName
Required. The name of the pubsub containing the topic below to subscribe to.
string pubsub_name = 1;
- Returns:
- This builder for chaining.
-
setPubsubNameBytes
public DaprAppCallbackProtos.TopicSubscription.Builder setPubsubNameBytes(com.google.protobuf.ByteString value) Required. The name of the pubsub containing the topic below to subscribe to.
string pubsub_name = 1;
- Parameters:
value
- The bytes for pubsubName to set.- Returns:
- This builder for chaining.
-
getTopic
Required. The name of topic which will be subscribed
string topic = 2;
- Specified by:
getTopic
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()Required. The name of topic which will be subscribed
string topic = 2;
- Specified by:
getTopicBytes
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The bytes for topic.
-
setTopic
Required. The name of topic which will be subscribed
string topic = 2;
- Parameters:
value
- The topic to set.- Returns:
- This builder for chaining.
-
clearTopic
Required. The name of topic which will be subscribed
string topic = 2;
- Returns:
- This builder for chaining.
-
setTopicBytes
public DaprAppCallbackProtos.TopicSubscription.Builder setTopicBytes(com.google.protobuf.ByteString value) Required. The name of topic which will be subscribed
string topic = 2;
- Parameters:
value
- The bytes for topic to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:DaprAppCallbackProtos.TopicSubscriptionOrBuilder
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
- Specified by:
getMetadataCount
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
containsMetadata
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
- Specified by:
containsMetadata
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
getMetadataMap
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
- Specified by:
getMetadataMap
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
getMetadataOrDefault
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
- Specified by:
getMetadataOrDefault
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
getMetadataOrThrow
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
- Specified by:
getMetadataOrThrow
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
clearMetadata
-
removeMetadata
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
-
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
-
putAllMetadata
The optional properties used for this topic's subscription e.g. session id
map<string, string> metadata = 3;
-
hasRoutes
public boolean hasRoutes()The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
- Specified by:
hasRoutes
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- Whether the routes field is set.
-
getRoutes
The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
- Specified by:
getRoutes
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The routes.
-
setRoutes
public DaprAppCallbackProtos.TopicSubscription.Builder setRoutes(DaprAppCallbackProtos.TopicRoutes value) The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
-
setRoutes
public DaprAppCallbackProtos.TopicSubscription.Builder setRoutes(DaprAppCallbackProtos.TopicRoutes.Builder builderForValue) The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
-
mergeRoutes
public DaprAppCallbackProtos.TopicSubscription.Builder mergeRoutes(DaprAppCallbackProtos.TopicRoutes value) The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
-
clearRoutes
The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
-
getRoutesBuilder
The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
-
getRoutesOrBuilder
The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest.
.dapr.proto.runtime.v1.TopicRoutes routes = 5;
- Specified by:
getRoutesOrBuilder
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
getDeadLetterTopic
The optional dead letter queue for this topic to send events to.
string dead_letter_topic = 6;
- Specified by:
getDeadLetterTopic
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The deadLetterTopic.
-
getDeadLetterTopicBytes
public com.google.protobuf.ByteString getDeadLetterTopicBytes()The optional dead letter queue for this topic to send events to.
string dead_letter_topic = 6;
- Specified by:
getDeadLetterTopicBytes
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The bytes for deadLetterTopic.
-
setDeadLetterTopic
The optional dead letter queue for this topic to send events to.
string dead_letter_topic = 6;
- Parameters:
value
- The deadLetterTopic to set.- Returns:
- This builder for chaining.
-
clearDeadLetterTopic
The optional dead letter queue for this topic to send events to.
string dead_letter_topic = 6;
- Returns:
- This builder for chaining.
-
setDeadLetterTopicBytes
public DaprAppCallbackProtos.TopicSubscription.Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) The optional dead letter queue for this topic to send events to.
string dead_letter_topic = 6;
- Parameters:
value
- The bytes for deadLetterTopic to set.- Returns:
- This builder for chaining.
-
hasBulkSubscribe
public boolean hasBulkSubscribe()The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
- Specified by:
hasBulkSubscribe
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- Whether the bulkSubscribe field is set.
-
getBulkSubscribe
The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
- Specified by:
getBulkSubscribe
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
- Returns:
- The bulkSubscribe.
-
setBulkSubscribe
public DaprAppCallbackProtos.TopicSubscription.Builder setBulkSubscribe(DaprAppCallbackProtos.BulkSubscribeConfig value) The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
-
setBulkSubscribe
public DaprAppCallbackProtos.TopicSubscription.Builder setBulkSubscribe(DaprAppCallbackProtos.BulkSubscribeConfig.Builder builderForValue) The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
-
mergeBulkSubscribe
public DaprAppCallbackProtos.TopicSubscription.Builder mergeBulkSubscribe(DaprAppCallbackProtos.BulkSubscribeConfig value) The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
-
clearBulkSubscribe
The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
-
getBulkSubscribeBuilder
The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
-
getBulkSubscribeOrBuilder
The optional bulk subscribe settings for this topic.
.dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7;
- Specified by:
getBulkSubscribeOrBuilder
in interfaceDaprAppCallbackProtos.TopicSubscriptionOrBuilder
-
setUnknownFields
public final DaprAppCallbackProtos.TopicSubscription.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.TopicSubscription.Builder>
-
mergeUnknownFields
public final DaprAppCallbackProtos.TopicSubscription.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.TopicSubscription.Builder>
-