Class ListSubscriptionsRequest.Builder (1.116.4)

public static final class ListSubscriptionsRequest.Builder extends GeneratedMessageV3.Builder<ListSubscriptionsRequest.Builder> implements ListSubscriptionsRequestOrBuilder

Request for the ListSubscriptions method.

Protobuf type google.pubsub.v1.ListSubscriptionsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListSubscriptionsRequest build()
Returns
TypeDescription
ListSubscriptionsRequest

buildPartial()

public ListSubscriptionsRequest buildPartial()
Returns
TypeDescription
ListSubscriptionsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListSubscriptionsRequest.Builder clearPageSize()

Maximum number of subscriptions to return.

int32 page_size = 2;

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

clearPageToken()

public ListSubscriptionsRequest.Builder clearPageToken()

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

string page_token = 3;

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

clearProject()

public ListSubscriptionsRequest.Builder clearProject()

Required. The name of the project in which to list subscriptions. Format is projects/{project-id}.

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

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSubscriptionsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListSubscriptionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

Maximum number of subscriptions to return.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

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

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

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

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getProject()

public String getProject()

Required. The name of the project in which to list subscriptions. Format is projects/{project-id}.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Required. The name of the project in which to list subscriptions. Format is projects/{project-id}.

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

Returns
TypeDescription
ByteString

The bytes for project.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListSubscriptionsRequest other)

public ListSubscriptionsRequest.Builder mergeFrom(ListSubscriptionsRequest other)
Parameter
NameDescription
otherListSubscriptionsRequest
Returns
TypeDescription
ListSubscriptionsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public ListSubscriptionsRequest.Builder setPageSize(int value)

Maximum number of subscriptions to return.

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListSubscriptionsRequest.Builder setPageToken(String value)

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

string page_token = 3;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListSubscriptionsRequest.Builder setPageTokenBytes(ByteString value)

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

string page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

setProject(String value)

public ListSubscriptionsRequest.Builder setProject(String value)

Required. The name of the project in which to list subscriptions. Format is projects/{project-id}.

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

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public ListSubscriptionsRequest.Builder setProjectBytes(ByteString value)

Required. The name of the project in which to list subscriptions. Format is projects/{project-id}.

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

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
ListSubscriptionsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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