Class OrgPolicy.Builder (2.48.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.v1.OrgPolicy

Implements

OrgPolicyOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrgPolicy build()
Returns
TypeDescription
OrgPolicy

buildPartial()

public OrgPolicy buildPartial()
Returns
TypeDescription
OrgPolicy

clear()

public OrgPolicy.Builder clear()
Returns
TypeDescription
OrgPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OrgPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
OrgPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public OrgPolicy.Builder clone()
Returns
TypeDescription
OrgPolicy.Builder
Overrides

getDefaultInstanceForType()

public OrgPolicy getDefaultInstanceForType()
Returns
TypeDescription
OrgPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OrgPolicy other)

public OrgPolicy.Builder mergeFrom(OrgPolicy other)
Parameter
NameDescription
otherOrgPolicy
Returns
TypeDescription
OrgPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public OrgPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrgPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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