Class ResourceOwners.Builder (3.80.0)
public static final class ResourceOwners.Builder extends GeneratedMessageV3.Builder<ResourceOwners.Builder> implements ResourceOwnersOrBuilder
The resource owners information.
Protobuf type google.cloud.asset.v1.ResourceOwners
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceOwners.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
build()
public ResourceOwners build()
buildPartial()
public ResourceOwners buildPartial()
clear()
public ResourceOwners.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResourceOwners.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceOwners.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResourceOwners()
public ResourceOwners.Builder clearResourceOwners()
List of resource owners.
repeated string resource_owners = 1;
clone()
public ResourceOwners.Builder clone()
Overrides
getDefaultInstanceForType()
public ResourceOwners getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ResourceOwners other)
public ResourceOwners.Builder mergeFrom(ResourceOwners other)
public ResourceOwners.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResourceOwners.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceOwners.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceOwners.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceOwners.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceOwners.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]