Class PolicySet (0.11.0)

public final class PolicySet extends GeneratedMessageV3 implements PolicySetOrBuilder

PolicySet representation.

Protobuf type google.cloud.securityposture.v1.PolicySet

Implements

PolicySetOrBuilder

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

POLICIES_FIELD_NUMBER

public static final int POLICIES_FIELD_NUMBER
Field Value
Type Description
int

POLICY_SET_ID_FIELD_NUMBER

public static final int POLICY_SET_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PolicySet getDefaultInstance()
Returns
Type Description
PolicySet

getDescriptor()

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

newBuilder()

public static PolicySet.Builder newBuilder()
Returns
Type Description
PolicySet.Builder

newBuilder(PolicySet prototype)

public static PolicySet.Builder newBuilder(PolicySet prototype)
Parameter
Name Description
prototype PolicySet
Returns
Type Description
PolicySet.Builder

parseDelimitedFrom(InputStream input)

public static PolicySet parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicySet
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicySet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicySet
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PolicySet parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PolicySet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicySet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicySet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicySet parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PolicySet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicySet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicySet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicySet parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PolicySet
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicySet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicySet
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PolicySet parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicySet
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicySet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicySet
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PolicySet parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PolicySet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicySet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicySet
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PolicySet> parser()
Returns
Type Description
Parser<PolicySet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PolicySet getDefaultInstanceForType()
Returns
Type Description
PolicySet

getDescription()

public String getDescription()

Optional. Description of the Policy set.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the Policy set.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getParserForType()

public Parser<PolicySet> getParserForType()
Returns
Type Description
Parser<PolicySet>
Overrides

getPolicies(int index)

public Policy getPolicies(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Policy

getPoliciesCount()

public int getPoliciesCount()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getPoliciesList()

public List<Policy> getPoliciesList()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Policy>

getPoliciesOrBuilder(int index)

public PolicyOrBuilder getPoliciesOrBuilder(int index)

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PolicyOrBuilder

getPoliciesOrBuilderList()

public List<? extends PolicyOrBuilder> getPoliciesOrBuilderList()

Required. List of policies.

repeated .google.cloud.securityposture.v1.Policy policies = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.securityposture.v1.PolicyOrBuilder>

getPolicySetId()

public String getPolicySetId()

Required. ID of the Policy set.

string policy_set_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The policySetId.

getPolicySetIdBytes()

public ByteString getPolicySetIdBytes()

Required. ID of the Policy set.

string policy_set_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for policySetId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PolicySet.Builder newBuilderForType()
Returns
Type Description
PolicySet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicySet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PolicySet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PolicySet.Builder toBuilder()
Returns
Type Description
PolicySet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException