public final class ListenRequest extends GeneratedMessageV3 implements ListenRequestOrBuilder
A request for Firestore.Listen
Protobuf type google.firestore.v1.ListenRequest
Static Fields
ADD_TARGET_FIELD_NUMBER
public static final int ADD_TARGET_FIELD_NUMBER
Field Value
DATABASE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
REMOVE_TARGET_FIELD_NUMBER
public static final int REMOVE_TARGET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ListenRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ListenRequest.Builder newBuilder()
Returns
newBuilder(ListenRequest prototype)
public static ListenRequest.Builder newBuilder(ListenRequest prototype)
Parameter
Returns
public static ListenRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ListenRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ListenRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ListenRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ListenRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ListenRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ListenRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ListenRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ListenRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ListenRequest> parser()
Returns
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAddTarget()
public Target getAddTarget()
A target to add to this stream.
.google.firestore.v1.Target add_target = 2;
Returns
Type | Description |
Target | The addTarget.
|
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
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
getParserForType()
public Parser<ListenRequest> getParserForType()
Returns
Overrides
getRemoveTarget()
public int getRemoveTarget()
The ID of a target to remove from this stream.
int32 remove_target = 3;
Returns
Type | Description |
int | The removeTarget.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTargetChangeCase()
public ListenRequest.TargetChangeCase getTargetChangeCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ListenRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ListenRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ListenRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions