Package io.dapr.v1

# Class DaprProtos.QueryStateResponse.Builder

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

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

Enclosing class:
  DaprProtos.QueryStateResponse

public static final class DaprProtos.QueryStateResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.QueryStateResponse.Builder> implements DaprProtos.QueryStateResponseOrBuilder

     QueryStateResponse is the response conveying the query results.

Protobuf type `dapr.proto.runtime.v1.QueryStateResponse`

## Method Summary

Modifier and Type
Method
Description
`DaprProtos.QueryStateResponse.Builder`
`addAllResults(Iterable<? extends DaprProtos.QueryStateItem> values)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
`DaprProtos.QueryStateResponse.Builder`
`addResults(int index, DaprProtos.QueryStateItem value)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`addResults(int index, DaprProtos.QueryStateItem.Builder builderForValue)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`addResults(DaprProtos.QueryStateItem value)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`addResults(DaprProtos.QueryStateItem.Builder builderForValue)`
An array of query results.
`DaprProtos.QueryStateItem.Builder`
`addResultsBuilder()`
An array of query results.
`DaprProtos.QueryStateItem.Builder`
`addResultsBuilder(int index)`
An array of query results.
`DaprProtos.QueryStateResponse`
`build()`
`DaprProtos.QueryStateResponse`
`buildPartial()`
`DaprProtos.QueryStateResponse.Builder`
`clear()`
`DaprProtos.QueryStateResponse.Builder`
`clearField(com.google.protobuf.Descriptors.FieldDescriptor field)`
`DaprProtos.QueryStateResponse.Builder`
`clearMetadata()`
`DaprProtos.QueryStateResponse.Builder`
`clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
`DaprProtos.QueryStateResponse.Builder`
`clearResults()`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`clearToken()`
Pagination token.
`DaprProtos.QueryStateResponse.Builder`
`clone()`
`boolean`
`containsMetadata(String key)`
The metadata which will be sent to app.
`DaprProtos.QueryStateResponse`
`getDefaultInstanceForType()`
`static final com.google.protobuf.Descriptors.Descriptor`
`getDescriptor()`
`com.google.protobuf.Descriptors.Descriptor`
`getDescriptorForType()`
`Map<String,String>`
`getMetadata()`
Deprecated.
`int`
`getMetadataCount()`
The metadata which will be sent to app.
`Map<String,String>`
`getMetadataMap()`
The metadata which will be sent to app.
`String`
`getMetadataOrDefault(String key, String defaultValue)`
The metadata which will be sent to app.
`String`
`getMetadataOrThrow(String key)`
The metadata which will be sent to app.
`Map<String,String>`
`getMutableMetadata()`
Deprecated.
`DaprProtos.QueryStateItem`
`getResults(int index)`
An array of query results.
`DaprProtos.QueryStateItem.Builder`
`getResultsBuilder(int index)`
An array of query results.
`List<DaprProtos.QueryStateItem.Builder>`
`getResultsBuilderList()`
An array of query results.
`int`
`getResultsCount()`
An array of query results.
`List<DaprProtos.QueryStateItem>`
`getResultsList()`
An array of query results.
`DaprProtos.QueryStateItemOrBuilder`
`getResultsOrBuilder(int index)`
An array of query results.
`List<? extends DaprProtos.QueryStateItemOrBuilder>`
`getResultsOrBuilderList()`
An array of query results.
`String`
`getToken()`
Pagination token.
`com.google.protobuf.ByteString`
`getTokenBytes()`
Pagination token.
`protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
`internalGetFieldAccessorTable()`
`protected com.google.protobuf.MapFieldReflectionAccessor`
`internalGetMapFieldReflection(int number)`
`protected com.google.protobuf.MapFieldReflectionAccessor`
`internalGetMutableMapFieldReflection(int number)`
`final boolean`
`isInitialized()`
`DaprProtos.QueryStateResponse.Builder`
`mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
`DaprProtos.QueryStateResponse.Builder`
`mergeFrom(com.google.protobuf.Message other)`
`DaprProtos.QueryStateResponse.Builder`
`mergeFrom(DaprProtos.QueryStateResponse other)`
`final DaprProtos.QueryStateResponse.Builder`
`mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)`
`DaprProtos.QueryStateResponse.Builder`
`putAllMetadata(Map<String,String> values)`
The metadata which will be sent to app.
`DaprProtos.QueryStateResponse.Builder`
`putMetadata(String key, String value)`
The metadata which will be sent to app.
`DaprProtos.QueryStateResponse.Builder`
`removeMetadata(String key)`
The metadata which will be sent to app.
`DaprProtos.QueryStateResponse.Builder`
`removeResults(int index)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
`DaprProtos.QueryStateResponse.Builder`
`setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
`DaprProtos.QueryStateResponse.Builder`
`setResults(int index, DaprProtos.QueryStateItem value)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`setResults(int index, DaprProtos.QueryStateItem.Builder builderForValue)`
An array of query results.
`DaprProtos.QueryStateResponse.Builder`
`setToken(String value)`
Pagination token.
`DaprProtos.QueryStateResponse.Builder`
`setTokenBytes(com.google.protobuf.ByteString value)`
Pagination token.
`final DaprProtos.QueryStateResponse.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, internalGetMutableMapField, 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()

### internalGetMapFieldReflection

protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)

Overrides:
  `internalGetMapFieldReflection` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.QueryStateResponse.Builder>`

### internalGetMutableMapFieldReflection

protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)

Overrides:
  `internalGetMutableMapFieldReflection` in class `com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.QueryStateResponse.Builder>`

### internalGetFieldAccessorTable

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

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

### clear

