Class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder (3.36.0)

public static final class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder extends GeneratedMessageV3.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder> implements AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceOrBuilder

The Google Cloud resources governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Protobuf type google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

Static Methods

getDescriptor()

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

Methods

addAllFolders(Iterable<String> values)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder addAllFolders(Iterable<String> values)

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
valuesIterable<String>

The folders to add.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

addFolders(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder addFolders(String value)

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
valueString

The folders to add.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

addFoldersBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder addFoldersBytes(ByteString value)

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
valueByteString

The bytes of the folders to add.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource build()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource

buildPartial()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource buildPartial()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource

clear()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clear()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFolders()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clearFolders()

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

clearFullResourceName()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clearFullResourceName()

The full resource name of the Google Cloud resource.

string full_resource_name = 1;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrganization()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clearOrganization()

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

string organization = 7;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

clearParent()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clearParent()

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name.

string parent = 2;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

clearProject()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clearProject()

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

string project = 5;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

clone()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder clone()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFolders(int index)

public String getFolders(int index)

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The folders at the given index.

getFoldersBytes(int index)

public ByteString getFoldersBytes(int index)

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the folders at the given index.

getFoldersCount()

public int getFoldersCount()

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Returns
TypeDescription
int

The count of folders.

getFoldersList()

public ProtocolStringList getFoldersList()

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the folders.

getFullResourceName()

public String getFullResourceName()

The full resource name of the Google Cloud resource.

string full_resource_name = 1;

Returns
TypeDescription
String

The fullResourceName.

getFullResourceNameBytes()

public ByteString getFullResourceNameBytes()

The full resource name of the Google Cloud resource.

string full_resource_name = 1;

Returns
TypeDescription
ByteString

The bytes for fullResourceName.

getOrganization()

public String getOrganization()

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

string organization = 7;

Returns
TypeDescription
String

The organization.

getOrganizationBytes()

public ByteString getOrganizationBytes()

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

string organization = 7;

Returns
TypeDescription
ByteString

The bytes for organization.

getParent()

public String getParent()

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name.

string parent = 2;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name.

string parent = 2;

Returns
TypeDescription
ByteString

The bytes for parent.

getProject()

public String getProject()

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

string project = 5;

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

string project = 5;

Returns
TypeDescription
ByteString

The bytes for project.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource other)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder mergeFrom(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource other)
Parameter
NameDescription
otherAnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFolders(int index, String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setFolders(int index, String value)

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The folders to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setFullResourceName(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setFullResourceName(String value)

The full resource name of the Google Cloud resource.

string full_resource_name = 1;

Parameter
NameDescription
valueString

The fullResourceName to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setFullResourceNameBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setFullResourceNameBytes(ByteString value)

The full resource name of the Google Cloud resource.

string full_resource_name = 1;

Parameter
NameDescription
valueByteString

The bytes for fullResourceName to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setOrganization(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setOrganization(String value)

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

string organization = 7;

Parameter
NameDescription
valueString

The organization to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setOrganizationBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setOrganizationBytes(ByteString value)

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

string organization = 7;

Parameter
NameDescription
valueByteString

The bytes for organization to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setParent(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setParent(String value)

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name.

string parent = 2;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setParentBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setParentBytes(ByteString value)

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name.

string parent = 2;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setProject(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setProject(String value)

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

string project = 5;

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder setProjectBytes(ByteString value)

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

string project = 5;

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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