Class ListNamespacesResponse.Builder (2.44.0)

public static final class ListNamespacesResponse.Builder extends GeneratedMessageV3.Builder<ListNamespacesResponse.Builder> implements ListNamespacesResponseOrBuilder

The response message for RegistrationService.ListNamespaces.

Protobuf type google.cloud.servicedirectory.v1beta1.ListNamespacesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNamespaces(Iterable<? extends Namespace> values)

public ListNamespacesResponse.Builder addAllNamespaces(Iterable<? extends Namespace> values)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.servicedirectory.v1beta1.Namespace>
Returns
Type Description
ListNamespacesResponse.Builder

addNamespaces(Namespace value)

public ListNamespacesResponse.Builder addNamespaces(Namespace value)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
value Namespace
Returns
Type Description
ListNamespacesResponse.Builder

addNamespaces(Namespace.Builder builderForValue)

public ListNamespacesResponse.Builder addNamespaces(Namespace.Builder builderForValue)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
builderForValue Namespace.Builder
Returns
Type Description
ListNamespacesResponse.Builder

addNamespaces(int index, Namespace value)

public ListNamespacesResponse.Builder addNamespaces(int index, Namespace value)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameters
Name Description
index int
value Namespace
Returns
Type Description
ListNamespacesResponse.Builder

addNamespaces(int index, Namespace.Builder builderForValue)

public ListNamespacesResponse.Builder addNamespaces(int index, Namespace.Builder builderForValue)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameters
Name Description
index int
builderForValue Namespace.Builder
Returns
Type Description
ListNamespacesResponse.Builder

addNamespacesBuilder()

public Namespace.Builder addNamespacesBuilder()

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Returns
Type Description
Namespace.Builder

addNamespacesBuilder(int index)

public Namespace.Builder addNamespacesBuilder(int index)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
index int
Returns
Type Description
Namespace.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListNamespacesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

build()

public ListNamespacesResponse build()
Returns
Type Description
ListNamespacesResponse

buildPartial()

public ListNamespacesResponse buildPartial()
Returns
Type Description
ListNamespacesResponse

clear()

public ListNamespacesResponse.Builder clear()
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListNamespacesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

clearNamespaces()

public ListNamespacesResponse.Builder clearNamespaces()

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Returns
Type Description
ListNamespacesResponse.Builder

clearNextPageToken()

public ListNamespacesResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListNamespacesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListNamespacesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

clone()

public ListNamespacesResponse.Builder clone()
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListNamespacesResponse getDefaultInstanceForType()
Returns
Type Description
ListNamespacesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNamespaces(int index)

public Namespace getNamespaces(int index)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
index int
Returns
Type Description
Namespace

getNamespacesBuilder(int index)

public Namespace.Builder getNamespacesBuilder(int index)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
index int
Returns
Type Description
Namespace.Builder

getNamespacesBuilderList()

public List<Namespace.Builder> getNamespacesBuilderList()

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Returns
Type Description
List<Builder>

getNamespacesCount()

public int getNamespacesCount()

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Returns
Type Description
int

getNamespacesList()

public List<Namespace> getNamespacesList()

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Returns
Type Description
List<Namespace>

getNamespacesOrBuilder(int index)

public NamespaceOrBuilder getNamespacesOrBuilder(int index)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
index int
Returns
Type Description
NamespaceOrBuilder

getNamespacesOrBuilderList()

public List<? extends NamespaceOrBuilder> getNamespacesOrBuilderList()

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Returns
Type Description
List<? extends com.google.cloud.servicedirectory.v1beta1.NamespaceOrBuilder>

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListNamespacesResponse other)

public ListNamespacesResponse.Builder mergeFrom(ListNamespacesResponse other)
Parameter
Name Description
other ListNamespacesResponse
Returns
Type Description
ListNamespacesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListNamespacesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListNamespacesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListNamespacesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListNamespacesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

removeNamespaces(int index)

public ListNamespacesResponse.Builder removeNamespaces(int index)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameter
Name Description
index int
Returns
Type Description
ListNamespacesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListNamespacesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

setNamespaces(int index, Namespace value)

public ListNamespacesResponse.Builder setNamespaces(int index, Namespace value)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameters
Name Description
index int
value Namespace
Returns
Type Description
ListNamespacesResponse.Builder

setNamespaces(int index, Namespace.Builder builderForValue)

public ListNamespacesResponse.Builder setNamespaces(int index, Namespace.Builder builderForValue)

The list of namespaces.

repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;

Parameters
Name Description
index int
builderForValue Namespace.Builder
Returns
Type Description
ListNamespacesResponse.Builder

setNextPageToken(String value)

public ListNamespacesResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListNamespacesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNamespacesResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListNamespacesResponse.Builder

This builder for chaining.

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

public ListNamespacesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListNamespacesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListNamespacesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListNamespacesResponse.Builder
Overrides