Interface PostureOrBuilder (0.5.0)

public interface PostureOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsAnnotations(String key)

public abstract 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 abstract Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getCreateTimeOrBuilder()

public abstract 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

getDescription()

public abstract String getDescription()

Optional. User provided description of the posture.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. User provided description of the posture.

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

Returns
TypeDescription
ByteString

The bytes for description.

getEtag()

public abstract 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 abstract 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.

getName()

public abstract 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 abstract 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 abstract 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

getPolicySetsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getUpdateTimeOrBuilder()

public abstract 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 abstract 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 abstract 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.