Class ResourceOwners.Builder (3.87.0)

public static final class ResourceOwners.Builder extends GeneratedMessage.Builder<ResourceOwners.Builder> implements ResourceOwnersOrBuilder

The resource owners information.

Protobuf type google.cloud.asset.v1.ResourceOwners

Static Methods

getDescriptor()

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

Methods

addAllResourceOwners(Iterable<String> values)

public ResourceOwners.Builder addAllResourceOwners(Iterable<String> values)

List of resource owners.

repeated string resource_owners = 1;

Parameter
Name Description
values Iterable<String>

The resourceOwners to add.

Returns
Type Description
ResourceOwners.Builder

This builder for chaining.

addResourceOwners(String value)

public ResourceOwners.Builder addResourceOwners(String value)

List of resource owners.

repeated string resource_owners = 1;

Parameter
Name Description
value String

The resourceOwners to add.

Returns
Type Description
ResourceOwners.Builder

This builder for chaining.

addResourceOwnersBytes(ByteString value)

public ResourceOwners.Builder addResourceOwnersBytes(ByteString value)

List of resource owners.

repeated string resource_owners = 1;

Parameter
Name Description
value ByteString

The bytes of the resourceOwners to add.

Returns
Type Description
ResourceOwners.Builder

This builder for chaining.

build()

public ResourceOwners build()
Returns
Type Description
ResourceOwners

buildPartial()

public ResourceOwners buildPartial()
Returns
Type Description
ResourceOwners

clear()

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

clearResourceOwners()

public ResourceOwners.Builder clearResourceOwners()

List of resource owners.

repeated string resource_owners = 1;

Returns
Type Description
ResourceOwners.Builder

This builder for chaining.

getDefaultInstanceForType()

public ResourceOwners getDefaultInstanceForType()
Returns
Type Description
ResourceOwners

getDescriptorForType()

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

getResourceOwners(int index)

public String getResourceOwners(int index)

List of resource owners.

repeated string resource_owners = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resourceOwners at the given index.

getResourceOwnersBytes(int index)

public ByteString getResourceOwnersBytes(int index)

List of resource owners.

repeated string resource_owners = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resourceOwners at the given index.

getResourceOwnersCount()

public int getResourceOwnersCount()

List of resource owners.

repeated string resource_owners = 1;

Returns
Type Description
int

The count of resourceOwners.

getResourceOwnersList()

public ProtocolStringList getResourceOwnersList()

List of resource owners.

repeated string resource_owners = 1;

Returns
Type Description
ProtocolStringList

A list containing the resourceOwners.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceOwners other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setResourceOwners(int index, String value)

public ResourceOwners.Builder setResourceOwners(int index, String value)

List of resource owners.

repeated string resource_owners = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The resourceOwners to set.

Returns
Type Description
ResourceOwners.Builder

This builder for chaining.