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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListenRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListenRequest build()
buildPartial()
public ListenRequest buildPartial()
clear()
public ListenRequest.Builder clear()
Overrides
clearAddTarget()
public ListenRequest.Builder clearAddTarget()
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
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];
clearField(Descriptors.FieldDescriptor field)
public ListenRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLabels()
public ListenRequest.Builder clearLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public ListenRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRemoveTarget()
public ListenRequest.Builder clearRemoveTarget()
The ID of a target to remove from this stream.
int32 remove_target = 3;
clearTargetChange()
public ListenRequest.Builder clearTargetChange()
clone()
public ListenRequest.Builder clone()
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter |
Name |
Description |
key |
String
|
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;
getAddTargetOrBuilder()
public TargetOrBuilder getAddTargetOrBuilder()
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLabels() (deprecated)
public Map<String,String> getLabels()
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;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this target change.
map<string, string> labels = 4;
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.
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()
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()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
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 |
Name |
Description |
value |
Target
|
mergeFrom(ListenRequest other)
public ListenRequest.Builder mergeFrom(ListenRequest other)
public ListenRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListenRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListenRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
putLabels(String key, String value)
public ListenRequest.Builder putLabels(String key, String value)
Labels associated with this target change.
map<string, string> labels = 4;
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
|
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
|
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;
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListenRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListenRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListenRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides