public static final class ListenRequest.Builder extends GeneratedMessage.Builder<ListenRequest.Builder> implements ListenRequestOrBuilderA request for Firestore.Listen
Protobuf type google.firestore.v1.ListenRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListenRequest.BuilderImplements
ListenRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ListenRequest build()| Returns | |
|---|---|
| Type | Description |
ListenRequest |
|
buildPartial()
public ListenRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ListenRequest |
|
clear()
public ListenRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
clearAddTarget()
public ListenRequest.Builder clearAddTarget()A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
clearDatabase()
public ListenRequest.Builder clearDatabase() Required. The database name. In the format:
projects/{project_id}/databases/{database_id}.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
This builder for chaining. |
clearLabels()
public ListenRequest.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
clearRemoveTarget()
public ListenRequest.Builder clearRemoveTarget()The ID of a target to remove from this stream.
int32 remove_target = 3;
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
This builder for chaining. |
clearTargetChange()
public ListenRequest.Builder clearTargetChange()| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Labels associated with this target change.
map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAddTarget()
public Target getAddTarget()A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Returns | |
|---|---|
| Type | Description |
Target |
The addTarget. |
getAddTargetBuilder()
public Target.Builder getAddTargetBuilder()A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Returns | |
|---|---|
| Type | Description |
Target.Builder |
|
getAddTargetOrBuilder()
public TargetOrBuilder getAddTargetOrBuilder()A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Returns | |
|---|---|
| Type | Description |
TargetOrBuilder |
|
getDatabase()
public String getDatabase() Required. The database name. In the format:
projects/{project_id}/databases/{database_id}.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The database. |
getDatabaseBytes()
public ByteString getDatabaseBytes() Required. The database name. In the format:
projects/{project_id}/databases/{database_id}.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for database. |
getDefaultInstanceForType()
public ListenRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListenRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Labels associated with this target change.
map<string, string> labels = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Labels associated with this target change.
map<string, string> labels = 4;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Labels associated with this target change.
map<string, string> labels = 4;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Labels associated with this target change.
map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getRemoveTarget()
public int getRemoveTarget()The ID of a target to remove from this stream.
int32 remove_target = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The removeTarget. |
getTargetChangeCase()
public ListenRequest.TargetChangeCase getTargetChangeCase()| Returns | |
|---|---|
| Type | Description |
ListenRequest.TargetChangeCase |
|
hasAddTarget()
public boolean hasAddTarget()A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the addTarget field is set. |
hasRemoveTarget()
public boolean hasRemoveTarget()The ID of a target to remove from this stream.
int32 remove_target = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the removeTarget field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAddTarget(Target value)
public ListenRequest.Builder mergeAddTarget(Target value)A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Target |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
mergeFrom(ListenRequest other)
public ListenRequest.Builder mergeFrom(ListenRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ListenRequest |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListenRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListenRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
putAllLabels(Map<String,String> values)
public ListenRequest.Builder putAllLabels(Map<String,String> values)Labels associated with this target change.
map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
putLabels(String key, String value)
public ListenRequest.Builder putLabels(String key, String value)Labels associated with this target change.
map<string, string> labels = 4;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
removeLabels(String key)
public ListenRequest.Builder removeLabels(String key)Labels associated with this target change.
map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
setAddTarget(Target value)
public ListenRequest.Builder setAddTarget(Target value)A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Target |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
setAddTarget(Target.Builder builderForValue)
public ListenRequest.Builder setAddTarget(Target.Builder builderForValue)A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Target.Builder |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
|
setDatabase(String value)
public ListenRequest.Builder setDatabase(String value) Required. The database name. In the format:
projects/{project_id}/databases/{database_id}.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe database to set. |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
This builder for chaining. |
setDatabaseBytes(ByteString value)
public ListenRequest.Builder setDatabaseBytes(ByteString value) Required. The database name. In the format:
projects/{project_id}/databases/{database_id}.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for database to set. |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
This builder for chaining. |
setRemoveTarget(int value)
public ListenRequest.Builder setRemoveTarget(int value)The ID of a target to remove from this stream.
int32 remove_target = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe removeTarget to set. |
| Returns | |
|---|---|
| Type | Description |
ListenRequest.Builder |
This builder for chaining. |