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.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 SeekSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SeekSubscriptionRequest build()
buildPartial()
public SeekSubscriptionRequest buildPartial()
clear()
public SeekSubscriptionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SeekSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
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) = { ... }
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SeekSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTarget()
public SeekSubscriptionRequest.Builder clearTarget()
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;
clone()
public SeekSubscriptionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public SeekSubscriptionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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;
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()
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SeekSubscriptionRequest other)
public SeekSubscriptionRequest.Builder mergeFrom(SeekSubscriptionRequest other)
public SeekSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SeekSubscriptionRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SeekSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SeekSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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;
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SeekSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final SeekSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides