Class ListNamespacesResponse.Builder (2.8.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.servicedirectory.v1beta1.Namespace>
Returns
TypeDescription
ListNamespacesResponse.Builder

addNamespaces(Namespace value)

public ListNamespacesResponse.Builder addNamespaces(Namespace value)

The list of namespaces.

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

Parameter
NameDescription
valueNamespace
Returns
TypeDescription
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
NameDescription
builderForValueNamespace.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNamespace
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNamespace.Builder
Returns
TypeDescription
ListNamespacesResponse.Builder

addNamespacesBuilder()

public Namespace.Builder addNamespacesBuilder()

The list of namespaces.

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

Returns
TypeDescription
Namespace.Builder

addNamespacesBuilder(int index)

public Namespace.Builder addNamespacesBuilder(int index)

The list of namespaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Namespace.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListNamespacesResponse build()
Returns
TypeDescription
ListNamespacesResponse

buildPartial()

public ListNamespacesResponse buildPartial()
Returns
TypeDescription
ListNamespacesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNamespaces()

public ListNamespacesResponse.Builder clearNamespaces()

The list of namespaces.

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

Returns
TypeDescription
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
TypeDescription
ListNamespacesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListNamespacesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListNamespacesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNamespaces(int index)

public Namespace getNamespaces(int index)

The list of namespaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Namespace

getNamespacesBuilder(int index)

public Namespace.Builder getNamespacesBuilder(int index)

The list of namespaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Namespace.Builder

getNamespacesBuilderList()

public List<Namespace.Builder> getNamespacesBuilderList()

The list of namespaces.

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

Returns
TypeDescription
List<Builder>

getNamespacesCount()

public int getNamespacesCount()

The list of namespaces.

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

Returns
TypeDescription
int

getNamespacesList()

public List<Namespace> getNamespacesList()

The list of namespaces.

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

Returns
TypeDescription
List<Namespace>

getNamespacesOrBuilder(int index)

public NamespaceOrBuilder getNamespacesOrBuilder(int index)

The list of namespaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NamespaceOrBuilder

getNamespacesOrBuilderList()

public List<? extends NamespaceOrBuilder> getNamespacesOrBuilderList()

The list of namespaces.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListNamespacesResponse other)

public ListNamespacesResponse.Builder mergeFrom(ListNamespacesResponse other)
Parameter
NameDescription
otherListNamespacesResponse
Returns
TypeDescription
ListNamespacesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListNamespacesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListNamespacesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListNamespacesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueNamespace
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNamespace.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListNamespacesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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