Class ListServicesResponse.Builder (3.13.0)

public static final class ListServicesResponse.Builder extends GeneratedMessageV3.Builder<ListServicesResponse.Builder> implements ListServicesResponseOrBuilder

Response message for ListServices method.

Protobuf type google.api.servicemanagement.v1.ListServicesResponse

Static Methods

getDescriptor()

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

Methods

addAllServices(Iterable<? extends ManagedService> values)

public ListServicesResponse.Builder addAllServices(Iterable<? extends ManagedService> values)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.api.servicemanagement.v1.ManagedService>
Returns
TypeDescription
ListServicesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServices(ManagedService value)

public ListServicesResponse.Builder addServices(ManagedService value)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
valueManagedService
Returns
TypeDescription
ListServicesResponse.Builder

addServices(ManagedService.Builder builderForValue)

public ListServicesResponse.Builder addServices(ManagedService.Builder builderForValue)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
builderForValueManagedService.Builder
Returns
TypeDescription
ListServicesResponse.Builder

addServices(int index, ManagedService value)

public ListServicesResponse.Builder addServices(int index, ManagedService value)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameters
NameDescription
indexint
valueManagedService
Returns
TypeDescription
ListServicesResponse.Builder

addServices(int index, ManagedService.Builder builderForValue)

public ListServicesResponse.Builder addServices(int index, ManagedService.Builder builderForValue)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameters
NameDescription
indexint
builderForValueManagedService.Builder
Returns
TypeDescription
ListServicesResponse.Builder

addServicesBuilder()

public ManagedService.Builder addServicesBuilder()

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Returns
TypeDescription
ManagedService.Builder

addServicesBuilder(int index)

public ManagedService.Builder addServicesBuilder(int index)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ManagedService.Builder

build()

public ListServicesResponse build()
Returns
TypeDescription
ListServicesResponse

buildPartial()

public ListServicesResponse buildPartial()
Returns
TypeDescription
ListServicesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListServicesResponse.Builder clearNextPageToken()

Token that can be passed to ListServices to resume a paginated query.

string next_page_token = 2;

Returns
TypeDescription
ListServicesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServices()

public ListServicesResponse.Builder clearServices()

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Returns
TypeDescription
ListServicesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListServicesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListServicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Token that can be passed to ListServices to resume a paginated query.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token that can be passed to ListServices to resume a paginated query.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getServices(int index)

public ManagedService getServices(int index)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ManagedService

getServicesBuilder(int index)

public ManagedService.Builder getServicesBuilder(int index)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ManagedService.Builder

getServicesBuilderList()

public List<ManagedService.Builder> getServicesBuilderList()

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Returns
TypeDescription
List<Builder>

getServicesCount()

public int getServicesCount()

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Returns
TypeDescription
int

getServicesList()

public List<ManagedService> getServicesList()

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Returns
TypeDescription
List<ManagedService>

getServicesOrBuilder(int index)

public ManagedServiceOrBuilder getServicesOrBuilder(int index)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ManagedServiceOrBuilder

getServicesOrBuilderList()

public List<? extends ManagedServiceOrBuilder> getServicesOrBuilderList()

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Returns
TypeDescription
List<? extends com.google.api.servicemanagement.v1.ManagedServiceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListServicesResponse other)

public ListServicesResponse.Builder mergeFrom(ListServicesResponse other)
Parameter
NameDescription
otherListServicesResponse
Returns
TypeDescription
ListServicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeServices(int index)

public ListServicesResponse.Builder removeServices(int index)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListServicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListServicesResponse.Builder setNextPageToken(String value)

Token that can be passed to ListServices to resume a paginated query.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListServicesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListServicesResponse.Builder setNextPageTokenBytes(ByteString value)

Token that can be passed to ListServices to resume a paginated query.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListServicesResponse.Builder

This builder for chaining.

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

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

setServices(int index, ManagedService value)

public ListServicesResponse.Builder setServices(int index, ManagedService value)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameters
NameDescription
indexint
valueManagedService
Returns
TypeDescription
ListServicesResponse.Builder

setServices(int index, ManagedService.Builder builderForValue)

public ListServicesResponse.Builder setServices(int index, ManagedService.Builder builderForValue)

The returned services will only have the name field set.

repeated .google.api.servicemanagement.v1.ManagedService services = 1;

Parameters
NameDescription
indexint
builderForValueManagedService.Builder
Returns
TypeDescription
ListServicesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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