Class OrgPolicy.Builder (2.53.0)

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

Contains information about the org policies associated with the finding.

Protobuf type google.cloud.securitycenter.v2.OrgPolicy

Implements

OrgPolicyOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public OrgPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public OrgPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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