public static final class SeekSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<SeekSubscriptionRequest.Builder> implements SeekSubscriptionRequestOrBuilder
Request for SeekSubscription.
Protobuf type google.cloud.pubsublite.v1.SeekSubscriptionRequest
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 SeekSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SeekSubscriptionRequest build()
Returns
buildPartial()
public SeekSubscriptionRequest buildPartial()
Returns
clear()
public SeekSubscriptionRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SeekSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public SeekSubscriptionRequest.Builder clearName()
Required. The name of the subscription to seek.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearNamedTarget()
public SeekSubscriptionRequest.Builder clearNamedTarget()
Seek to a named position with respect to the message backlog.
.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SeekSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTarget()
public SeekSubscriptionRequest.Builder clearTarget()
Returns
public SeekSubscriptionRequest.Builder clearTimeTarget()
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
clone()
public SeekSubscriptionRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SeekSubscriptionRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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 TimeTarget.Builder getTimeTargetBuilder()
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SeekSubscriptionRequest other)
public SeekSubscriptionRequest.Builder mergeFrom(SeekSubscriptionRequest other)
Parameter
Returns
public SeekSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SeekSubscriptionRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public SeekSubscriptionRequest.Builder mergeTimeTarget(TimeTarget value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SeekSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SeekSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public SeekSubscriptionRequest.Builder setName(String value)
Required. The name of the subscription to seek.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public SeekSubscriptionRequest.Builder setNameBytes(ByteString value)
Required. The name of the subscription to seek.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setNamedTarget(SeekSubscriptionRequest.NamedTarget value)
public SeekSubscriptionRequest.Builder setNamedTarget(SeekSubscriptionRequest.NamedTarget value)
Seek to a named position with respect to the message backlog.
.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;
Parameter
Returns
setNamedTargetValue(int value)
public SeekSubscriptionRequest.Builder setNamedTargetValue(int value)
Seek to a named position with respect to the message backlog.
.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for namedTarget to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SeekSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public SeekSubscriptionRequest.Builder setTimeTarget(TimeTarget value)
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;
Parameter
Returns
public SeekSubscriptionRequest.Builder setTimeTarget(TimeTarget.Builder builderForValue)
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;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SeekSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides