public final class ListenRequest extends GeneratedMessageV3 implements ListenRequestOrBuilder
A request for Firestore.Listen
Protobuf type google.firestore.v1.ListenRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ADD_TARGET_FIELD_NUMBER
public static final int ADD_TARGET_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DATABASE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REMOVE_TARGET_FIELD_NUMBER
public static final int REMOVE_TARGET_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ListenRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ListenRequest.Builder newBuilder()
newBuilder(ListenRequest prototype)
public static ListenRequest.Builder newBuilder(ListenRequest prototype)
public static ListenRequest parseDelimitedFrom(InputStream input)
public static ListenRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ListenRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ListenRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(CodedInputStream input)
public static ListenRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(InputStream input)
public static ListenRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ListenRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ListenRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ListenRequest> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
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()
getLabels()
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;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels associated with this target change.
map<string, string> labels = 4;
Parameter |
---|
Name | Description |
key | String
|
getParserForType()
public Parser<ListenRequest> getParserForType()
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 |
---|
Type | Description |
int | |
Overrides
getTargetChangeCase()
public ListenRequest.TargetChangeCase getTargetChangeCase()
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ListenRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ListenRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ListenRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides