# DaprProtos.PubsubSubscriptionRules.Builder (dapr-sdk-parent 1.12.2 API)
declaration: package: io.dapr.v1, class: DaprProtos, class: PubsubSubscriptionRules, class: Builder

Package io.dapr.v1

# Class DaprProtos.PubsubSubscriptionRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>
io.dapr.v1.DaprProtos.PubsubSubscriptionRules.Builder

All Implemented Interfaces:
  `com.google.protobuf.Message.Builder`, `com.google.protobuf.MessageLite.Builder`, `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`, `DaprProtos.PubsubSubscriptionRulesOrBuilder`, `Cloneable`

Enclosing class:
  DaprProtos.PubsubSubscriptionRules

public static final class DaprProtos.PubsubSubscriptionRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder> implements DaprProtos.PubsubSubscriptionRulesOrBuilder
Protobuf type `dapr.proto.runtime.v1.PubsubSubscriptionRules`

## Method Summary

Modifier and Type
Method
Description
`DaprProtos.PubsubSubscriptionRules.Builder`
`addAllRules(Iterable<? extends DaprProtos.PubsubSubscriptionRule> values)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`addRules(int index, DaprProtos.PubsubSubscriptionRule value)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`addRules(int index, DaprProtos.PubsubSubscriptionRule.Builder builderForValue)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`addRules(DaprProtos.PubsubSubscriptionRule value)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`addRules(DaprProtos.PubsubSubscriptionRule.Builder builderForValue)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRule.Builder`
`addRulesBuilder()`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRule.Builder`
`addRulesBuilder(int index)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules`
`build()`
`DaprProtos.PubsubSubscriptionRules`
`buildPartial()`
`DaprProtos.PubsubSubscriptionRules.Builder`
`clear()`
`DaprProtos.PubsubSubscriptionRules.Builder`
`clearField(com.google.protobuf.Descriptors.FieldDescriptor field)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`clearRules()`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`clone()`
`DaprProtos.PubsubSubscriptionRules`
`getDefaultInstanceForType()`
`static final com.google.protobuf.Descriptors.Descriptor`
`getDescriptor()`
`com.google.protobuf.Descriptors.Descriptor`
`getDescriptorForType()`
`DaprProtos.PubsubSubscriptionRule`
`getRules(int index)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRule.Builder`
`getRulesBuilder(int index)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`List<DaprProtos.PubsubSubscriptionRule.Builder>`
`getRulesBuilderList()`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`int`
`getRulesCount()`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`List<DaprProtos.PubsubSubscriptionRule>`
`getRulesList()`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRuleOrBuilder`
`getRulesOrBuilder(int index)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`List<? extends DaprProtos.PubsubSubscriptionRuleOrBuilder>`
`getRulesOrBuilderList()`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
`internalGetFieldAccessorTable()`
`final boolean`
`isInitialized()`
`DaprProtos.PubsubSubscriptionRules.Builder`
`mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`mergeFrom(com.google.protobuf.Message other)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`mergeFrom(DaprProtos.PubsubSubscriptionRules other)`
`final DaprProtos.PubsubSubscriptionRules.Builder`
`mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`removeRules(int index)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
`DaprProtos.PubsubSubscriptionRules.Builder`
`setRules(int index, DaprProtos.PubsubSubscriptionRule value)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`DaprProtos.PubsubSubscriptionRules.Builder`
`setRules(int index, DaprProtos.PubsubSubscriptionRule.Builder builderForValue)`
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`
`final DaprProtos.PubsubSubscriptionRules.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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, 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()

### internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()

Specified by:
  `internalGetFieldAccessorTable` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### clear

public DaprProtos.PubsubSubscriptionRules.Builder clear()

Specified by:
  `clear` in interface `com.google.protobuf.Message.Builder`
Specified by:
  `clear` in interface `com.google.protobuf.MessageLite.Builder`
Overrides:
  `clear` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()

Specified by:
  `getDescriptorForType` in interface `com.google.protobuf.Message.Builder`
Specified by:
  `getDescriptorForType` in interface `com.google.protobuf.MessageOrBuilder`
Overrides:
  `getDescriptorForType` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### getDefaultInstanceForType

public DaprProtos.PubsubSubscriptionRules getDefaultInstanceForType()

Specified by:
  `getDefaultInstanceForType` in interface `com.google.protobuf.MessageLiteOrBuilder`
Specified by:
  `getDefaultInstanceForType` in interface `com.google.protobuf.MessageOrBuilder`

### build

public DaprProtos.PubsubSubscriptionRules build()

Specified by:
  `build` in interface `com.google.protobuf.Message.Builder`
Specified by:
  `build` in interface `com.google.protobuf.MessageLite.Builder`

### buildPartial

public DaprProtos.PubsubSubscriptionRules buildPartial()

Specified by:
  `buildPartial` in interface `com.google.protobuf.Message.Builder`
Specified by:
  `buildPartial` in interface `com.google.protobuf.MessageLite.Builder`

### clone

public DaprProtos.PubsubSubscriptionRules.Builder clone()

Specified by:
  `clone` in interface `com.google.protobuf.Message.Builder`
