public static final class ListenRequest.Builder extends GeneratedMessageV3.Builder<ListenRequest.Builder> implements ListenRequestOrBuilder
A request for Firestore.Listen
Protobuf type google.firestore.v1.ListenRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListenRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListenRequest build()
Returns
buildPartial()
public ListenRequest buildPartial()
Returns
clear()
public ListenRequest.Builder clear()
Returns
Overrides
clearAddTarget()
public ListenRequest.Builder clearAddTarget()
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
Returns
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
clearField(Descriptors.FieldDescriptor field)
public ListenRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLabels()
public ListenRequest.Builder clearLabels()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListenRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRemoveTarget()
public ListenRequest.Builder clearRemoveTarget()
The ID of a target to remove from this stream.
int32 remove_target = 3;
Returns
clearTargetChange()
public ListenRequest.Builder clearTargetChange()
Returns
clone()
public ListenRequest.Builder clone()
Returns
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter
Returns
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
getAddTargetOrBuilder()
public TargetOrBuilder getAddTargetOrBuilder()
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
Returns
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
getDefaultInstanceForType()
public ListenRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Labels associated with this target change.
map<string, string> labels = 4;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels associated with this target change.
map<string, string> labels = 4;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this target change.
map<string, string> labels = 4;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter
Returns
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAddTarget(Target value)
public ListenRequest.Builder mergeAddTarget(Target value)
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
Parameter
Returns
mergeFrom(ListenRequest other)
public ListenRequest.Builder mergeFrom(ListenRequest other)
Parameter
Returns
public ListenRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListenRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListenRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
removeLabels(String key)
public ListenRequest.Builder removeLabels(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter
Returns
setAddTarget(Target value)
public ListenRequest.Builder setAddTarget(Target value)
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
Parameter
Returns
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
Returns
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 | String
The database to set.
|
Returns
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 | ByteString
The bytes for database to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListenRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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 | int
The removeTarget to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListenRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListenRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides