Package com.google.cloud.osconfig.v1
Class OSPolicyAssignment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
- com.google.cloud.osconfig.v1.OSPolicyAssignment.Builder
-
- All Implemented Interfaces:
OSPolicyAssignmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OSPolicyAssignment
public static final class OSPolicyAssignment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder> implements OSPolicyAssignmentOrBuilder
OS policy assignment is an API resource that is used to apply a set of OS policies to a dynamically targeted group of Compute Engine VM instances. An OS policy is used to define the desired state configuration for a Compute Engine VM instance through a set of configuration resources that provide capabilities such as installing or removing software packages, or executing a script. For more information, see [OS policy and OS policy assignment](https://cloud.google.com/compute/docs/os-configuration-management/working-with-os-policies).
Protobuf typegoogle.cloud.osconfig.v1.OSPolicyAssignment
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
clear
public OSPolicyAssignment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
getDefaultInstanceForType
public OSPolicyAssignment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OSPolicyAssignment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OSPolicyAssignment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OSPolicyAssignment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
setField
public OSPolicyAssignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
clearField
public OSPolicyAssignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
clearOneof
public OSPolicyAssignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
setRepeatedField
public OSPolicyAssignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
addRepeatedField
public OSPolicyAssignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
mergeFrom
public OSPolicyAssignment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSPolicyAssignment.Builder>
-
mergeFrom
public OSPolicyAssignment.Builder mergeFrom(OSPolicyAssignment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
mergeFrom
public OSPolicyAssignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSPolicyAssignment.Builder>- Throws:
IOException
-
getName
public String getName()
Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.string name = 1;- Specified by:
getNamein interfaceOSPolicyAssignmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.string name = 1;- Specified by:
getNameBytesin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The bytes for name.
-
setName
public OSPolicyAssignment.Builder setName(String value)
Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public OSPolicyAssignment.Builder clearName()
Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public OSPolicyAssignment.Builder setNameBytes(com.google.protobuf.ByteString value)
Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
OS policy assignment description. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
OS policy assignment description. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionBytesin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The bytes for description.
-
setDescription
public OSPolicyAssignment.Builder setDescription(String value)
OS policy assignment description. Length of the description is limited to 1024 characters.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public OSPolicyAssignment.Builder clearDescription()
OS policy assignment description. Length of the description is limited to 1024 characters.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public OSPolicyAssignment.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
OS policy assignment description. Length of the description is limited to 1024 characters.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getOsPoliciesList
public List<OSPolicy> getOsPoliciesList()
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOsPoliciesListin interfaceOSPolicyAssignmentOrBuilder
-
getOsPoliciesCount
public int getOsPoliciesCount()
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOsPoliciesCountin interfaceOSPolicyAssignmentOrBuilder
-
getOsPolicies
public OSPolicy getOsPolicies(int index)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOsPoliciesin interfaceOSPolicyAssignmentOrBuilder
-
setOsPolicies
public OSPolicyAssignment.Builder setOsPolicies(int index, OSPolicy value)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
setOsPolicies
public OSPolicyAssignment.Builder setOsPolicies(int index, OSPolicy.Builder builderForValue)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
addOsPolicies
public OSPolicyAssignment.Builder addOsPolicies(OSPolicy value)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
addOsPolicies
public OSPolicyAssignment.Builder addOsPolicies(int index, OSPolicy value)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
addOsPolicies
public OSPolicyAssignment.Builder addOsPolicies(OSPolicy.Builder builderForValue)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
addOsPolicies
public OSPolicyAssignment.Builder addOsPolicies(int index, OSPolicy.Builder builderForValue)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
addAllOsPolicies
public OSPolicyAssignment.Builder addAllOsPolicies(Iterable<? extends OSPolicy> values)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
clearOsPolicies
public OSPolicyAssignment.Builder clearOsPolicies()
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
removeOsPolicies
public OSPolicyAssignment.Builder removeOsPolicies(int index)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
getOsPoliciesBuilder
public OSPolicy.Builder getOsPoliciesBuilder(int index)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
getOsPoliciesOrBuilder
public OSPolicyOrBuilder getOsPoliciesOrBuilder(int index)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOsPoliciesOrBuilderin interfaceOSPolicyAssignmentOrBuilder
-
getOsPoliciesOrBuilderList
public List<? extends OSPolicyOrBuilder> getOsPoliciesOrBuilderList()
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOsPoliciesOrBuilderListin interfaceOSPolicyAssignmentOrBuilder
-
addOsPoliciesBuilder
public OSPolicy.Builder addOsPoliciesBuilder()
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
addOsPoliciesBuilder
public OSPolicy.Builder addOsPoliciesBuilder(int index)
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
getOsPoliciesBuilderList
public List<OSPolicy.Builder> getOsPoliciesBuilderList()
Required. List of OS policies to be applied to the VMs.
repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3 [(.google.api.field_behavior) = REQUIRED];
-
hasInstanceFilter
public boolean hasInstanceFilter()
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasInstanceFilterin interfaceOSPolicyAssignmentOrBuilder- Returns:
- Whether the instanceFilter field is set.
-
getInstanceFilter
public OSPolicyAssignment.InstanceFilter getInstanceFilter()
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstanceFilterin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The instanceFilter.
-
setInstanceFilter
public OSPolicyAssignment.Builder setInstanceFilter(OSPolicyAssignment.InstanceFilter value)
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];
-
setInstanceFilter
public OSPolicyAssignment.Builder setInstanceFilter(OSPolicyAssignment.InstanceFilter.Builder builderForValue)
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];
-
mergeInstanceFilter
public OSPolicyAssignment.Builder mergeInstanceFilter(OSPolicyAssignment.InstanceFilter value)
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];
-
clearInstanceFilter
public OSPolicyAssignment.Builder clearInstanceFilter()
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];
-
getInstanceFilterBuilder
public OSPolicyAssignment.InstanceFilter.Builder getInstanceFilterBuilder()
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];
-
getInstanceFilterOrBuilder
public OSPolicyAssignment.InstanceFilterOrBuilder getInstanceFilterOrBuilder()
Required. Filter to select VMs.
.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstanceFilterOrBuilderin interfaceOSPolicyAssignmentOrBuilder
-
hasRollout
public boolean hasRollout()
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasRolloutin interfaceOSPolicyAssignmentOrBuilder- Returns:
- Whether the rollout field is set.
-
getRollout
public OSPolicyAssignment.Rollout getRollout()
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolloutin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The rollout.
-
setRollout
public OSPolicyAssignment.Builder setRollout(OSPolicyAssignment.Rollout value)
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];
-
setRollout
public OSPolicyAssignment.Builder setRollout(OSPolicyAssignment.Rollout.Builder builderForValue)
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];
-
mergeRollout
public OSPolicyAssignment.Builder mergeRollout(OSPolicyAssignment.Rollout value)
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];
-
clearRollout
public OSPolicyAssignment.Builder clearRollout()
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];
-
getRolloutBuilder
public OSPolicyAssignment.Rollout.Builder getRolloutBuilder()
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];
-
getRolloutOrBuilder
public OSPolicyAssignment.RolloutOrBuilder getRolloutOrBuilder()
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted..google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolloutOrBuilderin interfaceOSPolicyAssignmentOrBuilder
-
getRevisionId
public String getRevisionId()
Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
string revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()
Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
string revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdBytesin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The bytes for revisionId.
-
setRevisionId
public OSPolicyAssignment.Builder setRevisionId(String value)
Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
string revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The revisionId to set.- Returns:
- This builder for chaining.
-
clearRevisionId
public OSPolicyAssignment.Builder clearRevisionId()
Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
string revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setRevisionIdBytes
public OSPolicyAssignment.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
string revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
hasRevisionCreateTime
public boolean hasRevisionCreateTime()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRevisionCreateTimein interfaceOSPolicyAssignmentOrBuilder- Returns:
- Whether the revisionCreateTime field is set.
-
getRevisionCreateTime
public com.google.protobuf.Timestamp getRevisionCreateTime()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionCreateTimein interfaceOSPolicyAssignmentOrBuilder- Returns:
- The revisionCreateTime.
-
setRevisionCreateTime
public OSPolicyAssignment.Builder setRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setRevisionCreateTime
public OSPolicyAssignment.Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeRevisionCreateTime
public OSPolicyAssignment.Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearRevisionCreateTime
public OSPolicyAssignment.Builder clearRevisionCreateTime()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionCreateTimeOrBuilderin interfaceOSPolicyAssignmentOrBuilder
-
getEtag
public String getEtag()
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
string etag = 8;- Specified by:
getEtagin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
string etag = 8;- Specified by:
getEtagBytesin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The bytes for etag.
-
setEtag
public OSPolicyAssignment.Builder setEtag(String value)
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
string etag = 8;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public OSPolicyAssignment.Builder clearEtag()
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
string etag = 8;- Returns:
- This builder for chaining.
-
setEtagBytes
public OSPolicyAssignment.Builder setEtagBytes(com.google.protobuf.ByteString value)
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
string etag = 8;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getRolloutStateValue
public int getRolloutStateValue()
Output only. OS policy assignment rollout state
.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState rollout_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRolloutStateValuein interfaceOSPolicyAssignmentOrBuilder- Returns:
- The enum numeric value on the wire for rolloutState.
-
setRolloutStateValue
public OSPolicyAssignment.Builder setRolloutStateValue(int value)
Output only. OS policy assignment rollout state
.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState rollout_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for rolloutState to set.- Returns:
- This builder for chaining.
-
getRolloutState
public OSPolicyAssignment.RolloutState getRolloutState()
Output only. OS policy assignment rollout state
.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState rollout_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRolloutStatein interfaceOSPolicyAssignmentOrBuilder- Returns:
- The rolloutState.
-
setRolloutState
public OSPolicyAssignment.Builder setRolloutState(OSPolicyAssignment.RolloutState value)
Output only. OS policy assignment rollout state
.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState rollout_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The rolloutState to set.- Returns:
- This builder for chaining.
-
clearRolloutState
public OSPolicyAssignment.Builder clearRolloutState()
Output only. OS policy assignment rollout state
.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState rollout_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getBaseline
public boolean getBaseline()
Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of `true` for this field.
bool baseline = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBaselinein interfaceOSPolicyAssignmentOrBuilder- Returns:
- The baseline.
-
setBaseline
public OSPolicyAssignment.Builder setBaseline(boolean value)
Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of `true` for this field.
bool baseline = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The baseline to set.- Returns:
- This builder for chaining.
-
clearBaseline
public OSPolicyAssignment.Builder clearBaseline()
Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of `true` for this field.
bool baseline = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDeleted
public boolean getDeleted()
Output only. Indicates that this revision deletes the OS policy assignment.
bool deleted = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeletedin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The deleted.
-
setDeleted
public OSPolicyAssignment.Builder setDeleted(boolean value)
Output only. Indicates that this revision deletes the OS policy assignment.
bool deleted = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The deleted to set.- Returns:
- This builder for chaining.
-
clearDeleted
public OSPolicyAssignment.Builder clearDeleted()
Output only. Indicates that this revision deletes the OS policy assignment.
bool deleted = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getReconciling
public boolean getReconciling()
Output only. Indicates that reconciliation is in progress for the revision. This value is `true` when the `rollout_state` is one of: * IN_PROGRESS * CANCELLING
bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReconcilingin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The reconciling.
-
setReconciling
public OSPolicyAssignment.Builder setReconciling(boolean value)
Output only. Indicates that reconciliation is in progress for the revision. This value is `true` when the `rollout_state` is one of: * IN_PROGRESS * CANCELLING
bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The reconciling to set.- Returns:
- This builder for chaining.
-
clearReconciling
public OSPolicyAssignment.Builder clearReconciling()
Output only. Indicates that reconciliation is in progress for the revision. This value is `true` when the `rollout_state` is one of: * IN_PROGRESS * CANCELLING
bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getUid
public String getUid()
Output only. Server generated unique id for the OS policy assignment resource.
string uid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. Server generated unique id for the OS policy assignment resource.
string uid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceOSPolicyAssignmentOrBuilder- Returns:
- The bytes for uid.
-
setUid
public OSPolicyAssignment.Builder setUid(String value)
Output only. Server generated unique id for the OS policy assignment resource.
string uid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public OSPolicyAssignment.Builder clearUid()
Output only. Server generated unique id for the OS policy assignment resource.
string uid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUidBytes
public OSPolicyAssignment.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. Server generated unique id for the OS policy assignment resource.
string uid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OSPolicyAssignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
mergeUnknownFields
public final OSPolicyAssignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
-
-