Package io.dapr.v1
Class DaprProtos.PubsubSubscription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.Builder>
io.dapr.v1.DaprProtos.PubsubSubscription.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DaprProtos.PubsubSubscriptionOrBuilder
,Cloneable
- Enclosing class:
- DaprProtos.PubsubSubscription
public static final class DaprProtos.PubsubSubscription.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.Builder>
implements DaprProtos.PubsubSubscriptionOrBuilder
Protobuf type
dapr.proto.runtime.v1.PubsubSubscription
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) string pubsub_name = 1 [json_name = "pubsubname"];
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
string topic = 2 [json_name = "topic"];
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
clone()
boolean
containsMetadata
(String key) map<string, string> metadata = 3 [json_name = "metadata"];
string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
com.google.protobuf.ByteString
string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.int
map<string, string> metadata = 3 [json_name = "metadata"];
map<string, string> metadata = 3 [json_name = "metadata"];
getMetadataOrDefault
(String key, String defaultValue) map<string, string> metadata = 3 [json_name = "metadata"];
getMetadataOrThrow
(String key) map<string, string> metadata = 3 [json_name = "metadata"];
Deprecated.string pubsub_name = 1 [json_name = "pubsubname"];
com.google.protobuf.ByteString
string pubsub_name = 1 [json_name = "pubsubname"];
getRules()
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
getTopic()
string topic = 2 [json_name = "topic"];
com.google.protobuf.ByteString
string topic = 2 [json_name = "topic"];
getType()
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
int
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
boolean
hasRules()
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) .dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata
(Map<String, String> values) map<string, string> metadata = 3 [json_name = "metadata"];
putMetadata
(String key, String value) map<string, string> metadata = 3 [json_name = "metadata"];
removeMetadata
(String key) map<string, string> metadata = 3 [json_name = "metadata"];
setDeadLetterTopic
(String value) string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
setDeadLetterTopicBytes
(com.google.protobuf.ByteString value) string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
setPubsubName
(String value) string pubsub_name = 1 [json_name = "pubsubname"];
setPubsubNameBytes
(com.google.protobuf.ByteString value) string pubsub_name = 1 [json_name = "pubsubname"];
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) .dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
setRules
(DaprProtos.PubsubSubscriptionRules.Builder builderForValue) .dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
string topic = 2 [json_name = "topic"];
setTopicBytes
(com.google.protobuf.ByteString value) string topic = 2 [json_name = "topic"];
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
setTypeValue
(int value) .dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
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<DaprProtos.PubsubSubscription.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
-
setField
public DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
-
clearField
public DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
-
clearOneof
public DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
-
setRepeatedField
public DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
-
addRepeatedField
public DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DaprProtos.PubsubSubscription.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.Builder>
-
mergeFrom
public DaprProtos.PubsubSubscription.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<DaprProtos.PubsubSubscription.Builder>
- Throws:
IOException
-
getPubsubName
string pubsub_name = 1 [json_name = "pubsubname"];
- Specified by:
getPubsubName
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The pubsubName.
-
getPubsubNameBytes
public com.google.protobuf.ByteString getPubsubNameBytes()string pubsub_name = 1 [json_name = "pubsubname"];
- Specified by:
getPubsubNameBytes
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The bytes for pubsubName.
-
setPubsubName
string pubsub_name = 1 [json_name = "pubsubname"];
- Parameters:
value
- The pubsubName to set.- Returns:
- This builder for chaining.
-
clearPubsubName
string pubsub_name = 1 [json_name = "pubsubname"];
- Returns:
- This builder for chaining.
-
setPubsubNameBytes
public DaprProtos.PubsubSubscription.Builder setPubsubNameBytes(com.google.protobuf.ByteString value) string pubsub_name = 1 [json_name = "pubsubname"];
- Parameters:
value
- The bytes for pubsubName to set.- Returns:
- This builder for chaining.
-
getTopic
string topic = 2 [json_name = "topic"];
- Specified by:
getTopic
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()string topic = 2 [json_name = "topic"];
- Specified by:
getTopicBytes
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The bytes for topic.
-
setTopic
string topic = 2 [json_name = "topic"];
- Parameters:
value
- The topic to set.- Returns:
- This builder for chaining.
-
clearTopic
string topic = 2 [json_name = "topic"];
- Returns:
- This builder for chaining.
-
setTopicBytes
string topic = 2 [json_name = "topic"];
- Parameters:
value
- The bytes for topic to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:DaprProtos.PubsubSubscriptionOrBuilder
map<string, string> metadata = 3 [json_name = "metadata"];
- Specified by:
getMetadataCount
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
containsMetadata
map<string, string> metadata = 3 [json_name = "metadata"];
- Specified by:
containsMetadata
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
getMetadataMap
map<string, string> metadata = 3 [json_name = "metadata"];
- Specified by:
getMetadataMap
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
getMetadataOrDefault
map<string, string> metadata = 3 [json_name = "metadata"];
- Specified by:
getMetadataOrDefault
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
getMetadataOrThrow
map<string, string> metadata = 3 [json_name = "metadata"];
- Specified by:
getMetadataOrThrow
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
clearMetadata
-
removeMetadata
map<string, string> metadata = 3 [json_name = "metadata"];
-
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
map<string, string> metadata = 3 [json_name = "metadata"];
-
putAllMetadata
map<string, string> metadata = 3 [json_name = "metadata"];
-
hasRules
public boolean hasRules().dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
- Specified by:
hasRules
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- Whether the rules field is set.
-
getRules
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
- Specified by:
getRules
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The rules.
-
setRules
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
-
setRules
public DaprProtos.PubsubSubscription.Builder setRules(DaprProtos.PubsubSubscriptionRules.Builder builderForValue) .dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
-
mergeRules
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
-
clearRules
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
-
getRulesBuilder
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
-
getRulesOrBuilder
.dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4 [json_name = "rules"];
- Specified by:
getRulesOrBuilder
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
-
getDeadLetterTopic
string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
- Specified by:
getDeadLetterTopic
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The deadLetterTopic.
-
getDeadLetterTopicBytes
public com.google.protobuf.ByteString getDeadLetterTopicBytes()string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
- Specified by:
getDeadLetterTopicBytes
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The bytes for deadLetterTopic.
-
setDeadLetterTopic
string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
- Parameters:
value
- The deadLetterTopic to set.- Returns:
- This builder for chaining.
-
clearDeadLetterTopic
string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
- Returns:
- This builder for chaining.
-
setDeadLetterTopicBytes
public DaprProtos.PubsubSubscription.Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
- Parameters:
value
- The bytes for deadLetterTopic to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue().dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
- Specified by:
getTypeValue
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
- Specified by:
getType
in interfaceDaprProtos.PubsubSubscriptionOrBuilder
- Returns:
- The type.
-
setType
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
.dapr.proto.runtime.v1.PubsubSubscriptionType type = 6 [json_name = "type"];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final DaprProtos.PubsubSubscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.Builder>
-
mergeUnknownFields
public final DaprProtos.PubsubSubscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscription.Builder>
-