Class CreateOSPolicyAssignmentRequest.Builder

    • 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<CreateOSPolicyAssignmentRequest.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<CreateOSPolicyAssignmentRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateOSPolicyAssignmentRequest.Builder>
      • getParent

        public String getParent()
         Required. The parent resource name in the form:
         projects/{project}/locations/{location}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateOSPolicyAssignmentRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent resource name in the form:
         projects/{project}/locations/{location}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateOSPolicyAssignmentRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateOSPolicyAssignmentRequest.Builder setParent​(String value)
         Required. The parent resource name in the form:
         projects/{project}/locations/{location}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateOSPolicyAssignmentRequest.Builder clearParent()
         Required. The parent resource name in the form:
         projects/{project}/locations/{location}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateOSPolicyAssignmentRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent resource name in the form:
         projects/{project}/locations/{location}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasOsPolicyAssignment

        public boolean hasOsPolicyAssignment()
         Required. The OS policy assignment to be created.
         
        .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasOsPolicyAssignment in interface CreateOSPolicyAssignmentRequestOrBuilder
        Returns:
        Whether the osPolicyAssignment field is set.
      • setOsPolicyAssignment

        public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment​(OSPolicyAssignment value)
         Required. The OS policy assignment to be created.
         
        .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeOsPolicyAssignment

        public CreateOSPolicyAssignmentRequest.Builder mergeOsPolicyAssignment​(OSPolicyAssignment value)
         Required. The OS policy assignment to be created.
         
        .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearOsPolicyAssignment

        public CreateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignment()
         Required. The OS policy assignment to be created.
         
        .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOsPolicyAssignmentBuilder

        public OSPolicyAssignment.Builder getOsPolicyAssignmentBuilder()
         Required. The OS policy assignment to be created.
         
        .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOsPolicyAssignmentId

        public String getOsPolicyAssignmentId()
         Required. The logical name of the OS policy assignment in the project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the project.
         
        string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOsPolicyAssignmentId in interface CreateOSPolicyAssignmentRequestOrBuilder
        Returns:
        The osPolicyAssignmentId.
      • getOsPolicyAssignmentIdBytes

        public com.google.protobuf.ByteString getOsPolicyAssignmentIdBytes()
         Required. The logical name of the OS policy assignment in the project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the project.
         
        string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOsPolicyAssignmentIdBytes in interface CreateOSPolicyAssignmentRequestOrBuilder
        Returns:
        The bytes for osPolicyAssignmentId.
      • setOsPolicyAssignmentId

        public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignmentId​(String value)
         Required. The logical name of the OS policy assignment in the project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the project.
         
        string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The osPolicyAssignmentId to set.
        Returns:
        This builder for chaining.
      • clearOsPolicyAssignmentId

        public CreateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignmentId()
         Required. The logical name of the OS policy assignment in the project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the project.
         
        string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setOsPolicyAssignmentIdBytes

        public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignmentIdBytes​(com.google.protobuf.ByteString value)
         Required. The logical name of the OS policy assignment in the project
         with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the project.
         
        string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for osPolicyAssignmentId to set.
        Returns:
        This builder for chaining.