Class PostureTemplate.Builder (0.4.0)

public static final class PostureTemplate.Builder extends GeneratedMessageV3.Builder<PostureTemplate.Builder> implements PostureTemplateOrBuilder

PostureTemplates Message describing PostureTemplate object.

Protobuf type google.cloud.securityposture.v1.PostureTemplate

Static Methods

getDescriptor()

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

Methods

addAllPolicySets(Iterable<? extends PolicySet> values)

public PostureTemplate.Builder addAllPolicySets(Iterable<? extends PolicySet> values)

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
valuesIterable<? extends com.google.cloud.securityposture.v1.PolicySet>
Returns
TypeDescription
PostureTemplate.Builder

addPolicySets(PolicySet value)

public PostureTemplate.Builder addPolicySets(PolicySet value)

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
valuePolicySet
Returns
TypeDescription
PostureTemplate.Builder

addPolicySets(PolicySet.Builder builderForValue)

public PostureTemplate.Builder addPolicySets(PolicySet.Builder builderForValue)

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
builderForValuePolicySet.Builder
Returns
TypeDescription
PostureTemplate.Builder

addPolicySets(int index, PolicySet value)

public PostureTemplate.Builder addPolicySets(int index, PolicySet value)

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];

Parameters
NameDescription
indexint
valuePolicySet
Returns
TypeDescription
PostureTemplate.Builder

addPolicySets(int index, PolicySet.Builder builderForValue)

public PostureTemplate.Builder addPolicySets(int index, PolicySet.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValuePolicySet.Builder
Returns
TypeDescription
PostureTemplate.Builder

addPolicySetsBuilder()

public PolicySet.Builder addPolicySetsBuilder()

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
PolicySet.Builder

addPolicySetsBuilder(int index)

public PolicySet.Builder addPolicySetsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PostureTemplate build()
Returns
TypeDescription
PostureTemplate

buildPartial()

public PostureTemplate buildPartial()
Returns
TypeDescription
PostureTemplate

clear()

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

clearDescription()

public PostureTemplate.Builder clearDescription()

Output only. Description of the Posture template.

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

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PostureTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PostureTemplate.Builder
Overrides

clearName()

public PostureTemplate.Builder clearName()

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
PostureTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicySets()

public PostureTemplate.Builder clearPolicySets()

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
PostureTemplate.Builder

clearRevisionId()

public PostureTemplate.Builder clearRevisionId()

Output only. The revision_id of a PostureTemplate.

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

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

clearState()

public PostureTemplate.Builder clearState()

Output only. State of PostureTemplate resource.

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

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

clone()

public PostureTemplate.Builder clone()
Returns
TypeDescription
PostureTemplate.Builder
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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

getPolicySetsBuilder(int index)

public PolicySet.Builder getPolicySetsBuilder(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.Builder

getPolicySetsBuilderList()

public List<PolicySet.Builder> getPolicySetsBuilderList()

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<Builder>

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PostureTemplate other)

public PostureTemplate.Builder mergeFrom(PostureTemplate other)
Parameter
NameDescription
otherPostureTemplate
Returns
TypeDescription
PostureTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePolicySets(int index)

public PostureTemplate.Builder removePolicySets(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
PostureTemplate.Builder

setDescription(String value)

public PostureTemplate.Builder setDescription(String value)

Output only. Description of the Posture template.

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PostureTemplate.Builder setDescriptionBytes(ByteString value)

Output only. Description of the Posture template.

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PostureTemplate.Builder setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PostureTemplate.Builder setNameBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setPolicySets(int index, PolicySet value)

public PostureTemplate.Builder setPolicySets(int index, PolicySet value)

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];

Parameters
NameDescription
indexint
valuePolicySet
Returns
TypeDescription
PostureTemplate.Builder

setPolicySets(int index, PolicySet.Builder builderForValue)

public PostureTemplate.Builder setPolicySets(int index, PolicySet.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValuePolicySet.Builder
Returns
TypeDescription
PostureTemplate.Builder

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

public PostureTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PostureTemplate.Builder
Overrides

setRevisionId(String value)

public PostureTemplate.Builder setRevisionId(String value)

Output only. The revision_id of a PostureTemplate.

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

Parameter
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public PostureTemplate.Builder setRevisionIdBytes(ByteString value)

Output only. The revision_id of a PostureTemplate.

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

Parameter
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setState(PostureTemplate.State value)

public PostureTemplate.Builder setState(PostureTemplate.State value)

Output only. State of PostureTemplate resource.

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

Parameter
NameDescription
valuePostureTemplate.State

The state to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setStateValue(int value)

public PostureTemplate.Builder setStateValue(int value)

Output only. State of PostureTemplate resource.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
PostureTemplate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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