Class PostureTemplate (0.5.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
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_SETS_FIELD_NUMBER

public static final int POLICY_SETS_FIELD_NUMBER
Field Value
TypeDescription
int

REVISION_ID_FIELD_NUMBER

public static final int REVISION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PostureTemplate getDefaultInstance()
Returns
TypeDescription
PostureTemplate

getDescriptor()

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

newBuilder()

public static PostureTemplate.Builder newBuilder()
Returns
TypeDescription
PostureTemplate.Builder

newBuilder(PostureTemplate prototype)

public static PostureTemplate.Builder newBuilder(PostureTemplate prototype)
Parameter
NameDescription
prototypePostureTemplate
Returns
TypeDescription
PostureTemplate.Builder

parseDelimitedFrom(InputStream input)

public static PostureTemplate parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PostureTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PostureTemplate parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PostureTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PostureTemplate parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PostureTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PostureTemplate parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PostureTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PostureTemplate parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PostureTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PostureTemplate parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PostureTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostureTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PostureTemplate> parser()
Returns
TypeDescription
Parser<PostureTemplate>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PostureTemplate getDefaultInstanceForType()
Returns
TypeDescription
PostureTemplate

getDescription()

public String getDescription()

Output only. Description of the Posture template.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Description of the Posture template.

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

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

The bytes for name.

getParserForType()

public Parser<PostureTemplate> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for revisionId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for state.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PostureTemplate.Builder newBuilderForType()
Returns
TypeDescription
PostureTemplate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PostureTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PostureTemplate.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PostureTemplate.Builder toBuilder()
Returns
TypeDescription
PostureTemplate.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException