Class Asset.SecurityCenterProperties.Builder (2.12.0)

public static final class Asset.SecurityCenterProperties.Builder extends GeneratedMessageV3.Builder<Asset.SecurityCenterProperties.Builder> implements Asset.SecurityCenterPropertiesOrBuilder

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

Protobuf type google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties

Static Methods

getDescriptor()

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

Methods

addAllResourceOwners(Iterable<String> values)

public Asset.SecurityCenterProperties.Builder addAllResourceOwners(Iterable<String> values)

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Parameter
NameDescription
valuesIterable<String>

The resourceOwners to add.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceOwners(String value)

public Asset.SecurityCenterProperties.Builder addResourceOwners(String value)

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Parameter
NameDescription
valueString

The resourceOwners to add.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

addResourceOwnersBytes(ByteString value)

public Asset.SecurityCenterProperties.Builder addResourceOwnersBytes(ByteString value)

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Parameter
NameDescription
valueByteString

The bytes of the resourceOwners to add.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

build()

public Asset.SecurityCenterProperties build()
Returns
TypeDescription
Asset.SecurityCenterProperties

buildPartial()

public Asset.SecurityCenterProperties buildPartial()
Returns
TypeDescription
Asset.SecurityCenterProperties

clear()

public Asset.SecurityCenterProperties.Builder clear()
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Asset.SecurityCenterProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Asset.SecurityCenterProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides

clearResourceName()

public Asset.SecurityCenterProperties.Builder clearResourceName()

Immutable. The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

clearResourceOwners()

public Asset.SecurityCenterProperties.Builder clearResourceOwners()

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

clearResourceParent()

public Asset.SecurityCenterProperties.Builder clearResourceParent()

The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_parent = 3;

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

clearResourceProject()

public Asset.SecurityCenterProperties.Builder clearResourceProject()

The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_project = 4;

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

clearResourceType()

public Asset.SecurityCenterProperties.Builder clearResourceType()

The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.

string resource_type = 2;

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

clone()

public Asset.SecurityCenterProperties.Builder clone()
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides

getDefaultInstanceForType()

public Asset.SecurityCenterProperties getDefaultInstanceForType()
Returns
TypeDescription
Asset.SecurityCenterProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResourceName()

public String getResourceName()

Immutable. The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

Immutable. The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for resourceName.

getResourceOwners(int index)

public String getResourceOwners(int index)

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The resourceOwners at the given index.

getResourceOwnersBytes(int index)

public ByteString getResourceOwnersBytes(int index)

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the resourceOwners at the given index.

getResourceOwnersCount()

public int getResourceOwnersCount()

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Returns
TypeDescription
int

The count of resourceOwners.

getResourceOwnersList()

public ProtocolStringList getResourceOwnersList()

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the resourceOwners.

getResourceParent()

public String getResourceParent()

The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_parent = 3;

Returns
TypeDescription
String

The resourceParent.

getResourceParentBytes()

public ByteString getResourceParentBytes()

The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_parent = 3;

Returns
TypeDescription
ByteString

The bytes for resourceParent.

getResourceProject()

public String getResourceProject()

The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_project = 4;

Returns
TypeDescription
String

The resourceProject.

getResourceProjectBytes()

public ByteString getResourceProjectBytes()

The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_project = 4;

Returns
TypeDescription
ByteString

The bytes for resourceProject.

getResourceType()

public String getResourceType()

The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.

string resource_type = 2;

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.

string resource_type = 2;

Returns
TypeDescription
ByteString

The bytes for resourceType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Asset.SecurityCenterProperties other)

public Asset.SecurityCenterProperties.Builder mergeFrom(Asset.SecurityCenterProperties other)
Parameter
NameDescription
otherAsset.SecurityCenterProperties
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Asset.SecurityCenterProperties.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Asset.SecurityCenterProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceName(String value)

public Asset.SecurityCenterProperties.Builder setResourceName(String value)

Immutable. The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The resourceName to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public Asset.SecurityCenterProperties.Builder setResourceNameBytes(ByteString value)

Immutable. The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for resourceName to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceOwners(int index, String value)

public Asset.SecurityCenterProperties.Builder setResourceOwners(int index, String value)

Owners of the Google Cloud resource.

repeated string resource_owners = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The resourceOwners to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceParent(String value)

public Asset.SecurityCenterProperties.Builder setResourceParent(String value)

The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_parent = 3;

Parameter
NameDescription
valueString

The resourceParent to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceParentBytes(ByteString value)

public Asset.SecurityCenterProperties.Builder setResourceParentBytes(ByteString value)

The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_parent = 3;

Parameter
NameDescription
valueByteString

The bytes for resourceParent to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceProject(String value)

public Asset.SecurityCenterProperties.Builder setResourceProject(String value)

The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_project = 4;

Parameter
NameDescription
valueString

The resourceProject to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceProjectBytes(ByteString value)

public Asset.SecurityCenterProperties.Builder setResourceProjectBytes(ByteString value)

The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

string resource_project = 4;

Parameter
NameDescription
valueByteString

The bytes for resourceProject to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceType(String value)

public Asset.SecurityCenterProperties.Builder setResourceType(String value)

The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.

string resource_type = 2;

Parameter
NameDescription
valueString

The resourceType to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public Asset.SecurityCenterProperties.Builder setResourceTypeBytes(ByteString value)

The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.

string resource_type = 2;

Parameter
NameDescription
valueByteString

The bytes for resourceType to set.

Returns
TypeDescription
Asset.SecurityCenterProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Asset.SecurityCenterProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Asset.SecurityCenterProperties.Builder
Overrides