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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PostureTemplate.BuilderImplements
PostureTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.securityposture.v1.PolicySet> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | PolicySet |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | PolicySet.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | PolicySet |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | PolicySet.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
PolicySet.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PostureTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
build()
public PostureTemplate build()
Returns | |
---|---|
Type | Description |
PostureTemplate |
buildPartial()
public PostureTemplate buildPartial()
Returns | |
---|---|
Type | Description |
PostureTemplate |
clear()
public PostureTemplate.Builder clear()
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
clearDescription()
public PostureTemplate.Builder clearDescription()
Output only. Description of the Posture template.
string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PostureTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
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 | |
---|---|
Type | Description |
PostureTemplate.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PostureTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
PostureTemplate.Builder | This builder for chaining. |
clone()
public PostureTemplate.Builder clone()
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
getDefaultInstanceForType()
public PostureTemplate getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PostureTemplate |
getDescription()
public String getDescription()
Output only. Description of the Posture template.
string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. Description of the Posture template.
string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
int | The enum numeric value on the wire for state. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PostureTemplate other)
public PostureTemplate.Builder mergeFrom(PostureTemplate other)
Parameter | |
---|---|
Name | Description |
other | PostureTemplate |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PostureTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PostureTemplate.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PostureTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PostureTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | PolicySet |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | PolicySet.Builder |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PostureTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |
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 | |
---|---|
Name | Description |
value | String The revisionId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for revisionId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | PostureTemplate.State The state to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PostureTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PostureTemplate.Builder |