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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Posture.BuilderImplements
PostureOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.securityposture.v1.PolicySet> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | PolicySet |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | PolicySet.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | PolicySet |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | PolicySet.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
PolicySet.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Posture.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Posture.Builder |
build()
public Posture build()
Returns | |
---|---|
Type | Description |
Posture |
buildPartial()
public Posture buildPartial()
Returns | |
---|---|
Type | Description |
Posture |
clear()
public Posture.Builder clear()
Returns | |
---|---|
Type | Description |
Posture.Builder |
clearAnnotations()
public Posture.Builder clearAnnotations()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Posture.Builder |
clearDescription()
public Posture.Builder clearDescription()
Optional. User provided description of the posture.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Posture.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Posture.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Type | Description |
Posture.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Posture.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Posture.Builder |
clone()
public Posture.Builder clone()
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getAnnotations() (deprecated)
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Posture getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Posture |
getDescription()
public String getDescription()
Optional. User provided description of the posture.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. User provided description of the posture.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for etag. |
getMutableAnnotations() (deprecated)
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Posture.Builder |
mergeFrom(Posture other)
public Posture.Builder mergeFrom(Posture other)
Parameter | |
---|---|
Name | Description |
other | Posture |
Returns | |
---|---|
Type | Description |
Posture.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Posture.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Posture.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Posture.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Posture.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Posture.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The etag to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
Posture.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Posture.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | PolicySet |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | PolicySet.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | boolean The reconciling to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Name | Description |
value | String The revisionId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for revisionId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Posture.State The state to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Posture.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Posture.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Posture.Builder |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Posture.Builder |