Specified by:
  `clone` in interface `com.google.protobuf.MessageLite.Builder`
Overrides:
  `clone` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### setField

public DaprProtos.PubsubSubscriptionRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

Specified by:
  `setField` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `setField` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### clearField

public DaprProtos.PubsubSubscriptionRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)

Specified by:
  `clearField` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `clearField` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### clearOneof

public DaprProtos.PubsubSubscriptionRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)

Specified by:
  `clearOneof` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `clearOneof` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### setRepeatedField

public DaprProtos.PubsubSubscriptionRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

Specified by:
  `setRepeatedField` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `setRepeatedField` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### addRepeatedField

public DaprProtos.PubsubSubscriptionRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

Specified by:
  `addRepeatedField` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `addRepeatedField` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### mergeFrom

public DaprProtos.PubsubSubscriptionRules.Builder mergeFrom(com.google.protobuf.Message other)

Specified by:
  `mergeFrom` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `mergeFrom` in class `com.google.protobuf.AbstractMessage.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### mergeFrom

public DaprProtos.PubsubSubscriptionRules.Builder mergeFrom(DaprProtos.PubsubSubscriptionRules other)

### isInitialized

public final boolean isInitialized()

Specified by:
  `isInitialized` in interface `com.google.protobuf.MessageLiteOrBuilder`
Overrides:
  `isInitialized` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### mergeFrom

public DaprProtos.PubsubSubscriptionRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException

Specified by:
  `mergeFrom` in interface `com.google.protobuf.Message.Builder`
Specified by:
  `mergeFrom` in interface `com.google.protobuf.MessageLite.Builder`
Overrides:
  `mergeFrom` in class `com.google.protobuf.AbstractMessage.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`
Throws:
  `IOException`

### getRulesList

public List<DaprProtos.PubsubSubscriptionRule> getRulesList()
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

Specified by:
  `getRulesList` in interface `DaprProtos.PubsubSubscriptionRulesOrBuilder`

### getRulesCount

public int getRulesCount()
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

Specified by:
  `getRulesCount` in interface `DaprProtos.PubsubSubscriptionRulesOrBuilder`

### getRules

public DaprProtos.PubsubSubscriptionRule getRules(int index)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

Specified by:
  `getRules` in interface `DaprProtos.PubsubSubscriptionRulesOrBuilder`

### setRules

public DaprProtos.PubsubSubscriptionRules.Builder setRules(int index, DaprProtos.PubsubSubscriptionRule value)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### setRules

public DaprProtos.PubsubSubscriptionRules.Builder setRules(int index, DaprProtos.PubsubSubscriptionRule.Builder builderForValue)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### addRules

public DaprProtos.PubsubSubscriptionRules.Builder addRules(DaprProtos.PubsubSubscriptionRule value)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### addRules

public DaprProtos.PubsubSubscriptionRules.Builder addRules(int index, DaprProtos.PubsubSubscriptionRule value)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### addRules

public DaprProtos.PubsubSubscriptionRules.Builder addRules(DaprProtos.PubsubSubscriptionRule.Builder builderForValue)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### addRules

public DaprProtos.PubsubSubscriptionRules.Builder addRules(int index, DaprProtos.PubsubSubscriptionRule.Builder builderForValue)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### addAllRules

public DaprProtos.PubsubSubscriptionRules.Builder addAllRules(Iterable<? extends DaprProtos.PubsubSubscriptionRule> values)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### clearRules

public DaprProtos.PubsubSubscriptionRules.Builder clearRules()
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### removeRules

public DaprProtos.PubsubSubscriptionRules.Builder removeRules(int index)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### getRulesBuilder

public DaprProtos.PubsubSubscriptionRule.Builder getRulesBuilder(int index)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### getRulesOrBuilder

public DaprProtos.PubsubSubscriptionRuleOrBuilder getRulesOrBuilder(int index)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

Specified by:
  `getRulesOrBuilder` in interface `DaprProtos.PubsubSubscriptionRulesOrBuilder`

### getRulesOrBuilderList

public List<? extends DaprProtos.PubsubSubscriptionRuleOrBuilder> getRulesOrBuilderList()
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

Specified by:
  `getRulesOrBuilderList` in interface `DaprProtos.PubsubSubscriptionRulesOrBuilder`

### addRulesBuilder

public DaprProtos.PubsubSubscriptionRule.Builder addRulesBuilder()
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### addRulesBuilder

public DaprProtos.PubsubSubscriptionRule.Builder addRulesBuilder(int index)
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### getRulesBuilderList

public List<DaprProtos.PubsubSubscriptionRule.Builder> getRulesBuilderList()
`repeated .dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1;`

### setUnknownFields

public final DaprProtos.PubsubSubscriptionRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Specified by:
  `setUnknownFields` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `setUnknownFields` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`

### mergeUnknownFields

public final DaprProtos.PubsubSubscriptionRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Specified by:
  `mergeUnknownFields` in interface `com.google.protobuf.Message.Builder`
Overrides:
  `mergeUnknownFields` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.PubsubSubscriptionRules.Builder>`