public DaprProtos.QueryStateResponse.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.QueryStateResponse.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.QueryStateResponse.Builder>`

### getDefaultInstanceForType

public DaprProtos.QueryStateResponse getDefaultInstanceForType()

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

### build

public DaprProtos.QueryStateResponse build()

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

### buildPartial

public DaprProtos.QueryStateResponse buildPartial()

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

### clone

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### setField

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### clearField

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### clearOneof

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### setRepeatedField

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### addRepeatedField

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### mergeFrom

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### mergeFrom

public DaprProtos.QueryStateResponse.Builder mergeFrom(DaprProtos.QueryStateResponse 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.QueryStateResponse.Builder>`

### mergeFrom

public DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`
Throws:
  `IOException`

### getResultsList

public List<DaprProtos.QueryStateItem> getResultsList()

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

Specified by:
  `getResultsList` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getResultsCount

public int getResultsCount()

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

Specified by:
  `getResultsCount` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getResults

public DaprProtos.QueryStateItem getResults(int index)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

Specified by:
  `getResults` in interface `DaprProtos.QueryStateResponseOrBuilder`

### setResults

public DaprProtos.QueryStateResponse.Builder setResults(int index, DaprProtos.QueryStateItem value)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### setResults

public DaprProtos.QueryStateResponse.Builder setResults(int index, DaprProtos.QueryStateItem.Builder builderForValue)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### addResults

public DaprProtos.QueryStateResponse.Builder addResults(DaprProtos.QueryStateItem value)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### addResults

public DaprProtos.QueryStateResponse.Builder addResults(int index, DaprProtos.QueryStateItem value)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### addResults

public DaprProtos.QueryStateResponse.Builder addResults(DaprProtos.QueryStateItem.Builder builderForValue)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### addResults

public DaprProtos.QueryStateResponse.Builder addResults(int index, DaprProtos.QueryStateItem.Builder builderForValue)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### addAllResults

public DaprProtos.QueryStateResponse.Builder addAllResults(Iterable<? extends DaprProtos.QueryStateItem> values)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### clearResults

public DaprProtos.QueryStateResponse.Builder clearResults()

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### removeResults

public DaprProtos.QueryStateResponse.Builder removeResults(int index)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### getResultsBuilder

public DaprProtos.QueryStateItem.Builder getResultsBuilder(int index)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### getResultsOrBuilder

public DaprProtos.QueryStateItemOrBuilder getResultsOrBuilder(int index)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

Specified by:
  `getResultsOrBuilder` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getResultsOrBuilderList

public List<? extends DaprProtos.QueryStateItemOrBuilder> getResultsOrBuilderList()

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

Specified by:
  `getResultsOrBuilderList` in interface `DaprProtos.QueryStateResponseOrBuilder`

### addResultsBuilder

public DaprProtos.QueryStateItem.Builder addResultsBuilder()

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### addResultsBuilder

public DaprProtos.QueryStateItem.Builder addResultsBuilder(int index)

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### getResultsBuilderList

public List<DaprProtos.QueryStateItem.Builder> getResultsBuilderList()

     An array of query results.

`repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;`

### getToken

public String getToken()

     Pagination token.

`string token = 2;`

Specified by:
  `getToken` in interface `DaprProtos.QueryStateResponseOrBuilder`
Returns:
  The token.

### getTokenBytes

public com.google.protobuf.ByteString getTokenBytes()

     Pagination token.

`string token = 2;`

Specified by:
  `getTokenBytes` in interface `DaprProtos.QueryStateResponseOrBuilder`
Returns:
  The bytes for token.

### setToken

public DaprProtos.QueryStateResponse.Builder setToken(String value)

     Pagination token.

`string token = 2;`

Parameters:
  `value` - The token to set.
Returns:
  This builder for chaining.

### clearToken

public DaprProtos.QueryStateResponse.Builder clearToken()

     Pagination token.

`string token = 2;`

Returns:
  This builder for chaining.

### setTokenBytes

public DaprProtos.QueryStateResponse.Builder setTokenBytes(com.google.protobuf.ByteString value)

     Pagination token.

`string token = 2;`

Parameters:
  `value` - The bytes for token to set.
Returns:
  This builder for chaining.

### getMetadataCount

public int getMetadataCount()
Description copied from interface: `DaprProtos.QueryStateResponseOrBuilder`

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

Specified by:
  `getMetadataCount` in interface `DaprProtos.QueryStateResponseOrBuilder`

### containsMetadata

public boolean containsMetadata(String key)

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

Specified by:
  `containsMetadata` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getMetadata

@Deprecated public Map<String,String> getMetadata()
Deprecated.
Use `getMetadataMap()` instead.

Specified by:
  `getMetadata` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getMetadataMap

public Map<String,String> getMetadataMap()

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

Specified by:
  `getMetadataMap` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getMetadataOrDefault

public String getMetadataOrDefault(String key, String defaultValue)

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

Specified by:
  `getMetadataOrDefault` in interface `DaprProtos.QueryStateResponseOrBuilder`

### getMetadataOrThrow

public String getMetadataOrThrow(String key)

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

Specified by:
  `getMetadataOrThrow` in interface `DaprProtos.QueryStateResponseOrBuilder`

### clearMetadata

public DaprProtos.QueryStateResponse.Builder clearMetadata()

### removeMetadata

public DaprProtos.QueryStateResponse.Builder removeMetadata(String key)

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

### getMutableMetadata

@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.
Use alternate mutation accessors instead.

### putMetadata

public DaprProtos.QueryStateResponse.Builder putMetadata(String key, String value)

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

### putAllMetadata

public DaprProtos.QueryStateResponse.Builder putAllMetadata(Map<String,String> values)

     The metadata which will be sent to app.

`map<string, string> metadata = 3;`

### setUnknownFields

public final DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`

### mergeUnknownFields

public final DaprProtos.QueryStateResponse.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.QueryStateResponse.Builder>`