Class EnumerateLicensedUsersResponse.Builder (0.50.0)

public static final class EnumerateLicensedUsersResponse.Builder extends GeneratedMessageV3.Builder<EnumerateLicensedUsersResponse.Builder> implements EnumerateLicensedUsersResponseOrBuilder

Response message for LicenseManagementService.EnumerateLicensedUsers.

Protobuf type google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse

Static Methods

getDescriptor()

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

Methods

addAllLicensedUsers(Iterable<? extends LicensedUser> values)

public EnumerateLicensedUsersResponse.Builder addAllLicensedUsers(Iterable<? extends LicensedUser> values)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1.LicensedUser>
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

addLicensedUsers(LicensedUser value)

public EnumerateLicensedUsersResponse.Builder addLicensedUsers(LicensedUser value)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
value LicensedUser
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

addLicensedUsers(LicensedUser.Builder builderForValue)

public EnumerateLicensedUsersResponse.Builder addLicensedUsers(LicensedUser.Builder builderForValue)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
builderForValue LicensedUser.Builder
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

addLicensedUsers(int index, LicensedUser value)

public EnumerateLicensedUsersResponse.Builder addLicensedUsers(int index, LicensedUser value)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameters
Name Description
index int
value LicensedUser
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

addLicensedUsers(int index, LicensedUser.Builder builderForValue)

public EnumerateLicensedUsersResponse.Builder addLicensedUsers(int index, LicensedUser.Builder builderForValue)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameters
Name Description
index int
builderForValue LicensedUser.Builder
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

addLicensedUsersBuilder()

public LicensedUser.Builder addLicensedUsersBuilder()

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Returns
Type Description
LicensedUser.Builder

addLicensedUsersBuilder(int index)

public LicensedUser.Builder addLicensedUsersBuilder(int index)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
index int
Returns
Type Description
LicensedUser.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EnumerateLicensedUsersResponse build()
Returns
Type Description
EnumerateLicensedUsersResponse

buildPartial()

public EnumerateLicensedUsersResponse buildPartial()
Returns
Type Description
EnumerateLicensedUsersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLicensedUsers()

public EnumerateLicensedUsersResponse.Builder clearLicensedUsers()

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Returns
Type Description
EnumerateLicensedUsersResponse.Builder

clearNextPageToken()

public EnumerateLicensedUsersResponse.Builder clearNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
EnumerateLicensedUsersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EnumerateLicensedUsersResponse getDefaultInstanceForType()
Returns
Type Description
EnumerateLicensedUsersResponse

getDescriptorForType()

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

getLicensedUsers(int index)

public LicensedUser getLicensedUsers(int index)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
index int
Returns
Type Description
LicensedUser

getLicensedUsersBuilder(int index)

public LicensedUser.Builder getLicensedUsersBuilder(int index)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
index int
Returns
Type Description
LicensedUser.Builder

getLicensedUsersBuilderList()

public List<LicensedUser.Builder> getLicensedUsersBuilderList()

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Returns
Type Description
List<Builder>

getLicensedUsersCount()

public int getLicensedUsersCount()

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Returns
Type Description
int

getLicensedUsersList()

public List<LicensedUser> getLicensedUsersList()

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Returns
Type Description
List<LicensedUser>

getLicensedUsersOrBuilder(int index)

public LicensedUserOrBuilder getLicensedUsersOrBuilder(int index)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
index int
Returns
Type Description
LicensedUserOrBuilder

getLicensedUsersOrBuilderList()

public List<? extends LicensedUserOrBuilder> getLicensedUsersOrBuilderList()

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Returns
Type Description
List<? extends com.google.cloud.commerce.consumer.procurement.v1.LicensedUserOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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(EnumerateLicensedUsersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLicensedUsers(int index)

public EnumerateLicensedUsersResponse.Builder removeLicensedUsers(int index)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameter
Name Description
index int
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLicensedUsers(int index, LicensedUser value)

public EnumerateLicensedUsersResponse.Builder setLicensedUsers(int index, LicensedUser value)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameters
Name Description
index int
value LicensedUser
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

setLicensedUsers(int index, LicensedUser.Builder builderForValue)

public EnumerateLicensedUsersResponse.Builder setLicensedUsers(int index, LicensedUser.Builder builderForValue)

The list of licensed users.

repeated .google.cloud.commerce.consumer.procurement.v1.LicensedUser licensed_users = 1;

Parameters
Name Description
index int
builderForValue LicensedUser.Builder
Returns
Type Description
EnumerateLicensedUsersResponse.Builder

setNextPageToken(String value)

public EnumerateLicensedUsersResponse.Builder setNextPageToken(String value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
EnumerateLicensedUsersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public EnumerateLicensedUsersResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
EnumerateLicensedUsersResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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