Class ListTopicSubscriptionsRequest.Builder (1.126.6)

public static final class ListTopicSubscriptionsRequest.Builder extends GeneratedMessageV3.Builder<ListTopicSubscriptionsRequest.Builder> implements ListTopicSubscriptionsRequestOrBuilder

Request for the ListTopicSubscriptions method.

Protobuf type google.pubsub.v1.ListTopicSubscriptionsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSubscriptionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

build()

public ListTopicSubscriptionsRequest build()
Returns
TypeDescription
ListTopicSubscriptionsRequest

buildPartial()

public ListTopicSubscriptionsRequest buildPartial()
Returns
TypeDescription
ListTopicSubscriptionsRequest

clear()

public ListTopicSubscriptionsRequest.Builder clear()
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTopicSubscriptionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTopicSubscriptionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

clearPageSize()

public ListTopicSubscriptionsRequest.Builder clearPageSize()

Optional. Maximum number of subscription names to return.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

clearPageToken()

public ListTopicSubscriptionsRequest.Builder clearPageToken()

Optional. The value returned by the last ListTopicSubscriptionsResponse; indicates that this is a continuation of a prior ListTopicSubscriptions call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

clearTopic()

public ListTopicSubscriptionsRequest.Builder clearTopic()

Required. The name of the topic that subscriptions are attached to. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

clone()

public ListTopicSubscriptionsRequest.Builder clone()
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

getDefaultInstanceForType()

public ListTopicSubscriptionsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListTopicSubscriptionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

Optional. Maximum number of subscription names to return.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. The value returned by the last ListTopicSubscriptionsResponse; indicates that this is a continuation of a prior ListTopicSubscriptions call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. The value returned by the last ListTopicSubscriptionsResponse; indicates that this is a continuation of a prior ListTopicSubscriptions call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for pageToken.

getTopic()

public String getTopic()

Required. The name of the topic that subscriptions are attached to. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Required. The name of the topic that subscriptions are attached to. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTopicSubscriptionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListTopicSubscriptionsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

mergeFrom(ListTopicSubscriptionsRequest other)

public ListTopicSubscriptionsRequest.Builder mergeFrom(ListTopicSubscriptionsRequest other)
Parameter
NameDescription
otherListTopicSubscriptionsRequest
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSubscriptionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSubscriptionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

setPageSize(int value)

public ListTopicSubscriptionsRequest.Builder setPageSize(int value)

Optional. Maximum number of subscription names to return.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListTopicSubscriptionsRequest.Builder setPageToken(String value)

Optional. The value returned by the last ListTopicSubscriptionsResponse; indicates that this is a continuation of a prior ListTopicSubscriptions call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListTopicSubscriptionsRequest.Builder setPageTokenBytes(ByteString value)

Optional. The value returned by the last ListTopicSubscriptionsResponse; indicates that this is a continuation of a prior ListTopicSubscriptions call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListTopicSubscriptionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides

setTopic(String value)

public ListTopicSubscriptionsRequest.Builder setTopic(String value)

Required. The name of the topic that subscriptions are attached to. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The topic to set.

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public ListTopicSubscriptionsRequest.Builder setTopicBytes(ByteString value)

Required. The name of the topic that subscriptions are attached to. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSubscriptionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTopicSubscriptionsRequest.Builder
Overrides