Class OrgPolicy.Builder (2.91.0)

public static final class OrgPolicy.Builder extends GeneratedMessage.Builder<OrgPolicy.Builder> implements OrgPolicyOrBuilder

Contains information about the org policies associated with the finding.

Protobuf type google.cloud.securitycenter.v1.OrgPolicy

Implements

OrgPolicyOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public OrgPolicy build()
Returns
Type Description
OrgPolicy

buildPartial()

public OrgPolicy buildPartial()
Returns
Type Description
OrgPolicy

clear()

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

clearName()

public OrgPolicy.Builder clearName()

The resource name of the org policy. Example: "organizations/{organization_id}/policies/{constraint_name}"

string name = 1;

Returns
Type Description
OrgPolicy.Builder

This builder for chaining.

getDefaultInstanceForType()

public OrgPolicy getDefaultInstanceForType()
Returns
Type Description
OrgPolicy

getDescriptorForType()

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

getName()

public String getName()

The resource name of the org policy. Example: "organizations/{organization_id}/policies/{constraint_name}"

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the org policy. Example: "organizations/{organization_id}/policies/{constraint_name}"

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OrgPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public OrgPolicy.Builder setName(String value)

The resource name of the org policy. Example: "organizations/{organization_id}/policies/{constraint_name}"

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OrgPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OrgPolicy.Builder setNameBytes(ByteString value)

The resource name of the org policy. Example: "organizations/{organization_id}/policies/{constraint_name}"

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OrgPolicy.Builder

This builder for chaining.