Class 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 type google.cloud.osconfig.v1.OSPolicyAssignment
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • clear

        public OSPolicyAssignment.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • getDefaultInstanceForType

        public OSPolicyAssignment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public OSPolicyAssignment build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public OSPolicyAssignment buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public OSPolicyAssignment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • setField

        public OSPolicyAssignment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • clearField

        public OSPolicyAssignment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • clearOneof

        public OSPolicyAssignment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • setRepeatedField

        public OSPolicyAssignment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • addRepeatedField

        public OSPolicyAssignment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • mergeFrom

        public OSPolicyAssignment.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicyAssignment.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getName in interface OSPolicyAssignmentOrBuilder
        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:
        getNameBytes in interface OSPolicyAssignmentOrBuilder
        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:
        getDescription in interface OSPolicyAssignmentOrBuilder
        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:
        getDescriptionBytes in interface OSPolicyAssignmentOrBuilder
        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:
        getOsPoliciesList in interface OSPolicyAssignmentOrBuilder
      • 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:
        getOsPoliciesCount in interface OSPolicyAssignmentOrBuilder
      • 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:
        getOsPolicies in interface OSPolicyAssignmentOrBuilder
      • 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];
      • 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:
        hasInstanceFilter in interface OSPolicyAssignmentOrBuilder
        Returns:
        Whether the instanceFilter field is set.
      • 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];
      • 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:
        hasRollout in interface OSPolicyAssignmentOrBuilder
        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:
        getRollout in interface OSPolicyAssignmentOrBuilder
        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:
        getRolloutOrBuilder in interface OSPolicyAssignmentOrBuilder
      • 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:
        getRevisionId in interface OSPolicyAssignmentOrBuilder
        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:
        getRevisionIdBytes in interface OSPolicyAssignmentOrBuilder
        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:
        hasRevisionCreateTime in interface OSPolicyAssignmentOrBuilder
        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:
        getRevisionCreateTime in interface OSPolicyAssignmentOrBuilder
        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:
        getRevisionCreateTimeOrBuilder in interface OSPolicyAssignmentOrBuilder
      • 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:
        getEtag in interface OSPolicyAssignmentOrBuilder
        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:
        getEtagBytes in interface OSPolicyAssignmentOrBuilder
        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:
        getRolloutStateValue in interface OSPolicyAssignmentOrBuilder
        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.
      • 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:
        getBaseline in interface OSPolicyAssignmentOrBuilder
        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:
        getDeleted in interface OSPolicyAssignmentOrBuilder
        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:
        getReconciling in interface OSPolicyAssignmentOrBuilder
        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:
        getUid in interface OSPolicyAssignmentOrBuilder
        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:
        getUidBytes in interface OSPolicyAssignmentOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>
      • mergeUnknownFields

        public final OSPolicyAssignment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.Builder>