Class PostureTemplate (0.16.0)

public final class PostureTemplate extends GeneratedMessageV3 implements PostureTemplateOrBuilder

PostureTemplates Message describing PostureTemplate object.

Protobuf type google.cloud.securityposture.v1.PostureTemplate

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

POLICY_SETS_FIELD_NUMBER

public static final int POLICY_SETS_FIELD_NUMBER
Field Value
Type Description
int

REVISION_ID_FIELD_NUMBER

public static final int REVISION_ID_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PostureTemplate getDefaultInstance()
Returns
Type Description
PostureTemplate

getDescriptor()

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

newBuilder()

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

newBuilder(PostureTemplate prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PostureTemplate getDefaultInstanceForType()
Returns
Type Description
PostureTemplate

getDescription()

public String getDescription()

Output only. Description of the Posture template.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Description of the Posture template.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getName()

public String getName()

Output only. Identifier. The name of the Posture template will be of the format organizations/{organization}/locations/{location}/postureTemplates/{postureTemplate}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The name of the Posture template will be of the format organizations/{organization}/locations/{location}/postureTemplates/{postureTemplate}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getPolicySets(int index)

public PolicySet getPolicySets(int index)

Output only. Policy_sets to be used by the user.

repeated .google.cloud.securityposture.v1.PolicySet policy_sets = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PolicySet

getPolicySetsCount()

public int getPolicySetsCount()

Output only. Policy_sets to be used by the user.

repeated .google.cloud.securityposture.v1.PolicySet policy_sets = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPolicySetsList()

public List<PolicySet> getPolicySetsList()

Output only. Policy_sets to be used by the user.

repeated .google.cloud.securityposture.v1.PolicySet policy_sets = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PolicySet>

getPolicySetsOrBuilder(int index)

public PolicySetOrBuilder getPolicySetsOrBuilder(int index)

Output only. Policy_sets to be used by the user.

repeated .google.cloud.securityposture.v1.PolicySet policy_sets = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PolicySetOrBuilder

getPolicySetsOrBuilderList()

public List<? extends PolicySetOrBuilder> getPolicySetsOrBuilderList()

Output only. Policy_sets to be used by the user.

repeated .google.cloud.securityposture.v1.PolicySet policy_sets = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getRevisionId()

public String getRevisionId()

Output only. The revision_id of a PostureTemplate.

string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Output only. The revision_id of a PostureTemplate.

string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for revisionId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public PostureTemplate.State getState()

Output only. State of PostureTemplate resource.

.google.cloud.securityposture.v1.PostureTemplate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PostureTemplate.State

The state.

getStateValue()

public int getStateValue()

Output only. State of PostureTemplate resource.

.google.cloud.securityposture.v1.PostureTemplate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

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 PostureTemplate.Builder newBuilderForType()
Returns
Type Description
PostureTemplate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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