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
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
addNamespaces(Namespace value)
public ListNamespacesResponse.Builder addNamespaces(Namespace value)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
addNamespaces(Namespace.Builder builderForValue)
public ListNamespacesResponse.Builder addNamespaces(Namespace.Builder builderForValue)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
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
Returns
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
Returns
addNamespacesBuilder()
public Namespace.Builder addNamespacesBuilder()
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Returns
addNamespacesBuilder(int index)
public Namespace.Builder addNamespacesBuilder(int index)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListNamespacesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListNamespacesResponse build()
Returns
buildPartial()
public ListNamespacesResponse buildPartial()
Returns
clear()
public ListNamespacesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListNamespacesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNamespaces()
public ListNamespacesResponse.Builder clearNamespaces()
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListNamespacesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListNamespacesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListNamespacesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNamespaces(int index)
public Namespace getNamespaces(int index)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
getNamespacesBuilder(int index)
public Namespace.Builder getNamespacesBuilder(int index)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
getNamespacesBuilderList()
public List<Namespace.Builder> getNamespacesBuilderList()
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Returns
getNamespacesCount()
public int getNamespacesCount()
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Returns
getNamespacesList()
public List<Namespace> getNamespacesList()
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Returns
getNamespacesOrBuilder(int index)
public NamespaceOrBuilder getNamespacesOrBuilder(int index)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListNamespacesResponse other)
public ListNamespacesResponse.Builder mergeFrom(ListNamespacesResponse other)
Parameter
Returns
public ListNamespacesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListNamespacesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListNamespacesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeNamespaces(int index)
public ListNamespacesResponse.Builder removeNamespaces(int index)
The list of namespaces.
repeated .google.cloud.servicedirectory.v1beta1.Namespace namespaces = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListNamespacesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListNamespacesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListNamespacesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides