Class Posture.Builder (0.6.0)

public static final class Posture.Builder extends GeneratedMessageV3.Builder<Posture.Builder> implements PostureOrBuilder

Postures Definition of a Posture.

Protobuf type google.cloud.securityposture.v1.Posture

Implements

PostureOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPolicySets(Iterable<? extends PolicySet> values)

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

Required. List of Policy sets.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securityposture.v1.PolicySet>
Returns
TypeDescription
Posture.Builder

addPolicySets(PolicySet value)

public Posture.Builder addPolicySets(PolicySet value)

Required. List of Policy sets.

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

Parameter
NameDescription
valuePolicySet
Returns
TypeDescription
Posture.Builder

addPolicySets(PolicySet.Builder builderForValue)

public Posture.Builder addPolicySets(PolicySet.Builder builderForValue)

Required. List of Policy sets.

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

Parameter
NameDescription
builderForValuePolicySet.Builder
Returns
TypeDescription
Posture.Builder

addPolicySets(int index, PolicySet value)

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

Required. List of Policy sets.

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

Parameters
NameDescription
indexint
valuePolicySet
Returns
TypeDescription
Posture.Builder

addPolicySets(int index, PolicySet.Builder builderForValue)

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

Required. List of Policy sets.

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

Parameters
NameDescription
indexint
builderForValuePolicySet.Builder
Returns
TypeDescription
Posture.Builder

addPolicySetsBuilder()

public PolicySet.Builder addPolicySetsBuilder()

Required. List of Policy sets.

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

Returns
TypeDescription
PolicySet.Builder

addPolicySetsBuilder(int index)

public PolicySet.Builder addPolicySetsBuilder(int index)

Required. List of Policy sets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PolicySet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Posture build()
Returns
TypeDescription
Posture

buildPartial()

public Posture buildPartial()
Returns
TypeDescription
Posture

clear()

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

clearAnnotations()

public Posture.Builder clearAnnotations()
Returns
TypeDescription
Posture.Builder

clearCreateTime()

public Posture.Builder clearCreateTime()

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Posture.Builder

clearDescription()

public Posture.Builder clearDescription()

Optional. User provided description of the posture.

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

Returns
TypeDescription
Posture.Builder

This builder for chaining.

clearEtag()

public Posture.Builder clearEtag()

Optional. An opaque tag indicating the current version of the Posture, used for concurrency control. When the Posture is returned from either a GetPosture or a ListPostures request, this etag indicates the version of the current Posture to use when executing a read-modify-write loop.

When the Posture is used in a UpdatePosture method, use the etag value that was returned from a GetPosture request as part of a read-modify-write loop for concurrency control. Not setting the etag in a UpdatePosture request will result in an unconditional write of the Posture.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Posture.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Posture.Builder clearName()

Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.

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

Returns
TypeDescription
Posture.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicySets()

public Posture.Builder clearPolicySets()

Required. List of Policy sets.

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

Returns
TypeDescription
Posture.Builder

clearReconciling()

public Posture.Builder clearReconciling()

Output only. Whether or not this Posture is in the process of being updated.

bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Posture.Builder

This builder for chaining.

clearRevisionId()

public Posture.Builder clearRevisionId()

Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162

string revision_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Posture.Builder

This builder for chaining.

clearState()

public Posture.Builder clearState()

Required. State of Posture resource.

.google.cloud.securityposture.v1.Posture.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Posture.Builder

This builder for chaining.

clearUpdateTime()

public Posture.Builder clearUpdateTime()

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Posture.Builder

clone()

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

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Posture getDefaultInstanceForType()
Returns
TypeDescription
Posture

getDescription()

public String getDescription()

Optional. User provided description of the posture.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User provided description of the posture.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Optional. An opaque tag indicating the current version of the Posture, used for concurrency control. When the Posture is returned from either a GetPosture or a ListPostures request, this etag indicates the version of the current Posture to use when executing a read-modify-write loop.

When the Posture is used in a UpdatePosture method, use the etag value that was returned from a GetPosture request as part of a read-modify-write loop for concurrency control. Not setting the etag in a UpdatePosture request will result in an unconditional write of the Posture.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. An opaque tag indicating the current version of the Posture, used for concurrency control. When the Posture is returned from either a GetPosture or a ListPostures request, this etag indicates the version of the current Posture to use when executing a read-modify-write loop.

When the Posture is used in a UpdatePosture method, use the etag value that was returned from a GetPosture request as part of a read-modify-write loop for concurrency control. Not setting the etag in a UpdatePosture request will result in an unconditional write of the Posture.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for etag.

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getPolicySets(int index)

public PolicySet getPolicySets(int index)

Required. List of Policy sets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PolicySet

getPolicySetsBuilder(int index)

public PolicySet.Builder getPolicySetsBuilder(int index)

Required. List of Policy sets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PolicySet.Builder

getPolicySetsBuilderList()

public List<PolicySet.Builder> getPolicySetsBuilderList()

Required. List of Policy sets.

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

Returns
TypeDescription
List<Builder>

getPolicySetsCount()

public int getPolicySetsCount()

Required. List of Policy sets.

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

Returns
TypeDescription
int

getPolicySetsList()

public List<PolicySet> getPolicySetsList()

Required. List of Policy sets.

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

Returns
TypeDescription
List<PolicySet>

getPolicySetsOrBuilder(int index)

public PolicySetOrBuilder getPolicySetsOrBuilder(int index)

Required. List of Policy sets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PolicySetOrBuilder

getPolicySetsOrBuilderList()

public List<? extends PolicySetOrBuilder> getPolicySetsOrBuilderList()

Required. List of Policy sets.

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

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

getReconciling()

public boolean getReconciling()

Output only. Whether or not this Posture is in the process of being updated.

bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The reconciling.

getRevisionId()

public String getRevisionId()

Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162

string revision_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162

string revision_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for revisionId.

getState()

public Posture.State getState()

Required. State of Posture resource.

.google.cloud.securityposture.v1.Posture.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Posture.State

The state.

getStateValue()

public int getStateValue()

Required. State of Posture resource.

.google.cloud.securityposture.v1.Posture.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Posture.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Posture.Builder

mergeFrom(Posture other)

public Posture.Builder mergeFrom(Posture other)
Parameter
NameDescription
otherPosture
Returns
TypeDescription
Posture.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Posture.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Posture.Builder

putAllAnnotations(Map<String,String> values)

public Posture.Builder putAllAnnotations(Map<String,String> values)

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Posture.Builder

putAnnotations(String key, String value)

public Posture.Builder putAnnotations(String key, String value)

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Posture.Builder

removeAnnotations(String key)

public Posture.Builder removeAnnotations(String key)

Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
Posture.Builder

removePolicySets(int index)

public Posture.Builder removePolicySets(int index)

Required. List of Policy sets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Posture.Builder

setCreateTime(Timestamp value)

public Posture.Builder setCreateTime(Timestamp value)

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Posture.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Posture.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp that the posture was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Posture.Builder

setDescription(String value)

public Posture.Builder setDescription(String value)

Optional. User provided description of the posture.

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Posture.Builder setDescriptionBytes(ByteString value)

Optional. User provided description of the posture.

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setEtag(String value)

public Posture.Builder setEtag(String value)

Optional. An opaque tag indicating the current version of the Posture, used for concurrency control. When the Posture is returned from either a GetPosture or a ListPostures request, this etag indicates the version of the current Posture to use when executing a read-modify-write loop.

When the Posture is used in a UpdatePosture method, use the etag value that was returned from a GetPosture request as part of a read-modify-write loop for concurrency control. Not setting the etag in a UpdatePosture request will result in an unconditional write of the Posture.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Posture.Builder setEtagBytes(ByteString value)

Optional. An opaque tag indicating the current version of the Posture, used for concurrency control. When the Posture is returned from either a GetPosture or a ListPostures request, this etag indicates the version of the current Posture to use when executing a read-modify-write loop.

When the Posture is used in a UpdatePosture method, use the etag value that was returned from a GetPosture request as part of a read-modify-write loop for concurrency control. Not setting the etag in a UpdatePosture request will result in an unconditional write of the Posture.

string etag = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Posture.Builder setName(String value)

Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Posture.Builder setNameBytes(ByteString value)

Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setPolicySets(int index, PolicySet value)

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

Required. List of Policy sets.

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

Parameters
NameDescription
indexint
valuePolicySet
Returns
TypeDescription
Posture.Builder

setPolicySets(int index, PolicySet.Builder builderForValue)

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

Required. List of Policy sets.

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

Parameters
NameDescription
indexint
builderForValuePolicySet.Builder
Returns
TypeDescription
Posture.Builder

setReconciling(boolean value)

public Posture.Builder setReconciling(boolean value)

Output only. Whether or not this Posture is in the process of being updated.

bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

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

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

setRevisionId(String value)

public Posture.Builder setRevisionId(String value)

Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162

string revision_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public Posture.Builder setRevisionIdBytes(ByteString value)

Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162

string revision_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setState(Posture.State value)

public Posture.Builder setState(Posture.State value)

Required. State of Posture resource.

.google.cloud.securityposture.v1.Posture.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePosture.State

The state to set.

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setStateValue(int value)

public Posture.Builder setStateValue(int value)

Required. State of Posture resource.

.google.cloud.securityposture.v1.Posture.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Posture.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Posture.Builder setUpdateTime(Timestamp value)

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Posture.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Posture.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp that the posture was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Posture.Builder