Class ResourcePath.ResourcePathNode.Builder (2.62.0)

public static final class ResourcePath.ResourcePathNode.Builder extends GeneratedMessageV3.Builder<ResourcePath.ResourcePathNode.Builder> implements ResourcePath.ResourcePathNodeOrBuilder

A node within the resource path. Each node represents a resource within the resource hierarchy.

Protobuf type google.cloud.securitycenter.v1.ResourcePath.ResourcePathNode

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePath.ResourcePathNode build()
Returns
Type Description
ResourcePath.ResourcePathNode

buildPartial()

public ResourcePath.ResourcePathNode buildPartial()
Returns
Type Description
ResourcePath.ResourcePathNode

clear()

public ResourcePath.ResourcePathNode.Builder clear()
Returns
Type Description
ResourcePath.ResourcePathNode.Builder
Overrides

clearDisplayName()

public ResourcePath.ResourcePathNode.Builder clearDisplayName()

The display name of the resource this node represents.

string display_name = 3;

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public ResourcePath.ResourcePathNode.Builder clearId()

The ID of the resource this node represents.

string id = 2;

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

clearNodeType()

public ResourcePath.ResourcePathNode.Builder clearNodeType()

The type of resource this node represents.

.google.cloud.securitycenter.v1.ResourcePath.ResourcePathNodeType node_type = 1;

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ResourcePath.ResourcePathNode.Builder clone()
Returns
Type Description
ResourcePath.ResourcePathNode.Builder
Overrides

getDefaultInstanceForType()

public ResourcePath.ResourcePathNode getDefaultInstanceForType()
Returns
Type Description
ResourcePath.ResourcePathNode

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The display name of the resource this node represents.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the resource this node represents.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

The ID of the resource this node represents.

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the resource this node represents.

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getNodeType()

public ResourcePath.ResourcePathNodeType getNodeType()

The type of resource this node represents.

.google.cloud.securitycenter.v1.ResourcePath.ResourcePathNodeType node_type = 1;

Returns
Type Description
ResourcePath.ResourcePathNodeType

The nodeType.

getNodeTypeValue()

public int getNodeTypeValue()

The type of resource this node represents.

.google.cloud.securitycenter.v1.ResourcePath.ResourcePathNodeType node_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for nodeType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourcePath.ResourcePathNode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public ResourcePath.ResourcePathNode.Builder setDisplayName(String value)

The display name of the resource this node represents.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ResourcePath.ResourcePathNode.Builder setDisplayNameBytes(ByteString value)

The display name of the resource this node represents.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public ResourcePath.ResourcePathNode.Builder setId(String value)

The ID of the resource this node represents.

string id = 2;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

setIdBytes(ByteString value)

public ResourcePath.ResourcePathNode.Builder setIdBytes(ByteString value)

The ID of the resource this node represents.

string id = 2;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

setNodeType(ResourcePath.ResourcePathNodeType value)

public ResourcePath.ResourcePathNode.Builder setNodeType(ResourcePath.ResourcePathNodeType value)

The type of resource this node represents.

.google.cloud.securitycenter.v1.ResourcePath.ResourcePathNodeType node_type = 1;

Parameter
Name Description
value ResourcePath.ResourcePathNodeType

The nodeType to set.

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

setNodeTypeValue(int value)

public ResourcePath.ResourcePathNode.Builder setNodeTypeValue(int value)

The type of resource this node represents.

.google.cloud.securitycenter.v1.ResourcePath.ResourcePathNodeType node_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for nodeType to set.

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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