public final class SeekSubscriptionRequest extends GeneratedMessageV3 implements SeekSubscriptionRequestOrBuilder
Request for SeekSubscription.
Protobuf type google.cloud.pubsublite.v1.SeekSubscriptionRequest
Static Fields
NAMED_TARGET_FIELD_NUMBER
public static final int NAMED_TARGET_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
TIME_TARGET_FIELD_NUMBER
public static final int TIME_TARGET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SeekSubscriptionRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SeekSubscriptionRequest.Builder newBuilder()
Returns
newBuilder(SeekSubscriptionRequest prototype)
public static SeekSubscriptionRequest.Builder newBuilder(SeekSubscriptionRequest prototype)
Parameter
Returns
public static SeekSubscriptionRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SeekSubscriptionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SeekSubscriptionRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SeekSubscriptionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SeekSubscriptionRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SeekSubscriptionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SeekSubscriptionRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SeekSubscriptionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SeekSubscriptionRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SeekSubscriptionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SeekSubscriptionRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SeekSubscriptionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SeekSubscriptionRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SeekSubscriptionRequest getDefaultInstanceForType()
Returns
getName()
Required. The name of the subscription to seek.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The name of the subscription to seek.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getNamedTarget()
public SeekSubscriptionRequest.NamedTarget getNamedTarget()
Seek to a named position with respect to the message backlog.
.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;
Returns
getNamedTargetValue()
public int getNamedTargetValue()
Seek to a named position with respect to the message backlog.
.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for namedTarget.
|
getParserForType()
public Parser<SeekSubscriptionRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTargetCase()
public SeekSubscriptionRequest.TargetCase getTargetCase()
Returns
public TimeTarget getTimeTarget()
Seek to the first message whose publish or event time is greater than or
equal to the specified query time. If no such message can be located,
will seek to the end of the message backlog.
.google.cloud.pubsublite.v1.TimeTarget time_target = 3;
Returns
public TimeTargetOrBuilder getTimeTargetOrBuilder()
Seek to the first message whose publish or event time is greater than or
equal to the specified query time. If no such message can be located,
will seek to the end of the message backlog.
.google.cloud.pubsublite.v1.TimeTarget time_target = 3;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasNamedTarget()
public boolean hasNamedTarget()
Seek to a named position with respect to the message backlog.
.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;
Returns
Type | Description |
boolean | Whether the namedTarget field is set.
|
public boolean hasTimeTarget()
Seek to the first message whose publish or event time is greater than or
equal to the specified query time. If no such message can be located,
will seek to the end of the message backlog.
.google.cloud.pubsublite.v1.TimeTarget time_target = 3;
Returns
Type | Description |
boolean | Whether the timeTarget field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SeekSubscriptionRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SeekSubscriptionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SeekSubscriptionRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions