Class GcpMetadata.Builder (2.57.0)

public static final class GcpMetadata.Builder extends GeneratedMessageV3.Builder<GcpMetadata.Builder> implements GcpMetadataOrBuilder

GCP metadata associated with the resource, only applicable if the finding's cloud provider is Google Cloud Platform.

Protobuf type google.cloud.securitycenter.v2.GcpMetadata

Static Methods

getDescriptor()

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

Methods

addAllFolders(Iterable<? extends Folder> values)

public GcpMetadata.Builder addAllFolders(Iterable<? extends Folder> values)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.Folder>
Returns
Type Description
GcpMetadata.Builder

addFolders(Folder value)

public GcpMetadata.Builder addFolders(Folder value)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Folder
Returns
Type Description
GcpMetadata.Builder

addFolders(Folder.Builder builderForValue)

public GcpMetadata.Builder addFolders(Folder.Builder builderForValue)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Folder.Builder
Returns
Type Description
GcpMetadata.Builder

addFolders(int index, Folder value)

public GcpMetadata.Builder addFolders(int index, Folder value)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Folder
Returns
Type Description
GcpMetadata.Builder

addFolders(int index, Folder.Builder builderForValue)

public GcpMetadata.Builder addFolders(int index, Folder.Builder builderForValue)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Folder.Builder
Returns
Type Description
GcpMetadata.Builder

addFoldersBuilder()

public Folder.Builder addFoldersBuilder()

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Folder.Builder

addFoldersBuilder(int index)

public Folder.Builder addFoldersBuilder(int index)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Folder.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GcpMetadata build()
Returns
Type Description
GcpMetadata

buildPartial()

public GcpMetadata buildPartial()
Returns
Type Description
GcpMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFolders()

public GcpMetadata.Builder clearFolders()

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcpMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrganization()

public GcpMetadata.Builder clearOrganization()

The name of the organization that the resource belongs to.

string organization = 6;

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

clearParent()

public GcpMetadata.Builder clearParent()

The full resource name of resource's parent.

string parent = 3;

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

clearParentDisplayName()

public GcpMetadata.Builder clearParentDisplayName()

The human readable name of resource's parent.

string parent_display_name = 4;

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

clearProject()

public GcpMetadata.Builder clearProject()

The full resource name of project that the resource belongs to.

string project = 1;

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

clearProjectDisplayName()

public GcpMetadata.Builder clearProjectDisplayName()

The project ID that the resource belongs to.

string project_display_name = 2;

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GcpMetadata getDefaultInstanceForType()
Returns
Type Description
GcpMetadata

getDescriptorForType()

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

getFolders(int index)

public Folder getFolders(int index)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Folder

getFoldersBuilder(int index)

public Folder.Builder getFoldersBuilder(int index)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Folder.Builder

getFoldersBuilderList()

public List<Folder.Builder> getFoldersBuilderList()

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getFoldersCount()

public int getFoldersCount()

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getFoldersList()

public List<Folder> getFoldersList()

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Folder>

getFoldersOrBuilder(int index)

public FolderOrBuilder getFoldersOrBuilder(int index)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FolderOrBuilder

getFoldersOrBuilderList()

public List<? extends FolderOrBuilder> getFoldersOrBuilderList()

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.FolderOrBuilder>

getOrganization()

public String getOrganization()

The name of the organization that the resource belongs to.

string organization = 6;

Returns
Type Description
String

The organization.

getOrganizationBytes()

public ByteString getOrganizationBytes()

The name of the organization that the resource belongs to.

string organization = 6;

Returns
Type Description
ByteString

The bytes for organization.

getParent()

public String getParent()

The full resource name of resource's parent.

string parent = 3;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The full resource name of resource's parent.

string parent = 3;

Returns
Type Description
ByteString

The bytes for parent.

getParentDisplayName()

public String getParentDisplayName()

The human readable name of resource's parent.

string parent_display_name = 4;

Returns
Type Description
String

The parentDisplayName.

getParentDisplayNameBytes()

public ByteString getParentDisplayNameBytes()

The human readable name of resource's parent.

string parent_display_name = 4;

Returns
Type Description
ByteString

The bytes for parentDisplayName.

getProject()

public String getProject()

The full resource name of project that the resource belongs to.

string project = 1;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The full resource name of project that the resource belongs to.

string project = 1;

Returns
Type Description
ByteString

The bytes for project.

getProjectDisplayName()

public String getProjectDisplayName()

The project ID that the resource belongs to.

string project_display_name = 2;

Returns
Type Description
String

The projectDisplayName.

getProjectDisplayNameBytes()

public ByteString getProjectDisplayNameBytes()

The project ID that the resource belongs to.

string project_display_name = 2;

Returns
Type Description
ByteString

The bytes for projectDisplayName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcpMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFolders(int index)

public GcpMetadata.Builder removeFolders(int index)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
GcpMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFolders(int index, Folder value)

public GcpMetadata.Builder setFolders(int index, Folder value)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Folder
Returns
Type Description
GcpMetadata.Builder

setFolders(int index, Folder.Builder builderForValue)

public GcpMetadata.Builder setFolders(int index, Folder.Builder builderForValue)

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

repeated .google.cloud.securitycenter.v2.Folder folders = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Folder.Builder
Returns
Type Description
GcpMetadata.Builder

setOrganization(String value)

public GcpMetadata.Builder setOrganization(String value)

The name of the organization that the resource belongs to.

string organization = 6;

Parameter
Name Description
value String

The organization to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setOrganizationBytes(ByteString value)

public GcpMetadata.Builder setOrganizationBytes(ByteString value)

The name of the organization that the resource belongs to.

string organization = 6;

Parameter
Name Description
value ByteString

The bytes for organization to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setParent(String value)

public GcpMetadata.Builder setParent(String value)

The full resource name of resource's parent.

string parent = 3;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setParentBytes(ByteString value)

public GcpMetadata.Builder setParentBytes(ByteString value)

The full resource name of resource's parent.

string parent = 3;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setParentDisplayName(String value)

public GcpMetadata.Builder setParentDisplayName(String value)

The human readable name of resource's parent.

string parent_display_name = 4;

Parameter
Name Description
value String

The parentDisplayName to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setParentDisplayNameBytes(ByteString value)

public GcpMetadata.Builder setParentDisplayNameBytes(ByteString value)

The human readable name of resource's parent.

string parent_display_name = 4;

Parameter
Name Description
value ByteString

The bytes for parentDisplayName to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setProject(String value)

public GcpMetadata.Builder setProject(String value)

The full resource name of project that the resource belongs to.

string project = 1;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GcpMetadata.Builder setProjectBytes(ByteString value)

The full resource name of project that the resource belongs to.

string project = 1;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setProjectDisplayName(String value)

public GcpMetadata.Builder setProjectDisplayName(String value)

The project ID that the resource belongs to.

string project_display_name = 2;

Parameter
Name Description
value String

The projectDisplayName to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

setProjectDisplayNameBytes(ByteString value)

public GcpMetadata.Builder setProjectDisplayNameBytes(ByteString value)

The project ID that the resource belongs to.

string project_display_name = 2;

Parameter
Name Description
value ByteString

The bytes for projectDisplayName to set.

Returns
Type Description
GcpMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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